source: trunk/Couenne/configure @ 93

Last change on this file since 93 was 93, checked in by pbelotti, 11 years ago

new library modularization (broken with debug)

File size: 774.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Couenne 0.2.
4#
5# Report bugs to <belotti@lehigh.edu>.
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 Carnegie Mellon University, International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Couenne'
431PACKAGE_TARNAME='couenne'
432PACKAGE_VERSION='0.2'
433PACKAGE_STRING='Couenne 0.2'
434PACKAGE_BUGREPORT='belotti@lehigh.edu'
435
436ac_unique_file="src/expression/expression.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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_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 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 THIRDPARTYSRCDIR THIRDPARTYOBJDIR THIRDPARTYDOCDIR COIN_HAS_THIRDPARTY_TRUE COIN_HAS_THIRDPARTY_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE BONMINSRCDIR BONMINOBJDIR BONMINDOCDIR COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE IPOPTSRCDIR IPOPTOBJDIR IPOPTDOCDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COUENNESRCDIR COUENNEOBJDIR COUENNEDOCDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_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
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Couenne 0.2 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Couenne 0.2:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-couenne compile this project (Couenne) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1096                          link check at configuration time
1097
1098Optional Packages:
1099  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1100  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1101  --with-couenne-verbosity
1102                          specify the debug verbosity level for project
1103                          Couenne
1104  --with-couenne-checklevel
1105                          specify the sanity check level for project Couenne
1106  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1107  --with-pic              try to use only PIC/non-PIC objects [default=use
1108                          both]
1109  --with-tags[=TAGS]
1110                          include additional configurations [automatic]
1111  --with-asldir           specify path to AMPL solver directory (or BUILD for
1112                          compilation, or "no" for disabling AMPL)
1113  --with-cplex-incdir specify the header file directory for library Cplex
1114  --with-cplex-lib specify the flags used to link with the library Cplex
1115
1116Some influential environment variables:
1117  CDEFS       Additional -D flags to be used when compiling C code.
1118  ADD_CFLAGS  Additional C compiler options
1119  DBG_CFLAGS  Debug C compiler options
1120  OPT_CFLAGS  Optimize C compiler options
1121  CC          C compiler command
1122  CFLAGS      C compiler flags
1123  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1124              nonstandard directory <lib dir>
1125  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1126              headers in a nonstandard directory <include dir>
1127  MPICC       C MPI Compiler
1128  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1129  ADD_CXXFLAGS
1130              Additional C++ compiler options
1131  DBG_CXXFLAGS
1132              Debug C++ compiler options
1133  OPT_CXXFLAGS
1134              Optimize C++ compiler options
1135  CXX         C++ compiler command
1136  CXXFLAGS    C++ compiler flags
1137  MPICXX      C++ MPI Compiler
1138  CPP         C preprocessor
1139  CXXCPP      C++ preprocessor
1140  F77         Fortran 77 compiler command
1141  FFLAGS      Fortran 77 compiler flags
1142
1143Use these variables to override the choices made by `configure' or to help
1144it to find libraries and programs with nonstandard names/locations.
1145
1146Report bugs to <belotti@lehigh.edu>.
1147_ACEOF
1148fi
1149
1150if test "$ac_init_help" = "recursive"; then
1151  # If there are subdirs, report their specific --help.
1152  ac_popdir=`pwd`
1153  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1154    test -d $ac_dir || continue
1155    ac_builddir=.
1156
1157if test "$ac_dir" != .; then
1158  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1159  # A "../" for each directory in $ac_dir_suffix.
1160  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1161else
1162  ac_dir_suffix= ac_top_builddir=
1163fi
1164
1165case $srcdir in
1166  .)  # No --srcdir option.  We are building in place.
1167    ac_srcdir=.
1168    if test -z "$ac_top_builddir"; then
1169       ac_top_srcdir=.
1170    else
1171       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1172    fi ;;
1173  [\\/]* | ?:[\\/]* )  # Absolute path.
1174    ac_srcdir=$srcdir$ac_dir_suffix;
1175    ac_top_srcdir=$srcdir ;;
1176  *) # Relative path.
1177    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1178    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1179esac
1180
1181# Do not use `cd foo && pwd` to compute absolute paths, because
1182# the directories may not exist.
1183case `pwd` in
1184.) ac_abs_builddir="$ac_dir";;
1185*)
1186  case "$ac_dir" in
1187  .) ac_abs_builddir=`pwd`;;
1188  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1189  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1190  esac;;
1191esac
1192case $ac_abs_builddir in
1193.) ac_abs_top_builddir=${ac_top_builddir}.;;
1194*)
1195  case ${ac_top_builddir}. in
1196  .) ac_abs_top_builddir=$ac_abs_builddir;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1198  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_srcdir=$ac_srcdir;;
1203*)
1204  case $ac_srcdir in
1205  .) ac_abs_srcdir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1207  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_top_srcdir=$ac_top_srcdir;;
1212*)
1213  case $ac_top_srcdir in
1214  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1216  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1217  esac;;
1218esac
1219
1220    cd $ac_dir
1221    # Check for guested configure; otherwise get Cygnus style configure.
1222    if test -f $ac_srcdir/configure.gnu; then
1223      echo
1224      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1225    elif test -f $ac_srcdir/configure; then
1226      echo
1227      $SHELL $ac_srcdir/configure  --help=recursive
1228    elif test -f $ac_srcdir/configure.ac ||
1229           test -f $ac_srcdir/configure.in; then
1230      echo
1231      $ac_configure --help
1232    else
1233      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1234    fi
1235    cd $ac_popdir
1236  done
1237fi
1238
1239test -n "$ac_init_help" && exit 0
1240if $ac_init_version; then
1241  cat <<\_ACEOF
1242Couenne configure 0.2
1243generated by GNU Autoconf 2.59
1244
1245Copyright (C) 2003 Free Software Foundation, Inc.
1246This configure script is free software; the Free Software Foundation
1247gives unlimited permission to copy, distribute and modify it.
1248
1249
1250Copyright 2006 Carnegie Mellon University, International Business Machines and others.
1251All Rights Reserved.
1252This file is part of the open source package Coin which is distributed
1253under the Common Public License.
1254_ACEOF
1255  exit 0
1256fi
1257exec 5>config.log
1258cat >&5 <<_ACEOF
1259This file contains any messages produced by compilers while
1260running configure, to aid debugging if configure makes a mistake.
1261
1262It was created by Couenne $as_me 0.2, which was
1263generated by GNU Autoconf 2.59.  Invocation command line was
1264
1265  $ $0 $@
1266
1267_ACEOF
1268{
1269cat <<_ASUNAME
1270## --------- ##
1271## Platform. ##
1272## --------- ##
1273
1274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1275uname -m = `(uname -m) 2>/dev/null || echo unknown`
1276uname -r = `(uname -r) 2>/dev/null || echo unknown`
1277uname -s = `(uname -s) 2>/dev/null || echo unknown`
1278uname -v = `(uname -v) 2>/dev/null || echo unknown`
1279
1280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1281/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1282
1283/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1284/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1286hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1287/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1288/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1289/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1290
1291_ASUNAME
1292
1293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1294for as_dir in $PATH
1295do
1296  IFS=$as_save_IFS
1297  test -z "$as_dir" && as_dir=.
1298  echo "PATH: $as_dir"
1299done
1300
1301} >&5
1302
1303cat >&5 <<_ACEOF
1304
1305
1306## ----------- ##
1307## Core tests. ##
1308## ----------- ##
1309
1310_ACEOF
1311
1312
1313# Keep a trace of the command line.
1314# Strip out --no-create and --no-recursion so they do not pile up.
1315# Strip out --silent because we don't want to record it for future runs.
1316# Also quote any args containing shell meta-characters.
1317# Make two passes to allow for proper duplicate-argument suppression.
1318ac_configure_args=
1319ac_configure_args0=
1320ac_configure_args1=
1321ac_sep=
1322ac_must_keep_next=false
1323for ac_pass in 1 2
1324do
1325  for ac_arg
1326  do
1327    case $ac_arg in
1328    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1329    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1330    | -silent | --silent | --silen | --sile | --sil)
1331      continue ;;
1332    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1333      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1334    esac
1335    case $ac_pass in
1336    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1337    2)
1338      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1339      if test $ac_must_keep_next = true; then
1340        ac_must_keep_next=false # Got value, back to normal.
1341      else
1342        case $ac_arg in
1343          *=* | --config-cache | -C | -disable-* | --disable-* \
1344          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1345          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1346          | -with-* | --with-* | -without-* | --without-* | --x)
1347            case "$ac_configure_args0 " in
1348              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1349            esac
1350            ;;
1351          -* ) ac_must_keep_next=true ;;
1352        esac
1353      fi
1354      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1355      # Get rid of the leading space.
1356      ac_sep=" "
1357      ;;
1358    esac
1359  done
1360done
1361$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1362$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1363
1364# When interrupted or exit'd, cleanup temporary files, and complete
1365# config.log.  We remove comments because anyway the quotes in there
1366# would cause problems or look ugly.
1367# WARNING: Be sure not to use single quotes in there, as some shells,
1368# such as our DU 5.0 friend, will then `close' the trap.
1369trap 'exit_status=$?
1370  # Save into config.log some information that might help in debugging.
1371  {
1372    echo
1373
1374    cat <<\_ASBOX
1375## ---------------- ##
1376## Cache variables. ##
1377## ---------------- ##
1378_ASBOX
1379    echo
1380    # The following way of writing the cache mishandles newlines in values,
1381{
1382  (set) 2>&1 |
1383    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1384    *ac_space=\ *)
1385      sed -n \
1386        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1387          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1388      ;;
1389    *)
1390      sed -n \
1391        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1392      ;;
1393    esac;
1394}
1395    echo
1396
1397    cat <<\_ASBOX
1398## ----------------- ##
1399## Output variables. ##
1400## ----------------- ##
1401_ASBOX
1402    echo
1403    for ac_var in $ac_subst_vars
1404    do
1405      eval ac_val=$`echo $ac_var`
1406      echo "$ac_var='"'"'$ac_val'"'"'"
1407    done | sort
1408    echo
1409
1410    if test -n "$ac_subst_files"; then
1411      cat <<\_ASBOX
1412## ------------- ##
1413## Output files. ##
1414## ------------- ##
1415_ASBOX
1416      echo
1417      for ac_var in $ac_subst_files
1418      do
1419        eval ac_val=$`echo $ac_var`
1420        echo "$ac_var='"'"'$ac_val'"'"'"
1421      done | sort
1422      echo
1423    fi
1424
1425    if test -s confdefs.h; then
1426      cat <<\_ASBOX
1427## ----------- ##
1428## confdefs.h. ##
1429## ----------- ##
1430_ASBOX
1431      echo
1432      sed "/^$/d" confdefs.h | sort
1433      echo
1434    fi
1435    test "$ac_signal" != 0 &&
1436      echo "$as_me: caught signal $ac_signal"
1437    echo "$as_me: exit $exit_status"
1438  } >&5
1439  rm -f core *.core &&
1440  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1441    exit $exit_status
1442     ' 0
1443for ac_signal in 1 2 13 15; do
1444  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1445done
1446ac_signal=0
1447
1448# confdefs.h avoids OS command line length limits that DEFS can exceed.
1449rm -rf conftest* confdefs.h
1450# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1451echo >confdefs.h
1452
1453# Predefined preprocessor variables.
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_NAME "$PACKAGE_NAME"
1457_ACEOF
1458
1459
1460cat >>confdefs.h <<_ACEOF
1461#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1462_ACEOF
1463
1464
1465cat >>confdefs.h <<_ACEOF
1466#define PACKAGE_VERSION "$PACKAGE_VERSION"
1467_ACEOF
1468
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_STRING "$PACKAGE_STRING"
1472_ACEOF
1473
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1477_ACEOF
1478
1479
1480# Let the site file select an alternate cache file if it wants to.
1481# Prefer explicitly selected file to automatically selected ones.
1482if test -z "$CONFIG_SITE"; then
1483  if test "x$prefix" != xNONE; then
1484    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1485  else
1486    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1487  fi
1488fi
1489for ac_site_file in $CONFIG_SITE; do
1490  if test -r "$ac_site_file"; then
1491    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1492echo "$as_me: loading site script $ac_site_file" >&6;}
1493    sed 's/^/| /' "$ac_site_file" >&5
1494    . "$ac_site_file"
1495  fi
1496done
1497
1498if test -r "$cache_file"; then
1499  # Some versions of bash will fail to source /dev/null (special
1500  # files actually), so we avoid doing that.
1501  if test -f "$cache_file"; then
1502    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1503echo "$as_me: loading cache $cache_file" >&6;}
1504    case $cache_file in
1505      [\\/]* | ?:[\\/]* ) . $cache_file;;
1506      *)                      . ./$cache_file;;
1507    esac
1508  fi
1509else
1510  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1511echo "$as_me: creating cache $cache_file" >&6;}
1512  >$cache_file
1513fi
1514
1515# Check that the precious variables saved in the cache have kept the same
1516# value.
1517ac_cache_corrupted=false
1518for ac_var in `(set) 2>&1 |
1519               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1520  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1521  eval ac_new_set=\$ac_env_${ac_var}_set
1522  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1523  eval ac_new_val="\$ac_env_${ac_var}_value"
1524  case $ac_old_set,$ac_new_set in
1525    set,)
1526      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1527echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1528      ac_cache_corrupted=: ;;
1529    ,set)
1530      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1531echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1532      ac_cache_corrupted=: ;;
1533    ,);;
1534    *)
1535      if test "x$ac_old_val" != "x$ac_new_val"; then
1536        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1537echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1538        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1539echo "$as_me:   former value:  $ac_old_val" >&2;}
1540        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1541echo "$as_me:   current value: $ac_new_val" >&2;}
1542        ac_cache_corrupted=:
1543      fi;;
1544  esac
1545  # Pass precious variables to config.status.
1546  if test "$ac_new_set" = set; then
1547    case $ac_new_val in
1548    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1549      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1550    *) ac_arg=$ac_var=$ac_new_val ;;
1551    esac
1552    case " $ac_configure_args " in
1553      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1554      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1555    esac
1556  fi
1557done
1558if $ac_cache_corrupted; then
1559  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1560echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1561  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1562echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1563   { (exit 1); exit 1; }; }
1564fi
1565
1566ac_ext=c
1567ac_cpp='$CPP $CPPFLAGS'
1568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1570ac_compiler_gnu=$ac_cv_c_compiler_gnu
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601# List one file in the package so that the configure script can test
1602# whether the package is actually there
1603
1604
1605# Where should everything be installed by default?  Here, we want it
1606# to be installed directly in 'bin', 'lib', 'include' subdirectories
1607# of the directory where configure is run.  The default would be
1608# /usr/local.
1609
1610
1611#############################################################################
1612#                         Standard build tool stuff                         #
1613#############################################################################
1614
1615# Get the system type
1616ac_aux_dir=
1617for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1618  if test -f $ac_dir/install-sh; then
1619    ac_aux_dir=$ac_dir
1620    ac_install_sh="$ac_aux_dir/install-sh -c"
1621    break
1622  elif test -f $ac_dir/install.sh; then
1623    ac_aux_dir=$ac_dir
1624    ac_install_sh="$ac_aux_dir/install.sh -c"
1625    break
1626  elif test -f $ac_dir/shtool; then
1627    ac_aux_dir=$ac_dir
1628    ac_install_sh="$ac_aux_dir/shtool install -c"
1629    break
1630  fi
1631done
1632if test -z "$ac_aux_dir"; then
1633  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1634echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1635   { (exit 1); exit 1; }; }
1636fi
1637ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1638ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1639ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1640
1641# Make sure we can run config.sub.
1642$ac_config_sub sun4 >/dev/null 2>&1 ||
1643  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1644echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1645   { (exit 1); exit 1; }; }
1646
1647echo "$as_me:$LINENO: checking build system type" >&5
1648echo $ECHO_N "checking build system type... $ECHO_C" >&6
1649if test "${ac_cv_build+set}" = set; then
1650  echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652  ac_cv_build_alias=$build_alias
1653test -z "$ac_cv_build_alias" &&
1654  ac_cv_build_alias=`$ac_config_guess`
1655test -z "$ac_cv_build_alias" &&
1656  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1657echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1658   { (exit 1); exit 1; }; }
1659ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1660  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1661echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1662   { (exit 1); exit 1; }; }
1663
1664fi
1665echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1666echo "${ECHO_T}$ac_cv_build" >&6
1667build=$ac_cv_build
1668build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673
1674# Initialization specifically for project main directories
1675# Initialize the ADDLIBS variable
1676ADDLIBS="-lm $LIBS"
1677
1678
1679# Initialize the FADDLIBS variable (which is to be used with a fortran
1680# compiler and will not include FLIBS)
1681FADDLIBS="$LIBS"
1682
1683
1684# A useful makefile conditional that is always false
1685
1686
1687if false; then
1688  ALWAYS_FALSE_TRUE=
1689  ALWAYS_FALSE_FALSE='#'
1690else
1691  ALWAYS_FALSE_TRUE='#'
1692  ALWAYS_FALSE_FALSE=
1693fi
1694
1695
1696# We set the following variable so that we know later in AC_COIN_FINALIZE
1697# that we are in a project main directory
1698coin_projectdir=yes
1699
1700
1701# Check if user wants to produce debugging code
1702
1703echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1704echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1705
1706# Check whether --enable-debug or --disable-debug was given.
1707if test "${enable_debug+set}" = set; then
1708  enableval="$enable_debug"
1709  case "${enableval}" in
1710   yes) coin_debug_compile=true
1711        if test "${enable_shared+set}" = set; then :; else
1712          enable_shared=no
1713        fi
1714        ;;
1715   no)  coin_debug_compile=false
1716        ;;
1717   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1718echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1719   { (exit 1); exit 1; }; }
1720        ;;
1721esac
1722else
1723  coin_debug_compile=false
1724fi;
1725
1726# Check whether --enable-debug-couenne or --disable-debug-couenne was given.
1727if test "${enable_debug_couenne+set}" = set; then
1728  enableval="$enable_debug_couenne"
1729  case "${enableval}" in
1730    yes) coin_debug_compile=true
1731         enable_shared=no
1732         ;;
1733    no)  coin_debug_compile=false
1734         ;;
1735    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
1736echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
1737   { (exit 1); exit 1; }; }
1738         ;;
1739 esac
1740else
1741  :
1742fi;
1743
1744 # m4_ifvaln([Couenne],
1745
1746if test $coin_debug_compile = true; then
1747  echo "$as_me:$LINENO: result: yes" >&5
1748echo "${ECHO_T}yes" >&6
1749else
1750  echo "$as_me:$LINENO: result: no" >&5
1751echo "${ECHO_T}no" >&6
1752fi
1753
1754
1755# Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
1756if test "${with_couenne_verbosity+set}" = set; then
1757  withval="$with_couenne_verbosity"
1758  if test "$withval" = yes; then
1759                withval=1
1760              fi
1761              coin_couenne_verbosity=$withval
1762else
1763  coin_couenne_verbosity=0
1764fi;
1765
1766cat >>confdefs.h <<_ACEOF
1767#define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
1768_ACEOF
1769
1770
1771
1772# Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
1773if test "${with_couenne_checklevel+set}" = set; then
1774  withval="$with_couenne_checklevel"
1775  if test "$withval" = yes; then
1776                withval=1
1777              fi
1778              coin_couenne_checklevel=$withval
1779else
1780  coin_couenne_checklevel=0
1781fi;
1782
1783cat >>confdefs.h <<_ACEOF
1784#define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
1785_ACEOF
1786
1787
1788# We use the following variable to have a string with the upper case
1789# version of the project name
1790COIN_PRJCT=COUENNE
1791
1792
1793 # m4_ifvaln([Couenne],
1794
1795
1796
1797# Get the name of the C++ compiler and appropriate compiler options
1798case $build in
1799  *-mingw*)
1800    if test "${LD+set}" = set; then :; else
1801      LD=link
1802    fi
1803    ;;
1804 esac
1805 case $enable_doscompile in
1806   msvc)
1807     if test "x${LD+set}" = xset; then :; else
1808       LD=link
1809     fi
1810     ;;
1811 esac
1812
1813
1814 # Check whether --enable-doscompile or --disable-doscompile was given.
1815if test "${enable_doscompile+set}" = set; then
1816  enableval="$enable_doscompile"
1817  if test "$enable_doscompile" != no; then
1818     case $build in
1819       *-cygwin* | *-mingw*) ;;
1820       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1821echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1822   { (exit 1); exit 1; }; } ;;
1823     esac
1824   fi
1825else
1826  enable_doscompile=no
1827fi;
1828 case "$enable_doscompile" in
1829   mingw)
1830     case $build in
1831       *-mingw*) enable_doscompile=no ;;
1832     esac
1833     ;;
1834   msvc|no) ;;
1835   yes) enable_doscompile=mingw ;;
1836   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1837                    Try configure --help=recursive." >&5
1838echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1839                    Try configure --help=recursive." >&2;}
1840   { (exit 1); exit 1; }; }
1841      ;;
1842  esac
1843  if test "$enable_doscompile" != no ; then
1844    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1845echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1846  fi
1847
1848
1849
1850
1851ac_ext=c
1852ac_cpp='$CPP $CPPFLAGS'
1853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1855ac_compiler_gnu=$ac_cv_c_compiler_gnu
1856
1857
1858# For consistency, we set the C compiler to the same value of the C++
1859# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1860if test x"$CXX" != x; then
1861  case "$CXX" in
1862    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1863      if test x"$CC" = x; then
1864        CC="$CXX"
1865        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1866echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1867      fi
1868      ;;
1869  esac
1870fi
1871
1872
1873
1874
1875
1876
1877coin_has_cc=yes
1878
1879save_cflags="$CFLAGS"
1880
1881# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1882# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1883# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1884# compiler. In this case, put cc after gcc.
1885
1886case $build in
1887  *-cygwin* | *-mingw*)
1888             if test "$enable_doscompile" = msvc ; then
1889               comps="icl cl"
1890             else
1891               comps="gcc cl"
1892             fi ;;
1893  *-*-solaris*)
1894             # Extract the first word of "cc", so it can be a program name with args.
1895set dummy cc; ac_word=$2
1896echo "$as_me:$LINENO: checking for $ac_word" >&5
1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1899  echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901  if test -n "$sol_cc_compiler"; then
1902  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1903else
1904  ac_prog_rejected=no
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908  IFS=$as_save_IFS
1909  test -z "$as_dir" && as_dir=.
1910  for ac_exec_ext in '' $ac_executable_extensions; do
1911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1913       ac_prog_rejected=yes
1914       continue
1915     fi
1916    ac_cv_prog_sol_cc_compiler="cc"
1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918    break 2
1919  fi
1920done
1921done
1922
1923if test $ac_prog_rejected = yes; then
1924  # We found a bogon in the path, so make sure we never use it.
1925  set dummy $ac_cv_prog_sol_cc_compiler
1926  shift
1927  if test $# != 0; then
1928    # We chose a different compiler from the bogus one.
1929    # However, it has the same basename, so the bogon will be chosen
1930    # first if we set sol_cc_compiler to just the basename; use the full file name.
1931    shift
1932    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1933  fi
1934fi
1935fi
1936fi
1937sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1938if test -n "$sol_cc_compiler"; then
1939  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1940echo "${ECHO_T}$sol_cc_compiler" >&6
1941else
1942  echo "$as_me:$LINENO: result: no" >&5
1943echo "${ECHO_T}no" >&6
1944fi
1945
1946             if test "$sol_cc_compiler" = "cc" ; then
1947               comps="cc xlc gcc pgcc icc"
1948             else
1949               comps="xlc gcc pgcc icc cc"
1950             fi
1951             ;;
1952  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1953  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1954esac
1955
1956# We delete the cached value, since the test might not have been
1957# performed with our choice of compilers earlier
1958$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1959# AC_MSG_NOTICE([C compiler candidates: $comps])
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965if test -n "$ac_tool_prefix"; then
1966  for ac_prog in $comps
1967  do
1968    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1970echo "$as_me:$LINENO: checking for $ac_word" >&5
1971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972if test "${ac_cv_prog_CC+set}" = set; then
1973  echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975  if test -n "$CC"; then
1976  ac_cv_prog_CC="$CC" # Let the user override the test.
1977else
1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH
1980do
1981  IFS=$as_save_IFS
1982  test -z "$as_dir" && as_dir=.
1983  for ac_exec_ext in '' $ac_executable_extensions; do
1984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987    break 2
1988  fi
1989done
1990done
1991
1992fi
1993fi
1994CC=$ac_cv_prog_CC
1995if test -n "$CC"; then
1996  echo "$as_me:$LINENO: result: $CC" >&5
1997echo "${ECHO_T}$CC" >&6
1998else
1999  echo "$as_me:$LINENO: result: no" >&5
2000echo "${ECHO_T}no" >&6
2001fi
2002
2003    test -n "$CC" && break
2004  done
2005fi
2006if test -z "$CC"; then
2007  ac_ct_CC=$CC
2008  for ac_prog in $comps
2009do
2010  # Extract the first word of "$ac_prog", so it can be a program name with args.
2011set dummy $ac_prog; ac_word=$2
2012echo "$as_me:$LINENO: checking for $ac_word" >&5
2013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015  echo $ECHO_N "(cached) $ECHO_C" >&6
2016else
2017  if test -n "$ac_ct_CC"; then
2018  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019else
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023  IFS=$as_save_IFS
2024  test -z "$as_dir" && as_dir=.
2025  for ac_exec_ext in '' $ac_executable_extensions; do
2026  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027    ac_cv_prog_ac_ct_CC="$ac_prog"
2028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029    break 2
2030  fi
2031done
2032done
2033
2034fi
2035fi
2036ac_ct_CC=$ac_cv_prog_ac_ct_CC
2037if test -n "$ac_ct_CC"; then
2038  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039echo "${ECHO_T}$ac_ct_CC" >&6
2040else
2041  echo "$as_me:$LINENO: result: no" >&5
2042echo "${ECHO_T}no" >&6
2043fi
2044
2045  test -n "$ac_ct_CC" && break
2046done
2047
2048  CC=$ac_ct_CC
2049fi
2050
2051
2052test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2053See \`config.log' for more details." >&5
2054echo "$as_me: error: no acceptable C compiler found in \$PATH
2055See \`config.log' for more details." >&2;}
2056   { (exit 1); exit 1; }; }
2057
2058# Provide some information about the compiler.
2059echo "$as_me:$LINENO:" \
2060     "checking for C compiler version" >&5
2061ac_compiler=`set X $ac_compile; echo $2`
2062{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2063  (eval $ac_compiler --version </dev/null >&5) 2>&5
2064  ac_status=$?
2065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066  (exit $ac_status); }
2067{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2068  (eval $ac_compiler -v </dev/null >&5) 2>&5
2069  ac_status=$?
2070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071  (exit $ac_status); }
2072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2073  (eval $ac_compiler -V </dev/null >&5) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }
2077
2078cat >conftest.$ac_ext <<_ACEOF
2079/* confdefs.h.  */
2080_ACEOF
2081cat confdefs.h >>conftest.$ac_ext
2082cat >>conftest.$ac_ext <<_ACEOF
2083/* end confdefs.h.  */
2084
2085int
2086main ()
2087{
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093ac_clean_files_save=$ac_clean_files
2094ac_clean_files="$ac_clean_files a.out a.exe b.out"
2095# Try to create an executable without -o first, disregard a.out.
2096# It will help us diagnose broken compilers, and finding out an intuition
2097# of exeext.
2098echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2099echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2100ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2101if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2102  (eval $ac_link_default) 2>&5
2103  ac_status=$?
2104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105  (exit $ac_status); }; then
2106  # Find the output, starting from the most likely.  This scheme is
2107# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2108# resort.
2109
2110# Be careful to initialize this variable, since it used to be cached.
2111# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2112ac_cv_exeext=
2113# b.out is created by i960 compilers.
2114for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2115do
2116  test -f "$ac_file" || continue
2117  case $ac_file in
2118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2119        ;;
2120    conftest.$ac_ext )
2121        # This is the source file.
2122        ;;
2123    [ab].out )
2124        # We found the default executable, but exeext='' is most
2125        # certainly right.
2126        break;;
2127    *.* )
2128        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129        # FIXME: I believe we export ac_cv_exeext for Libtool,
2130        # but it would be cool to find out if it's true.  Does anybody
2131        # maintain Libtool? --akim.
2132        export ac_cv_exeext
2133        break;;
2134    * )
2135        break;;
2136  esac
2137done
2138else
2139  echo "$as_me: failed program was:" >&5
2140sed 's/^/| /' conftest.$ac_ext >&5
2141
2142{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2143See \`config.log' for more details." >&5
2144echo "$as_me: error: C compiler cannot create executables
2145See \`config.log' for more details." >&2;}
2146   { (exit 77); exit 77; }; }
2147fi
2148
2149ac_exeext=$ac_cv_exeext
2150echo "$as_me:$LINENO: result: $ac_file" >&5
2151echo "${ECHO_T}$ac_file" >&6
2152
2153# Check the compiler produces executables we can run.  If not, either
2154# the compiler is broken, or we cross compile.
2155echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2156echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2157# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2158# If not cross compiling, check that we can run a simple program.
2159if test "$cross_compiling" != yes; then
2160  if { ac_try='./$ac_file'
2161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162  (eval $ac_try) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; }; then
2166    cross_compiling=no
2167  else
2168    if test "$cross_compiling" = maybe; then
2169        cross_compiling=yes
2170    else
2171        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2172If you meant to cross compile, use \`--host'.
2173See \`config.log' for more details." >&5
2174echo "$as_me: error: cannot run C compiled programs.
2175If you meant to cross compile, use \`--host'.
2176See \`config.log' for more details." >&2;}
2177   { (exit 1); exit 1; }; }
2178    fi
2179  fi
2180fi
2181echo "$as_me:$LINENO: result: yes" >&5
2182echo "${ECHO_T}yes" >&6
2183
2184rm -f a.out a.exe conftest$ac_cv_exeext b.out
2185ac_clean_files=$ac_clean_files_save
2186# Check the compiler produces executables we can run.  If not, either
2187# the compiler is broken, or we cross compile.
2188echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2190echo "$as_me:$LINENO: result: $cross_compiling" >&5
2191echo "${ECHO_T}$cross_compiling" >&6
2192
2193echo "$as_me:$LINENO: checking for suffix of executables" >&5
2194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2196  (eval $ac_link) 2>&5
2197  ac_status=$?
2198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199  (exit $ac_status); }; then
2200  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2201# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2202# work properly (i.e., refer to `conftest.exe'), while it won't with
2203# `rm'.
2204for ac_file in conftest.exe conftest conftest.*; do
2205  test -f "$ac_file" || continue
2206  case $ac_file in
2207    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2208    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2209          export ac_cv_exeext
2210          break;;
2211    * ) break;;
2212  esac
2213done
2214else
2215  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2216See \`config.log' for more details." >&5
2217echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2218See \`config.log' for more details." >&2;}
2219   { (exit 1); exit 1; }; }
2220fi
2221
2222rm -f conftest$ac_cv_exeext
2223echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2224echo "${ECHO_T}$ac_cv_exeext" >&6
2225
2226rm -f conftest.$ac_ext
2227EXEEXT=$ac_cv_exeext
2228ac_exeext=$EXEEXT
2229echo "$as_me:$LINENO: checking for suffix of object files" >&5
2230echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2231if test "${ac_cv_objext+set}" = set; then
2232  echo $ECHO_N "(cached) $ECHO_C" >&6
2233else
2234  cat >conftest.$ac_ext <<_ACEOF
2235/* confdefs.h.  */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h.  */
2240
2241int
2242main ()
2243{
2244
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249rm -f conftest.o conftest.obj
2250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251  (eval $ac_compile) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; then
2255  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2256  case $ac_file in
2257    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2258    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2259       break;;
2260  esac
2261done
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: cannot compute suffix of object files: cannot compile
2269See \`config.log' for more details." >&2;}
2270   { (exit 1); exit 1; }; }
2271fi
2272
2273rm -f conftest.$ac_cv_objext conftest.$ac_ext
2274fi
2275echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2276echo "${ECHO_T}$ac_cv_objext" >&6
2277OBJEXT=$ac_cv_objext
2278ac_objext=$OBJEXT
2279echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2280echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2281if test "${ac_cv_c_compiler_gnu+set}" = set; then
2282  echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284  cat >conftest.$ac_ext <<_ACEOF
2285/* confdefs.h.  */
2286_ACEOF
2287cat confdefs.h >>conftest.$ac_ext
2288cat >>conftest.$ac_ext <<_ACEOF
2289/* end confdefs.h.  */
2290
2291int
2292main ()
2293{
2294#ifndef __GNUC__
2295       choke me
2296#endif
2297
2298  ;
2299  return 0;
2300}
2301_ACEOF
2302rm -f conftest.$ac_objext
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304  (eval $ac_compile) 2>conftest.er1
2305  ac_status=$?
2306  grep -v '^ *+' conftest.er1 >conftest.err
2307  rm -f conftest.er1
2308  cat conftest.err >&5
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); } &&
2311         { ac_try='test -z "$ac_c_werror_flag"
2312                         || test ! -s conftest.err'
2313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314  (eval $ac_try) 2>&5
2315  ac_status=$?
2316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317  (exit $ac_status); }; } &&
2318         { ac_try='test -s conftest.$ac_objext'
2319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320  (eval $ac_try) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; }; then
2324  ac_compiler_gnu=yes
2325else
2326  echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329ac_compiler_gnu=no
2330fi
2331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2332ac_cv_c_compiler_gnu=$ac_compiler_gnu
2333
2334fi
2335echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2336echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2337GCC=`test $ac_compiler_gnu = yes && echo yes`
2338ac_test_CFLAGS=${CFLAGS+set}
2339ac_save_CFLAGS=$CFLAGS
2340CFLAGS="-g"
2341echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2342echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2343if test "${ac_cv_prog_cc_g+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352
2353int
2354main ()
2355{
2356
2357  ;
2358  return 0;
2359}
2360_ACEOF
2361rm -f conftest.$ac_objext
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363  (eval $ac_compile) 2>conftest.er1
2364  ac_status=$?
2365  grep -v '^ *+' conftest.er1 >conftest.err
2366  rm -f conftest.er1
2367  cat conftest.err >&5
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); } &&
2370         { ac_try='test -z "$ac_c_werror_flag"
2371                         || test ! -s conftest.err'
2372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373  (eval $ac_try) 2>&5
2374  ac_status=$?
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); }; } &&
2377         { ac_try='test -s conftest.$ac_objext'
2378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379  (eval $ac_try) 2>&5
2380  ac_status=$?
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); }; }; then
2383  ac_cv_prog_cc_g=yes
2384else
2385  echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388ac_cv_prog_cc_g=no
2389fi
2390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391fi
2392echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2393echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2394if test "$ac_test_CFLAGS" = set; then
2395  CFLAGS=$ac_save_CFLAGS
2396elif test $ac_cv_prog_cc_g = yes; then
2397  if test "$GCC" = yes; then
2398    CFLAGS="-g -O2"
2399  else
2400    CFLAGS="-g"
2401  fi
2402else
2403  if test "$GCC" = yes; then
2404    CFLAGS="-O2"
2405  else
2406    CFLAGS=
2407  fi
2408fi
2409echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2410echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2411if test "${ac_cv_prog_cc_stdc+set}" = set; then
2412  echo $ECHO_N "(cached) $ECHO_C" >&6
2413else
2414  ac_cv_prog_cc_stdc=no
2415ac_save_CC=$CC
2416cat >conftest.$ac_ext <<_ACEOF
2417/* confdefs.h.  */
2418_ACEOF
2419cat confdefs.h >>conftest.$ac_ext
2420cat >>conftest.$ac_ext <<_ACEOF
2421/* end confdefs.h.  */
2422#include <stdarg.h>
2423#include <stdio.h>
2424#include <sys/types.h>
2425#include <sys/stat.h>
2426/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2427struct buf { int x; };
2428FILE * (*rcsopen) (struct buf *, struct stat *, int);
2429static char *e (p, i)
2430     char **p;
2431     int i;
2432{
2433  return p[i];
2434}
2435static char *f (char * (*g) (char **, int), char **p, ...)
2436{
2437  char *s;
2438  va_list v;
2439  va_start (v,p);
2440  s = g (p, va_arg (v,int));
2441  va_end (v);
2442  return s;
2443}
2444
2445/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2446   function prototypes and stuff, but not '\xHH' hex character constants.
2447   These don't provoke an error unfortunately, instead are silently treated
2448   as 'x'.  The following induces an error, until -std1 is added to get
2449   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2450   array size at least.  It's necessary to write '\x00'==0 to get something
2451   that's true only with -std1.  */
2452int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2453
2454int test (int i, double x);
2455struct s1 {int (*f) (int a);};
2456struct s2 {int (*f) (double a);};
2457int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2458int argc;
2459char **argv;
2460int
2461main ()
2462{
2463return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2464  ;
2465  return 0;
2466}
2467_ACEOF
2468# Don't try gcc -ansi; that turns off useful extensions and
2469# breaks some systems' header files.
2470# AIX                   -qlanglvl=ansi
2471# Ultrix and OSF/1      -std1
2472# HP-UX 10.20 and later -Ae
2473# HP-UX older versions  -Aa -D_HPUX_SOURCE
2474# SVR4                  -Xc -D__EXTENSIONS__
2475for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2476do
2477  CC="$ac_save_CC $ac_arg"
2478  rm -f conftest.$ac_objext
2479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480  (eval $ac_compile) 2>conftest.er1
2481  ac_status=$?
2482  grep -v '^ *+' conftest.er1 >conftest.err
2483  rm -f conftest.er1
2484  cat conftest.err >&5
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); } &&
2487         { ac_try='test -z "$ac_c_werror_flag"
2488                         || test ! -s conftest.err'
2489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490  (eval $ac_try) 2>&5
2491  ac_status=$?
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); }; } &&
2494         { ac_try='test -s conftest.$ac_objext'
2495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496  (eval $ac_try) 2>&5
2497  ac_status=$?
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); }; }; then
2500  ac_cv_prog_cc_stdc=$ac_arg
2501break
2502else
2503  echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506fi
2507rm -f conftest.err conftest.$ac_objext
2508done
2509rm -f conftest.$ac_ext conftest.$ac_objext
2510CC=$ac_save_CC
2511
2512fi
2513
2514case "x$ac_cv_prog_cc_stdc" in
2515  x|xno)
2516    echo "$as_me:$LINENO: result: none needed" >&5
2517echo "${ECHO_T}none needed" >&6 ;;
2518  *)
2519    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2520echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2521    CC="$CC $ac_cv_prog_cc_stdc" ;;
2522esac
2523
2524# Some people use a C++ compiler to compile C.  Since we use `exit',
2525# in C++ we need to declare it.  In case someone uses the same compiler
2526# for both compiling C and C++ we need to have the C++ compiler decide
2527# the declaration of exit, since it's the most demanding environment.
2528cat >conftest.$ac_ext <<_ACEOF
2529#ifndef __cplusplus
2530  choke me
2531#endif
2532_ACEOF
2533rm -f conftest.$ac_objext
2534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535  (eval $ac_compile) 2>conftest.er1
2536  ac_status=$?
2537  grep -v '^ *+' conftest.er1 >conftest.err
2538  rm -f conftest.er1
2539  cat conftest.err >&5
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); } &&
2542         { ac_try='test -z "$ac_c_werror_flag"
2543                         || test ! -s conftest.err'
2544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545  (eval $ac_try) 2>&5
2546  ac_status=$?
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); }; } &&
2549         { ac_try='test -s conftest.$ac_objext'
2550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551  (eval $ac_try) 2>&5
2552  ac_status=$?
2553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554  (exit $ac_status); }; }; then
2555  for ac_declaration in \
2556   '' \
2557   'extern "C" void std::exit (int) throw (); using std::exit;' \
2558   'extern "C" void std::exit (int); using std::exit;' \
2559   'extern "C" void exit (int) throw ();' \
2560   'extern "C" void exit (int);' \
2561   'void exit (int);'
2562do
2563  cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569$ac_declaration
2570#include <stdlib.h>
2571int
2572main ()
2573{
2574exit (42);
2575  ;
2576  return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext
2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581  (eval $ac_compile) 2>conftest.er1
2582  ac_status=$?
2583  grep -v '^ *+' conftest.er1 >conftest.err
2584  rm -f conftest.er1
2585  cat conftest.err >&5
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); } &&
2588         { ac_try='test -z "$ac_c_werror_flag"
2589                         || test ! -s conftest.err'
2590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591  (eval $ac_try) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); }; } &&
2595         { ac_try='test -s conftest.$ac_objext'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; }; then
2601  :
2602else
2603  echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606continue
2607fi
2608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609  cat >conftest.$ac_ext <<_ACEOF
2610/* confdefs.h.  */
2611_ACEOF
2612cat confdefs.h >>conftest.$ac_ext
2613cat >>conftest.$ac_ext <<_ACEOF
2614/* end confdefs.h.  */
2615$ac_declaration
2616int
2617main ()
2618{
2619exit (42);
2620  ;
2621  return 0;
2622}
2623_ACEOF
2624rm -f conftest.$ac_objext
2625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626  (eval $ac_compile) 2>conftest.er1
2627  ac_status=$?
2628  grep -v '^ *+' conftest.er1 >conftest.err
2629  rm -f conftest.er1
2630  cat conftest.err >&5
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); } &&
2633         { ac_try='test -z "$ac_c_werror_flag"
2634                         || test ! -s conftest.err'
2635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636  (eval $ac_try) 2>&5
2637  ac_status=$?
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); }; } &&
2640         { ac_try='test -s conftest.$ac_objext'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; }; then
2646  break
2647else
2648  echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651fi
2652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653done
2654rm -f conftest*
2655if test -n "$ac_declaration"; then
2656  echo '#ifdef __cplusplus' >>confdefs.h
2657  echo $ac_declaration      >>confdefs.h
2658  echo '#endif'             >>confdefs.h
2659fi
2660
2661else
2662  echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665fi
2666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667ac_ext=c
2668ac_cpp='$CPP $CPPFLAGS'
2669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672
2673if test -z "$CC" ; then
2674  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2675echo "$as_me: error: Failed to find a C compiler!" >&2;}
2676   { (exit 1); exit 1; }; }
2677fi
2678# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2679case "$CC" in
2680  cl* | */cl* | CL* | */CL* )
2681    if test "$ac_cv_prog_cc_g" = yes ; then
2682      ac_cv_prog_cc_g=no
2683      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2684echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2685    fi ;;
2686esac
2687CFLAGS="$save_cflags"
2688
2689# Check if a project specific CFLAGS variable has been set
2690if test x$COIN_PRJCT != x; then
2691  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2692  if test x$coin_tmp = xset; then
2693    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2694  fi
2695fi
2696
2697if test x"$CFLAGS" = x; then
2698
2699  coin_add_cflags=
2700  coin_opt_cflags=
2701  coin_dbg_cflags=
2702  coin_warn_cflags=
2703
2704  if test "$GCC" = "yes"; then
2705    case "$CC" in
2706      icc* | */icc*)
2707        ;;
2708      *)
2709        coin_opt_cflags="-O3 -fomit-frame-pointer"
2710        coin_add_cflags="-pipe"
2711        coin_dbg_cflags="-g"
2712        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2713        case $build in
2714          *-darwin*)
2715            ;;
2716          *)
2717            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2718            ;;
2719        esac
2720        case $enable_doscompile in
2721          mingw)
2722            CFLAGS="-mno-cygwin"
2723            cat >conftest.$ac_ext <<_ACEOF
2724/* confdefs.h.  */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h.  */
2729
2730int
2731main ()
2732{
2733int i=0; i++;
2734  ;
2735  return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext conftest$ac_exeext
2739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2740  (eval $ac_link) 2>conftest.er1
2741  ac_status=$?
2742  grep -v '^ *+' conftest.er1 >conftest.err
2743  rm -f conftest.er1
2744  cat conftest.err >&5
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); } &&
2747         { ac_try='test -z "$ac_c_werror_flag"
2748                         || test ! -s conftest.err'
2749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750  (eval $ac_try) 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; } &&
2754         { ac_try='test -s conftest$ac_exeext'
2755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756  (eval $ac_try) 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; }; then
2760  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2761else
2762  echo "$as_me: failed program was:" >&5
2763sed 's/^/| /' conftest.$ac_ext >&5
2764
2765fi
2766rm -f conftest.err conftest.$ac_objext \
2767      conftest$ac_exeext conftest.$ac_ext
2768            CFLAGS=
2769          ;;
2770        esac
2771    esac
2772  fi
2773  if test -z "$coin_opt_cflags"; then
2774    case $build in
2775      *-cygwin* | *-mingw*)
2776        case "$CC" in
2777          cl* | */cl* | CL* | */CL*)
2778            coin_opt_cflags='-MT -O2'
2779            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2780            coin_dbg_cflags='-MTd'
2781            ;;
2782          icl* | */icl* | ICL* | */ICL*)
2783            coin_opt_cflags='-MT -Ox'
2784            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2785            coin_dbg_cflags='-MTd -debug'
2786            ;;
2787        esac
2788        ;;
2789      *-linux-*)
2790        case "$CC" in
2791          icc* | */icc*)
2792            coin_opt_cflags="-O3 -ip -mp1"
2793            coin_add_cflags=""
2794            coin_dbg_cflags="-g"
2795            # Check if -i_dynamic is necessary (for new glibc library)
2796            CFLAGS=
2797            cat >conftest.$ac_ext <<_ACEOF
2798/* confdefs.h.  */
2799_ACEOF
2800cat confdefs.h >>conftest.$ac_ext
2801cat >>conftest.$ac_ext <<_ACEOF
2802/* end confdefs.h.  */
2803
2804int
2805main ()
2806{
2807int i=0; i++;
2808  ;
2809  return 0;
2810}
2811_ACEOF
2812rm -f conftest.$ac_objext conftest$ac_exeext
2813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2814  (eval $ac_link) 2>conftest.er1
2815  ac_status=$?
2816  grep -v '^ *+' conftest.er1 >conftest.err
2817  rm -f conftest.er1
2818  cat conftest.err >&5
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); } &&
2821         { ac_try='test -z "$ac_c_werror_flag"
2822                         || test ! -s conftest.err'
2823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824  (eval $ac_try) 2>&5
2825  ac_status=$?
2826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827  (exit $ac_status); }; } &&
2828         { ac_try='test -s conftest$ac_exeext'
2829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830  (eval $ac_try) 2>&5
2831  ac_status=$?
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); }; }; then
2834  :
2835else
2836  echo "$as_me: failed program was:" >&5
2837sed 's/^/| /' conftest.$ac_ext >&5
2838
2839coin_add_cflags="-i_dynamic $coin_add_cflags"
2840fi
2841rm -f conftest.err conftest.$ac_objext \
2842      conftest$ac_exeext conftest.$ac_ext
2843            ;;
2844          pgcc* | */pgcc*)
2845            coin_opt_cflags="-fast"
2846            coin_add_cflags="-Kieee -pc 64"
2847            coin_dbg_cflags="-g"
2848            ;;
2849        esac
2850        ;;
2851      *-ibm-*)
2852        case "$CC" in
2853          xlc* | */xlc* | mpxlc* | */mpxlc*)
2854            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2855            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2856            coin_dbg_cflags="-g"
2857          ;;
2858        esac
2859        ;;
2860      *-hp-*)
2861        coin_opt_cflags="-O"
2862        coin_add_cflags="-Ae"
2863        coin_dbg_cflags="-g"
2864        ;;
2865      *-*-solaris*)
2866        coin_opt_cflags="-xO4"
2867        coin_dbg_cflags="-g"
2868        ;;
2869      *-sgi-*)
2870        coin_opt_cflags="-O -OPT:Olimit=0"
2871        coin_dbg_cflags="-g"
2872        ;;
2873    esac
2874  fi
2875
2876  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2877    coin_dbg_cflags="-g"
2878  fi
2879
2880  if test -z "$coin_opt_cflags"; then
2881    # Try if -O option works if nothing else is set
2882    CFLAGS="-O"
2883    cat >conftest.$ac_ext <<_ACEOF
2884/* confdefs.h.  */
2885_ACEOF
2886cat confdefs.h >>conftest.$ac_ext
2887cat >>conftest.$ac_ext <<_ACEOF
2888/* end confdefs.h.  */
2889
2890int
2891main ()
2892{
2893int i=0; i++;
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898rm -f conftest.$ac_objext conftest$ac_exeext
2899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2900  (eval $ac_link) 2>conftest.er1
2901  ac_status=$?
2902  grep -v '^ *+' conftest.er1 >conftest.err
2903  rm -f conftest.er1
2904  cat conftest.err >&5
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); } &&
2907         { ac_try='test -z "$ac_c_werror_flag"
2908                         || test ! -s conftest.err'
2909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910  (eval $ac_try) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; } &&
2914         { ac_try='test -s conftest$ac_exeext'
2915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916  (eval $ac_try) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; }; then
2920  coin_opt_cflags="-O"
2921else
2922  echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925fi
2926rm -f conftest.err conftest.$ac_objext \
2927      conftest$ac_exeext conftest.$ac_ext
2928  fi
2929
2930  # if PM doesn't want the warning messages, take them out
2931  if test x"$coin_skip_warn_cflags" = xyes; then
2932    coin_warn_cflags=
2933  fi
2934
2935  if test x${DBG_CFLAGS+set} != xset; then
2936    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2937  fi
2938  if test x${OPT_CFLAGS+set} != xset; then
2939    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2940  fi
2941
2942  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2943  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2944
2945  if test "$coin_debug_compile" = "true"; then
2946    CFLAGS="$DBG_CFLAGS"
2947  else
2948    CFLAGS="$OPT_CFLAGS"
2949  fi
2950else
2951  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2952  if test x${DBG_CFLAGS+set} != xset; then
2953    DBG_CFLAGS="$CFLAGS"
2954  fi
2955  if test x${OPT_CFLAGS+set} != xset; then
2956    OPT_CFLAGS="$CFLAGS"
2957  fi
2958fi
2959
2960# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2961
2962case "$CFLAGS" in
2963  *-mno-cygwin*)
2964    if test x${CPPFLAGS+set} != xset ; then
2965      CPPFLAGS="-mno-cygwin"
2966    else
2967      case "$CPPFLAGS" in
2968        *-mno-cygwin*)
2969          ;;
2970        *)
2971          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2972          ;;
2973      esac
2974    fi ;;
2975esac
2976
2977# Try if CFLAGS works
2978save_CFLAGS="$CFLAGS"
2979cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h.  */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h.  */
2985
2986int
2987main ()
2988{
2989int i=0; i++;
2990  ;
2991  return 0;
2992}
2993_ACEOF
2994rm -f conftest.$ac_objext conftest$ac_exeext
2995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2996  (eval $ac_link) 2>conftest.er1
2997  ac_status=$?
2998  grep -v '^ *+' conftest.er1 >conftest.err
2999  rm -f conftest.er1
3000  cat conftest.err >&5
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); } &&
3003         { ac_try='test -z "$ac_c_werror_flag"
3004                         || test ! -s conftest.err'
3005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006  (eval $ac_try) 2>&5
3007  ac_status=$?
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); }; } &&
3010         { ac_try='test -s conftest$ac_exeext'
3011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012  (eval $ac_try) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }; }; then
3016  :
3017else
3018  echo "$as_me: failed program was:" >&5
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021CFLAGS=
3022fi
3023rm -f conftest.err conftest.$ac_objext \
3024      conftest$ac_exeext conftest.$ac_ext
3025if test -z "$CFLAGS"; then
3026  { 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
3027echo "$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;}
3028  CFLAGS='-O'
3029  cat >conftest.$ac_ext <<_ACEOF
3030/* confdefs.h.  */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h.  */
3035
3036int
3037main ()
3038{
3039int i=0; i++;
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext conftest$ac_exeext
3045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046  (eval $ac_link) 2>conftest.er1
3047  ac_status=$?
3048  grep -v '^ *+' conftest.er1 >conftest.err
3049  rm -f conftest.er1
3050  cat conftest.err >&5
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); } &&
3053         { ac_try='test -z "$ac_c_werror_flag"
3054                         || test ! -s conftest.err'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; } &&
3060         { ac_try='test -s conftest$ac_exeext'
3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062  (eval $ac_try) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; }; then
3066  :
3067else
3068  echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071CFLAGS=
3072fi
3073rm -f conftest.err conftest.$ac_objext \
3074      conftest$ac_exeext conftest.$ac_ext
3075  if test -z "$CFLAGS"; then
3076    { 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
3077echo "$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;}
3078  fi
3079fi
3080
3081{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3082echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3083
3084
3085if test x"$MPICC" = x; then :; else
3086  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3087echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3088  CC="$MPICC"
3089fi
3090
3091# Correct ADDLIBS initialization if we are using the MS compiler
3092case "$CC" in
3093  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3094    ADDLIBS=
3095    case $build in
3096  *-mingw*)
3097    if test "${LD+set}" = set; then :; else
3098      LD=link
3099    fi
3100    ;;
3101 esac
3102 case $enable_doscompile in
3103   msvc)
3104     if test "x${LD+set}" = xset; then :; else
3105       LD=link
3106     fi
3107     ;;
3108 esac
3109
3110    ;;
3111esac
3112
3113ac_ext=c
3114ac_cpp='$CPP $CPPFLAGS'
3115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118
3119
3120
3121 #Let's try if that overcomes configuration problem with VC++ 6.0
3122
3123ac_ext=cc
3124ac_cpp='$CXXCPP $CPPFLAGS'
3125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3128
3129
3130
3131
3132
3133
3134
3135coin_has_cxx=yes
3136
3137save_cxxflags="$CXXFLAGS"
3138# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3139case $build in
3140  *-cygwin* | *-mingw*)
3141             if test "$enable_doscompile" = msvc ; then
3142               comps="icl cl"
3143             else
3144               comps="g++ cl"
3145             fi ;;
3146  *-*-solaris*)
3147             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3148  *-darwin*) comps="g++ c++ CC" ;;
3149          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3150esac
3151
3152# We delete the cached value, since the test might not have been
3153# performed with our choice of compilers earlier
3154$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3155# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3156ac_ext=cc
3157ac_cpp='$CXXCPP $CPPFLAGS'
3158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3161if test -n "$ac_tool_prefix"; then
3162  for ac_prog in $CCC $comps
3163  do
3164    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166echo "$as_me:$LINENO: checking for $ac_word" >&5
3167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168if test "${ac_cv_prog_CXX+set}" = set; then
3169  echo $ECHO_N "(cached) $ECHO_C" >&6
3170else
3171  if test -n "$CXX"; then
3172  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177  IFS=$as_save_IFS
3178  test -z "$as_dir" && as_dir=.
3179  for ac_exec_ext in '' $ac_executable_extensions; do
3180  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183    break 2
3184  fi
3185done
3186done
3187
3188fi
3189fi
3190CXX=$ac_cv_prog_CXX
3191if test -n "$CXX"; then
3192  echo "$as_me:$LINENO: result: $CXX" >&5
3193echo "${ECHO_T}$CXX" >&6
3194else
3195  echo "$as_me:$LINENO: result: no" >&5
3196echo "${ECHO_T}no" >&6
3197fi
3198
3199    test -n "$CXX" && break
3200  done
3201fi
3202if test -z "$CXX"; then
3203  ac_ct_CXX=$CXX
3204  for ac_prog in $CCC $comps
3205do
3206  # Extract the first word of "$ac_prog", so it can be a program name with args.
3207set dummy $ac_prog; ac_word=$2
3208echo "$as_me:$LINENO: checking for $ac_word" >&5
3209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3210if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3211  echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213  if test -n "$ac_ct_CXX"; then
3214  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221  for ac_exec_ext in '' $ac_executable_extensions; do
3222  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223    ac_cv_prog_ac_ct_CXX="$ac_prog"
3224    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225    break 2
3226  fi
3227done
3228done
3229
3230fi
3231fi
3232ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3233if test -n "$ac_ct_CXX"; then
3234  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3235echo "${ECHO_T}$ac_ct_CXX" >&6
3236else
3237  echo "$as_me:$LINENO: result: no" >&5
3238echo "${ECHO_T}no" >&6
3239fi
3240
3241  test -n "$ac_ct_CXX" && break
3242done
3243test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3244
3245  CXX=$ac_ct_CXX
3246fi
3247
3248
3249# Provide some information about the compiler.
3250echo "$as_me:$LINENO:" \
3251     "checking for C++ compiler version" >&5
3252ac_compiler=`set X $ac_compile; echo $2`
3253{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3254  (eval $ac_compiler --version </dev/null >&5) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); }
3258{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3259  (eval $ac_compiler -v </dev/null >&5) 2>&5
3260  ac_status=$?
3261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262  (exit $ac_status); }
3263{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3264  (eval $ac_compiler -V </dev/null >&5) 2>&5
3265  ac_status=$?
3266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267  (exit $ac_status); }
3268
3269echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3270echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3271if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3272  echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274  cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h.  */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h.  */
3280
3281int
3282main ()
3283{
3284#ifndef __GNUC__
3285       choke me
3286#endif
3287
3288  ;
3289  return 0;
3290}
3291_ACEOF
3292rm -f conftest.$ac_objext
3293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294  (eval $ac_compile) 2>conftest.er1
3295  ac_status=$?
3296  grep -v '^ *+' conftest.er1 >conftest.err
3297  rm -f conftest.er1
3298  cat conftest.err >&5
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); } &&
3301         { ac_try='test -z "$ac_cxx_werror_flag"
3302                         || test ! -s conftest.err'
3303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304  (eval $ac_try) 2>&5
3305  ac_status=$?
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); }; } &&
3308         { ac_try='test -s conftest.$ac_objext'
3309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310  (eval $ac_try) 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; }; then
3314  ac_compiler_gnu=yes
3315else
3316  echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319ac_compiler_gnu=no
3320fi
3321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3323
3324fi
3325echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3326echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3327GXX=`test $ac_compiler_gnu = yes && echo yes`
3328ac_test_CXXFLAGS=${CXXFLAGS+set}
3329ac_save_CXXFLAGS=$CXXFLAGS
3330CXXFLAGS="-g"
3331echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3332echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3333if test "${ac_cv_prog_cxx_g+set}" = set; then
3334  echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336  cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h.  */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h.  */
3342
3343int
3344main ()
3345{
3346
3347  ;
3348  return 0;
3349}
3350_ACEOF
3351rm -f conftest.$ac_objext
3352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353  (eval $ac_compile) 2>conftest.er1
3354  ac_status=$?
3355  grep -v '^ *+' conftest.er1 >conftest.err
3356  rm -f conftest.er1
3357  cat conftest.err >&5
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); } &&
3360         { ac_try='test -z "$ac_cxx_werror_flag"
3361                         || test ! -s conftest.err'
3362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363  (eval $ac_try) 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }; } &&
3367         { ac_try='test -s conftest.$ac_objext'
3368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369  (eval $ac_try) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); }; }; then
3373  ac_cv_prog_cxx_g=yes
3374else
3375  echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378ac_cv_prog_cxx_g=no
3379fi
3380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381fi
3382echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3383echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3384if test "$ac_test_CXXFLAGS" = set; then
3385  CXXFLAGS=$ac_save_CXXFLAGS
3386elif test $ac_cv_prog_cxx_g = yes; then
3387  if test "$GXX" = yes; then
3388    CXXFLAGS="-g -O2"
3389  else
3390    CXXFLAGS="-g"
3391  fi
3392else
3393  if test "$GXX" = yes; then
3394    CXXFLAGS="-O2"
3395  else
3396    CXXFLAGS=
3397  fi
3398fi
3399for ac_declaration in \
3400   '' \
3401   'extern "C" void std::exit (int) throw (); using std::exit;' \
3402   'extern "C" void std::exit (int); using std::exit;' \
3403   'extern "C" void exit (int) throw ();' \
3404   'extern "C" void exit (int);' \
3405   'void exit (int);'
3406do
3407  cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h.  */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
3412/* end confdefs.h.  */
3413$ac_declaration
3414#include <stdlib.h>
3415int
3416main ()
3417{
3418exit (42);
3419  ;
3420  return 0;
3421}
3422_ACEOF
3423rm -f conftest.$ac_objext
3424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425  (eval $ac_compile) 2>conftest.er1
3426  ac_status=$?
3427  grep -v '^ *+' conftest.er1 >conftest.err
3428  rm -f conftest.er1
3429  cat conftest.err >&5
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); } &&
3432         { ac_try='test -z "$ac_cxx_werror_flag"
3433                         || test ! -s conftest.err'
3434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435  (eval $ac_try) 2>&5
3436  ac_status=$?
3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); }; } &&
3439         { ac_try='test -s conftest.$ac_objext'
3440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441  (eval $ac_try) 2>&5
3442  ac_status=$?
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); }; }; then
3445  :
3446else
3447  echo "$as_me: failed program was:" >&5
3448sed 's/^/| /' conftest.$ac_ext >&5
3449
3450continue
3451fi
3452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3453  cat >conftest.$ac_ext <<_ACEOF
3454/* confdefs.h.  */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
3458/* end confdefs.h.  */
3459$ac_declaration
3460int
3461main ()
3462{
3463exit (42);
3464  ;
3465  return 0;
3466}
3467_ACEOF
3468rm -f conftest.$ac_objext
3469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470  (eval $ac_compile) 2>conftest.er1
3471  ac_status=$?
3472  grep -v '^ *+' conftest.er1 >conftest.err
3473  rm -f conftest.er1
3474  cat conftest.err >&5
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); } &&
3477         { ac_try='test -z "$ac_cxx_werror_flag"
3478                         || test ! -s conftest.err'
3479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480  (eval $ac_try) 2>&5
3481  ac_status=$?
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); }; } &&
3484         { ac_try='test -s conftest.$ac_objext'
3485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486  (eval $ac_try) 2>&5
3487  ac_status=$?
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); }; }; then
3490  break
3491else
3492  echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495fi
3496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3497done
3498rm -f conftest*
3499if test -n "$ac_declaration"; then
3500  echo '#ifdef __cplusplus' >>confdefs.h
3501  echo $ac_declaration      >>confdefs.h
3502  echo '#endif'             >>confdefs.h
3503fi
3504
3505ac_ext=cc
3506ac_cpp='$CXXCPP $CPPFLAGS'
3507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3510
3511
3512#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3513#thus, we test here whether $CXX is actually working
3514ac_ext=cc
3515ac_cpp='$CXXCPP $CPPFLAGS'
3516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3519
3520echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3521echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3522cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h.  */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h.  */
3528
3529int
3530main ()
3531{
3532int i=0;
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537rm -f conftest.$ac_objext
3538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539  (eval $ac_compile) 2>conftest.er1
3540  ac_status=$?
3541  grep -v '^ *+' conftest.er1 >conftest.err
3542  rm -f conftest.er1
3543  cat conftest.err >&5
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); } &&
3546         { ac_try='test -z "$ac_cxx_werror_flag"
3547                         || test ! -s conftest.err'
3548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549  (eval $ac_try) 2>&5
3550  ac_status=$?
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); }; } &&
3553         { ac_try='test -s conftest.$ac_objext'
3554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555  (eval $ac_try) 2>&5
3556  ac_status=$?
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); }; }; then
3559  echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6
3561else
3562  echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565echo "$as_me:$LINENO: result: no" >&5
3566echo "${ECHO_T}no" >&6
3567   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3568echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3569   { (exit 1); exit 1; }; }
3570
3571fi
3572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573ac_ext=cc
3574ac_cpp='$CXXCPP $CPPFLAGS'
3575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3578
3579
3580# It seems that we need to cleanup something here for the Windows
3581case "$CXX" in
3582  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3583    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3584    mv confdefs.hh confdefs.h
3585    ;;
3586esac
3587
3588# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3589case "$CXX" in
3590  cl* | */cl* | CL* | */CL* )
3591    if test "$ac_cv_prog_cxx_g" = yes ; then
3592      ac_cv_prog_cxx_g=no
3593      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3594echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3595    fi ;;
3596esac
3597CXXFLAGS="$save_cxxflags"
3598
3599# Check if a project specific CXXFLAGS variable has been set
3600if test x$COIN_PRJCT != x; then
3601  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3602  if test x$coin_tmp = xset; then
3603    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3604  fi
3605fi
3606
3607if test x"$CXXFLAGS" = x; then
3608
3609# ToDo decide whether we want -DNDEBUG for optimization
3610  coin_add_cxxflags=
3611  coin_opt_cxxflags=
3612  coin_dbg_cxxflags=
3613  coin_warn_cxxflags=
3614
3615  if test "$GXX" = "yes"; then
3616    case "$CXX" in
3617      icpc* | */icpc*)
3618        ;;
3619      *)
3620# ToDo decide about unroll-loops
3621        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3622        coin_add_cxxflags="-pipe"
3623        coin_dbg_cxxflags="-g"
3624        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3625        case $build in
3626          *-darwin*)
3627            ;;
3628          *)
3629            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3630            ;;
3631        esac
3632
3633        case $enable_doscompile in
3634          mingw)
3635            CXXFLAGS="-mno-cygwin"
3636            cat >conftest.$ac_ext <<_ACEOF
3637/* confdefs.h.  */
3638_ACEOF
3639cat confdefs.h >>conftest.$ac_ext
3640cat >>conftest.$ac_ext <<_ACEOF
3641/* end confdefs.h.  */
3642
3643int
3644main ()
3645{
3646int i=0; i++;
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651rm -f conftest.$ac_objext conftest$ac_exeext
3652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653  (eval $ac_link) 2>conftest.er1
3654  ac_status=$?
3655  grep -v '^ *+' conftest.er1 >conftest.err
3656  rm -f conftest.er1
3657  cat conftest.err >&5
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); } &&
3660         { ac_try='test -z "$ac_cxx_werror_flag"
3661                         || test ! -s conftest.err'
3662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663  (eval $ac_try) 2>&5
3664  ac_status=$?
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); }; } &&
3667         { ac_try='test -s conftest$ac_exeext'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; }; then
3673  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3674else
3675  echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678fi
3679rm -f conftest.err conftest.$ac_objext \
3680      conftest$ac_exeext conftest.$ac_ext
3681            CXXFLAGS=
3682          ;;
3683        esac
3684    esac
3685  fi
3686
3687# Note that we do not need to cover GCC in the following tests.
3688
3689  if test -z "$coin_opt_cxxflags"; then
3690    case $build in
3691      *-cygwin* | *-mingw*)
3692        case "$CXX" in
3693          cl* | */cl* | CL* | */CL*)
3694            # The MT and MTd options are mutually exclusive
3695            coin_opt_cxxflags='-MT -O2'
3696            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3697            coin_dbg_cxxflags='-MTd'
3698            ;;
3699          icl* | */icl* | ICL* | */ICL*)
3700            # The MT and MTd options are mutually exclusive
3701            coin_opt_cxxflags='-MT -Ox'
3702            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3703            coin_dbg_cxxflags='-MTd -debug'
3704            ;;
3705        esac
3706        ;;
3707      *-linux-*)
3708        case "$CXX" in
3709          icpc* | */icpc*)
3710            coin_opt_cxxflags="-O3 -ip -mp1"
3711            coin_add_cxxflags=""
3712            coin_dbg_cxxflags="-g"
3713            # Check if -i_dynamic is necessary (for new glibc library)
3714            CXXFLAGS=
3715            cat >conftest.$ac_ext <<_ACEOF
3716/* confdefs.h.  */
3717_ACEOF
3718cat confdefs.h >>conftest.$ac_ext
3719cat >>conftest.$ac_ext <<_ACEOF
3720/* end confdefs.h.  */
3721
3722int
3723main ()
3724{
3725int i=0; i++;
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730rm -f conftest.$ac_objext conftest$ac_exeext
3731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732  (eval $ac_link) 2>conftest.er1
3733  ac_status=$?
3734  grep -v '^ *+' conftest.er1 >conftest.err
3735  rm -f conftest.er1
3736  cat conftest.err >&5
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); } &&
3739         { ac_try='test -z "$ac_cxx_werror_flag"
3740                         || test ! -s conftest.err'
3741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742  (eval $ac_try) 2>&5
3743  ac_status=$?
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); }; } &&
3746         { ac_try='test -s conftest$ac_exeext'
3747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748  (eval $ac_try) 2>&5
3749  ac_status=$?
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); }; }; then
3752  :
3753else
3754  echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3758fi
3759rm -f conftest.err conftest.$ac_objext \
3760      conftest$ac_exeext conftest.$ac_ext
3761            ;;
3762          pgCC* | */pgCC*)
3763            coin_opt_cxxflags="-fast"
3764            coin_add_cxxflags="-Kieee -pc 64"
3765            coin_dbg_cxxflags="-g"
3766            ;;
3767        esac
3768        ;;
3769      *-ibm-*)
3770        case "$CXX" in
3771          xlC* | */xlC* | mpxlC* | */mpxlC*)
3772            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3773            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3774            coin_dbg_cxxflags="-g"
3775            ;;
3776        esac
3777        ;;
3778      *-hp-*)
3779        case "$CXX" in
3780          aCC* | */aCC* )
3781            coin_opt_cxxflags="-O"
3782            coin_add_cxxflags="-AA"
3783            coin_dbg_cxxflags="-g"
3784            ;;
3785        esac
3786        ;;
3787      *-*-solaris*)
3788          coin_opt_cxxflags="-O4"
3789          coin_dbg_cxxflags="-g"
3790        ;;
3791    esac
3792  fi
3793
3794# Generic flag settings. If these don't work, add a case above.
3795
3796  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3797    coin_dbg_cxxflags="-g"
3798  fi
3799
3800  if test -z "$coin_opt_cxxflags"; then
3801    # Try if -O option works if nothing else is set
3802    CXXFLAGS=-O
3803    cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h.  */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h.  */
3809
3810int
3811main ()
3812{
3813int i=0; i++;
3814  ;
3815  return 0;
3816}
3817_ACEOF
3818rm -f conftest.$ac_objext conftest$ac_exeext
3819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3820  (eval $ac_link) 2>conftest.er1
3821  ac_status=$?
3822  grep -v '^ *+' conftest.er1 >conftest.err
3823  rm -f conftest.er1
3824  cat conftest.err >&5
3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826  (exit $ac_status); } &&
3827         { ac_try='test -z "$ac_cxx_werror_flag"
3828                         || test ! -s conftest.err'
3829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830  (eval $ac_try) 2>&5
3831  ac_status=$?
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); }; } &&
3834         { ac_try='test -s conftest$ac_exeext'
3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836  (eval $ac_try) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; }; then
3840  coin_opt_cxxflags="-O"
3841else
3842  echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
3845fi
3846rm -f conftest.err conftest.$ac_objext \
3847      conftest$ac_exeext conftest.$ac_ext
3848  fi
3849
3850  # if PM doesn't want the warning messages, take them out
3851  if test x"$coin_skip_warn_cxxflags" = xyes; then
3852    coin_warn_cxxflags=
3853  fi
3854
3855# Do final setup of flags based on values determined above.
3856
3857  if test x${DBG_CXXFLAGS+set} != xset; then
3858    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3859  fi
3860  if test x${OPT_CXXFLAGS+set} != xset; then
3861    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3862  fi
3863
3864  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3865  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3866
3867  if test "$coin_debug_compile" = "true"; then
3868    CXXFLAGS="$DBG_CXXFLAGS"
3869  else
3870    CXXFLAGS="$OPT_CXXFLAGS"
3871  fi
3872
3873# Handle the case where CXXFLAGS was set externally.
3874else
3875  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3876  if test x${DBG_CXXFLAGS+set} != xset; then
3877    DBG_CXXFLAGS="$CXXFLAGS"
3878  fi
3879  if test x${OPT_CXXFLAGS+set} != xset; then
3880    OPT_CXXFLAGS="$CXXFLAGS"
3881  fi
3882fi
3883
3884# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3885
3886case "$CXXFLAGS" in
3887  *-mno-cygwin*)
3888    if test x${CPPFLAGS+set} != xset ; then
3889      CPPFLAGS="-mno-cygwin"
3890    else
3891      case "$CPPFLAGS" in
3892        *-mno-cygwin*)
3893          ;;
3894        *)
3895          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3896          ;;
3897      esac
3898    fi ;;
3899esac
3900
3901# Try if CXXFLAGS works
3902save_CXXFLAGS="$CXXFLAGS"
3903cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h.  */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h.  */
3909
3910int
3911main ()
3912{
3913int i=0; i++;
3914  ;
3915  return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext conftest$ac_exeext
3919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920  (eval $ac_link) 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } &&
3927         { ac_try='test -z "$ac_cxx_werror_flag"
3928                         || test ! -s conftest.err'
3929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930  (eval $ac_try) 2>&5
3931  ac_status=$?
3932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933  (exit $ac_status); }; } &&
3934         { ac_try='test -s conftest$ac_exeext'
3935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936  (eval $ac_try) 2>&5
3937  ac_status=$?
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); }; }; then
3940  :
3941else
3942  echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945CXXFLAGS=
3946fi
3947rm -f conftest.err conftest.$ac_objext \
3948      conftest$ac_exeext conftest.$ac_ext
3949if test -z "$CXXFLAGS"; then
3950  { 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
3951echo "$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;}
3952  CXXFLAGS='-O'
3953  cat >conftest.$ac_ext <<_ACEOF
3954/* confdefs.h.  */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h.  */
3959
3960int
3961main ()
3962{
3963int i=0; i++;
3964  ;
3965  return 0;
3966}
3967_ACEOF
3968rm -f conftest.$ac_objext conftest$ac_exeext
3969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3970  (eval $ac_link) 2>conftest.er1
3971  ac_status=$?
3972  grep -v '^ *+' conftest.er1 >conftest.err
3973  rm -f conftest.er1
3974  cat conftest.err >&5
3975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976  (exit $ac_status); } &&
3977         { ac_try='test -z "$ac_cxx_werror_flag"
3978                         || test ! -s conftest.err'
3979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980  (eval $ac_try) 2>&5
3981  ac_status=$?
3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983  (exit $ac_status); }; } &&
3984         { ac_try='test -s conftest$ac_exeext'
3985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986  (eval $ac_try) 2>&5
3987  ac_status=$?
3988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989  (exit $ac_status); }; }; then
3990  :
3991else
3992  echo "$as_me: failed program was:" >&5
3993sed 's/^/| /' conftest.$ac_ext >&5
3994
3995CXXFLAGS=
3996fi
3997rm -f conftest.err conftest.$ac_objext \
3998      conftest$ac_exeext conftest.$ac_ext
3999  if test -z "$CXXFLAGS"; then
4000    { 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
4001echo "$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;}
4002  fi
4003fi
4004
4005{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4006echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4007
4008
4009if test x"$MPICXX" = x; then :; else
4010  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4011echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4012  CXX="$MPICXX"
4013fi
4014
4015case "$CXX" in
4016  cl* | */cl* | CL* | */CL* )
4017    case $build in
4018  *-mingw*)
4019    if test "${LD+set}" = set; then :; else
4020      LD=link
4021    fi
4022    ;;
4023 esac
4024 case $enable_doscompile in
4025   msvc)
4026     if test "x${LD+set}" = xset; then :; else
4027       LD=link
4028     fi
4029     ;;
4030 esac
4031
4032    ;;
4033esac
4034
4035ac_ext=c
4036ac_cpp='$CPP $CPPFLAGS'
4037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041
4042
4043# Get the name of the C compiler and appropriate compiler options
4044
4045
4046ac_ext=c
4047ac_cpp='$CPP $CPPFLAGS'
4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052
4053# For consistency, we set the C compiler to the same value of the C++
4054# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
4055if test x"$CXX" != x; then
4056  case "$CXX" in
4057    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4058      if test x"$CC" = x; then
4059        CC="$CXX"
4060        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
4061echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
4062      fi
4063      ;;
4064  esac
4065fi
4066
4067
4068
4069
4070
4071
4072coin_has_cc=yes
4073
4074save_cflags="$CFLAGS"
4075
4076# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
4077# Depending on the user's PATH, when Studio/Workshop cc is not present we may
4078# find /usr/ucb/cc, which is almost certainly not a good choice for the C
4079# compiler. In this case, put cc after gcc.
4080
4081case $build in
4082  *-cygwin* | *-mingw*)
4083             if test "$enable_doscompile" = msvc ; then
4084               comps="icl cl"
4085             else
4086               comps="gcc cl"
4087             fi ;;
4088  *-*-solaris*)
4089             # Extract the first word of "cc", so it can be a program name with args.
4090set dummy cc; ac_word=$2
4091echo "$as_me:$LINENO: checking for $ac_word" >&5
4092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
4094  echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096  if test -n "$sol_cc_compiler"; then
4097  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
4098else
4099  ac_prog_rejected=no
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103  IFS=$as_save_IFS
4104  test -z "$as_dir" && as_dir=.
4105  for ac_exec_ext in '' $ac_executable_extensions; do
4106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4108       ac_prog_rejected=yes
4109       continue
4110     fi
4111    ac_cv_prog_sol_cc_compiler="cc"
4112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113    break 2
4114  fi
4115done
4116done
4117
4118if test $ac_prog_rejected = yes; then
4119  # We found a bogon in the path, so make sure we never use it.
4120  set dummy $ac_cv_prog_sol_cc_compiler
4121  shift
4122  if test $# != 0; then
4123    # We chose a different compiler from the bogus one.
4124    # However, it has the same basename, so the bogon will be chosen
4125    # first if we set sol_cc_compiler to just the basename; use the full file name.
4126    shift
4127    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
4128  fi
4129fi
4130fi
4131fi
4132sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
4133if test -n "$sol_cc_compiler"; then
4134  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
4135echo "${ECHO_T}$sol_cc_compiler" >&6
4136else
4137  echo "$as_me:$LINENO: result: no" >&5
4138echo "${ECHO_T}no" >&6
4139fi
4140
4141             if test "$sol_cc_compiler" = "cc" ; then
4142               comps="cc xlc gcc pgcc icc"
4143             else
4144               comps="xlc gcc pgcc icc cc"
4145             fi
4146             ;;
4147  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
4148  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
4149esac
4150
4151# We delete the cached value, since the test might not have been
4152# performed with our choice of compilers earlier
4153$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
4154# AC_MSG_NOTICE([C compiler candidates: $comps])
4155ac_ext=c
4156ac_cpp='$CPP $CPPFLAGS'
4157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160if test -n "$ac_tool_prefix"; then
4161  for ac_prog in $comps
4162  do
4163    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167if test "${ac_cv_prog_CC+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  if test -n "$CC"; then
4171  ac_cv_prog_CC="$CC" # Let the user override the test.
4172else
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176  IFS=$as_save_IFS
4177  test -z "$as_dir" && as_dir=.
4178  for ac_exec_ext in '' $ac_executable_extensions; do
4179  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182    break 2
4183  fi
4184done
4185done
4186
4187fi
4188fi
4189CC=$ac_cv_prog_CC
4190if test -n "$CC"; then
4191  echo "$as_me:$LINENO: result: $CC" >&5
4192echo "${ECHO_T}$CC" >&6
4193else
4194  echo "$as_me:$LINENO: result: no" >&5
4195echo "${ECHO_T}no" >&6
4196fi
4197
4198    test -n "$CC" && break
4199  done
4200fi
4201if test -z "$CC"; then
4202  ac_ct_CC=$CC
4203  for ac_prog in $comps
4204do
4205  # Extract the first word of "$ac_prog", so it can be a program name with args.
4206set dummy $ac_prog; ac_word=$2
4207echo "$as_me:$LINENO: checking for $ac_word" >&5
4208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4210  echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4212  if test -n "$ac_ct_CC"; then
4213  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218  IFS=$as_save_IFS
4219  test -z "$as_dir" && as_dir=.
4220  for ac_exec_ext in '' $ac_executable_extensions; do
4221  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222    ac_cv_prog_ac_ct_CC="$ac_prog"
4223    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224    break 2
4225  fi
4226done
4227done
4228
4229fi
4230fi
4231ac_ct_CC=$ac_cv_prog_ac_ct_CC
4232if test -n "$ac_ct_CC"; then
4233  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4234echo "${ECHO_T}$ac_ct_CC" >&6
4235else
4236  echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238fi
4239
4240  test -n "$ac_ct_CC" && break
4241done
4242
4243  CC=$ac_ct_CC
4244fi
4245
4246
4247test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4248See \`config.log' for more details." >&5
4249echo "$as_me: error: no acceptable C compiler found in \$PATH
4250See \`config.log' for more details." >&2;}
4251   { (exit 1); exit 1; }; }
4252
4253# Provide some information about the compiler.
4254echo "$as_me:$LINENO:" \
4255     "checking for C compiler version" >&5
4256ac_compiler=`set X $ac_compile; echo $2`
4257{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4258  (eval $ac_compiler --version </dev/null >&5) 2>&5
4259  ac_status=$?
4260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261  (exit $ac_status); }
4262{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4263  (eval $ac_compiler -v </dev/null >&5) 2>&5
4264  ac_status=$?
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); }
4267{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4268  (eval $ac_compiler -V </dev/null >&5) 2>&5
4269  ac_status=$?
4270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271  (exit $ac_status); }
4272
4273echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4274echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4275if test "${ac_cv_c_compiler_gnu+set}" = set; then
4276  echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278  cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h.  */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h.  */
4284
4285int
4286main ()
4287{
4288#ifndef __GNUC__
4289       choke me
4290#endif
4291
4292  ;
4293  return 0;
4294}
4295_ACEOF
4296rm -f conftest.$ac_objext
4297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298  (eval $ac_compile) 2>conftest.er1
4299  ac_status=$?
4300  grep -v '^ *+' conftest.er1 >conftest.err
4301  rm -f conftest.er1
4302  cat conftest.err >&5
4303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304  (exit $ac_status); } &&
4305         { ac_try='test -z "$ac_c_werror_flag"
4306                         || test ! -s conftest.err'
4307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308  (eval $ac_try) 2>&5
4309  ac_status=$?
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); }; } &&
4312         { ac_try='test -s conftest.$ac_objext'
4313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314  (eval $ac_try) 2>&5
4315  ac_status=$?
4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317  (exit $ac_status); }; }; then
4318  ac_compiler_gnu=yes
4319else
4320  echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323ac_compiler_gnu=no
4324fi
4325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326ac_cv_c_compiler_gnu=$ac_compiler_gnu
4327
4328fi
4329echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4330echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4331GCC=`test $ac_compiler_gnu = yes && echo yes`
4332ac_test_CFLAGS=${CFLAGS+set}
4333ac_save_CFLAGS=$CFLAGS
4334CFLAGS="-g"
4335echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4336echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4337if test "${ac_cv_prog_cc_g+set}" = set; then
4338  echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340  cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h.  */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h.  */
4346
4347int
4348main ()
4349{
4350
4351  ;
4352  return 0;
4353}
4354_ACEOF
4355rm -f conftest.$ac_objext
4356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357  (eval $ac_compile) 2>conftest.er1
4358  ac_status=$?
4359  grep -v '^ *+' conftest.er1 >conftest.err
4360  rm -f conftest.er1
4361  cat conftest.err >&5
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); } &&
4364         { ac_try='test -z "$ac_c_werror_flag"
4365                         || test ! -s conftest.err'
4366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367  (eval $ac_try) 2>&5
4368  ac_status=$?
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); }; } &&
4371         { ac_try='test -s conftest.$ac_objext'
4372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373  (eval $ac_try) 2>&5
4374  ac_status=$?
4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376  (exit $ac_status); }; }; then
4377  ac_cv_prog_cc_g=yes
4378else
4379  echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382ac_cv_prog_cc_g=no
4383fi
4384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385fi
4386echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4387echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4388if test "$ac_test_CFLAGS" = set; then
4389  CFLAGS=$ac_save_CFLAGS
4390elif test $ac_cv_prog_cc_g = yes; then
4391  if test "$GCC" = yes; then
4392    CFLAGS="-g -O2"
4393  else
4394    CFLAGS="-g"
4395  fi
4396else
4397  if test "$GCC" = yes; then
4398    CFLAGS="-O2"
4399  else
4400    CFLAGS=
4401  fi
4402fi
4403echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4404echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4405if test "${ac_cv_prog_cc_stdc+set}" = set; then
4406  echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408  ac_cv_prog_cc_stdc=no
4409ac_save_CC=$CC
4410cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h.  */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h.  */
4416#include <stdarg.h>
4417#include <stdio.h>
4418#include <sys/types.h>
4419#include <sys/stat.h>
4420/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4421struct buf { int x; };
4422FILE * (*rcsopen) (struct buf *, struct stat *, int);
4423static char *e (p, i)
4424     char **p;
4425     int i;
4426{
4427  return p[i];
4428}
4429static char *f (char * (*g) (char **, int), char **p, ...)
4430{
4431  char *s;
4432  va_list v;
4433  va_start (v,p);
4434  s = g (p, va_arg (v,int));
4435  va_end (v);
4436  return s;
4437}
4438
4439/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4440   function prototypes and stuff, but not '\xHH' hex character constants.
4441   These don't provoke an error unfortunately, instead are silently treated
4442   as 'x'.  The following induces an error, until -std1 is added to get
4443   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4444   array size at least.  It's necessary to write '\x00'==0 to get something
4445   that's true only with -std1.  */
4446int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4447
4448int test (int i, double x);
4449struct s1 {int (*f) (int a);};
4450struct s2 {int (*f) (double a);};
4451int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4452int argc;
4453char **argv;
4454int
4455main ()
4456{
4457return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4458  ;
4459  return 0;
4460}
4461_ACEOF
4462# Don't try gcc -ansi; that turns off useful extensions and
4463# breaks some systems' header files.
4464# AIX                   -qlanglvl=ansi
4465# Ultrix and OSF/1      -std1
4466# HP-UX 10.20 and later -Ae
4467# HP-UX older versions  -Aa -D_HPUX_SOURCE
4468# SVR4                  -Xc -D__EXTENSIONS__
4469for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4470do
4471  CC="$ac_save_CC $ac_arg"
4472  rm -f conftest.$ac_objext
4473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474  (eval $ac_compile) 2>conftest.er1
4475  ac_status=$?
4476  grep -v '^ *+' conftest.er1 >conftest.err
4477  rm -f conftest.er1
4478  cat conftest.err >&5
4479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480  (exit $ac_status); } &&
4481         { ac_try='test -z "$ac_c_werror_flag"
4482                         || test ! -s conftest.err'
4483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484  (eval $ac_try) 2>&5
4485  ac_status=$?
4486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487  (exit $ac_status); }; } &&
4488         { ac_try='test -s conftest.$ac_objext'
4489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490  (eval $ac_try) 2>&5
4491  ac_status=$?
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); }; }; then
4494  ac_cv_prog_cc_stdc=$ac_arg
4495break
4496else
4497  echo "$as_me: failed program was:" >&5
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
4500fi
4501rm -f conftest.err conftest.$ac_objext
4502done
4503rm -f conftest.$ac_ext conftest.$ac_objext
4504CC=$ac_save_CC
4505
4506fi
4507
4508case "x$ac_cv_prog_cc_stdc" in
4509  x|xno)
4510    echo "$as_me:$LINENO: result: none needed" >&5
4511echo "${ECHO_T}none needed" >&6 ;;
4512  *)
4513    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4514echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4515    CC="$CC $ac_cv_prog_cc_stdc" ;;
4516esac
4517
4518# Some people use a C++ compiler to compile C.  Since we use `exit',
4519# in C++ we need to declare it.  In case someone uses the same compiler
4520# for both compiling C and C++ we need to have the C++ compiler decide
4521# the declaration of exit, since it's the most demanding environment.
4522cat >conftest.$ac_ext <<_ACEOF
4523#ifndef __cplusplus
4524  choke me
4525#endif
4526_ACEOF
4527rm -f conftest.$ac_objext
4528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529  (eval $ac_compile) 2>conftest.er1
4530  ac_status=$?
4531  grep -v '^ *+' conftest.er1 >conftest.err
4532  rm -f conftest.er1
4533  cat conftest.err >&5
4534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535  (exit $ac_status); } &&
4536         { ac_try='test -z "$ac_c_werror_flag"
4537                         || test ! -s conftest.err'
4538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539  (eval $ac_try) 2>&5
4540  ac_status=$?
4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; } &&
4543         { ac_try='test -s conftest.$ac_objext'
4544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545  (eval $ac_try) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; }; then
4549  for ac_declaration in \
4550   '' \
4551   'extern "C" void std::exit (int) throw (); using std::exit;' \
4552   'extern "C" void std::exit (int); using std::exit;' \
4553   'extern "C" void exit (int) throw ();' \
4554   'extern "C" void exit (int);' \
4555   'void exit (int);'
4556do
4557  cat >conftest.$ac_ext <<_ACEOF
4558/* confdefs.h.  */
4559_ACEOF
4560cat confdefs.h >>conftest.$ac_ext
4561cat >>conftest.$ac_ext <<_ACEOF
4562/* end confdefs.h.  */
4563$ac_declaration
4564#include <stdlib.h>
4565int
4566main ()
4567{
4568exit (42);
4569  ;
4570  return 0;
4571}
4572_ACEOF
4573rm -f conftest.$ac_objext
4574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575  (eval $ac_compile) 2>conftest.er1
4576  ac_status=$?
4577  grep -v '^ *+' conftest.er1 >conftest.err
4578  rm -f conftest.er1
4579  cat conftest.err >&5
4580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581  (exit $ac_status); } &&
4582         { ac_try='test -z "$ac_c_werror_flag"
4583                         || test ! -s conftest.err'
4584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585  (eval $ac_try) 2>&5
4586  ac_status=$?
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); }; } &&
4589         { ac_try='test -s conftest.$ac_objext'
4590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591  (eval $ac_try) 2>&5
4592  ac_status=$?
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); }; }; then
4595  :
4596else
4597  echo "$as_me: failed program was:" >&5
4598sed 's/^/| /' conftest.$ac_ext >&5
4599
4600continue
4601fi
4602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603  cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h.  */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h.  */
4609$ac_declaration
4610int
4611main ()
4612{
4613exit (42);
4614  ;
4615  return 0;
4616}
4617_ACEOF
4618rm -f conftest.$ac_objext
4619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620  (eval $ac_compile) 2>conftest.er1
4621  ac_status=$?
4622  grep -v '^ *+' conftest.er1 >conftest.err
4623  rm -f conftest.er1
4624  cat conftest.err >&5
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); } &&
4627         { ac_try='test -z "$ac_c_werror_flag"
4628                         || test ! -s conftest.err'
4629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630  (eval $ac_try) 2>&5
4631  ac_status=$?
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); }; } &&
4634         { ac_try='test -s conftest.$ac_objext'
4635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636  (eval $ac_try) 2>&5
4637  ac_status=$?
4638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); }; }; then
4640  break
4641else
4642  echo "$as_me: failed program was:" >&5
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
4645fi
4646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647done
4648rm -f conftest*
4649if test -n "$ac_declaration"; then
4650  echo '#ifdef __cplusplus' >>confdefs.h
4651  echo $ac_declaration      >>confdefs.h
4652  echo '#endif'             >>confdefs.h
4653fi
4654
4655else
4656  echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659fi
4660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4661ac_ext=c
4662ac_cpp='$CPP $CPPFLAGS'
4663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666
4667if test -z "$CC" ; then
4668  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
4669echo "$as_me: error: Failed to find a C compiler!" >&2;}
4670   { (exit 1); exit 1; }; }
4671fi
4672# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
4673case "$CC" in
4674  cl* | */cl* | CL* | */CL* )
4675    if test "$ac_cv_prog_cc_g" = yes ; then
4676      ac_cv_prog_cc_g=no
4677      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
4678echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
4679    fi ;;
4680esac
4681CFLAGS="$save_cflags"
4682
4683# Check if a project specific CFLAGS variable has been set
4684if test x$COIN_PRJCT != x; then
4685  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
4686  if test x$coin_tmp = xset; then
4687    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
4688  fi
4689fi
4690
4691if test x"$CFLAGS" = x; then
4692
4693  coin_add_cflags=
4694  coin_opt_cflags=
4695  coin_dbg_cflags=
4696  coin_warn_cflags=
4697
4698  if test "$GCC" = "yes"; then
4699    case "$CC" in
4700      icc* | */icc*)
4701        ;;
4702      *)
4703        coin_opt_cflags="-O3 -fomit-frame-pointer"
4704        coin_add_cflags="-pipe"
4705        coin_dbg_cflags="-g"
4706        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
4707        case $build in
4708          *-darwin*)
4709            ;;
4710          *)
4711            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
4712            ;;
4713        esac
4714        case $enable_doscompile in
4715          mingw)
4716            CFLAGS="-mno-cygwin"
4717            cat >conftest.$ac_ext <<_ACEOF
4718/* confdefs.h.  */
4719_ACEOF
4720cat confdefs.h >>conftest.$ac_ext
4721cat >>conftest.$ac_ext <<_ACEOF
4722/* end confdefs.h.  */
4723
4724int
4725main ()
4726{
4727int i=0; i++;
4728  ;
4729  return 0;
4730}
4731_ACEOF
4732rm -f conftest.$ac_objext conftest$ac_exeext
4733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734  (eval $ac_link) 2>conftest.er1
4735  ac_status=$?
4736  grep -v '^ *+' conftest.er1 >conftest.err
4737  rm -f conftest.er1
4738  cat conftest.err >&5
4739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740  (exit $ac_status); } &&
4741         { ac_try='test -z "$ac_c_werror_flag"
4742                         || test ! -s conftest.err'
4743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744  (eval $ac_try) 2>&5
4745  ac_status=$?
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); }; } &&
4748         { ac_try='test -s conftest$ac_exeext'
4749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750  (eval $ac_try) 2>&5
4751  ac_status=$?
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); }; }; then
4754  coin_add_cflags="-mno-cygwin $coin_add_cflags"
4755else
4756  echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759fi
4760rm -f conftest.err conftest.$ac_objext \
4761      conftest$ac_exeext conftest.$ac_ext
4762            CFLAGS=
4763          ;;
4764        esac
4765    esac
4766  fi
4767  if test -z "$coin_opt_cflags"; then
4768    case $build in
4769      *-cygwin* | *-mingw*)
4770        case "$CC" in
4771          cl* | */cl* | CL* | */CL*)
4772            coin_opt_cflags='-MT -O2'
4773            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
4774            coin_dbg_cflags='-MTd'
4775            ;;
4776          icl* | */icl* | ICL* | */ICL*)
4777            coin_opt_cflags='-MT -Ox'
4778            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
4779            coin_dbg_cflags='-MTd -debug'
4780            ;;
4781        esac
4782        ;;
4783      *-linux-*)
4784        case "$CC" in
4785          icc* | */icc*)
4786            coin_opt_cflags="-O3 -ip -mp1"
4787            coin_add_cflags=""
4788            coin_dbg_cflags="-g"
4789            # Check if -i_dynamic is necessary (for new glibc library)
4790            CFLAGS=
4791            cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797
4798int
4799main ()
4800{
4801int i=0; i++;
4802  ;
4803  return 0;
4804}
4805_ACEOF
4806rm -f conftest.$ac_objext conftest$ac_exeext
4807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4808  (eval $ac_link) 2>conftest.er1
4809  ac_status=$?
4810  grep -v '^ *+' conftest.er1 >conftest.err
4811  rm -f conftest.er1
4812  cat conftest.err >&5
4813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); } &&
4815         { ac_try='test -z "$ac_c_werror_flag"
4816                         || test ! -s conftest.err'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; } &&
4822         { ac_try='test -s conftest$ac_exeext'
4823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824  (eval $ac_try) 2>&5
4825  ac_status=$?
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); }; }; then
4828  :
4829else
4830  echo "$as_me: failed program was:" >&5
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
4833coin_add_cflags="-i_dynamic $coin_add_cflags"
4834fi
4835rm -f conftest.err conftest.$ac_objext \
4836      conftest$ac_exeext conftest.$ac_ext
4837            ;;
4838          pgcc* | */pgcc*)
4839            coin_opt_cflags="-fast"
4840            coin_add_cflags="-Kieee -pc 64"
4841            coin_dbg_cflags="-g"
4842            ;;
4843        esac
4844        ;;
4845      *-ibm-*)
4846        case "$CC" in
4847          xlc* | */xlc* | mpxlc* | */mpxlc*)
4848            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4849            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4850            coin_dbg_cflags="-g"
4851          ;;
4852        esac
4853        ;;
4854      *-hp-*)
4855        coin_opt_cflags="-O"
4856        coin_add_cflags="-Ae"
4857        coin_dbg_cflags="-g"
4858        ;;
4859      *-*-solaris*)
4860        coin_opt_cflags="-xO4"
4861        coin_dbg_cflags="-g"
4862        ;;
4863      *-sgi-*)
4864        coin_opt_cflags="-O -OPT:Olimit=0"
4865        coin_dbg_cflags="-g"
4866        ;;
4867    esac
4868  fi
4869
4870  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
4871    coin_dbg_cflags="-g"
4872  fi
4873
4874  if test -z "$coin_opt_cflags"; then
4875    # Try if -O option works if nothing else is set
4876    CFLAGS="-O"
4877    cat >conftest.$ac_ext <<_ACEOF
4878/* confdefs.h.  */
4879_ACEOF
4880cat confdefs.h >>conftest.$ac_ext
4881cat >>conftest.$ac_ext <<_ACEOF
4882/* end confdefs.h.  */
4883
4884int
4885main ()
4886{
4887int i=0; i++;
4888  ;
4889  return 0;
4890}
4891_ACEOF
4892rm -f conftest.$ac_objext conftest$ac_exeext
4893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4894  (eval $ac_link) 2>conftest.er1
4895  ac_status=$?
4896  grep -v '^ *+' conftest.er1 >conftest.err
4897  rm -f conftest.er1
4898  cat conftest.err >&5
4899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900  (exit $ac_status); } &&
4901         { ac_try='test -z "$ac_c_werror_flag"
4902                         || test ! -s conftest.err'
4903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904  (eval $ac_try) 2>&5
4905  ac_status=$?
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); }; } &&
4908         { ac_try='test -s conftest$ac_exeext'
4909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910  (eval $ac_try) 2>&5
4911  ac_status=$?
4912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913  (exit $ac_status); }; }; then
4914  coin_opt_cflags="-O"
4915else
4916  echo "$as_me: failed program was:" >&5
4917sed 's/^/| /' conftest.$ac_ext >&5
4918
4919fi
4920rm -f conftest.err conftest.$ac_objext \
4921      conftest$ac_exeext conftest.$ac_ext
4922  fi
4923
4924  # if PM doesn't want the warning messages, take them out
4925  if test x"$coin_skip_warn_cflags" = xyes; then
4926    coin_warn_cflags=
4927  fi
4928
4929  if test x${DBG_CFLAGS+set} != xset; then
4930    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
4931  fi
4932  if test x${OPT_CFLAGS+set} != xset; then
4933    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
4934  fi
4935
4936  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
4937  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
4938
4939  if test "$coin_debug_compile" = "true"; then
4940    CFLAGS="$DBG_CFLAGS"
4941  else
4942    CFLAGS="$OPT_CFLAGS"
4943  fi
4944else
4945  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
4946  if test x${DBG_CFLAGS+set} != xset; then
4947    DBG_CFLAGS="$CFLAGS"
4948  fi
4949  if test x${OPT_CFLAGS+set} != xset; then
4950    OPT_CFLAGS="$CFLAGS"
4951  fi
4952fi
4953
4954# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4955
4956case "$CFLAGS" in
4957  *-mno-cygwin*)
4958    if test x${CPPFLAGS+set} != xset ; then
4959      CPPFLAGS="-mno-cygwin"
4960    else
4961      case "$CPPFLAGS" in
4962        *-mno-cygwin*)
4963          ;;
4964        *)
4965          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4966          ;;
4967      esac
4968    fi ;;
4969esac
4970
4971# Try if CFLAGS works
4972save_CFLAGS="$CFLAGS"
4973cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h.  */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h.  */
4979
4980int
4981main ()
4982{
4983int i=0; i++;
4984  ;
4985  return 0;
4986}
4987_ACEOF
4988rm -f conftest.$ac_objext conftest$ac_exeext
4989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990  (eval $ac_link) 2>conftest.er1
4991  ac_status=$?
4992  grep -v '^ *+' conftest.er1 >conftest.err
4993  rm -f conftest.er1
4994  cat conftest.err >&5
4995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996  (exit $ac_status); } &&
4997         { ac_try='test -z "$ac_c_werror_flag"
4998                         || test ! -s conftest.err'
4999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000  (eval $ac_try) 2>&5
5001  ac_status=$?
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); }; } &&
5004         { ac_try='test -s conftest$ac_exeext'
5005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006  (eval $ac_try) 2>&5
5007  ac_status=$?
5008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); }; }; then
5010  :
5011else
5012  echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015CFLAGS=
5016fi
5017rm -f conftest.err conftest.$ac_objext \
5018      conftest$ac_exeext conftest.$ac_ext
5019if test -z "$CFLAGS"; then
5020  { 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
5021echo "$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;}
5022  CFLAGS='-O'
5023  cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h.  */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h.  */
5029
5030int
5031main ()
5032{
5033int i=0; i++;
5034  ;
5035  return 0;
5036}
5037_ACEOF
5038rm -f conftest.$ac_objext conftest$ac_exeext
5039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5040  (eval $ac_link) 2>conftest.er1
5041  ac_status=$?
5042  grep -v '^ *+' conftest.er1 >conftest.err
5043  rm -f conftest.er1
5044  cat conftest.err >&5
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); } &&
5047         { ac_try='test -z "$ac_c_werror_flag"
5048                         || test ! -s conftest.err'
5049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050  (eval $ac_try) 2>&5
5051  ac_status=$?
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); }; } &&
5054         { ac_try='test -s conftest$ac_exeext'
5055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056  (eval $ac_try) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; }; then
5060  :
5061else
5062  echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065CFLAGS=
5066fi
5067rm -f conftest.err conftest.$ac_objext \
5068      conftest$ac_exeext conftest.$ac_ext
5069  if test -z "$CFLAGS"; then
5070    { 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
5071echo "$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;}
5072  fi
5073fi
5074
5075{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
5076echo "$as_me: C compiler options are: $CFLAGS" >&6;}
5077
5078
5079if test x"$MPICC" = x; then :; else
5080  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
5081echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
5082  CC="$MPICC"
5083fi
5084
5085# Correct ADDLIBS initialization if we are using the MS compiler
5086case "$CC" in
5087  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5088    ADDLIBS=
5089    case $build in
5090  *-mingw*)
5091    if test "${LD+set}" = set; then :; else
5092      LD=link
5093    fi
5094    ;;
5095 esac
5096 case $enable_doscompile in
5097   msvc)
5098     if test "x${LD+set}" = xset; then :; else
5099       LD=link
5100     fi
5101     ;;
5102 esac
5103
5104    ;;
5105esac
5106
5107ac_ext=c
5108ac_cpp='$CPP $CPPFLAGS'
5109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112
5113
5114
5115# Initialize automake and libtool
5116{
5117
5118
5119
5120# START
5121
5122# Test if force_shared has been set
5123if test "x" = xforce_shared; then
5124  if test x$enable_shared = xno; then
5125    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5126echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5127   { (exit 1); exit 1; }; }
5128  fi
5129  enable_shared=yes;
5130else
5131  # On Cygwin and AIX, building DLLs doesn't work
5132  case $build in
5133    *-cygwin*)
5134      coin_disable_shared=yes
5135      platform=Cygwin
5136    ;;
5137    *-aix*)
5138      coin_disable_shared=yes
5139      platform=AIX
5140    ;;
5141    *-mingw*)
5142      coin_disable_shared=yes
5143      platform="Msys"
5144#      case "$CXX" in
5145#        cl*)
5146#          coin_disable_shared=yes
5147#          platform="Msys with cl"
5148#      ;;
5149#      esac
5150    ;;
5151  esac
5152fi
5153if test x"$coin_disable_shared" = xyes; then
5154  if test x"$enable_shared" = xyes; then
5155    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5156echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5157  fi
5158  enable_shared=no
5159fi
5160# By default, we only want the shared objects to be compiled
5161# Check whether --enable-static or --disable-static was given.
5162if test "${enable_static+set}" = set; then
5163  enableval="$enable_static"
5164  p=${PACKAGE-default}
5165    case $enableval in
5166    yes) enable_static=yes ;;
5167    no) enable_static=no ;;
5168    *)
5169     enable_static=no
5170      # Look at the argument we got.  We use all the common list separators.
5171      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5172      for pkg in $enableval; do
5173        IFS="$lt_save_ifs"
5174        if test "X$pkg" = "X$p"; then
5175          enable_static=yes
5176        fi
5177      done
5178      IFS="$lt_save_ifs"
5179      ;;
5180    esac
5181else
5182  enable_static=no
5183fi;
5184
5185
5186
5187
5188# Initialize automake
5189echo "$as_me:$LINENO: checking for egrep" >&5
5190echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5191if test "${ac_cv_prog_egrep+set}" = set; then
5192  echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5195    then ac_cv_prog_egrep='grep -E'
5196    else ac_cv_prog_egrep='egrep'
5197    fi
5198fi
5199echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5200echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5201 EGREP=$ac_cv_prog_egrep
5202
5203
5204am__api_version="1.9"
5205# Find a good install program.  We prefer a C program (faster),
5206# so one script is as good as another.  But avoid the broken or
5207# incompatible versions:
5208# SysV /etc/install, /usr/sbin/install
5209# SunOS /usr/etc/install
5210# IRIX /sbin/install
5211# AIX /bin/install
5212# AmigaOS /C/install, which installs bootblocks on floppy discs
5213# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5214# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5215# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5216# OS/2's system install, which has a completely different semantic
5217# ./install, which can be erroneously created by make from ./install.sh.
5218echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5219echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5220if test -z "$INSTALL"; then
5221if test "${ac_cv_path_install+set}" = set; then
5222  echo $ECHO_N "(cached) $ECHO_C" >&6
5223else
5224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227  IFS=$as_save_IFS
5228  test -z "$as_dir" && as_dir=.
5229  # Account for people who put trailing slashes in PATH elements.
5230case $as_dir/ in
5231  ./ | .// | /cC/* | \
5232  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5233  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5234  /usr/ucb/* ) ;;
5235  *)
5236    # OSF1 and SCO ODT 3.0 have their own names for install.
5237    # Don't use installbsd from OSF since it installs stuff as root
5238    # by default.
5239    for ac_prog in ginstall scoinst install; do
5240      for ac_exec_ext in '' $ac_executable_extensions; do
5241        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5242          if test $ac_prog = install &&
5243            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5244            # AIX install.  It has an incompatible calling convention.
5245            :
5246          elif test $ac_prog = install &&
5247            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5248            # program-specific install script used by HP pwplus--don't use.
5249            :
5250          else
5251            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5252            break 3
5253          fi
5254        fi
5255      done
5256    done
5257    ;;
5258esac
5259done
5260
5261
5262fi
5263  if test "${ac_cv_path_install+set}" = set; then
5264    INSTALL=$ac_cv_path_install
5265  else
5266    # As a last resort, use the slow shell script.  We don't cache a
5267    # path for INSTALL within a source directory, because that will
5268    # break other packages using the cache if that directory is
5269    # removed, or if the path is relative.
5270    INSTALL=$ac_install_sh
5271  fi
5272fi
5273echo "$as_me:$LINENO: result: $INSTALL" >&5
5274echo "${ECHO_T}$INSTALL" >&6
5275
5276# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5277# It thinks the first close brace ends the variable substitution.
5278test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5279
5280test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5281
5282test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5283
5284echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5285echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5286# Just in case
5287sleep 1
5288echo timestamp > conftest.file
5289# Do `set' in a subshell so we don't clobber the current shell's
5290# arguments.  Must try -L first in case configure is actually a
5291# symlink; some systems play weird games with the mod time of symlinks
5292# (eg FreeBSD returns the mod time of the symlink's containing
5293# directory).
5294if (
5295   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5296   if test "$*" = "X"; then
5297      # -L didn't work.
5298      set X `ls -t $srcdir/configure conftest.file`
5299   fi
5300   rm -f conftest.file
5301   if test "$*" != "X $srcdir/configure conftest.file" \
5302      && test "$*" != "X conftest.file $srcdir/configure"; then
5303
5304      # If neither matched, then we have a broken ls.  This can happen
5305      # if, for instance, CONFIG_SHELL is bash and it inherits a
5306      # broken ls alias from the environment.  This has actually
5307      # happened.  Such a system could not be considered "sane".
5308      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5309alias in your environment" >&5
5310echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5311alias in your environment" >&2;}
5312   { (exit 1); exit 1; }; }
5313   fi
5314
5315   test "$2" = conftest.file
5316   )
5317then
5318   # Ok.
5319   :
5320else
5321   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5322Check your system clock" >&5
5323echo "$as_me: error: newly created file is older than distributed files!
5324Check your system clock" >&2;}
5325   { (exit 1); exit 1; }; }
5326fi
5327echo "$as_me:$LINENO: result: yes" >&5
5328echo "${ECHO_T}yes" >&6
5329test "$program_prefix" != NONE &&
5330  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5331# Use a double $ so make ignores it.
5332test "$program_suffix" != NONE &&
5333  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5334# Double any \ or $.  echo might interpret backslashes.
5335# By default was `s,x,x', remove it if useless.
5336cat <<\_ACEOF >conftest.sed
5337s/[\\$]/&&/g;s/;s,x,x,$//
5338_ACEOF
5339program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5340rm conftest.sed
5341
5342# expand $ac_aux_dir to an absolute path
5343am_aux_dir=`cd $ac_aux_dir && pwd`
5344
5345test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5346# Use eval to expand $SHELL
5347if eval "$MISSING --run true"; then
5348  am_missing_run="$MISSING --run "
5349else
5350  am_missing_run=
5351  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5352echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5353fi
5354
5355if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5356  # We used to keeping the `.' as first argument, in order to
5357  # allow $(mkdir_p) to be used without argument.  As in
5358  #   $(mkdir_p) $(somedir)
5359  # where $(somedir) is conditionally defined.  However this is wrong
5360  # for two reasons:
5361  #  1. if the package is installed by a user who cannot write `.'
5362  #     make install will fail,
5363  #  2. the above comment should most certainly read
5364  #     $(mkdir_p) $(DESTDIR)$(somedir)
5365  #     so it does not work when $(somedir) is undefined and
5366  #     $(DESTDIR) is not.
5367  #  To support the latter case, we have to write
5368  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5369  #  so the `.' trick is pointless.
5370  mkdir_p='mkdir -p --'
5371else
5372  # On NextStep and OpenStep, the `mkdir' command does not
5373  # recognize any option.  It will interpret all options as
5374  # directories to create, and then abort because `.' already
5375  # exists.
5376  for d in ./-p ./--version;
5377  do
5378    test -d $d && rmdir $d
5379  done
5380  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5381  if test -f "$ac_aux_dir/mkinstalldirs"; then
5382    mkdir_p='$(mkinstalldirs)'
5383  else
5384    mkdir_p='$(install_sh) -d'
5385  fi
5386fi
5387
5388for ac_prog in gawk mawk nawk awk
5389do
5390  # Extract the first word of "$ac_prog", so it can be a program name with args.
5391set dummy $ac_prog; ac_word=$2
5392echo "$as_me:$LINENO: checking for $ac_word" >&5
5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394if test "${ac_cv_prog_AWK+set}" = set; then
5395  echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397  if test -n "$AWK"; then
5398  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405  for ac_exec_ext in '' $ac_executable_extensions; do
5406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407    ac_cv_prog_AWK="$ac_prog"
5408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412done
5413
5414fi
5415fi
5416AWK=$ac_cv_prog_AWK
5417if test -n "$AWK"; then
5418  echo "$as_me:$LINENO: result: $AWK" >&5
5419echo "${ECHO_T}$AWK" >&6
5420else
5421  echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423fi
5424
5425  test -n "$AWK" && break
5426done
5427
5428echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5429echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5430set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5431if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5432  echo $ECHO_N "(cached) $ECHO_C" >&6
5433else
5434  cat >conftest.make <<\_ACEOF
5435all:
5436        @echo 'ac_maketemp="$(MAKE)"'
5437_ACEOF
5438# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5439eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5440if test -n "$ac_maketemp"; then
5441  eval ac_cv_prog_make_${ac_make}_set=yes
5442else
5443  eval ac_cv_prog_make_${ac_make}_set=no
5444fi
5445rm -f conftest.make
5446fi
5447if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5448  echo "$as_me:$LINENO: result: yes" >&5
5449echo "${ECHO_T}yes" >&6
5450  SET_MAKE=
5451else
5452  echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454  SET_MAKE="MAKE=${MAKE-make}"
5455fi
5456
5457rm -rf .tst 2>/dev/null
5458mkdir .tst 2>/dev/null
5459if test -d .tst; then
5460  am__leading_dot=.
5461else
5462  am__leading_dot=_
5463fi
5464rmdir .tst 2>/dev/null
5465
5466DEPDIR="${am__leading_dot}deps"
5467
5468          ac_config_commands="$ac_config_commands depfiles"
5469
5470
5471am_make=${MAKE-make}
5472cat > confinc << 'END'
5473am__doit:
5474        @echo done
5475.PHONY: am__doit
5476END
5477# If we don't find an include directive, just comment out the code.
5478echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5479echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5480am__include="#"
5481am__quote=
5482_am_result=none
5483# First try GNU make style include.
5484echo "include confinc" > confmf
5485# We grep out `Entering directory' and `Leaving directory'
5486# messages which can occur if `w' ends up in MAKEFLAGS.
5487# In particular we don't look at `^make:' because GNU make might
5488# be invoked under some other name (usually "gmake"), in which
5489# case it prints its new name instead of `make'.
5490if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5491   am__include=include
5492   am__quote=
5493   _am_result=GNU
5494fi
5495# Now try BSD make style include.
5496if test "$am__include" = "#"; then
5497   echo '.include "confinc"' > confmf
5498   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5499      am__include=.include
5500      am__quote="\""
5501      _am_result=BSD
5502   fi
5503fi
5504
5505
5506echo "$as_me:$LINENO: result: $_am_result" >&5
5507echo "${ECHO_T}$_am_result" >&6
5508rm -f confinc confmf
5509
5510# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5511if test "${enable_dependency_tracking+set}" = set; then
5512  enableval="$enable_dependency_tracking"
5513
5514fi;
5515if test "x$enable_dependency_tracking" != xno; then
5516  am_depcomp="$ac_aux_dir/depcomp"
5517  AMDEPBACKSLASH='\'
5518fi
5519
5520
5521if test "x$enable_dependency_tracking" != xno; then
5522  AMDEP_TRUE=
5523  AMDEP_FALSE='#'
5524else
5525  AMDEP_TRUE='#'
5526  AMDEP_FALSE=
5527fi
5528
5529
5530
5531
5532
5533# AC_MSG_NOTICE([Beginning automake initialisation.])
5534# Stuff for automake
5535# test to see if srcdir already configured
5536if test "`cd $srcdir && pwd`" != "`pwd`" &&
5537   test -f $srcdir/config.status; then
5538  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5539echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5540   { (exit 1); exit 1; }; }
5541fi
5542
5543# test whether we have cygpath
5544if test -z "$CYGPATH_W"; then
5545  if (cygpath --version) >/dev/null 2>/dev/null; then
5546    CYGPATH_W='cygpath -w'
5547  else
5548    CYGPATH_W=echo
5549  fi
5550fi
5551
5552
5553# Define the identity of the package.
5554 PACKAGE='couenne'
5555 VERSION='0.2'
5556
5557
5558cat >>confdefs.h <<_ACEOF
5559#define PACKAGE "$PACKAGE"
5560_ACEOF
5561
5562
5563cat >>confdefs.h <<_ACEOF
5564#define VERSION "$VERSION"
5565_ACEOF
5566
5567# Some tools Automake needs.
5568
5569ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5570
5571
5572AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5573
5574
5575AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5576
5577
5578AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5579
5580
5581MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5582
5583install_sh=${install_sh-"$am_aux_dir/install-sh"}
5584
5585# Installed binaries are usually stripped using `strip' when the user
5586# run `make install-strip'.  However `strip' might not be the right
5587# tool to use in cross-compilation environments, therefore Automake
5588# will honor the `STRIP' environment variable to overrule this program.
5589if test "$cross_compiling" != no; then
5590  if test -n "$ac_tool_prefix"; then
5591  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5592set dummy ${ac_tool_prefix}strip; ac_word=$2
5593echo "$as_me:$LINENO: checking for $ac_word" >&5
5594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5595if test "${ac_cv_prog_STRIP+set}" = set; then
5596  echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598  if test -n "$STRIP"; then
5599  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604  IFS=$as_save_IFS
5605  test -z "$as_dir" && as_dir=.
5606  for ac_exec_ext in '' $ac_executable_extensions; do
5607  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610    break 2
5611  fi
5612done
5613done
5614
5615fi
5616fi
5617STRIP=$ac_cv_prog_STRIP
5618if test -n "$STRIP"; then
5619  echo "$as_me:$LINENO: result: $STRIP" >&5
5620echo "${ECHO_T}$STRIP" >&6
5621else
5622  echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6
5624fi
5625
5626fi
5627if test -z "$ac_cv_prog_STRIP"; then
5628  ac_ct_STRIP=$STRIP
5629  # Extract the first word of "strip", so it can be a program name with args.
5630set dummy strip; ac_word=$2
5631echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5634  echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636  if test -n "$ac_ct_STRIP"; then
5637  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  test -z "$as_dir" && as_dir=.
5644  for ac_exec_ext in '' $ac_executable_extensions; do
5645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646    ac_cv_prog_ac_ct_STRIP="strip"
5647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648    break 2
5649  fi
5650done
5651done
5652
5653  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5654fi
5655fi
5656ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5657if test -n "$ac_ct_STRIP"; then
5658  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5659echo "${ECHO_T}$ac_ct_STRIP" >&6
5660else
5661  echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6
5663fi
5664
5665  STRIP=$ac_ct_STRIP
5666else
5667  STRIP="$ac_cv_prog_STRIP"
5668fi
5669
5670fi
5671INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5672
5673# We need awk for the "check" target.  The system "awk" is bad on
5674# some platforms.
5675# Always define AMTAR for backward compatibility.
5676
5677AMTAR=${AMTAR-"${am_missing_run}tar"}
5678
5679am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5680
5681
5682
5683
5684depcc="$CC"   am_compiler_list=
5685
5686echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5687echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5688if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5689  echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5692  # We make a subdir and do the tests there.  Otherwise we can end up
5693  # making bogus files that we don't know about and never remove.  For
5694  # instance it was reported that on HP-UX the gcc test will end up
5695  # making a dummy file named `D' -- because `-MD' means `put the output
5696  # in D'.
5697  mkdir conftest.dir
5698  # Copy depcomp to subdir because otherwise we won't find it if we're
5699  # using a relative directory.
5700  cp "$am_depcomp" conftest.dir
5701  cd conftest.dir
5702  # We will build objects and dependencies in a subdirectory because
5703  # it helps to detect inapplicable dependency modes.  For instance
5704  # both Tru64's cc and ICC support -MD to output dependencies as a
5705  # side effect of compilation, but ICC will put the dependencies in
5706  # the current directory while Tru64 will put them in the object
5707  # directory.
5708  mkdir sub
5709
5710  am_cv_CC_dependencies_compiler_type=none
5711  if test "$am_compiler_list" = ""; then
5712     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5713  fi
5714  for depmode in $am_compiler_list; do
5715    # Setup a source with many dependencies, because some compilers
5716    # like to wrap large dependency lists on column 80 (with \), and
5717    # we should not choose a depcomp mode which is confused by this.
5718    #
5719    # We need to recreate these files for each test, as the compiler may
5720    # overwrite some of them when testing with obscure command lines.
5721    # This happens at least with the AIX C compiler.
5722    : > sub/conftest.c
5723    for i in 1 2 3 4 5 6; do
5724      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5725      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5726      # Solaris 8's {/usr,}/bin/sh.
5727      touch sub/conftst$i.h
5728    done
5729    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5730
5731    case $depmode in
5732    nosideeffect)
5733      # after this tag, mechanisms are not by side-effect, so they'll
5734      # only be used when explicitly requested
5735      if test "x$enable_dependency_tracking" = xyes; then
5736        continue
5737      else
5738        break
5739      fi
5740      ;;
5741    none) break ;;
5742    esac
5743    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5744    # mode.  It turns out that the SunPro C++ compiler does not properly
5745    # handle `-M -o', and we need to detect this.
5746    if depmode=$depmode \
5747       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5748       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5749       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5750         >/dev/null 2>conftest.err &&
5751       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5752       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5753       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5754      # icc doesn't choke on unknown options, it will just issue warnings
5755      # or remarks (even with -Werror).  So we grep stderr for any message
5756      # that says an option was ignored or not supported.
5757      # When given -MP, icc 7.0 and 7.1 complain thusly:
5758      #   icc: Command line warning: ignoring option '-M'; no argument required
5759      # The diagnosis changed in icc 8.0:
5760      #   icc: Command line remark: option '-MP' not supported
5761      if (grep 'ignoring option' conftest.err ||
5762          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5763        am_cv_CC_dependencies_compiler_type=$depmode
5764        break
5765      fi
5766    fi
5767  done
5768
5769  cd ..
5770  rm -rf conftest.dir
5771else
5772  am_cv_CC_dependencies_compiler_type=none
5773fi
5774
5775fi
5776echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5777echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5778CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5779
5780
5781
5782if
5783  test "x$enable_dependency_tracking" != xno \
5784  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5785  am__fastdepCC_TRUE=
5786  am__fastdepCC_FALSE='#'
5787else
5788  am__fastdepCC_TRUE='#'
5789  am__fastdepCC_FALSE=
5790fi
5791
5792
5793depcc="$CXX"  am_compiler_list=
5794
5795echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5796echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5797if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5798  echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5801  # We make a subdir and do the tests there.  Otherwise we can end up
5802  # making bogus files that we don't know about and never remove.  For
5803  # instance it was reported that on HP-UX the gcc test will end up
5804  # making a dummy file named `D' -- because `-MD' means `put the output
5805  # in D'.
5806  mkdir conftest.dir
5807  # Copy depcomp to subdir because otherwise we won't find it if we're
5808  # using a relative directory.
5809  cp "$am_depcomp" conftest.dir
5810  cd conftest.dir
5811  # We will build objects and dependencies in a subdirectory because
5812  # it helps to detect inapplicable dependency modes.  For instance
5813  # both Tru64's cc and ICC support -MD to output dependencies as a
5814  # side effect of compilation, but ICC will put the dependencies in
5815  # the current directory while Tru64 will put them in the object
5816  # directory.
5817  mkdir sub
5818
5819  am_cv_CXX_dependencies_compiler_type=none
5820  if test "$am_compiler_list" = ""; then
5821     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5822  fi
5823  for depmode in $am_compiler_list; do
5824    # Setup a source with many dependencies, because some compilers
5825    # like to wrap large dependency lists on column 80 (with \), and
5826    # we should not choose a depcomp mode which is confused by this.
5827    #
5828    # We need to recreate these files for each test, as the compiler may
5829    # overwrite some of them when testing with obscure command lines.
5830    # This happens at least with the AIX C compiler.
5831    : > sub/conftest.c
5832    for i in 1 2 3 4 5 6; do
5833      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5834      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5835      # Solaris 8's {/usr,}/bin/sh.
5836      touch sub/conftst$i.h
5837    done
5838    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5839
5840    case $depmode in
5841    nosideeffect)
5842      # after this tag, mechanisms are not by side-effect, so they'll
5843      # only be used when explicitly requested
5844      if test "x$enable_dependency_tracking" = xyes; then
5845        continue
5846      else
5847        break
5848      fi
5849      ;;
5850    none) break ;;
5851    esac
5852    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5853    # mode.  It turns out that the SunPro C++ compiler does not properly
5854    # handle `-M -o', and we need to detect this.
5855    if depmode=$depmode \
5856       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5857       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5858       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5859         >/dev/null 2>conftest.err &&
5860       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5861       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5862       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5863      # icc doesn't choke on unknown options, it will just issue warnings
5864      # or remarks (even with -Werror).  So we grep stderr for any message
5865      # that says an option was ignored or not supported.
5866      # When given -MP, icc 7.0 and 7.1 complain thusly:
5867      #   icc: Command line warning: ignoring option '-M'; no argument required
5868      # The diagnosis changed in icc 8.0:
5869      #   icc: Command line remark: option '-MP' not supported
5870      if (grep 'ignoring option' conftest.err ||
5871          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5872        am_cv_CXX_dependencies_compiler_type=$depmode
5873        break
5874      fi
5875    fi
5876  done
5877
5878  cd ..
5879  rm -rf conftest.dir
5880else
5881  am_cv_CXX_dependencies_compiler_type=none
5882fi
5883
5884fi
5885echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5886echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5887CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5888
5889
5890
5891if
5892  test "x$enable_dependency_tracking" != xno \
5893  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5894  am__fastdepCXX_TRUE=
5895  am__fastdepCXX_FALSE='#'
5896else
5897  am__fastdepCXX_TRUE='#'
5898  am__fastdepCXX_FALSE=
5899fi
5900
5901
5902
5903echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5904echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5905    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5906if test "${enable_maintainer_mode+set}" = set; then
5907  enableval="$enable_maintainer_mode"
5908  USE_MAINTAINER_MODE=$enableval
5909else
5910  USE_MAINTAINER_MODE=no
5911fi;
5912  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5913echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5914
5915
5916if test $USE_MAINTAINER_MODE = yes; then
5917  MAINTAINER_MODE_TRUE=
5918  MAINTAINER_MODE_FALSE='#'
5919else
5920  MAINTAINER_MODE_TRUE='#'
5921  MAINTAINER_MODE_FALSE=
5922fi
5923
5924  MAINT=$MAINTAINER_MODE_TRUE
5925
5926
5927
5928coin_have_externals=no
5929if test "$enable_maintainer_mode" = yes; then
5930
5931  # If maintainer mode is chosen, we make sure that the correct versions
5932  # of the tools are used, and that we know where libtool.m4 is (to
5933  # recreate acinclude.m4)
5934
5935
5936  LIBTOOLM4=
5937  # Normally, $HOME
5938  AUTOTOOLS_DFLT=$HOME
5939
5940  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5941echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5942if test "${ac_cv_use_correct_autotools+set}" = set; then
5943  echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945  ac_cv_use_correct_autotools=check
5946fi
5947echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5948echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5949
5950  if test $ac_cv_use_correct_autotools = check; then
5951    ac_cv_use_correct_autotools=yes
5952    # Check if we have autoconf
5953    # Extract the first word of "autoconf", so it can be a program name with args.
5954set dummy autoconf; ac_word=$2
5955echo "$as_me:$LINENO: checking for $ac_word" >&5
5956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5957if test "${ac_cv_prog_have_autoconf+set}" = set; then
5958  echo $ECHO_N "(cached) $ECHO_C" >&6
5959else
5960  if test -n "$have_autoconf"; then
5961  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5962else
5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966  IFS=$as_save_IFS
5967  test -z "$as_dir" && as_dir=.
5968  for ac_exec_ext in '' $ac_executable_extensions; do
5969  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970    ac_cv_prog_have_autoconf="yes"
5971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972    break 2
5973  fi
5974done
5975done
5976
5977  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5978fi
5979fi
5980have_autoconf=$ac_cv_prog_have_autoconf
5981if test -n "$have_autoconf"; then
5982  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5983echo "${ECHO_T}$have_autoconf" >&6
5984else
5985  echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6
5987fi
5988
5989    if test $have_autoconf = no; then
5990      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5991echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5992   { (exit 1); exit 1; }; }
5993    fi
5994
5995    # Check whether autoconf is the correct version
5996    correct_version='2.59'
5997    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5998    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5999echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6000    autoconf --version > confauto.out 2>&1
6001    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6002      echo "$as_me:$LINENO: result: yes" >&5
6003echo "${ECHO_T}yes" >&6
6004    else
6005      rm -f confauto.out
6006      echo "$as_me:$LINENO: result: no" >&5
6007echo "${ECHO_T}no" >&6
6008      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6009echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6010   { (exit 1); exit 1; }; }
6011    fi
6012    rm -f confauto.out
6013
6014    # Check if the executable autoconf is picked up from the correct location
6015    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6016echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6017    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6018    autoconf_dir=`cd $autoconf_dir; pwd`
6019    if test x$AUTOTOOLS_DIR = x; then
6020      want_dir=$AUTOTOOLS_DFLT/bin
6021    else
6022      want_dir=$AUTOTOOLS_DIR/bin
6023    fi
6024    if test $autoconf_dir = `cd $want_dir; pwd`; then
6025      echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6
6027    else
6028      rm -f confauto.out
6029      echo "$as_me:$LINENO: result: no" >&5
6030echo "${ECHO_T}no" >&6
6031      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6032echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6033   { (exit 1); exit 1; }; }
6034    fi
6035
6036    # Check if we have automake
6037    # Extract the first word of "automake", so it can be a program name with args.
6038set dummy automake; ac_word=$2
6039echo "$as_me:$LINENO: checking for $ac_word" >&5
6040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6041if test "${ac_cv_prog_have_automake+set}" = set; then
6042  echo $ECHO_N "(cached) $ECHO_C" >&6
6043else
6044  if test -n "$have_automake"; then
6045  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6046else
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050  IFS=$as_save_IFS
6051  test -z "$as_dir" && as_dir=.
6052  for ac_exec_ext in '' $ac_executable_extensions; do
6053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6054    ac_cv_prog_have_automake="yes"
6055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056    break 2
6057  fi
6058done
6059done
6060
6061  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6062fi
6063fi
6064have_automake=$ac_cv_prog_have_automake
6065if test -n "$have_automake"; then
6066  echo "$as_me:$LINENO: result: $have_automake" >&5
6067echo "${ECHO_T}$have_automake" >&6
6068else
6069  echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6
6071fi
6072
6073    if test $have_automake = no; then
6074      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6075echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6076   { (exit 1); exit 1; }; }
6077    fi
6078
6079    # Check whether automake is the correct version
6080    correct_version='1.9.6'
6081    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6082    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6083echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6084    automake --version > confauto.out 2>&1
6085    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6086      echo "$as_me:$LINENO: result: yes" >&5
6087echo "${ECHO_T}yes" >&6
6088    else
6089      rm -f confauto.out
6090      echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6
6092      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6093echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6094   { (exit 1); exit 1; }; }
6095    fi
6096    rm -f confauto.out
6097
6098    # Check if the executable automake is picked up from the correct location
6099    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6100echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6101    automake_dir=`which automake | sed -e 's=/automake=='`
6102    automake_dir=`cd $automake_dir; pwd`
6103    if test x$AUTOTOOLS_DIR = x; then
6104      want_dir=$AUTOTOOLS_DFLT/bin
6105    else
6106      want_dir=$AUTOTOOLS_DIR/bin
6107    fi
6108    if test $automake_dir = `cd $want_dir; pwd`; then
6109      echo "$as_me:$LINENO: result: yes" >&5
6110echo "${ECHO_T}yes" >&6
6111    else
6112      rm -f confauto.out
6113      echo "$as_me:$LINENO: result: no" >&5
6114echo "${ECHO_T}no" >&6
6115      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6116echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6117   { (exit 1); exit 1; }; }
6118    fi
6119
6120    # Check if this is the correct version of libtool (with escaped dots)
6121    if test x$AUTOTOOLS_DIR = x; then
6122      want_dir=$AUTOTOOLS_DFLT/share
6123    else
6124      want_dir=$AUTOTOOLS_DIR/share
6125    fi
6126    correct_version='1.5.22'
6127    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6128    if test -r $want_dir/libtool/ltmain.sh; then
6129  have_ltmain=yes
6130  :
6131else
6132  have_ltmain=no
6133  :
6134fi
6135
6136    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6137echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6138    if test $have_ltmain = yes; then
6139    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6140        echo "$as_me:$LINENO: result: yes" >&5
6141echo "${ECHO_T}yes" >&6
6142      else
6143        echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6146echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6147   { (exit 1); exit 1; }; }
6148      fi
6149    else
6150      echo "$as_me:$LINENO: result: no" >&5
6151echo "${ECHO_T}no" >&6
6152      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6153echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6154   { (exit 1); exit 1; }; }
6155    fi
6156  fi
6157
6158  # Check if we can find the libtool file
6159  if test x$AUTOTOOLS_DIR = x; then
6160    want_dir=$AUTOTOOLS_DFLT/share
6161  else
6162    want_dir=$AUTOTOOLS_DIR/share
6163  fi
6164  if test -r $want_dir/aclocal/libtool.m4; then
6165  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6166  :
6167else
6168  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6169echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6170   { (exit 1); exit 1; }; }
6171  :
6172fi
6173
6174
6175  # Check if we have an Externals file
6176  if test -r $srcdir/Externals; then
6177    coin_have_externals=yes
6178  fi
6179  # Check if subversion is installed and understands https
6180  # Extract the first word of "svn", so it can be a program name with args.
6181set dummy svn; ac_word=$2
6182echo "$as_me:$LINENO: checking for $ac_word" >&5
6183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6184if test "${ac_cv_prog_have_svn+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187  if test -n "$have_svn"; then
6188  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6189else
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193  IFS=$as_save_IFS
6194  test -z "$as_dir" && as_dir=.
6195  for ac_exec_ext in '' $ac_executable_extensions; do
6196  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197    ac_cv_prog_have_svn="yes"
6198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199    break 2
6200  fi
6201done
6202done
6203
6204  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6205fi
6206fi
6207have_svn=$ac_cv_prog_have_svn
6208if test -n "$have_svn"; then
6209  echo "$as_me:$LINENO: result: $have_svn" >&5
6210echo "${ECHO_T}$have_svn" >&6
6211else
6212  echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6
6214fi
6215
6216  if test x$have_svn = xyes; then
6217    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6218echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6219if test "${ac_cv_svn_understands_https+set}" = set; then
6220  echo $ECHO_N "(cached) $ECHO_C" >&6
6221else
6222  svn --version > confauto.out 2>&1
6223                    if $EGREP https confauto.out >/dev/null 2>&1; then
6224                      ac_cv_svn_understands_https=yes
6225                    else
6226                      ac_cv_svn_understands_https=no
6227                      have_svn=no
6228                      ac_cv_prog_have_svn=no
6229                    fi
6230                    rm -f confauto.out
6231fi
6232echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6233echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6234  fi
6235
6236  # Find the location of the BuildTools directory
6237  BUILDTOOLSDIR=
6238  if test -r $srcdir/BuildTools/coin.m4; then
6239    BUILDTOOLSDIR=$srcdir/BuildTools
6240  else
6241    if test -r $srcdir/../BuildTools/coin.m4; then
6242      BUILDTOOLSDIR=$srcdir/../BuildTools
6243    else
6244      if test -r $srcdir/../../BuildTools/coin.m4; then
6245        BUILDTOOLSDIR=$srcdir/../../BuildTools
6246      else
6247        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6248echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6249   { (exit 1); exit 1; }; }
6250      fi
6251    fi
6252  fi
6253
6254
6255  # The following variable is set to the name of the directory where
6256  # the autotool scripts are located
6257
6258  AUX_DIR=$ac_aux_dir
6259fi
6260
6261# helpful variable for the base directory of this package
6262abs_source_dir=`cd $srcdir; pwd`
6263
6264
6265# Stuff for example Makefiles
6266if test x$prefix = xNONE; then
6267  full_prefix=$ac_default_prefix
6268else
6269  full_prefix=$prefix
6270fi
6271full_prefix=`cd $full_prefix ; pwd`
6272
6273abs_lib_dir=$full_prefix/lib
6274
6275abs_include_dir=$full_prefix/include
6276
6277abs_bin_dir=$full_prefix/bin
6278
6279
6280
6281if test $coin_have_externals = yes && test x$have_svn = xyes; then
6282  HAVE_EXTERNALS_TRUE=
6283  HAVE_EXTERNALS_FALSE='#'
6284else
6285  HAVE_EXTERNALS_TRUE='#'
6286  HAVE_EXTERNALS_FALSE=
6287fi
6288
6289
6290# AC_MSG_NOTICE([End automake initialisation.])
6291
6292
6293
6294LIBTOOL=
6295if test -r ../libtool; then
6296  coin_config_dir=..
6297  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6298fi
6299if test "x$LIBTOOL" = x; then
6300  if test -r ../../libtool; then
6301    coin_config_dir=../..
6302    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6303  fi
6304fi
6305
6306if test "x$LIBTOOL" = x; then
6307# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6308  # Stuff for libtool
6309  # Check whether --enable-shared or --disable-shared was given.
6310if test "${enable_shared+set}" = set; then
6311  enableval="$enable_shared"
6312  p=${PACKAGE-default}
6313    case $enableval in
6314    yes) enable_shared=yes ;;
6315    no) enable_shared=no ;;
6316    *)
6317      enable_shared=no
6318      # Look at the argument we got.  We use all the common list separators.
6319      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6320      for pkg in $enableval; do
6321        IFS="$lt_save_ifs"
6322        if test "X$pkg" = "X$p"; then
6323          enable_shared=yes
6324        fi
6325      done
6326      IFS="$lt_save_ifs"
6327      ;;
6328    esac
6329else
6330  enable_shared=yes
6331fi;
6332
6333# Check whether --enable-fast-install or --disable-fast-install was given.
6334if test "${enable_fast_install+set}" = set; then
6335  enableval="$enable_fast_install"
6336  p=${PACKAGE-default}
6337    case $enableval in
6338    yes) enable_fast_install=yes ;;
6339    no) enable_fast_install=no ;;
6340    *)
6341      enable_fast_install=no
6342      # Look at the argument we got.  We use all the common list separators.
6343      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6344      for pkg in $enableval; do
6345        IFS="$lt_save_ifs"
6346        if test "X$pkg" = "X$p"; then
6347          enable_fast_install=yes
6348        fi
6349      done
6350      IFS="$lt_save_ifs"
6351      ;;
6352    esac
6353else
6354  enable_fast_install=yes
6355fi;
6356
6357echo "$as_me:$LINENO: checking host system type" >&5
6358echo $ECHO_N "checking host system type... $ECHO_C" >&6
6359if test "${ac_cv_host+set}" = set; then
6360  echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362  ac_cv_host_alias=$host_alias
6363test -z "$ac_cv_host_alias" &&
6364  ac_cv_host_alias=$ac_cv_build_alias
6365ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6366  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6367echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6368   { (exit 1); exit 1; }; }
6369
6370fi
6371echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6372echo "${ECHO_T}$ac_cv_host" >&6
6373host=$ac_cv_host
6374host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6375host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6376host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6377
6378
6379echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6380echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6381if test "${lt_cv_path_SED+set}" = set; then
6382  echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384  # Loop through the user's path and test for sed and gsed.
6385# Then use that list of sed's as ones to test for truncation.
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389  IFS=$as_save_IFS
6390  test -z "$as_dir" && as_dir=.
6391  for lt_ac_prog in sed gsed; do
6392    for ac_exec_ext in '' $ac_executable_extensions; do
6393      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6394        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6395      fi
6396    done
6397  done
6398done
6399lt_ac_max=0
6400lt_ac_count=0
6401# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6402# along with /bin/sed that truncates output.
6403for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6404  test ! -f $lt_ac_sed && continue
6405  cat /dev/null > conftest.in
6406  lt_ac_count=0
6407  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6408  # Check for GNU sed and select it if it is found.
6409  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6410    lt_cv_path_SED=$lt_ac_sed
6411    break
6412  fi
6413  while true; do
6414    cat conftest.in conftest.in >conftest.tmp
6415    mv conftest.tmp conftest.in
6416    cp conftest.in conftest.nl
6417    echo >>conftest.nl
6418    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6419    cmp -s conftest.out conftest.nl || break
6420    # 10000 chars as input seems more than enough
6421    test $lt_ac_count -gt 10 && break
6422    lt_ac_count=`expr $lt_ac_count + 1`
6423    if test $lt_ac_count -gt $lt_ac_max; then
6424      lt_ac_max=$lt_ac_count
6425      lt_cv_path_SED=$lt_ac_sed
6426    fi
6427  done
6428done
6429
6430fi
6431
6432SED=$lt_cv_path_SED
6433echo "$as_me:$LINENO: result: $SED" >&5
6434echo "${ECHO_T}$SED" >&6
6435
6436
6437# Check whether --with-gnu-ld or --without-gnu-ld was given.
6438if test "${with_gnu_ld+set}" = set; then
6439  withval="$with_gnu_ld"
6440  test "$withval" = no || with_gnu_ld=yes
6441else
6442  with_gnu_ld=no
6443fi;
6444ac_prog=ld
6445if test "$GCC" = yes; then
6446  # Check if gcc -print-prog-name=ld gives a path.
6447  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6448echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6449  case $host in
6450  *-*-mingw*)
6451    # gcc leaves a trailing carriage return which upsets mingw
6452    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6453  *)
6454    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6455  esac
6456  case $ac_prog in
6457    # Accept absolute paths.
6458    [\\/]* | ?:[\\/]*)
6459      re_direlt='/[^/][^/]*/\.\./'
6460      # Canonicalize the pathname of ld
6461      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6462      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6463        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6464      done
6465      test -z "$LD" && LD="$ac_prog"
6466      ;;
6467  "")
6468    # If it fails, then pretend we aren't using GCC.
6469    ac_prog=ld
6470    ;;
6471  *)
6472    # If it is relative, then search for the first ld in PATH.
6473    with_gnu_ld=unknown
6474    ;;
6475  esac
6476elif test "$with_gnu_ld" = yes; then
6477  echo "$as_me:$LINENO: checking for GNU ld" >&5
6478echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6479else
6480  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6481echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6482fi
6483if test "${lt_cv_path_LD+set}" = set; then
6484  echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486  if test -z "$LD"; then
6487  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6488  for ac_dir in $PATH; do
6489    IFS="$lt_save_ifs"
6490    test -z "$ac_dir" && ac_dir=.
6491    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6492      lt_cv_path_LD="$ac_dir/$ac_prog"
6493      # Check to see if the program is GNU ld.  I'd rather use --version,
6494      # but apparently some variants of GNU ld only accept -v.
6495      # Break only if it was the GNU/non-GNU ld that we prefer.
6496      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6497      *GNU* | *'with BFD'*)
6498        test "$with_gnu_ld" != no && break
6499        ;;
6500      *)
6501        test "$with_gnu_ld" != yes && break
6502        ;;
6503      esac
6504    fi
6505  done
6506  IFS="$lt_save_ifs"
6507else
6508  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6509fi
6510fi
6511
6512LD="$lt_cv_path_LD"
6513if test -n "$LD"; then
6514  echo "$as_me:$LINENO: result: $LD" >&5
6515echo "${ECHO_T}$LD" >&6
6516else
6517  echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6
6519fi
6520test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6521echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6522   { (exit 1); exit 1; }; }
6523echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6524echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6525if test "${lt_cv_prog_gnu_ld+set}" = set; then
6526  echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6529case `$LD -v 2>&1 </dev/null` in
6530*GNU* | *'with BFD'*)
6531  lt_cv_prog_gnu_ld=yes
6532  ;;
6533*)
6534  lt_cv_prog_gnu_ld=no
6535  ;;
6536esac
6537fi
6538echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6539echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6540with_gnu_ld=$lt_cv_prog_gnu_ld
6541
6542
6543echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6544echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6545if test "${lt_cv_ld_reload_flag+set}" = set; then
6546  echo $ECHO_N "(cached) $ECHO_C" >&6
6547else
6548  lt_cv_ld_reload_flag='-r'
6549fi
6550echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6551echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6552reload_flag=$lt_cv_ld_reload_flag
6553case $reload_flag in
6554"" | " "*) ;;
6555*) reload_flag=" $reload_flag" ;;
6556esac
6557reload_cmds='$LD$reload_flag -o $output$reload_objs'
6558case $host_os in
6559  darwin*)
6560    if test "$GCC" = yes; then
6561      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6562    else
6563      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6564    fi
6565    ;;
6566esac
6567
6568echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6569echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6570if test "${lt_cv_path_NM+set}" = set; then
6571  echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573  if test -n "$NM"; then
6574  # Let the user override the test.
6575  lt_cv_path_NM="$NM"
6576else
6577  lt_nm_to_check="${ac_tool_prefix}nm"
6578  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6579    lt_nm_to_check="$lt_nm_to_check nm"
6580  fi
6581  for lt_tmp_nm in $lt_nm_to_check; do
6582    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6583    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6584      IFS="$lt_save_ifs"
6585      test -z "$ac_dir" && ac_dir=.
6586      tmp_nm="$ac_dir/$lt_tmp_nm"
6587      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6588        # Check to see if the nm accepts a BSD-compat flag.
6589        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6590        #   nm: unknown option "B" ignored
6591        # Tru64's nm complains that /dev/null is an invalid object file
6592        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6593        */dev/null* | *'Invalid file or object type'*)
6594          lt_cv_path_NM="$tmp_nm -B"
6595          break
6596          ;;
6597        *)
6598          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6599          */dev/null*)
6600            lt_cv_path_NM="$tmp_nm -p"
6601            break
6602            ;;
6603          *)
6604            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6605            continue # so that we can try to find one that supports BSD flags
6606            ;;
6607          esac
6608          ;;
6609        esac
6610      fi
6611    done
6612    IFS="$lt_save_ifs"
6613  done
6614  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6615fi
6616fi
6617echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6618echo "${ECHO_T}$lt_cv_path_NM" >&6
6619NM="$lt_cv_path_NM"
6620
6621echo "$as_me:$LINENO: checking whether ln -s works" >&5
6622echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6623LN_S=$as_ln_s
6624if test "$LN_S" = "ln -s"; then
6625  echo "$as_me:$LINENO: result: yes" >&5
6626echo "${ECHO_T}yes" >&6
6627else
6628  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6629echo "${ECHO_T}no, using $LN_S" >&6
6630fi
6631
6632echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6633echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6634if test "${lt_cv_deplibs_check_method+set}" = set; then
6635  echo $ECHO_N "(cached) $ECHO_C" >&6
6636else
6637  lt_cv_file_magic_cmd='$MAGIC_CMD'
6638lt_cv_file_magic_test_file=
6639lt_cv_deplibs_check_method='unknown'
6640# Need to set the preceding variable on all platforms that support
6641# interlibrary dependencies.
6642# 'none' -- dependencies not supported.
6643# `unknown' -- same as none, but documents that we really don't know.
6644# 'pass_all' -- all dependencies passed with no checks.
6645# 'test_compile' -- check by making test program.
6646# 'file_magic [[regex]]' -- check by looking for files in library path
6647# which responds to the $file_magic_cmd with a given extended regex.
6648# If you have `file' or equivalent on your system and you're not sure
6649# whether `pass_all' will *always* work, you probably want this one.
6650
6651case $host_os in
6652aix4* | aix5*)
6653  lt_cv_deplibs_check_method=pass_all
6654  ;;
6655
6656beos*)
6657  lt_cv_deplibs_check_method=pass_all
6658  ;;
6659
6660bsdi[45]*)
6661  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6662  lt_cv_file_magic_cmd='/usr/bin/file -L'
6663  lt_cv_file_magic_test_file=/shlib/libc.so
6664  ;;
6665
6666cygwin*)
6667  # func_win32_libid is a shell function defined in ltmain.sh
6668  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6669  lt_cv_file_magic_cmd='func_win32_libid'
6670  ;;
6671
6672mingw* | pw32*)
6673  # Base MSYS/MinGW do not provide the 'file' command needed by
6674  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6675  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6676  lt_cv_file_magic_cmd='$OBJDUMP -f'
6677  ;;
6678
6679darwin* | rhapsody*)
6680  lt_cv_deplibs_check_method=pass_all
6681  ;;
6682
6683freebsd* | kfreebsd*-gnu | dragonfly*)
6684  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6685    case $host_cpu in
6686    i*86 )
6687      # Not sure whether the presence of OpenBSD here was a mistake.
6688      # Let's accept both of them until this is cleared up.
6689      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6690      lt_cv_file_magic_cmd=/usr/bin/file
6691      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6692      ;;
6693    esac
6694  else
6695    lt_cv_deplibs_check_method=pass_all
6696  fi
6697  ;;
6698
6699gnu*)
6700  lt_cv_deplibs_check_method=pass_all
6701  ;;
6702
6703hpux10.20* | hpux11*)
6704  lt_cv_file_magic_cmd=/usr/bin/file
6705  case $host_cpu in
6706  ia64*)
6707    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6708    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6709    ;;
6710  hppa*64*)
6711    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]'
6712    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6713    ;;
6714  *)
6715    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6716    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6717    ;;
6718  esac
6719  ;;
6720
6721interix3*)
6722  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6723  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6724  ;;
6725
6726irix5* | irix6* | nonstopux*)
6727  case $LD in
6728  *-32|*"-32 ") libmagic=32-bit;;
6729  *-n32|*"-n32 ") libmagic=N32;;
6730  *-64|*"-64 ") libmagic=64-bit;;
6731  *) libmagic=never-match;;
6732  esac
6733  lt_cv_deplibs_check_method=pass_all
6734  ;;
6735
6736# This must be Linux ELF.
6737linux*)
6738  lt_cv_deplibs_check_method=pass_all
6739  ;;
6740
6741netbsd*)
6742  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6743    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6744  else
6745    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6746  fi
6747  ;;
6748
6749newos6*)
6750  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6751  lt_cv_file_magic_cmd=/usr/bin/file
6752  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6753  ;;
6754
6755nto-qnx*)
6756  lt_cv_deplibs_check_method=unknown
6757  ;;
6758
6759openbsd*)
6760  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6762  else
6763    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6764  fi
6765  ;;
6766
6767osf3* | osf4* | osf5*)
6768  lt_cv_deplibs_check_method=pass_all
6769  ;;
6770
6771solaris*)
6772  lt_cv_deplibs_check_method=pass_all
6773  ;;
6774
6775sysv4 | sysv4.3*)
6776  case $host_vendor in
6777  motorola)
6778    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]'
6779    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6780    ;;
6781  ncr)
6782    lt_cv_deplibs_check_method=pass_all
6783    ;;
6784  sequent)
6785    lt_cv_file_magic_cmd='/bin/file'
6786    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6787    ;;
6788  sni)
6789    lt_cv_file_magic_cmd='/bin/file'
6790    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6791    lt_cv_file_magic_test_file=/lib/libc.so
6792    ;;
6793  siemens)
6794    lt_cv_deplibs_check_method=pass_all
6795    ;;
6796  pc)
6797    lt_cv_deplibs_check_method=pass_all
6798    ;;
6799  esac
6800  ;;
6801
6802sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6803  lt_cv_deplibs_check_method=pass_all
6804  ;;
6805esac
6806
6807fi
6808echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6809echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6810file_magic_cmd=$lt_cv_file_magic_cmd
6811deplibs_check_method=$lt_cv_deplibs_check_method
6812test -z "$deplibs_check_method" && deplibs_check_method=unknown
6813
6814
6815
6816
6817# If no C compiler was specified, use CC.
6818LTCC=${LTCC-"$CC"}
6819
6820# If no C compiler flags were specified, use CFLAGS.
6821LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6822
6823# Allow CC to be a program name with arguments.
6824compiler=$CC
6825
6826# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6827if test "${enable_libtool_lock+set}" = set; then
6828  enableval="$enable_libtool_lock"
6829
6830fi;
6831test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6832
6833# Some flags need to be propagated to the compiler or linker for good
6834# libtool support.
6835case $host in
6836ia64-*-hpux*)
6837  # Find out which ABI we are using.
6838  echo 'int i;' > conftest.$ac_ext
6839  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6840  (eval $ac_compile) 2>&5
6841  ac_status=$?
6842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843  (exit $ac_status); }; then
6844    case `/usr/bin/file conftest.$ac_objext` in
6845    *ELF-32*)
6846      HPUX_IA64_MODE="32"
6847      ;;
6848    *ELF-64*)
6849      HPUX_IA64_MODE="64"
6850      ;;
6851    esac
6852  fi
6853  rm -rf conftest*
6854  ;;
6855*-*-irix6*)
6856  # Find out which ABI we are using.
6857  echo '#line 6857 "configure"' > conftest.$ac_ext
6858  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859  (eval $ac_compile) 2>&5
6860  ac_status=$?
6861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862  (exit $ac_status); }; then
6863   if test "$lt_cv_prog_gnu_ld" = yes; then
6864    case `/usr/bin/file conftest.$ac_objext` in
6865    *32-bit*)
6866      LD="${LD-ld} -melf32bsmip"
6867      ;;
6868    *N32*)
6869      LD="${LD-ld} -melf32bmipn32"
6870      ;;
6871    *64-bit*)
6872      LD="${LD-ld} -melf64bmip"
6873      ;;
6874    esac
6875   else
6876    case `/usr/bin/file conftest.$ac_objext` in
6877    *32-bit*)
6878      LD="${LD-ld} -32"
6879      ;;
6880    *N32*)
6881      LD="${LD-ld} -n32"
6882      ;;
6883    *64-bit*)
6884      LD="${LD-ld} -64"
6885      ;;
6886    esac
6887   fi
6888  fi
6889  rm -rf conftest*
6890  ;;
6891
6892x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6893  # Find out which ABI we are using.
6894  echo 'int i;' > conftest.$ac_ext
6895  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896  (eval $ac_compile) 2>&5
6897  ac_status=$?
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); }; then
6900    case `/usr/bin/file conftest.o` in
6901    *32-bit*)
6902      case $host in
6903        x86_64-*linux*)
6904          LD="${LD-ld} -m elf_i386"
6905          ;;
6906        ppc64-*linux*|powerpc64-*linux*)
6907          LD="${LD-ld} -m elf32ppclinux"
6908          ;;
6909        s390x-*linux*)
6910          LD="${LD-ld} -m elf_s390"
6911          ;;
6912        sparc64-*linux*)
6913          LD="${LD-ld} -m elf32_sparc"
6914          ;;
6915      esac
6916      ;;
6917    *64-bit*)
6918      case $host in
6919        x86_64-*linux*)
6920          LD="${LD-ld} -m elf_x86_64"
6921          ;;
6922        ppc*-*linux*|powerpc*-*linux*)
6923          LD="${LD-ld} -m elf64ppc"
6924          ;;
6925        s390*-*linux*)
6926          LD="${LD-ld} -m elf64_s390"
6927          ;;
6928        sparc*-*linux*)
6929          LD="${LD-ld} -m elf64_sparc"
6930          ;;
6931      esac
6932      ;;
6933    esac
6934  fi
6935  rm -rf conftest*
6936  ;;
6937
6938*-*-sco3.2v5*)
6939  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6940  SAVE_CFLAGS="$CFLAGS"
6941  CFLAGS="$CFLAGS -belf"
6942  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6943echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6944if test "${lt_cv_cc_needs_belf+set}" = set; then
6945  echo $ECHO_N "(cached) $ECHO_C" >&6
6946else
6947  ac_ext=c
6948ac_cpp='$CPP $CPPFLAGS'
6949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
6953     cat >conftest.$ac_ext <<_ACEOF
6954/* confdefs.h.  */
6955_ACEOF
6956cat confdefs.h >>conftest.$ac_ext
6957cat >>conftest.$ac_ext <<_ACEOF
6958/* end confdefs.h.  */
6959
6960int
6961main ()
6962{
6963
6964  ;
6965  return 0;
6966}
6967_ACEOF
6968rm -f conftest.$ac_objext conftest$ac_exeext
6969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970  (eval $ac_link) 2>conftest.er1
6971  ac_status=$?
6972  grep -v '^ *+' conftest.er1 >conftest.err
6973  rm -f conftest.er1
6974  cat conftest.err >&5
6975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976  (exit $ac_status); } &&
6977         { ac_try='test -z "$ac_c_werror_flag"
6978                         || test ! -s conftest.err'
6979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980  (eval $ac_try) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); }; } &&
6984         { ac_try='test -s conftest$ac_exeext'
6985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986  (eval $ac_try) 2>&5
6987  ac_status=$?
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); }; }; then
6990  lt_cv_cc_needs_belf=yes
6991else
6992  echo "$as_me: failed program was:" >&5
6993sed 's/^/| /' conftest.$ac_ext >&5
6994
6995lt_cv_cc_needs_belf=no
6996fi
6997rm -f conftest.err conftest.$ac_objext \
6998      conftest$ac_exeext conftest.$ac_ext
6999     ac_ext=c
7000ac_cpp='$CPP $CPPFLAGS'
7001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003ac_compiler_gnu=$ac_cv_c_compiler_gnu
7004
7005fi
7006echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7007echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7008  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7009    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7010    CFLAGS="$SAVE_CFLAGS"
7011  fi
7012  ;;
7013sparc*-*solaris*)
7014  # Find out which ABI we are using.
7015  echo 'int i;' > conftest.$ac_ext
7016  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7017  (eval $ac_compile) 2>&5
7018  ac_status=$?
7019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020  (exit $ac_status); }; then
7021    case `/usr/bin/file conftest.o` in
7022    *64-bit*)
7023      case $lt_cv_prog_gnu_ld in
7024      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7025      *)    LD="${LD-ld} -64" ;;
7026      esac
7027      ;;
7028    esac
7029  fi
7030  rm -rf conftest*
7031  ;;
7032
7033
7034esac
7035
7036need_locks="$enable_libtool_lock"
7037
7038
7039ac_ext=c
7040ac_cpp='$CPP $CPPFLAGS'
7041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043ac_compiler_gnu=$ac_cv_c_compiler_gnu
7044echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7045echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7046# On Suns, sometimes $CPP names a directory.
7047if test -n "$CPP" && test -d "$CPP"; then
7048  CPP=
7049fi
7050if test -z "$CPP"; then
7051  if test "${ac_cv_prog_CPP+set}" = set; then
7052  echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054      # Double quotes because CPP needs to be expanded
7055    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7056    do
7057      ac_preproc_ok=false
7058for ac_c_preproc_warn_flag in '' yes
7059do
7060  # Use a header file that comes with gcc, so configuring glibc
7061  # with a fresh cross-compiler works.
7062  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7063  # <limits.h> exists even on freestanding compilers.
7064  # On the NeXT, cc -E runs the code through the compiler's parser,
7065  # not just through cpp. "Syntax error" is here to catch this case.
7066  cat >conftest.$ac_ext <<_ACEOF
7067/* confdefs.h.  */
7068_ACEOF
7069cat confdefs.h >>conftest.$ac_ext
7070cat >>conftest.$ac_ext <<_ACEOF
7071/* end confdefs.h.  */
7072#ifdef __STDC__
7073# include <limits.h>
7074#else
7075# include <assert.h>
7076#endif
7077                     Syntax error
7078_ACEOF
7079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7080  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7081  ac_status=$?
7082  grep -v '^ *+' conftest.er1 >conftest.err
7083  rm -f conftest.er1
7084  cat conftest.err >&5
7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086  (exit $ac_status); } >/dev/null; then
7087  if test -s conftest.err; then
7088    ac_cpp_err=$ac_c_preproc_warn_flag
7089    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7090  else
7091    ac_cpp_err=
7092  fi
7093else
7094  ac_cpp_err=yes
7095fi
7096if test -z "$ac_cpp_err"; then
7097  :
7098else
7099  echo "$as_me: failed program was:" >&5
7100sed 's/^/| /' conftest.$ac_ext >&5
7101
7102  # Broken: fails on valid input.
7103continue
7104fi
7105rm -f conftest.err conftest.$ac_ext
7106
7107  # OK, works on sane cases.  Now check whether non-existent headers
7108  # can be detected and how.
7109  cat >conftest.$ac_ext <<_ACEOF
7110/* confdefs.h.  */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h.  */
7115#include <ac_nonexistent.h>
7116_ACEOF
7117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7118  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7119  ac_status=$?
7120  grep -v '^ *+' conftest.er1 >conftest.err
7121  rm -f conftest.er1
7122  cat conftest.err >&5
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); } >/dev/null; then
7125  if test -s conftest.err; then
7126    ac_cpp_err=$ac_c_preproc_warn_flag
7127    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7128  else
7129    ac_cpp_err=
7130  fi
7131else
7132  ac_cpp_err=yes
7133fi
7134if test -z "$ac_cpp_err"; then
7135  # Broken: success on invalid input.
7136continue
7137else
7138  echo "$as_me: failed program was:" >&5
7139sed 's/^/| /' conftest.$ac_ext >&5
7140
7141  # Passes both tests.
7142ac_preproc_ok=:
7143break
7144fi
7145rm -f conftest.err conftest.$ac_ext
7146
7147done
7148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7149rm -f conftest.err conftest.$ac_ext
7150if $ac_preproc_ok; then
7151  break
7152fi
7153
7154    done
7155    ac_cv_prog_CPP=$CPP
7156
7157fi
7158  CPP=$ac_cv_prog_CPP
7159else
7160  ac_cv_prog_CPP=$CPP
7161fi
7162echo "$as_me:$LINENO: result: $CPP" >&5
7163echo "${ECHO_T}$CPP" >&6
7164ac_preproc_ok=false
7165for ac_c_preproc_warn_flag in '' yes
7166do
7167  # Use a header file that comes with gcc, so configuring glibc
7168  # with a fresh cross-compiler works.
7169  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7170  # <limits.h> exists even on freestanding compilers.
7171  # On the NeXT, cc -E runs the code through the compiler's parser,
7172  # not just through cpp. "Syntax error" is here to catch this case.
7173  cat >conftest.$ac_ext <<_ACEOF
7174/* confdefs.h.  */
7175_ACEOF
7176cat confdefs.h >>conftest.$ac_ext
7177cat >>conftest.$ac_ext <<_ACEOF
7178/* end confdefs.h.  */
7179#ifdef __STDC__
7180# include <limits.h>
7181#else
7182# include <assert.h>
7183#endif
7184                     Syntax error
7185_ACEOF
7186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7187  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7188  ac_status=$?
7189  grep -v '^ *+' conftest.er1 >conftest.err
7190  rm -f conftest.er1
7191  cat conftest.err >&5
7192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193  (exit $ac_status); } >/dev/null; then
7194  if test -s conftest.err; then
7195    ac_cpp_err=$ac_c_preproc_warn_flag
7196    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7197  else
7198    ac_cpp_err=
7199  fi
7200else
7201  ac_cpp_err=yes
7202fi
7203if test -z "$ac_cpp_err"; then
7204  :
7205else
7206  echo "$as_me: failed program was:" >&5
7207sed 's/^/| /' conftest.$ac_ext >&5
7208
7209  # Broken: fails on valid input.
7210continue
7211fi
7212rm -f conftest.err conftest.$ac_ext
7213
7214  # OK, works on sane cases.  Now check whether non-existent headers
7215  # can be detected and how.
7216  cat >conftest.$ac_ext <<_ACEOF
7217/* confdefs.h.  */
7218_ACEOF
7219cat confdefs.h >>conftest.$ac_ext
7220cat >>conftest.$ac_ext <<_ACEOF
7221/* end confdefs.h.  */
7222#include <ac_nonexistent.h>
7223_ACEOF
7224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7225  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7226  ac_status=$?
7227  grep -v '^ *+' conftest.er1 >conftest.err
7228  rm -f conftest.er1
7229  cat conftest.err >&5
7230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231  (exit $ac_status); } >/dev/null; then
7232  if test -s conftest.err; then
7233    ac_cpp_err=$ac_c_preproc_warn_flag
7234    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7235  else
7236    ac_cpp_err=
7237  fi
7238else
7239  ac_cpp_err=yes
7240fi
7241if test -z "$ac_cpp_err"; then
7242  # Broken: success on invalid input.
7243continue
7244else
7245  echo "$as_me: failed program was:" >&5
7246sed 's/^/| /' conftest.$ac_ext >&5
7247
7248  # Passes both tests.
7249ac_preproc_ok=:
7250break
7251fi
7252rm -f conftest.err conftest.$ac_ext
7253
7254done
7255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7256rm -f conftest.err conftest.$ac_ext
7257if $ac_preproc_ok; then
7258  :
7259else
7260  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7261See \`config.log' for more details." >&5
7262echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7263See \`config.log' for more details." >&2;}
7264   { (exit 1); exit 1; }; }
7265fi
7266
7267ac_ext=c
7268ac_cpp='$CPP $CPPFLAGS'
7269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271ac_compiler_gnu=$ac_cv_c_compiler_gnu
7272
7273
7274echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7275echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7276if test "${ac_cv_header_stdc+set}" = set; then
7277  echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279  cat >conftest.$ac_ext <<_ACEOF
7280/* confdefs.h.  */
7281_ACEOF
7282cat confdefs.h >>conftest.$ac_ext
7283cat >>conftest.$ac_ext <<_ACEOF
7284/* end confdefs.h.  */
7285#include <stdlib.h>
7286#include <stdarg.h>
7287#include <string.h>
7288#include <float.h>
7289
7290int
7291main ()
7292{
7293
7294  ;
7295  return 0;
7296}
7297_ACEOF
7298rm -f conftest.$ac_objext
7299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7300  (eval $ac_compile) 2>conftest.er1
7301  ac_status=$?
7302  grep -v '^ *+' conftest.er1 >conftest.err
7303  rm -f conftest.er1
7304  cat conftest.err >&5
7305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306  (exit $ac_status); } &&
7307         { ac_try='test -z "$ac_c_werror_flag"
7308                         || test ! -s conftest.err'
7309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310  (eval $ac_try) 2>&5
7311  ac_status=$?
7312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313  (exit $ac_status); }; } &&
7314         { ac_try='test -s conftest.$ac_objext'
7315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316  (eval $ac_try) 2>&5
7317  ac_status=$?
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); }; }; then
7320  ac_cv_header_stdc=yes
7321else
7322  echo "$as_me: failed program was:" >&5
7323sed 's/^/| /' conftest.$ac_ext >&5
7324
7325ac_cv_header_stdc=no
7326fi
7327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328
7329if test $ac_cv_header_stdc = yes; then
7330  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7331  cat >conftest.$ac_ext <<_ACEOF
7332/* confdefs.h.  */
7333_ACEOF
7334cat confdefs.h >>conftest.$ac_ext
7335cat >>conftest.$ac_ext <<_ACEOF
7336/* end confdefs.h.  */
7337#include <string.h>
7338
7339_ACEOF
7340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7341  $EGREP "memchr" >/dev/null 2>&1; then
7342  :
7343else
7344  ac_cv_header_stdc=no
7345fi
7346rm -f conftest*
7347
7348fi
7349
7350if test $ac_cv_header_stdc = yes; then
7351  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7352  cat >conftest.$ac_ext <<_ACEOF
7353/* confdefs.h.  */
7354_ACEOF
7355cat confdefs.h >>conftest.$ac_ext
7356cat >>conftest.$ac_ext <<_ACEOF
7357/* end confdefs.h.  */
7358#include <stdlib.h>
7359
7360_ACEOF
7361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7362  $EGREP "free" >/dev/null 2>&1; then
7363  :
7364else
7365  ac_cv_header_stdc=no
7366fi
7367rm -f conftest*
7368
7369fi
7370
7371if test $ac_cv_header_stdc = yes; then
7372  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7373  if test "$cross_compiling" = yes; then
7374  :
7375else
7376  cat >conftest.$ac_ext <<_ACEOF
7377/* confdefs.h.  */
7378_ACEOF
7379cat confdefs.h >>conftest.$ac_ext
7380cat >>conftest.$ac_ext <<_ACEOF
7381/* end confdefs.h.  */
7382#include <ctype.h>
7383#if ((' ' & 0x0FF) == 0x020)
7384# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7385# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7386#else
7387# define ISLOWER(c) \
7388                   (('a' <= (c) && (c) <= 'i') \
7389                     || ('j' <= (c) && (c) <= 'r') \
7390                     || ('s' <= (c) && (c) <= 'z'))
7391# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7392#endif
7393
7394#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7395int
7396main ()
7397{
7398  int i;
7399  for (i = 0; i < 256; i++)
7400    if (XOR (islower (i), ISLOWER (i))
7401        || toupper (i) != TOUPPER (i))
7402      exit(2);
7403  exit (0);
7404}
7405_ACEOF
7406rm -f conftest$ac_exeext
7407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408  (eval $ac_link) 2>&5
7409  ac_status=$?
7410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413  (eval $ac_try) 2>&5
7414  ac_status=$?
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); }; }; then
7417  :
7418else
7419  echo "$as_me: program exited with status $ac_status" >&5
7420echo "$as_me: failed program was:" >&5
7421sed 's/^/| /' conftest.$ac_ext >&5
7422
7423( exit $ac_status )
7424ac_cv_header_stdc=no
7425fi
7426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7427fi
7428fi
7429fi
7430echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7431echo "${ECHO_T}$ac_cv_header_stdc" >&6
7432if test $ac_cv_header_stdc = yes; then
7433
7434cat >>confdefs.h <<\_ACEOF
7435#define STDC_HEADERS 1
7436_ACEOF
7437
7438fi
7439
7440# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7451                  inttypes.h stdint.h unistd.h
7452do
7453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7454echo "$as_me:$LINENO: checking for $ac_header" >&5
7455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  cat >conftest.$ac_ext <<_ACEOF
7460/* confdefs.h.  */
7461_ACEOF
7462cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h.  */
7465$ac_includes_default
7466
7467#include <$ac_header>
7468_ACEOF
7469rm -f conftest.$ac_objext
7470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7471  (eval $ac_compile) 2>conftest.er1
7472  ac_status=$?
7473  grep -v '^ *+' conftest.er1 >conftest.err
7474  rm -f conftest.er1
7475  cat conftest.err >&5
7476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477  (exit $ac_status); } &&
7478         { ac_try='test -z "$ac_c_werror_flag"
7479                         || test ! -s conftest.err'
7480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481  (eval $ac_try) 2>&5
7482  ac_status=$?
7483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484  (exit $ac_status); }; } &&
7485         { ac_try='test -s conftest.$ac_objext'
7486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487  (eval $ac_try) 2>&5
7488  ac_status=$?
7489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490  (exit $ac_status); }; }; then
7491  eval "$as_ac_Header=yes"
7492else
7493  echo "$as_me: failed program was:" >&5
7494sed 's/^/| /' conftest.$ac_ext >&5
7495
7496eval "$as_ac_Header=no"
7497fi
7498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7499fi
7500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7502if test `eval echo '${'$as_ac_Header'}'` = yes; then
7503  cat >>confdefs.h <<_ACEOF
7504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7505_ACEOF
7506
7507fi
7508
7509done
7510
7511
7512
7513for ac_header in dlfcn.h
7514do
7515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7516if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517  echo "$as_me:$LINENO: checking for $ac_header" >&5
7518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7519if eval "test \"\${$as_ac_Header+set}\" = set"; then
7520  echo $ECHO_N "(cached) $ECHO_C" >&6
7521fi
7522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7524else
7525  # Is the header compilable?
7526echo "$as_me:$LINENO: checking $ac_header usability" >&5
7527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7528cat >conftest.$ac_ext <<_ACEOF
7529/* confdefs.h.  */
7530_ACEOF
7531cat confdefs.h >>conftest.$ac_ext
7532cat >>conftest.$ac_ext <<_ACEOF
7533/* end confdefs.h.  */
7534$ac_includes_default
7535#include <$ac_header>
7536_ACEOF
7537rm -f conftest.$ac_objext
7538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539  (eval $ac_compile) 2>conftest.er1
7540  ac_status=$?
7541  grep -v '^ *+' conftest.er1 >conftest.err
7542  rm -f conftest.er1
7543  cat conftest.err >&5
7544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545  (exit $ac_status); } &&
7546         { ac_try='test -z "$ac_c_werror_flag"
7547                         || test ! -s conftest.err'
7548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549  (eval $ac_try) 2>&5
7550  ac_status=$?
7551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552  (exit $ac_status); }; } &&
7553         { ac_try='test -s conftest.$ac_objext'
7554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555  (eval $ac_try) 2>&5
7556  ac_status=$?
7557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558  (exit $ac_status); }; }; then
7559  ac_header_compiler=yes
7560else
7561  echo "$as_me: failed program was:" >&5
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
7564ac_header_compiler=no
7565fi
7566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7568echo "${ECHO_T}$ac_header_compiler" >&6
7569
7570# Is the header present?
7571echo "$as_me:$LINENO: checking $ac_header presence" >&5
7572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7573cat >conftest.$ac_ext <<_ACEOF
7574/* confdefs.h.  */
7575_ACEOF
7576cat confdefs.h >>conftest.$ac_ext
7577cat >>conftest.$ac_ext <<_ACEOF
7578/* end confdefs.h.  */
7579#include <$ac_header>
7580_ACEOF
7581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7582  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7583  ac_status=$?
7584  grep -v '^ *+' conftest.er1 >conftest.err
7585  rm -f conftest.er1
7586  cat conftest.err >&5
7587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588  (exit $ac_status); } >/dev/null; then
7589  if test -s conftest.err; then
7590    ac_cpp_err=$ac_c_preproc_warn_flag
7591    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7592  else
7593    ac_cpp_err=
7594  fi
7595else
7596  ac_cpp_err=yes
7597fi
7598if test -z "$ac_cpp_err"; then
7599  ac_header_preproc=yes
7600else
7601  echo "$as_me: failed program was:" >&5
7602sed 's/^/| /' conftest.$ac_ext >&5
7603
7604  ac_header_preproc=no
7605fi
7606rm -f conftest.err conftest.$ac_ext
7607echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7608echo "${ECHO_T}$ac_header_preproc" >&6
7609
7610# So?  What about this header?
7611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7612  yes:no: )
7613    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7615    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7617    ac_header_preproc=yes
7618    ;;
7619  no:yes:* )
7620    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7622    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7623echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7624    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7626    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7627echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7628    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7630    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7632    (
7633      cat <<\_ASBOX
7634## --------------------------------- ##
7635## Report this to belotti@lehigh.edu ##
7636## --------------------------------- ##
7637_ASBOX
7638    ) |
7639      sed "s/^/$as_me: WARNING:     /" >&2
7640    ;;
7641esac
7642echo "$as_me:$LINENO: checking for $ac_header" >&5
7643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7644if eval "test \"\${$as_ac_Header+set}\" = set"; then
7645  echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647  eval "$as_ac_Header=\$ac_header_preproc"
7648fi
7649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7651
7652fi
7653if test `eval echo '${'$as_ac_Header'}'` = yes; then
7654  cat >>confdefs.h <<_ACEOF
7655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7656_ACEOF
7657
7658fi
7659
7660done
7661
7662
7663
7664if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7665    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7666    (test "X$CXX" != "Xg++"))) ; then
7667  ac_ext=cc
7668ac_cpp='$CXXCPP $CPPFLAGS'
7669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7672echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7673echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7674if test -z "$CXXCPP"; then
7675  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7676  echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678      # Double quotes because CXXCPP needs to be expanded
7679    for CXXCPP in "$CXX -E" "/lib/cpp"
7680    do
7681      ac_preproc_ok=false
7682for ac_cxx_preproc_warn_flag in '' yes
7683do
7684  # Use a header file that comes with gcc, so configuring glibc
7685  # with a fresh cross-compiler works.
7686  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7687  # <limits.h> exists even on freestanding compilers.
7688  # On the NeXT, cc -E runs the code through the compiler's parser,
7689  # not just through cpp. "Syntax error" is here to catch this case.
7690  cat >conftest.$ac_ext <<_ACEOF
7691/* confdefs.h.  */
7692_ACEOF
7693cat confdefs.h >>conftest.$ac_ext
7694cat >>conftest.$ac_ext <<_ACEOF
7695/* end confdefs.h.  */
7696#ifdef __STDC__
7697# include <limits.h>
7698#else
7699# include <assert.h>
7700#endif
7701                     Syntax error
7702_ACEOF
7703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7704  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7705  ac_status=$?
7706  grep -v '^ *+' conftest.er1 >conftest.err
7707  rm -f conftest.er1
7708  cat conftest.err >&5
7709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710  (exit $ac_status); } >/dev/null; then
7711  if test -s conftest.err; then
7712    ac_cpp_err=$ac_cxx_preproc_warn_flag
7713    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7714  else
7715    ac_cpp_err=
7716  fi
7717else
7718  ac_cpp_err=yes
7719fi
7720if test -z "$ac_cpp_err"; then
7721  :
7722else
7723  echo "$as_me: failed program was:" >&5
7724sed 's/^/| /' conftest.$ac_ext >&5
7725
7726  # Broken: fails on valid input.
7727continue
7728fi
7729rm -f conftest.err conftest.$ac_ext
7730
7731  # OK, works on sane cases.  Now check whether non-existent headers
7732  # can be detected and how.
7733  cat >conftest.$ac_ext <<_ACEOF
7734/* confdefs.h.  */
7735_ACEOF
7736cat confdefs.h >>conftest.$ac_ext
7737cat >>conftest.$ac_ext <<_ACEOF
7738/* end confdefs.h.  */
7739#include <ac_nonexistent.h>
7740_ACEOF
7741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7742  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7743  ac_status=$?
7744  grep -v '^ *+' conftest.er1 >conftest.err
7745  rm -f conftest.er1
7746  cat conftest.err >&5
7747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748  (exit $ac_status); } >/dev/null; then
7749  if test -s conftest.err; then
7750    ac_cpp_err=$ac_cxx_preproc_warn_flag
7751    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7752  else
7753    ac_cpp_err=
7754  fi
7755else
7756  ac_cpp_err=yes
7757fi
7758if test -z "$ac_cpp_err"; then
7759  # Broken: success on invalid input.
7760continue
7761else
7762  echo "$as_me: failed program was:" >&5
7763sed 's/^/| /' conftest.$ac_ext >&5
7764
7765  # Passes both tests.
7766ac_preproc_ok=:
7767break
7768fi
7769rm -f conftest.err conftest.$ac_ext
7770
7771done
7772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7773rm -f conftest.err conftest.$ac_ext
7774if $ac_preproc_ok; then
7775  break
7776fi
7777
7778    done
7779    ac_cv_prog_CXXCPP=$CXXCPP
7780
7781fi
7782  CXXCPP=$ac_cv_prog_CXXCPP
7783else
7784  ac_cv_prog_CXXCPP=$CXXCPP
7785fi
7786echo "$as_me:$LINENO: result: $CXXCPP" >&5
7787echo "${ECHO_T}$CXXCPP" >&6
7788ac_preproc_ok=false
7789for ac_cxx_preproc_warn_flag in '' yes
7790do
7791  # Use a header file that comes with gcc, so configuring glibc
7792  # with a fresh cross-compiler works.
7793  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7794  # <limits.h> exists even on freestanding compilers.
7795  # On the NeXT, cc -E runs the code through the compiler's parser,
7796  # not just through cpp. "Syntax error" is here to catch this case.
7797  cat >conftest.$ac_ext <<_ACEOF
7798/* confdefs.h.  */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h.  */
7803#ifdef __STDC__
7804# include <limits.h>
7805#else
7806# include <assert.h>
7807#endif
7808                     Syntax error
7809_ACEOF
7810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7811  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7812  ac_status=$?
7813  grep -v '^ *+' conftest.er1 >conftest.err
7814  rm -f conftest.er1
7815  cat conftest.err >&5
7816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817  (exit $ac_status); } >/dev/null; then
7818  if test -s conftest.err; then
7819    ac_cpp_err=$ac_cxx_preproc_warn_flag
7820    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7821  else
7822    ac_cpp_err=
7823  fi
7824else
7825  ac_cpp_err=yes
7826fi
7827if test -z "$ac_cpp_err"; then
7828  :
7829else
7830  echo "$as_me: failed program was:" >&5
7831sed 's/^/| /' conftest.$ac_ext >&5
7832
7833  # Broken: fails on valid input.
7834continue
7835fi
7836rm -f conftest.err conftest.$ac_ext
7837
7838  # OK, works on sane cases.  Now check whether non-existent headers
7839  # can be detected and how.
7840  cat >conftest.$ac_ext <<_ACEOF
7841/* confdefs.h.  */
7842_ACEOF
7843cat confdefs.h >>conftest.$ac_ext
7844cat >>conftest.$ac_ext <<_ACEOF
7845/* end confdefs.h.  */
7846#include <ac_nonexistent.h>
7847_ACEOF
7848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7849  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7850  ac_status=$?
7851  grep -v '^ *+' conftest.er1 >conftest.err
7852  rm -f conftest.er1
7853  cat conftest.err >&5
7854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855  (exit $ac_status); } >/dev/null; then
7856  if test -s conftest.err; then
7857    ac_cpp_err=$ac_cxx_preproc_warn_flag
7858    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7859  else
7860    ac_cpp_err=
7861  fi
7862else
7863  ac_cpp_err=yes
7864fi
7865if test -z "$ac_cpp_err"; then
7866  # Broken: success on invalid input.
7867continue
7868else
7869  echo "$as_me: failed program was:" >&5
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872  # Passes both tests.
7873ac_preproc_ok=:
7874break
7875fi
7876rm -f conftest.err conftest.$ac_ext
7877
7878done
7879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7880rm -f conftest.err conftest.$ac_ext
7881if $ac_preproc_ok; then
7882  :
7883else
7884  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7885See \`config.log' for more details." >&5
7886echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7887See \`config.log' for more details." >&2;}
7888   { (exit 1); exit 1; }; }
7889fi
7890
7891ac_ext=cc
7892ac_cpp='$CXXCPP $CPPFLAGS'
7893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7896
7897fi
7898
7899ac_ext=f
7900ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7901ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7903if test -n "$ac_tool_prefix"; then
7904  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7905  do
7906    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7907set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7908echo "$as_me:$LINENO: checking for $ac_word" >&5
7909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7910if test "${ac_cv_prog_F77+set}" = set; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913  if test -n "$F77"; then
7914  ac_cv_prog_F77="$F77" # Let the user override the test.
7915else
7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919  IFS=$as_save_IFS
7920  test -z "$as_dir" && as_dir=.
7921  for ac_exec_ext in '' $ac_executable_extensions; do
7922  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7924    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925    break 2
7926  fi
7927done
7928done
7929
7930fi
7931fi
7932F77=$ac_cv_prog_F77
7933if test -n "$F77"; then
7934  echo "$as_me:$LINENO: result: $F77" >&5
7935echo "${ECHO_T}$F77" >&6
7936else
7937  echo "$as_me:$LINENO: result: no" >&5
7938echo "${ECHO_T}no" >&6
7939fi
7940
7941    test -n "$F77" && break
7942  done
7943fi
7944if test -z "$F77"; then
7945  ac_ct_F77=$F77
7946  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7947do
7948  # Extract the first word of "$ac_prog", so it can be a program name with args.
7949set dummy $ac_prog; ac_word=$2
7950echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7952if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7953  echo $ECHO_N "(cached) $ECHO_C" >&6
7954else
7955  if test -n "$ac_ct_F77"; then
7956  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963  for ac_exec_ext in '' $ac_executable_extensions; do
7964  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965    ac_cv_prog_ac_ct_F77="$ac_prog"
7966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970done
7971
7972fi
7973fi
7974ac_ct_F77=$ac_cv_prog_ac_ct_F77
7975if test -n "$ac_ct_F77"; then
7976  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7977echo "${ECHO_T}$ac_ct_F77" >&6
7978else
7979  echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6
7981fi
7982
7983  test -n "$ac_ct_F77" && break
7984done
7985
7986  F77=$ac_ct_F77
7987fi
7988
7989
7990# Provide some information about the compiler.
7991echo "$as_me:7991:" \
7992     "checking for Fortran 77 compiler version" >&5
7993ac_compiler=`set X $ac_compile; echo $2`
7994{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7995  (eval $ac_compiler --version </dev/null >&5) 2>&5
7996  ac_status=$?
7997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998  (exit $ac_status); }
7999{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8000  (eval $ac_compiler -v </dev/null >&5) 2>&5
8001  ac_status=$?
8002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003  (exit $ac_status); }
8004{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8005  (eval $ac_compiler -V </dev/null >&5) 2>&5
8006  ac_status=$?
8007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008  (exit $ac_status); }
8009rm -f a.out
8010
8011# If we don't use `.F' as extension, the preprocessor is not run on the
8012# input file.  (Note that this only needs to work for GNU compilers.)
8013ac_save_ext=$ac_ext
8014ac_ext=F
8015echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8016echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8017if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8018  echo $ECHO_N "(cached) $ECHO_C" >&6
8019else
8020  cat >conftest.$ac_ext <<_ACEOF
8021      program main
8022#ifndef __GNUC__
8023       choke me
8024#endif
8025
8026      end
8027_ACEOF
8028rm -f conftest.$ac_objext
8029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8030  (eval $ac_compile) 2>conftest.er1
8031  ac_status=$?
8032  grep -v '^ *+' conftest.er1 >conftest.err
8033  rm -f conftest.er1
8034  cat conftest.err >&5
8035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036  (exit $ac_status); } &&
8037         { ac_try='test -z "$ac_f77_werror_flag"
8038                         || test ! -s conftest.err'
8039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040  (eval $ac_try) 2>&5
8041  ac_status=$?
8042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043  (exit $ac_status); }; } &&
8044         { ac_try='test -s conftest.$ac_objext'
8045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046  (eval $ac_try) 2>&5
8047  ac_status=$?
8048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049  (exit $ac_status); }; }; then
8050  ac_compiler_gnu=yes
8051else
8052  echo "$as_me: failed program was:" >&5
8053sed 's/^/| /' conftest.$ac_ext >&5
8054
8055ac_compiler_gnu=no
8056fi
8057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8058ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8059
8060fi
8061echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8062echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8063ac_ext=$ac_save_ext
8064ac_test_FFLAGS=${FFLAGS+set}
8065ac_save_FFLAGS=$FFLAGS
8066FFLAGS=
8067echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8068echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8069if test "${ac_cv_prog_f77_g+set}" = set; then
8070  echo $ECHO_N "(cached) $ECHO_C" >&6
8071else
8072  FFLAGS=-g
8073cat >conftest.$ac_ext <<_ACEOF
8074      program main
8075
8076      end
8077_ACEOF
8078rm -f conftest.$ac_objext
8079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8080  (eval $ac_compile) 2>conftest.er1
8081  ac_status=$?
8082  grep -v '^ *+' conftest.er1 >conftest.err
8083  rm -f conftest.er1
8084  cat conftest.err >&5
8085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086  (exit $ac_status); } &&
8087         { ac_try='test -z "$ac_f77_werror_flag"
8088                         || test ! -s conftest.err'
8089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090  (eval $ac_try) 2>&5
8091  ac_status=$?
8092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093  (exit $ac_status); }; } &&
8094         { ac_try='test -s conftest.$ac_objext'
8095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096  (eval $ac_try) 2>&5
8097  ac_status=$?
8098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099  (exit $ac_status); }; }; then
8100  ac_cv_prog_f77_g=yes
8101else
8102  echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
8105ac_cv_prog_f77_g=no
8106fi
8107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8108
8109fi
8110echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8111echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8112if test "$ac_test_FFLAGS" = set; then
8113  FFLAGS=$ac_save_FFLAGS
8114elif test $ac_cv_prog_f77_g = yes; then
8115  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8116    FFLAGS="-g -O2"
8117  else
8118    FFLAGS="-g"
8119  fi
8120else
8121  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8122    FFLAGS="-O2"
8123  else
8124    FFLAGS=
8125  fi
8126fi
8127
8128G77=`test $ac_compiler_gnu = yes && echo yes`
8129ac_ext=c
8130ac_cpp='$CPP $CPPFLAGS'
8131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133ac_compiler_gnu=$ac_cv_c_compiler_gnu
8134
8135
8136
8137# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8138
8139# find the maximum length of command line arguments
8140echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8141echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8142if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8143  echo $ECHO_N "(cached) $ECHO_C" >&6
8144else
8145    i=0
8146  teststring="ABCD"
8147
8148  case $build_os in
8149  msdosdjgpp*)
8150    # On DJGPP, this test can blow up pretty badly due to problems in libc
8151    # (any single argument exceeding 2000 bytes causes a buffer overrun
8152    # during glob expansion).  Even if it were fixed, the result of this
8153    # check would be larger than it should be.
8154    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8155    ;;
8156
8157  gnu*)
8158    # Under GNU Hurd, this test is not required because there is
8159    # no limit to the length of command line arguments.
8160    # Libtool will interpret -1 as no limit whatsoever
8161    lt_cv_sys_max_cmd_len=-1;
8162    ;;
8163
8164  cygwin* | mingw*)
8165    # On Win9x/ME, this test blows up -- it succeeds, but takes
8166    # about 5 minutes as the teststring grows exponentially.
8167    # Worse, since 9x/ME are not pre-emptively multitasking,
8168    # you end up with a "frozen" computer, even though with patience
8169    # the test eventually succeeds (with a max line length of 256k).
8170    # Instead, let's just punt: use the minimum linelength reported by
8171    # all of the supported platforms: 8192 (on NT/2K/XP).
8172    lt_cv_sys_max_cmd_len=8192;
8173    ;;
8174
8175  amigaos*)
8176    # On AmigaOS with pdksh, this test takes hours, literally.
8177    # So we just punt and use a minimum line length of 8192.
8178    lt_cv_sys_max_cmd_len=8192;
8179    ;;
8180
8181  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8182    # This has been around since 386BSD, at least.  Likely further.
8183    if test -x /sbin/sysctl; then
8184      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8185    elif test -x /usr/sbin/sysctl; then
8186      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8187    else
8188      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8189    fi
8190    # And add a safety zone
8191    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8192    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8193    ;;
8194
8195  interix*)
8196    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8197    lt_cv_sys_max_cmd_len=196608
8198    ;;
8199
8200  osf*)
8201    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8202    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8203    # nice to cause kernel panics so lets avoid the loop below.
8204    # First set a reasonable default.
8205    lt_cv_sys_max_cmd_len=16384
8206    #
8207    if test -x /sbin/sysconfig; then
8208      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8209        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8210      esac
8211    fi
8212    ;;
8213  sco3.2v5*)
8214    lt_cv_sys_max_cmd_len=102400
8215    ;;
8216  sysv5* | sco5v6* | sysv4.2uw2*)
8217    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8218    if test -n "$kargmax"; then
8219      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8220    else
8221      lt_cv_sys_max_cmd_len=32768
8222    fi
8223    ;;
8224  *)
8225    # If test is not a shell built-in, we'll probably end up computing a
8226    # maximum length that is only half of the actual maximum length, but
8227    # we can't tell.
8228    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8229    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8230               = "XX$teststring") >/dev/null 2>&1 &&
8231            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8232            lt_cv_sys_max_cmd_len=$new_result &&
8233            test $i != 17 # 1/2 MB should be enough
8234    do
8235      i=`expr $i + 1`
8236      teststring=$teststring$teststring
8237    done
8238    teststring=
8239    # Add a significant safety factor because C++ compilers can tack on massive
8240    # amounts of additional arguments before passing them to the linker.
8241    # It appears as though 1/2 is a usable value.
8242    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8243    ;;
8244  esac
8245
8246fi
8247
8248if test -n $lt_cv_sys_max_cmd_len ; then
8249  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8250echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8251else
8252  echo "$as_me:$LINENO: result: none" >&5
8253echo "${ECHO_T}none" >&6
8254fi
8255
8256
8257
8258
8259# Check for command to grab the raw symbol name followed by C symbol from nm.
8260echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8261echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8262if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8263  echo $ECHO_N "(cached) $ECHO_C" >&6
8264else
8265
8266# These are sane defaults that work on at least a few old systems.
8267# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8268
8269# Character class describing NM global symbol codes.
8270symcode='[BCDEGRST]'
8271
8272# Regexp to match symbols that can be accessed directly from C.
8273sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8274
8275# Transform an extracted symbol line into a proper C declaration
8276lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8277
8278# Transform an extracted symbol line into symbol name and symbol address
8279lt_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'"
8280
8281# Define system-specific variables.
8282case $host_os in
8283aix*)
8284  symcode='[BCDT]'
8285  ;;
8286cygwin* | mingw* | pw32*)
8287  symcode='[ABCDGISTW]'
8288  ;;
8289hpux*) # Its linker distinguishes data from code symbols
8290  if test "$host_cpu" = ia64; then
8291    symcode='[ABCDEGRST]'
8292  fi
8293  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8294  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'"
8295  ;;
8296linux*)
8297  if test "$host_cpu" = ia64; then
8298    symcode='[ABCDGIRSTW]'
8299    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8300    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'"
8301  fi
8302  ;;
8303irix* | nonstopux*)
8304  symcode='[BCDEGRST]'
8305  ;;
8306osf*)
8307  symcode='[BCDEGQRST]'
8308  ;;
8309solaris*)
8310  symcode='[BDRT]'
8311  ;;
8312sco3.2v5*)
8313  symcode='[DT]'
8314  ;;
8315sysv4.2uw2*)
8316  symcode='[DT]'
8317  ;;
8318sysv5* | sco5v6* | unixware* | OpenUNIX*)
8319  symcode='[ABDT]'
8320  ;;
8321sysv4)
8322  symcode='[DFNSTU]'
8323  ;;
8324esac
8325
8326# Handle CRLF in mingw tool chain
8327opt_cr=
8328case $build_os in
8329mingw*)
8330  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8331  ;;
8332esac
8333
8334# If we're using GNU nm, then use its standard symbol codes.
8335case `$NM -V 2>&1` in
8336*GNU* | *'with BFD'*)
8337  symcode='[ABCDGIRSTW]' ;;
8338esac
8339
8340# Try without a prefix undercore, then with it.
8341for ac_symprfx in "" "_"; do
8342
8343  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8344  symxfrm="\\1 $ac_symprfx\\2 \\2"
8345
8346  # Write the raw and C identifiers.
8347  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8348
8349  # Check to see that the pipe works correctly.
8350  pipe_works=no
8351
8352  rm -f conftest*
8353  cat > conftest.$ac_ext <<EOF
8354#ifdef __cplusplus
8355extern "C" {
8356#endif
8357char nm_test_var;
8358void nm_test_func(){}
8359#ifdef __cplusplus
8360}
8361#endif
8362int main(){nm_test_var='a';nm_test_func();return(0);}
8363EOF
8364
8365  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366  (eval $ac_compile) 2>&5
8367  ac_status=$?
8368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369  (exit $ac_status); }; then
8370    # Now try to grab the symbols.
8371    nlist=conftest.nm
8372    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8373  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8374  ac_status=$?
8375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376  (exit $ac_status); } && test -s "$nlist"; then
8377      # Try sorting and uniquifying the output.
8378      if sort "$nlist" | uniq > "$nlist"T; then
8379        mv -f "$nlist"T "$nlist"
8380      else
8381        rm -f "$nlist"T
8382      fi
8383
8384      # Make sure that we snagged all the symbols we need.
8385      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8386        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8387          cat <<EOF > conftest.$ac_ext
8388#ifdef __cplusplus
8389extern "C" {
8390#endif
8391
8392EOF
8393          # Now generate the symbol file.
8394          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8395
8396          cat <<EOF >> conftest.$ac_ext
8397#if defined (__STDC__) && __STDC__
8398# define lt_ptr_t void *
8399#else
8400# define lt_ptr_t char *
8401# define const
8402#endif
8403
8404/* The mapping between symbol names and symbols. */
8405const struct {
8406  const char *name;
8407  lt_ptr_t address;
8408}
8409lt_preloaded_symbols[] =
8410{
8411EOF
8412          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8413          cat <<\EOF >> conftest.$ac_ext
8414  {0, (lt_ptr_t) 0}
8415};
8416
8417#ifdef __cplusplus
8418}
8419#endif
8420EOF
8421          # Now try linking the two files.
8422          mv conftest.$ac_objext conftstm.$ac_objext
8423          lt_save_LIBS="$LIBS"
8424          lt_save_CFLAGS="$CFLAGS"
8425          LIBS="conftstm.$ac_objext"
8426          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8427          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428  (eval $ac_link) 2>&5
8429  ac_status=$?
8430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8432            pipe_works=yes
8433          fi
8434          LIBS="$lt_save_LIBS"
8435          CFLAGS="$lt_save_CFLAGS"
8436        else
8437          echo "cannot find nm_test_func in $nlist" >&5
8438        fi
8439      else
8440        echo "cannot find nm_test_var in $nlist" >&5
8441      fi
8442    else
8443      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8444    fi
8445  else
8446    echo "$progname: failed program was:" >&5
8447    cat conftest.$ac_ext >&5
8448  fi
8449  rm -f conftest* conftst*
8450
8451  # Do not use the global_symbol_pipe unless it works.
8452  if test "$pipe_works" = yes; then
8453    break
8454  else
8455    lt_cv_sys_global_symbol_pipe=
8456  fi
8457done
8458
8459fi
8460
8461if test -z "$lt_cv_sys_global_symbol_pipe"; then
8462  lt_cv_sys_global_symbol_to_cdecl=
8463fi
8464if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8465  echo "$as_me:$LINENO: result: failed" >&5
8466echo "${ECHO_T}failed" >&6
8467else
8468  echo "$as_me:$LINENO: result: ok" >&5
8469echo "${ECHO_T}ok" >&6
8470fi
8471
8472echo "$as_me:$LINENO: checking for objdir" >&5
8473echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8474if test "${lt_cv_objdir+set}" = set; then
8475  echo $ECHO_N "(cached) $ECHO_C" >&6
8476else
8477  rm -f .libs 2>/dev/null
8478mkdir .libs 2>/dev/null
8479if test -d .libs; then
8480  lt_cv_objdir=.libs
8481else
8482  # MS-DOS does not allow filenames that begin with a dot.
8483  lt_cv_objdir=_libs
8484fi
8485rmdir .libs 2>/dev/null
8486fi
8487echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8488echo "${ECHO_T}$lt_cv_objdir" >&6
8489objdir=$lt_cv_objdir
8490
8491
8492
8493
8494
8495case $host_os in
8496aix3*)
8497  # AIX sometimes has problems with the GCC collect2 program.  For some
8498  # reason, if we set the COLLECT_NAMES environment variable, the problems
8499  # vanish in a puff of smoke.
8500  if test "X${COLLECT_NAMES+set}" != Xset; then
8501    COLLECT_NAMES=
8502    export COLLECT_NAMES
8503  fi
8504  ;;
8505esac
8506
8507# Sed substitution that helps us do robust quoting.  It backslashifies
8508# metacharacters that are still active within double-quoted strings.
8509Xsed='sed -e 1s/^X//'
8510sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8511
8512# Same as above, but do not quote variable references.
8513double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8514
8515# Sed substitution to delay expansion of an escaped shell variable in a
8516# double_quote_subst'ed string.
8517delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8518
8519# Sed substitution to avoid accidental globbing in evaled expressions
8520no_glob_subst='s/\*/\\\*/g'
8521
8522# Constants:
8523rm="rm -f"
8524
8525# Global variables:
8526default_ofile=libtool
8527can_build_shared=yes
8528
8529# All known linkers require a `.a' archive for static linking (except MSVC,
8530# which needs '.lib').
8531libext=a
8532ltmain="$ac_aux_dir/ltmain.sh"
8533ofile="$default_ofile"
8534with_gnu_ld="$lt_cv_prog_gnu_ld"
8535
8536if test -n "$ac_tool_prefix"; then
8537  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8538set dummy ${ac_tool_prefix}ar; ac_word=$2
8539echo "$as_me:$LINENO: checking for $ac_word" >&5
8540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8541if test "${ac_cv_prog_AR+set}" = set; then
8542  echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544  if test -n "$AR"; then
8545  ac_cv_prog_AR="$AR" # Let the user override the test.
8546else
8547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548for as_dir in $PATH
8549do
8550  IFS=$as_save_IFS
8551  test -z "$as_dir" && as_dir=.
8552  for ac_exec_ext in '' $ac_executable_extensions; do
8553  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554    ac_cv_prog_AR="${ac_tool_prefix}ar"
8555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8556    break 2
8557  fi
8558done
8559done
8560
8561fi
8562fi
8563AR=$ac_cv_prog_AR
8564if test -n "$AR"; then
8565  echo "$as_me:$LINENO: result: $AR" >&5
8566echo "${ECHO_T}$AR" >&6
8567else
8568  echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6
8570fi
8571
8572fi
8573if test -z "$ac_cv_prog_AR"; then
8574  ac_ct_AR=$AR
8575  # Extract the first word of "ar", so it can be a program name with args.
8576set dummy ar; ac_word=$2
8577echo "$as_me:$LINENO: checking for $ac_word" >&5
8578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8579if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8580  echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582  if test -n "$ac_ct_AR"; then
8583  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8584else
8585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586for as_dir in $PATH
8587do
8588  IFS=$as_save_IFS
8589  test -z "$as_dir" && as_dir=.
8590  for ac_exec_ext in '' $ac_executable_extensions; do
8591  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592    ac_cv_prog_ac_ct_AR="ar"
8593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8594    break 2
8595  fi
8596done
8597done
8598
8599  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8600fi
8601fi
8602ac_ct_AR=$ac_cv_prog_ac_ct_AR
8603if test -n "$ac_ct_AR"; then
8604  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8605echo "${ECHO_T}$ac_ct_AR" >&6
8606else
8607  echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
8609fi
8610
8611  AR=$ac_ct_AR
8612else
8613  AR="$ac_cv_prog_AR"
8614fi
8615
8616if test -n "$ac_tool_prefix"; then
8617  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8618set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8619echo "$as_me:$LINENO: checking for $ac_word" >&5
8620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621if test "${ac_cv_prog_RANLIB+set}" = set; then
8622  echo $ECHO_N "(cached) $ECHO_C" >&6
8623else
8624  if test -n "$RANLIB"; then
8625  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8626else
8627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628for as_dir in $PATH
8629do
8630  IFS=$as_save_IFS
8631  test -z "$as_dir" && as_dir=.
8632  for ac_exec_ext in '' $ac_executable_extensions; do
8633  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636    break 2
8637  fi
8638done
8639done
8640
8641fi
8642fi
8643RANLIB=$ac_cv_prog_RANLIB
8644if test -n "$RANLIB"; then
8645  echo "$as_me:$LINENO: result: $RANLIB" >&5
8646echo "${ECHO_T}$RANLIB" >&6
8647else
8648  echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
8650fi
8651
8652fi
8653if test -z "$ac_cv_prog_RANLIB"; then
8654  ac_ct_RANLIB=$RANLIB
8655  # Extract the first word of "ranlib", so it can be a program name with args.
8656set dummy ranlib; ac_word=$2
8657echo "$as_me:$LINENO: checking for $ac_word" >&5
8658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8659if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8660  echo $ECHO_N "(cached) $ECHO_C" >&6
8661else
8662  if test -n "$ac_ct_RANLIB"; then
8663  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8664else
8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668  IFS=$as_save_IFS
8669  test -z "$as_dir" && as_dir=.
8670  for ac_exec_ext in '' $ac_executable_extensions; do
8671  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672    ac_cv_prog_ac_ct_RANLIB="ranlib"
8673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8674    break 2
8675  fi
8676done
8677done
8678
8679  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8680fi
8681fi
8682ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8683if test -n "$ac_ct_RANLIB"; then
8684  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8685echo "${ECHO_T}$ac_ct_RANLIB" >&6
8686else
8687  echo "$as_me:$LINENO: result: no" >&5
8688echo "${ECHO_T}no" >&6
8689fi
8690
8691  RANLIB=$ac_ct_RANLIB
8692else
8693  RANLIB="$ac_cv_prog_RANLIB"
8694fi
8695
8696if test -n "$ac_tool_prefix"; then
8697  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8698set dummy ${ac_tool_prefix}strip; ac_word=$2
8699echo "$as_me:$LINENO: checking for $ac_word" >&5
8700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8701if test "${ac_cv_prog_STRIP+set}" = set; then
8702  echo $ECHO_N "(cached) $ECHO_C" >&6
8703else
8704  if test -n "$STRIP"; then
8705  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8706else
8707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708for as_dir in $PATH
8709do
8710  IFS=$as_save_IFS
8711  test -z "$as_dir" && as_dir=.
8712  for ac_exec_ext in '' $ac_executable_extensions; do
8713  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8716    break 2
8717  fi
8718done
8719done
8720
8721fi
8722fi
8723STRIP=$ac_cv_prog_STRIP
8724if test -n "$STRIP"; then
8725  echo "$as_me:$LINENO: result: $STRIP" >&5
8726echo "${ECHO_T}$STRIP" >&6
8727else
8728  echo "$as_me:$LINENO: result: no" >&5
8729echo "${ECHO_T}no" >&6
8730fi
8731
8732fi
8733if test -z "$ac_cv_prog_STRIP"; then
8734  ac_ct_STRIP=$STRIP
8735  # Extract the first word of "strip", so it can be a program name with args.
8736set dummy strip; ac_word=$2
8737echo "$as_me:$LINENO: checking for $ac_word" >&5
8738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8739if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8740  echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742  if test -n "$ac_ct_STRIP"; then
8743  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748  IFS=$as_save_IFS
8749  test -z "$as_dir" && as_dir=.
8750  for ac_exec_ext in '' $ac_executable_extensions; do
8751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752    ac_cv_prog_ac_ct_STRIP="strip"
8753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754    break 2
8755  fi
8756done
8757done
8758
8759  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8760fi
8761fi
8762ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8763if test -n "$ac_ct_STRIP"; then
8764  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8765echo "${ECHO_T}$ac_ct_STRIP" >&6
8766else
8767  echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769fi
8770
8771  STRIP=$ac_ct_STRIP
8772else
8773  STRIP="$ac_cv_prog_STRIP"
8774fi
8775
8776
8777old_CC="$CC"
8778old_CFLAGS="$CFLAGS"
8779
8780# Set sane defaults for various variables
8781test -z "$AR" && AR=ar
8782test -z "$AR_FLAGS" && AR_FLAGS=cru
8783test -z "$AS" && AS=as
8784test -z "$CC" && CC=cc
8785test -z "$LTCC" && LTCC=$CC
8786test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8787test -z "$DLLTOOL" && DLLTOOL=dlltool
8788test -z "$LD" && LD=ld
8789test -z "$LN_S" && LN_S="ln -s"
8790test -z "$MAGIC_CMD" && MAGIC_CMD=file
8791test -z "$NM" && NM=nm
8792test -z "$SED" && SED=sed
8793test -z "$OBJDUMP" && OBJDUMP=objdump
8794test -z "$RANLIB" && RANLIB=:
8795test -z "$STRIP" && STRIP=:
8796test -z "$ac_objext" && ac_objext=o
8797
8798# Determine commands to create old-style static archives.
8799old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8800old_postinstall_cmds='chmod 644 $oldlib'
8801old_postuninstall_cmds=
8802
8803if test -n "$RANLIB"; then
8804  case $host_os in
8805  openbsd*)
8806    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8807    ;;
8808  *)
8809    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8810    ;;
8811  esac
8812  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8813fi
8814
8815for cc_temp in $compiler""; do
8816  case $cc_temp in
8817    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8818    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8819    \-*) ;;
8820    *) break;;
8821  esac
8822done
8823cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8824
8825
8826# Only perform the check for file, if the check method requires it
8827case $deplibs_check_method in
8828file_magic*)
8829  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8830    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8831echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8832if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8833  echo $ECHO_N "(cached) $ECHO_C" >&6
8834else
8835  case $MAGIC_CMD in
8836[\\/*] |  ?:[\\/]*)
8837  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8838  ;;
8839*)
8840  lt_save_MAGIC_CMD="$MAGIC_CMD"
8841  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8842  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8843  for ac_dir in $ac_dummy; do
8844    IFS="$lt_save_ifs"
8845    test -z "$ac_dir" && ac_dir=.
8846    if test -f $ac_dir/${ac_tool_prefix}file; then
8847      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8848      if test -n "$file_magic_test_file"; then
8849        case $deplibs_check_method in
8850        "file_magic "*)
8851          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8852          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8853          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8854            $EGREP "$file_magic_regex" > /dev/null; then
8855            :
8856          else
8857            cat <<EOF 1>&2
8858
8859*** Warning: the command libtool uses to detect shared libraries,
8860*** $file_magic_cmd, produces output that libtool cannot recognize.
8861*** The result is that libtool may fail to recognize shared libraries
8862*** as such.  This will affect the creation of libtool libraries that
8863*** depend on shared libraries, but programs linked with such libtool
8864*** libraries will work regardless of this problem.  Nevertheless, you
8865*** may want to report the problem to your system manager and/or to
8866*** bug-libtool@gnu.org
8867
8868EOF
8869          fi ;;
8870        esac
8871      fi
8872      break
8873    fi
8874  done
8875  IFS="$lt_save_ifs"
8876  MAGIC_CMD="$lt_save_MAGIC_CMD"
8877  ;;
8878esac
8879fi
8880
8881MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8882if test -n "$MAGIC_CMD"; then
8883  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8884echo "${ECHO_T}$MAGIC_CMD" >&6
8885else
8886  echo "$as_me:$LINENO: result: no" >&5
8887echo "${ECHO_T}no" >&6
8888fi
8889
8890if test -z "$lt_cv_path_MAGIC_CMD"; then
8891  if test -n "$ac_tool_prefix"; then
8892    echo "$as_me:$LINENO: checking for file" >&5
8893echo $ECHO_N "checking for file... $ECHO_C" >&6
8894if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8895  echo $ECHO_N "(cached) $ECHO_C" >&6
8896else
8897  case $MAGIC_CMD in
8898[\\/*] |  ?:[\\/]*)
8899  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8900  ;;
8901*)
8902  lt_save_MAGIC_CMD="$MAGIC_CMD"
8903  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8904  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8905  for ac_dir in $ac_dummy; do
8906    IFS="$lt_save_ifs"
8907    test -z "$ac_dir" && ac_dir=.
8908    if test -f $ac_dir/file; then
8909      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8910      if test -n "$file_magic_test_file"; then
8911        case $deplibs_check_method in
8912        "file_magic "*)
8913          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8914          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8915          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8916            $EGREP "$file_magic_regex" > /dev/null; then
8917            :
8918          else
8919            cat <<EOF 1>&2
8920
8921*** Warning: the command libtool uses to detect shared libraries,
8922*** $file_magic_cmd, produces output that libtool cannot recognize.
8923*** The result is that libtool may fail to recognize shared libraries
8924*** as such.  This will affect the creation of libtool libraries that
8925*** depend on shared libraries, but programs linked with such libtool
8926*** libraries will work regardless of this problem.  Nevertheless, you
8927*** may want to report the problem to your system manager and/or to
8928*** bug-libtool@gnu.org
8929
8930EOF
8931          fi ;;
8932        esac
8933      fi
8934      break
8935    fi
8936  done
8937  IFS="$lt_save_ifs"
8938  MAGIC_CMD="$lt_save_MAGIC_CMD"
8939  ;;
8940esac
8941fi
8942
8943MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8944if test -n "$MAGIC_CMD"; then
8945  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8946echo "${ECHO_T}$MAGIC_CMD" >&6
8947else
8948  echo "$as_me:$LINENO: result: no" >&5
8949echo "${ECHO_T}no" >&6
8950fi
8951
8952  else
8953    MAGIC_CMD=:
8954  fi
8955fi
8956
8957  fi
8958  ;;
8959esac
8960
8961enable_dlopen=no
8962enable_win32_dll=no
8963
8964# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8965if test "${enable_libtool_lock+set}" = set; then
8966  enableval="$enable_libtool_lock"
8967
8968fi;
8969test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8970
8971
8972# Check whether --with-pic or --without-pic was given.
8973if test "${with_pic+set}" = set; then
8974  withval="$with_pic"
8975  pic_mode="$withval"
8976else
8977  pic_mode=default
8978fi;
8979test -z "$pic_mode" && pic_mode=default
8980
8981# Use C for the default configuration in the libtool script
8982tagname=
8983lt_save_CC="$CC"
8984ac_ext=c
8985ac_cpp='$CPP $CPPFLAGS'
8986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8988ac_compiler_gnu=$ac_cv_c_compiler_gnu
8989
8990
8991# Source file extension for C test sources.
8992ac_ext=c
8993
8994# Object file extension for compiled C test sources.
8995objext=o
8996objext=$objext
8997
8998# Code to be used in simple compile tests
8999lt_simple_compile_test_code="int some_variable = 0;\n"
9000
9001# Code to be used in simple link tests
9002lt_simple_link_test_code='int main(){return(0);}\n'
9003
9004
9005# If no C compiler was specified, use CC.
9006LTCC=${LTCC-"$CC"}
9007
9008# If no C compiler flags were specified, use CFLAGS.
9009LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9010
9011# Allow CC to be a program name with arguments.
9012compiler=$CC
9013
9014
9015# save warnings/boilerplate of simple test code
9016ac_outfile=conftest.$ac_objext
9017printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9018eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9019_lt_compiler_boilerplate=`cat conftest.err`
9020$rm conftest*
9021
9022ac_outfile=conftest.$ac_objext
9023printf "$lt_simple_link_test_code" >conftest.$ac_ext
9024eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9025_lt_linker_boilerplate=`cat conftest.err`
9026$rm conftest*
9027
9028
9029## CAVEAT EMPTOR:
9030## There is no encapsulation within the following macros, do not change
9031## the running order or otherwise move them around unless you know exactly
9032## what you are doing...
9033
9034lt_prog_compiler_no_builtin_flag=
9035
9036if test "$GCC" = yes; then
9037  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9038
9039
9040echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9041echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9042if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9043  echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045  lt_cv_prog_compiler_rtti_exceptions=no
9046  ac_outfile=conftest.$ac_objext
9047   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9048   lt_compiler_flag="-fno-rtti -fno-exceptions"
9049   # Insert the option either (1) after the last *FLAGS variable, or
9050   # (2) before a word containing "conftest.", or (3) at the end.
9051   # Note that $ac_compile itself does not contain backslashes and begins
9052   # with a dollar sign (not a hyphen), so the echo should work correctly.
9053   # The option is referenced via a variable to avoid confusing sed.
9054   lt_compile=`echo "$ac_compile" | $SED \
9055   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9056   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9057   -e 's:$: $lt_compiler_flag:'`
9058   (eval echo "\"\$as_me:9058: $lt_compile\"" >&5)
9059   (eval "$lt_compile" 2>conftest.err)
9060   ac_status=$?
9061   cat conftest.err >&5
9062   echo "$as_me:9062: \$? = $ac_status" >&5
9063   if (exit $ac_status) && test -s "$ac_outfile"; then
9064     # The compiler can only warn and ignore the option if not recognized
9065     # So say no if there are warnings other than the usual output.
9066     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9067     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9068     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9069       lt_cv_prog_compiler_rtti_exceptions=yes
9070     fi
9071   fi
9072   $rm conftest*
9073
9074fi
9075echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9076echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9077
9078if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9079    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9080else
9081    :
9082fi
9083
9084fi
9085
9086lt_prog_compiler_wl=
9087lt_prog_compiler_pic=
9088lt_prog_compiler_static=
9089
9090echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9091echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9092
9093  if test "$GCC" = yes; then
9094    lt_prog_compiler_wl='-Wl,'
9095    lt_prog_compiler_static='-static'
9096
9097    case $host_os in
9098      aix*)
9099      # All AIX code is PIC.
9100      if test "$host_cpu" = ia64; then
9101        # AIX 5 now supports IA64 processor
9102        lt_prog_compiler_static='-Bstatic'
9103      fi
9104      ;;
9105
9106    amigaos*)
9107      # FIXME: we need at least 68020 code to build shared libraries, but
9108      # adding the `-m68020' flag to GCC prevents building anything better,
9109      # like `-m68040'.
9110      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9111      ;;
9112
9113    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9114      # PIC is the default for these OSes.
9115      ;;
9116
9117    mingw* | pw32* | os2*)
9118      # This hack is so that the source file can tell whether it is being
9119      # built for inclusion in a dll (and should export symbols for example).
9120      lt_prog_compiler_pic='-DDLL_EXPORT'
9121      ;;
9122
9123    darwin* | rhapsody*)
9124      # PIC is the default on this platform
9125      # Common symbols not allowed in MH_DYLIB files
9126      lt_prog_compiler_pic='-fno-common'
9127      ;;
9128
9129    interix3*)
9130      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9131      # Instead, we relocate shared libraries at runtime.
9132      ;;
9133
9134    msdosdjgpp*)
9135      # Just because we use GCC doesn't mean we suddenly get shared libraries
9136      # on systems that don't support them.
9137      lt_prog_compiler_can_build_shared=no
9138      enable_shared=no
9139      ;;
9140
9141    sysv4*MP*)
9142      if test -d /usr/nec; then
9143        lt_prog_compiler_pic=-Kconform_pic
9144      fi
9145      ;;
9146
9147    hpux*)
9148      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9149      # not for PA HP-UX.
9150      case $host_cpu in
9151      hppa*64*|ia64*)
9152        # +Z the default
9153        ;;
9154      *)
9155        lt_prog_compiler_pic='-fPIC'
9156        ;;
9157      esac
9158      ;;
9159
9160    *)
9161      lt_prog_compiler_pic='-fPIC'
9162      ;;
9163    esac
9164  else
9165    # PORTME Check for flag to pass linker flags through the system compiler.
9166    case $host_os in
9167    aix*)
9168      lt_prog_compiler_wl='-Wl,'
9169      if test "$host_cpu" = ia64; then
9170        # AIX 5 now supports IA64 processor
9171        lt_prog_compiler_static='-Bstatic'
9172      else
9173        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9174      fi
9175      ;;
9176      darwin*)
9177        # PIC is the default on this platform
9178        # Common symbols not allowed in MH_DYLIB files
9179       case $cc_basename in
9180         xlc*)
9181         lt_prog_compiler_pic='-qnocommon'
9182         lt_prog_compiler_wl='-Wl,'
9183         ;;
9184       esac
9185       ;;
9186
9187    mingw* | pw32* | os2*)
9188      # This hack is so that the source file can tell whether it is being
9189      # built for inclusion in a dll (and should export symbols for example).
9190      lt_prog_compiler_pic='-DDLL_EXPORT'
9191      ;;
9192
9193    hpux9* | hpux10* | hpux11*)
9194      lt_prog_compiler_wl='-Wl,'
9195      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9196      # not for PA HP-UX.
9197      case $host_cpu in
9198      hppa*64*|ia64*)
9199        # +Z the default
9200        ;;
9201      *)
9202        lt_prog_compiler_pic='+Z'
9203        ;;
9204      esac
9205      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9206      lt_prog_compiler_static='${wl}-a ${wl}archive'
9207      ;;
9208
9209    irix5* | irix6* | nonstopux*)
9210      lt_prog_compiler_wl='-Wl,'
9211      # PIC (with -KPIC) is the default.
9212      lt_prog_compiler_static='-non_shared'
9213      ;;
9214
9215    newsos6)
9216      lt_prog_compiler_pic='-KPIC'
9217      lt_prog_compiler_static='-Bstatic'
9218      ;;
9219
9220    linux*)
9221      case $cc_basename in
9222      icc* | ecc*)
9223        lt_prog_compiler_wl='-Wl,'
9224        lt_prog_compiler_pic='-KPIC'
9225        lt_prog_compiler_static='-static'
9226        ;;
9227      pgcc* | pgf77* | pgf90* | pgf95*)
9228        # Portland Group compilers (*not* the Pentium gcc compiler,
9229        # which looks to be a dead project)
9230        lt_prog_compiler_wl='-Wl,'
9231        lt_prog_compiler_pic='-fpic'
9232        lt_prog_compiler_static='-Bstatic'
9233        ;;
9234      ccc*)
9235        lt_prog_compiler_wl='-Wl,'
9236        # All Alpha code is PIC.
9237        lt_prog_compiler_static='-non_shared'
9238        ;;
9239      esac
9240      ;;
9241
9242    osf3* | osf4* | osf5*)
9243      lt_prog_compiler_wl='-Wl,'
9244      # All OSF/1 code is PIC.
9245      lt_prog_compiler_static='-non_shared'
9246      ;;
9247
9248    solaris*)
9249      lt_prog_compiler_pic='-KPIC'
9250      lt_prog_compiler_static='-Bstatic'
9251      case $cc_basename in
9252      f77* | f90* | f95*)
9253        lt_prog_compiler_wl='-Qoption ld ';;
9254      *)
9255        lt_prog_compiler_wl='-Wl,';;
9256      esac
9257      ;;
9258
9259    sunos4*)
9260      lt_prog_compiler_wl='-Qoption ld '
9261      lt_prog_compiler_pic='-PIC'
9262      lt_prog_compiler_static='-Bstatic'
9263      ;;
9264
9265    sysv4 | sysv4.2uw2* | sysv4.3*)
9266      lt_prog_compiler_wl='-Wl,'
9267      lt_prog_compiler_pic='-KPIC'
9268      lt_prog_compiler_static='-Bstatic'
9269      ;;
9270
9271    sysv4*MP*)
9272      if test -d /usr/nec ;then
9273        lt_prog_compiler_pic='-Kconform_pic'
9274        lt_prog_compiler_static='-Bstatic'
9275      fi
9276      ;;
9277
9278    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9279      lt_prog_compiler_wl='-Wl,'
9280      lt_prog_compiler_pic='-KPIC'
9281      lt_prog_compiler_static='-Bstatic'
9282      ;;
9283
9284    unicos*)
9285      lt_prog_compiler_wl='-Wl,'
9286      lt_prog_compiler_can_build_shared=no
9287      ;;
9288
9289    uts4*)
9290      lt_prog_compiler_pic='-pic'
9291      lt_prog_compiler_static='-Bstatic'
9292      ;;
9293
9294    *)
9295      lt_prog_compiler_can_build_shared=no
9296      ;;
9297    esac
9298  fi
9299
9300echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9301echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9302
9303#
9304# Check to make sure the PIC flag actually works.
9305#
9306if test -n "$lt_prog_compiler_pic"; then
9307
9308echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9309echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9310if test "${lt_prog_compiler_pic_works+set}" = set; then
9311  echo $ECHO_N "(cached) $ECHO_C" >&6
9312else
9313  lt_prog_compiler_pic_works=no
9314  ac_outfile=conftest.$ac_objext
9315   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9316   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9317   # Insert the option either (1) after the last *FLAGS variable, or
9318   # (2) before a word containing "conftest.", or (3) at the end.
9319   # Note that $ac_compile itself does not contain backslashes and begins
9320   # with a dollar sign (not a hyphen), so the echo should work correctly.
9321   # The option is referenced via a variable to avoid confusing sed.
9322   lt_compile=`echo "$ac_compile" | $SED \
9323   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9324   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9325   -e 's:$: $lt_compiler_flag:'`
9326   (eval echo "\"\$as_me:9326: $lt_compile\"" >&5)
9327   (eval "$lt_compile" 2>conftest.err)
9328   ac_status=$?
9329   cat conftest.err >&5
9330   echo "$as_me:9330: \$? = $ac_status" >&5
9331   if (exit $ac_status) && test -s "$ac_outfile"; then
9332     # The compiler can only warn and ignore the option if not recognized
9333     # So say no if there are warnings other than the usual output.
9334     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9335     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9336     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9337       lt_prog_compiler_pic_works=yes
9338     fi
9339   fi
9340   $rm conftest*
9341
9342fi
9343echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9344echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9345
9346if test x"$lt_prog_compiler_pic_works" = xyes; then
9347    case $lt_prog_compiler_pic in
9348     "" | " "*) ;;
9349     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9350     esac
9351else
9352    lt_prog_compiler_pic=
9353     lt_prog_compiler_can_build_shared=no
9354fi
9355
9356fi
9357case $host_os in
9358  # For platforms which do not support PIC, -DPIC is meaningless:
9359  *djgpp*)
9360    lt_prog_compiler_pic=
9361    ;;
9362  *)
9363    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9364    ;;
9365esac
9366
9367#
9368# Check to make sure the static flag actually works.
9369#
9370wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9371echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9372echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9373if test "${lt_prog_compiler_static_works+set}" = set; then
9374  echo $ECHO_N "(cached) $ECHO_C" >&6
9375else
9376  lt_prog_compiler_static_works=no
9377   save_LDFLAGS="$LDFLAGS"
9378   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9379   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9380   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9381     # The linker can only warn and ignore the option if not recognized
9382     # So say no if there are warnings
9383     if test -s conftest.err; then
9384       # Append any errors to the config.log.
9385       cat conftest.err 1>&5
9386       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9387       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388       if diff conftest.exp conftest.er2 >/dev/null; then
9389         lt_prog_compiler_static_works=yes
9390       fi
9391     else
9392       lt_prog_compiler_static_works=yes
9393     fi
9394   fi
9395   $rm conftest*
9396   LDFLAGS="$save_LDFLAGS"
9397
9398fi
9399echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9400echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9401
9402if test x"$lt_prog_compiler_static_works" = xyes; then
9403    :
9404else
9405    lt_prog_compiler_static=
9406fi
9407
9408
9409echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9410echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9411if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9412  echo $ECHO_N "(cached) $ECHO_C" >&6
9413else
9414  lt_cv_prog_compiler_c_o=no
9415   $rm -r conftest 2>/dev/null
9416   mkdir conftest
9417   cd conftest
9418   mkdir out
9419   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9420
9421   lt_compiler_flag="-o out/conftest2.$ac_objext"
9422   # Insert the option either (1) after the last *FLAGS variable, or
9423   # (2) before a word containing "conftest.", or (3) at the end.
9424   # Note that $ac_compile itself does not contain backslashes and begins
9425   # with a dollar sign (not a hyphen), so the echo should work correctly.
9426   lt_compile=`echo "$ac_compile" | $SED \
9427   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9428   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9429   -e 's:$: $lt_compiler_flag:'`
9430   (eval echo "\"\$as_me:9430: $lt_compile\"" >&5)
9431   (eval "$lt_compile" 2>out/conftest.err)
9432   ac_status=$?
9433   cat out/conftest.err >&5
9434   echo "$as_me:9434: \$? = $ac_status" >&5
9435   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9436   then
9437     # The compiler can only warn and ignore the option if not recognized
9438     # So say no if there are warnings
9439     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9440     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9441     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9442       lt_cv_prog_compiler_c_o=yes
9443     fi
9444   fi
9445   chmod u+w . 2>&5
9446   $rm conftest*
9447   # SGI C++ compiler will create directory out/ii_files/ for
9448   # template instantiation
9449   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9450   $rm out/* && rmdir out
9451   cd ..
9452   rmdir conftest
9453   $rm conftest*
9454
9455fi
9456echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9457echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9458
9459
9460hard_links="nottested"
9461if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9462  # do not overwrite the value of need_locks provided by the user
9463  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9464echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9465  hard_links=yes
9466  $rm conftest*
9467  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9468  touch conftest.a
9469  ln conftest.a conftest.b 2>&5 || hard_links=no
9470  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9471  echo "$as_me:$LINENO: result: $hard_links" >&5
9472echo "${ECHO_T}$hard_links" >&6
9473  if test "$hard_links" = no; then
9474    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9475echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9476    need_locks=warn
9477  fi
9478else
9479  need_locks=no
9480fi
9481
9482echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9483echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9484
9485  runpath_var=
9486  allow_undefined_flag=
9487  enable_shared_with_static_runtimes=no
9488  archive_cmds=
9489  archive_expsym_cmds=
9490  old_archive_From_new_cmds=
9491  old_archive_from_expsyms_cmds=
9492  export_dynamic_flag_spec=
9493  whole_archive_flag_spec=
9494  thread_safe_flag_spec=
9495  hardcode_libdir_flag_spec=
9496  hardcode_libdir_flag_spec_ld=
9497  hardcode_libdir_separator=
9498  hardcode_direct=no
9499  hardcode_minus_L=no
9500  hardcode_shlibpath_var=unsupported
9501  link_all_deplibs=unknown
9502  hardcode_automatic=no
9503  module_cmds=
9504  module_expsym_cmds=
9505  always_export_symbols=no
9506  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9507  # include_expsyms should be a list of space-separated symbols to be *always*
9508  # included in the symbol list
9509  include_expsyms=
9510  # exclude_expsyms can be an extended regexp of symbols to exclude
9511  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9512  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9513  # as well as any symbol that contains `d'.
9514  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9515  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9516  # platforms (ab)use it in PIC code, but their linkers get confused if
9517  # the symbol is explicitly referenced.  Since portable code cannot
9518  # rely on this symbol name, it's probably fine to never include it in
9519  # preloaded symbol tables.
9520  extract_expsyms_cmds=
9521  # Just being paranoid about ensuring that cc_basename is set.
9522  for cc_temp in $compiler""; do
9523  case $cc_temp in
9524    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9525    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9526    \-*) ;;
9527    *) break;;
9528  esac
9529done
9530cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9531
9532  case $host_os in
9533  cygwin* | mingw* | pw32*)
9534    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9535    # When not using gcc, we currently assume that we are using
9536    # Microsoft Visual C++.
9537    if test "$GCC" != yes; then
9538      with_gnu_ld=no
9539    fi
9540    ;;
9541  interix*)
9542    # we just hope/assume this is gcc and not c89 (= MSVC++)
9543    with_gnu_ld=yes
9544    ;;
9545  openbsd*)
9546    with_gnu_ld=no
9547    ;;
9548  esac
9549
9550  ld_shlibs=yes
9551  if test "$with_gnu_ld" = yes; then
9552    # If archive_cmds runs LD, not CC, wlarc should be empty
9553    wlarc='${wl}'
9554
9555    # Set some defaults for GNU ld with shared library support. These
9556    # are reset later if shared libraries are not supported. Putting them
9557    # here allows them to be overridden if necessary.
9558    runpath_var=LD_RUN_PATH
9559    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9560    export_dynamic_flag_spec='${wl}--export-dynamic'
9561    # ancient GNU ld didn't support --whole-archive et. al.
9562    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9563        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9564      else
9565        whole_archive_flag_spec=
9566    fi
9567    supports_anon_versioning=no
9568    case `$LD -v 2>/dev/null` in
9569      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9570      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9571      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9572      *\ 2.11.*) ;; # other 2.11 versions
9573      *) supports_anon_versioning=yes ;;
9574    esac
9575
9576    # See if GNU ld supports shared libraries.
9577    case $host_os in
9578    aix3* | aix4* | aix5*)
9579      # On AIX/PPC, the GNU linker is very broken
9580      if test "$host_cpu" != ia64; then
9581        ld_shlibs=no
9582        cat <<EOF 1>&2
9583
9584*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9585*** to be unable to reliably create shared libraries on AIX.
9586*** Therefore, libtool is disabling shared libraries support.  If you
9587*** really care for shared libraries, you may want to modify your PATH
9588*** so that a non-GNU linker is found, and then restart.
9589
9590EOF
9591      fi
9592      ;;
9593
9594    amigaos*)
9595      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)'
9596      hardcode_libdir_flag_spec='-L$libdir'
9597      hardcode_minus_L=yes
9598
9599      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9600      # that the semantics of dynamic libraries on AmigaOS, at least up
9601      # to version 4, is to share data among multiple programs linked
9602      # with the same dynamic library.  Since this doesn't match the
9603      # behavior of shared libraries on other platforms, we can't use
9604      # them.
9605      ld_shlibs=no
9606      ;;
9607
9608    beos*)
9609      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9610        allow_undefined_flag=unsupported
9611        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9612        # support --undefined.  This deserves some investigation.  FIXME
9613        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9614      else
9615        ld_shlibs=no
9616      fi
9617      ;;
9618
9619    cygwin* | mingw* | pw32*)
9620      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9621      # as there is no search path for DLLs.
9622      hardcode_libdir_flag_spec='-L$libdir'
9623      allow_undefined_flag=unsupported
9624      always_export_symbols=no
9625      enable_shared_with_static_runtimes=yes
9626      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9627
9628      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9629        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9630        # If the export-symbols file already is a .def file (1st line
9631        # is EXPORTS), use it as is; otherwise, prepend...
9632        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9633          cp $export_symbols $output_objdir/$soname.def;
9634        else
9635          echo EXPORTS > $output_objdir/$soname.def;
9636          cat $export_symbols >> $output_objdir/$soname.def;
9637        fi~
9638        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9639      else
9640        ld_shlibs=no
9641      fi
9642      ;;
9643
9644    interix3*)
9645      hardcode_direct=no
9646      hardcode_shlibpath_var=no
9647      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9648      export_dynamic_flag_spec='${wl}-E'
9649      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9650      # Instead, shared libraries are loaded at an image base (0x10000000 by
9651      # default) and relocated if they conflict, which is a slow very memory
9652      # consuming and fragmenting process.  To avoid this, we pick a random,
9653      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9654      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9655      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9656      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'
9657      ;;
9658
9659    linux*)
9660      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9661        tmp_addflag=
9662        case $cc_basename,$host_cpu in
9663        pgcc*)                          # Portland Group C compiler
9664          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'
9665          tmp_addflag=' $pic_flag'
9666          ;;
9667        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9668          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'
9669          tmp_addflag=' $pic_flag -Mnomain' ;;
9670        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9671          tmp_addflag=' -i_dynamic' ;;
9672        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9673          tmp_addflag=' -i_dynamic -nofor_main' ;;
9674        ifc* | ifort*)                  # Intel Fortran compiler
9675          tmp_addflag=' -nofor_main' ;;
9676        esac
9677        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9678
9679        if test $supports_anon_versioning = yes; then
9680          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9681  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9682  $echo "local: *; };" >> $output_objdir/$libname.ver~
9683          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9684        fi
9685      else
9686        ld_shlibs=no
9687      fi
9688      ;;
9689
9690    netbsd*)
9691      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9692        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9693        wlarc=
9694      else
9695        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9696        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9697      fi
9698      ;;
9699
9700    solaris*)
9701      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9702        ld_shlibs=no
9703        cat <<EOF 1>&2
9704
9705*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9706*** create shared libraries on Solaris systems.  Therefore, libtool
9707*** is disabling shared libraries support.  We urge you to upgrade GNU
9708*** binutils to release 2.9.1 or newer.  Another option is to modify
9709*** your PATH or compiler configuration so that the native linker is
9710*** used, and then restart.
9711
9712EOF
9713      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9714        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9716      else
9717        ld_shlibs=no
9718      fi
9719      ;;
9720
9721    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9722      case `$LD -v 2>&1` in
9723        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9724        ld_shlibs=no
9725        cat <<_LT_EOF 1>&2
9726
9727*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9728*** reliably create shared libraries on SCO systems.  Therefore, libtool
9729*** is disabling shared libraries support.  We urge you to upgrade GNU
9730*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9731*** your PATH or compiler configuration so that the native linker is
9732*** used, and then restart.
9733
9734_LT_EOF
9735        ;;
9736        *)
9737          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9738            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9739            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9740            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9741          else
9742            ld_shlibs=no
9743          fi
9744        ;;
9745      esac
9746      ;;
9747
9748    sunos4*)
9749      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9750      wlarc=
9751      hardcode_direct=yes
9752      hardcode_shlibpath_var=no
9753      ;;
9754
9755    *)
9756      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9757        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9759      else
9760        ld_shlibs=no
9761      fi
9762      ;;
9763    esac
9764
9765    if test "$ld_shlibs" = no; then
9766      runpath_var=
9767      hardcode_libdir_flag_spec=
9768      export_dynamic_flag_spec=
9769      whole_archive_flag_spec=
9770    fi
9771  else
9772    # PORTME fill in a description of your system's linker (not GNU ld)
9773    case $host_os in
9774    aix3*)
9775      allow_undefined_flag=unsupported
9776      always_export_symbols=yes
9777      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'
9778      # Note: this linker hardcodes the directories in LIBPATH if there
9779      # are no directories specified by -L.
9780      hardcode_minus_L=yes
9781      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9782        # Neither direct hardcoding nor static linking is supported with a
9783        # broken collect2.
9784        hardcode_direct=unsupported
9785      fi
9786      ;;
9787
9788    aix4* | aix5*)
9789      if test "$host_cpu" = ia64; then
9790        # On IA64, the linker does run time linking by default, so we don't
9791        # have to do anything special.
9792        aix_use_runtimelinking=no
9793        exp_sym_flag='-Bexport'
9794        no_entry_flag=""
9795      else
9796        # If we're using GNU nm, then we don't want the "-C" option.
9797        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9798        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9799          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'
9800        else
9801          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'
9802        fi
9803        aix_use_runtimelinking=no
9804
9805        # Test if we are trying to use run time linking or normal
9806        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9807        # need to do runtime linking.
9808        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9809          for ld_flag in $LDFLAGS; do
9810          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9811            aix_use_runtimelinking=yes
9812            break
9813          fi
9814          done
9815          ;;
9816        esac
9817
9818        exp_sym_flag='-bexport'
9819        no_entry_flag='-bnoentry'
9820      fi
9821
9822      # When large executables or shared objects are built, AIX ld can
9823      # have problems creating the table of contents.  If linking a library
9824      # or program results in "error TOC overflow" add -mminimal-toc to
9825      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9826      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9827
9828      archive_cmds=''
9829      hardcode_direct=yes
9830      hardcode_libdir_separator=':'
9831      link_all_deplibs=yes
9832
9833      if test "$GCC" = yes; then
9834        case $host_os in aix4.[012]|aix4.[012].*)
9835        # We only want to do this on AIX 4.2 and lower, the check
9836        # below for broken collect2 doesn't work under 4.3+
9837          collect2name=`${CC} -print-prog-name=collect2`
9838          if test -f "$collect2name" && \
9839           strings "$collect2name" | grep resolve_lib_name >/dev/null
9840          then
9841          # We have reworked collect2
9842          hardcode_direct=yes
9843          else
9844          # We have old collect2
9845          hardcode_direct=unsupported
9846          # It fails to find uninstalled libraries when the uninstalled
9847          # path is not listed in the libpath.  Setting hardcode_minus_L
9848          # to unsupported forces relinking
9849          hardcode_minus_L=yes
9850          hardcode_libdir_flag_spec='-L$libdir'
9851          hardcode_libdir_separator=
9852          fi
9853          ;;
9854        esac
9855        shared_flag='-shared'
9856        if test "$aix_use_runtimelinking" = yes; then
9857          shared_flag="$shared_flag "'${wl}-G'
9858        fi
9859      else
9860        # not using gcc
9861        if test "$host_cpu" = ia64; then
9862        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9863        # chokes on -Wl,-G. The following line is correct:
9864          shared_flag='-G'
9865        else
9866          if test "$aix_use_runtimelinking" = yes; then
9867            shared_flag='${wl}-G'
9868          else
9869            shared_flag='${wl}-bM:SRE'
9870          fi
9871        fi
9872      fi
9873
9874      # It seems that -bexpall does not export symbols beginning with
9875      # underscore (_), so it is better to generate a list of symbols to export.
9876      always_export_symbols=yes
9877      if test "$aix_use_runtimelinking" = yes; then
9878        # Warning - without using the other runtime loading flags (-brtl),
9879        # -berok will link without error, but may produce a broken library.
9880        allow_undefined_flag='-berok'
9881       # Determine the default libpath from the value encoded in an empty executable.
9882       cat >conftest.$ac_ext <<_ACEOF
9883/* confdefs.h.  */
9884_ACEOF
9885cat confdefs.h >>conftest.$ac_ext
9886cat >>conftest.$ac_ext <<_ACEOF
9887/* end confdefs.h.  */
9888
9889int
9890main ()
9891{
9892
9893  ;
9894  return 0;
9895}
9896_ACEOF
9897rm -f conftest.$ac_objext conftest$ac_exeext
9898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9899  (eval $ac_link) 2>conftest.er1
9900  ac_status=$?
9901  grep -v '^ *+' conftest.er1 >conftest.err
9902  rm -f conftest.er1
9903  cat conftest.err >&5
9904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905  (exit $ac_status); } &&
9906         { ac_try='test -z "$ac_c_werror_flag"
9907                         || test ! -s conftest.err'
9908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909  (eval $ac_try) 2>&5
9910  ac_status=$?
9911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912  (exit $ac_status); }; } &&
9913         { ac_try='test -s conftest$ac_exeext'
9914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915  (eval $ac_try) 2>&5
9916  ac_status=$?
9917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918  (exit $ac_status); }; }; then
9919
9920aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9921}'`
9922# Check for a 64-bit object if we didn't find anything.
9923if 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; }
9924}'`; fi
9925else
9926  echo "$as_me: failed program was:" >&5
9927sed 's/^/| /' conftest.$ac_ext >&5
9928
9929fi
9930rm -f conftest.err conftest.$ac_objext \
9931      conftest$ac_exeext conftest.$ac_ext
9932if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9933
9934       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9935        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"
9936       else
9937        if test "$host_cpu" = ia64; then
9938          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9939          allow_undefined_flag="-z nodefs"
9940          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"
9941        else
9942         # Determine the default libpath from the value encoded in an empty executable.
9943         cat >conftest.$ac_ext <<_ACEOF
9944/* confdefs.h.  */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h.  */
9949
9950int
9951main ()
9952{
9953
9954  ;
9955  return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9960  (eval $ac_link) 2>conftest.er1
9961  ac_status=$?
9962  grep -v '^ *+' conftest.er1 >conftest.err
9963  rm -f conftest.er1
9964  cat conftest.err >&5
9965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); } &&
9967         { ac_try='test -z "$ac_c_werror_flag"
9968                         || test ! -s conftest.err'
9969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970  (eval $ac_try) 2>&5
9971  ac_status=$?
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); }; } &&
9974         { ac_try='test -s conftest$ac_exeext'
9975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976  (eval $ac_try) 2>&5
9977  ac_status=$?
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); }; }; then
9980
9981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9982}'`
9983# Check for a 64-bit object if we didn't find anything.
9984if 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; }
9985}'`; fi
9986else
9987  echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
9990fi
9991rm -f conftest.err conftest.$ac_objext \
9992      conftest$ac_exeext conftest.$ac_ext
9993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9994
9995         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9996          # Warning - without using the other run time loading flags,
9997          # -berok will link without error, but may produce a broken library.
9998          no_undefined_flag=' ${wl}-bernotok'
9999          allow_undefined_flag=' ${wl}-berok'
10000          # Exported symbols can be pulled into shared objects from archives
10001          whole_archive_flag_spec='$convenience'
10002          archive_cmds_need_lc=yes
10003          # This is similar to how AIX traditionally builds its shared libraries.
10004          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'
10005        fi
10006      fi
10007      ;;
10008
10009    amigaos*)
10010      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)'
10011      hardcode_libdir_flag_spec='-L$libdir'
10012      hardcode_minus_L=yes
10013      # see comment about different semantics on the GNU ld section
10014      ld_shlibs=no
10015      ;;
10016
10017    bsdi[45]*)
10018      export_dynamic_flag_spec=-rdynamic
10019      ;;
10020
10021    cygwin* | mingw* | pw32*)
10022      # When not using gcc, we currently assume that we are using
10023      # Microsoft Visual C++.
10024      # hardcode_libdir_flag_spec is actually meaningless, as there is
10025      # no search path for DLLs.
10026      hardcode_libdir_flag_spec=' '
10027      allow_undefined_flag=unsupported
10028      # Tell ltmain to make .lib files, not .a files.
10029      libext=lib
10030      # Tell ltmain to make .dll files, not .so files.
10031      shrext_cmds=".dll"
10032      # FIXME: Setting linknames here is a bad hack.
10033      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10034      # The linker will automatically build a .lib file if we build a DLL.
10035      old_archive_From_new_cmds='true'
10036      # FIXME: Should let the user specify the lib program.
10037      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10038      fix_srcfile_path='`cygpath -w "$srcfile"`'
10039      enable_shared_with_static_runtimes=yes
10040      ;;
10041
10042    darwin* | rhapsody*)
10043      case $host_os in
10044        rhapsody* | darwin1.[012])
10045         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10046         ;;
10047       *) # Darwin 1.3 on
10048         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10049           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10050         else
10051           case ${MACOSX_DEPLOYMENT_TARGET} in
10052             10.[012])
10053               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10054               ;;
10055             10.*)
10056               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10057               ;;
10058           esac
10059         fi
10060         ;;
10061      esac
10062      archive_cmds_need_lc=no
10063      hardcode_direct=no
10064      hardcode_automatic=yes
10065      hardcode_shlibpath_var=unsupported
10066      whole_archive_flag_spec=''
10067      link_all_deplibs=yes
10068    if test "$GCC" = yes ; then
10069        output_verbose_link_cmd='echo'
10070        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10071      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10072      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10073      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}'
10074      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}'
10075    else
10076      case $cc_basename in
10077        xlc*)
10078         output_verbose_link_cmd='echo'
10079         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10080         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10081          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10082         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}'
10083          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}'
10084          ;;
10085       *)
10086         ld_shlibs=no
10087          ;;
10088      esac
10089    fi
10090      ;;
10091
10092    dgux*)
10093      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094      hardcode_libdir_flag_spec='-L$libdir'
10095      hardcode_shlibpath_var=no
10096      ;;
10097
10098    freebsd1*)
10099      ld_shlibs=no
10100      ;;
10101
10102    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10103    # support.  Future versions do this automatically, but an explicit c++rt0.o
10104    # does not break anything, and helps significantly (at the cost of a little
10105    # extra space).
10106    freebsd2.2*)
10107      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10108      hardcode_libdir_flag_spec='-R$libdir'
10109      hardcode_direct=yes
10110      hardcode_shlibpath_var=no
10111      ;;
10112
10113    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10114    freebsd2*)
10115      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10116      hardcode_direct=yes
10117      hardcode_minus_L=yes
10118      hardcode_shlibpath_var=no
10119      ;;
10120
10121    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10122    freebsd* | kfreebsd*-gnu | dragonfly*)
10123      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10124      hardcode_libdir_flag_spec='-R$libdir'
10125      hardcode_direct=yes
10126      hardcode_shlibpath_var=no
10127      ;;
10128
10129    hpux9*)
10130      if test "$GCC" = yes; then
10131        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'
10132      else
10133        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'
10134      fi
10135      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10136      hardcode_libdir_separator=:
10137      hardcode_direct=yes
10138
10139      # hardcode_minus_L: Not really in the search PATH,
10140      # but as the default location of the library.
10141      hardcode_minus_L=yes
10142      export_dynamic_flag_spec='${wl}-E'
10143      ;;
10144
10145    hpux10*)
10146      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10147        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10148      else
10149        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10150      fi
10151      if test "$with_gnu_ld" = no; then
10152        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10153        hardcode_libdir_separator=:
10154
10155        hardcode_direct=yes
10156        export_dynamic_flag_spec='${wl}-E'
10157
10158        # hardcode_minus_L: Not really in the search PATH,
10159        # but as the default location of the library.
10160        hardcode_minus_L=yes
10161      fi
10162      ;;
10163
10164    hpux11*)
10165      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10166        case $host_cpu in
10167        hppa*64*)
10168          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10169          ;;
10170        ia64*)
10171          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10172          ;;
10173        *)
10174          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10175          ;;
10176        esac
10177      else
10178        case $host_cpu in
10179        hppa*64*)
10180          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10181          ;;
10182        ia64*)
10183          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10184          ;;
10185        *)
10186          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10187          ;;
10188        esac
10189      fi
10190      if test "$with_gnu_ld" = no; then
10191        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10192        hardcode_libdir_separator=:
10193
10194        case $host_cpu in
10195        hppa*64*|ia64*)
10196          hardcode_libdir_flag_spec_ld='+b $libdir'
10197          hardcode_direct=no
10198          hardcode_shlibpath_var=no
10199          ;;
10200        *)
10201          hardcode_direct=yes
10202          export_dynamic_flag_spec='${wl}-E'
10203
10204          # hardcode_minus_L: Not really in the search PATH,
10205          # but as the default location of the library.
10206          hardcode_minus_L=yes
10207          ;;
10208        esac
10209      fi
10210      ;;
10211
10212    irix5* | irix6* | nonstopux*)
10213      if test "$GCC" = yes; then
10214        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'
10215      else
10216        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'
10217        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10218      fi
10219      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10220      hardcode_libdir_separator=:
10221      link_all_deplibs=yes
10222      ;;
10223
10224    netbsd*)
10225      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10226        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10227      else
10228        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10229      fi
10230      hardcode_libdir_flag_spec='-R$libdir'
10231      hardcode_direct=yes
10232      hardcode_shlibpath_var=no
10233      ;;
10234
10235    newsos6)
10236      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237      hardcode_direct=yes
10238      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10239      hardcode_libdir_separator=:
10240      hardcode_shlibpath_var=no
10241      ;;
10242
10243    openbsd*)
10244      hardcode_direct=yes
10245      hardcode_shlibpath_var=no
10246      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10247        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10248        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10249        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10250        export_dynamic_flag_spec='${wl}-E'
10251      else
10252       case $host_os in
10253         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10254           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10255           hardcode_libdir_flag_spec='-R$libdir'
10256           ;;
10257         *)
10258           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10259           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10260           ;;
10261       esac
10262      fi
10263      ;;
10264
10265    os2*)
10266      hardcode_libdir_flag_spec='-L$libdir'
10267      hardcode_minus_L=yes
10268      allow_undefined_flag=unsupported
10269      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'
10270      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10271      ;;
10272
10273    osf3*)
10274      if test "$GCC" = yes; then
10275        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10276        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'
10277      else
10278        allow_undefined_flag=' -expect_unresolved \*'
10279        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'
10280      fi
10281      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10282      hardcode_libdir_separator=:
10283      ;;
10284
10285    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10286      if test "$GCC" = yes; then
10287        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10288        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'
10289        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10290      else
10291        allow_undefined_flag=' -expect_unresolved \*'
10292        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'
10293        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10294        $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'
10295
10296        # Both c and cxx compiler support -rpath directly
10297        hardcode_libdir_flag_spec='-rpath $libdir'
10298      fi
10299      hardcode_libdir_separator=:
10300      ;;
10301
10302    solaris*)
10303      no_undefined_flag=' -z text'
10304      if test "$GCC" = yes; then
10305        wlarc='${wl}'
10306        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10307        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10308          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10309      else
10310        wlarc=''
10311        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10313        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10314      fi
10315      hardcode_libdir_flag_spec='-R$libdir'
10316      hardcode_shlibpath_var=no
10317      case $host_os in
10318      solaris2.[0-5] | solaris2.[0-5].*) ;;
10319      *)
10320        # The compiler driver will combine linker options so we
10321        # cannot just pass the convience library names through
10322        # without $wl, iff we do not link with $LD.
10323        # Luckily, gcc supports the same syntax we need for Sun Studio.
10324        # Supported since Solaris 2.6 (maybe 2.5.1?)
10325        case $wlarc in
10326        '')
10327          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10328        *)
10329          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' ;;
10330        esac ;;
10331      esac
10332      link_all_deplibs=yes
10333      ;;
10334
10335    sunos4*)
10336      if test "x$host_vendor" = xsequent; then
10337        # Use $CC to link under sequent, because it throws in some extra .o
10338        # files that make .init and .fini sections work.
10339        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10340      else
10341        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10342      fi
10343      hardcode_libdir_flag_spec='-L$libdir'
10344      hardcode_direct=yes
10345      hardcode_minus_L=yes
10346      hardcode_shlibpath_var=no
10347      ;;
10348
10349    sysv4)
10350      case $host_vendor in
10351        sni)
10352          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353          hardcode_direct=yes # is this really true???
10354        ;;
10355        siemens)
10356          ## LD is ld it makes a PLAMLIB
10357          ## CC just makes a GrossModule.
10358          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10359          reload_cmds='$CC -r -o $output$reload_objs'
10360          hardcode_direct=no
10361        ;;
10362        motorola)
10363          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10365        ;;
10366      esac
10367      runpath_var='LD_RUN_PATH'
10368      hardcode_shlibpath_var=no
10369      ;;
10370
10371    sysv4.3*)
10372      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10373      hardcode_shlibpath_var=no
10374      export_dynamic_flag_spec='-Bexport'
10375      ;;
10376
10377    sysv4*MP*)
10378      if test -d /usr/nec; then
10379        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380        hardcode_shlibpath_var=no
10381        runpath_var=LD_RUN_PATH
10382        hardcode_runpath_var=yes
10383        ld_shlibs=yes
10384      fi
10385      ;;
10386
10387    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10388      no_undefined_flag='${wl}-z,text'
10389      archive_cmds_need_lc=no
10390      hardcode_shlibpath_var=no
10391      runpath_var='LD_RUN_PATH'
10392
10393      if test "$GCC" = yes; then
10394        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396      else
10397        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399      fi
10400      ;;
10401
10402    sysv5* | sco3.2v5* | sco5v6*)
10403      # Note: We can NOT use -z defs as we might desire, because we do not
10404      # link with -lc, and that would cause any symbols used from libc to
10405      # always be unresolved, which means just about no library would
10406      # ever link correctly.  If we're not using GNU ld we use -z text
10407      # though, which does catch some bad symbols but isn't as heavy-handed
10408      # as -z defs.
10409      no_undefined_flag='${wl}-z,text'
10410      allow_undefined_flag='${wl}-z,nodefs'
10411      archive_cmds_need_lc=no
10412      hardcode_shlibpath_var=no
10413      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10414      hardcode_libdir_separator=':'
10415      link_all_deplibs=yes
10416      export_dynamic_flag_spec='${wl}-Bexport'
10417      runpath_var='LD_RUN_PATH'
10418
10419      if test "$GCC" = yes; then
10420        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10421        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10422      else
10423        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10424        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10425      fi
10426      ;;
10427
10428    uts4*)
10429      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430      hardcode_libdir_flag_spec='-L$libdir'
10431      hardcode_shlibpath_var=no
10432      ;;
10433
10434    *)
10435      ld_shlibs=no
10436      ;;
10437    esac
10438  fi
10439
10440echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10441echo "${ECHO_T}$ld_shlibs" >&6
10442test "$ld_shlibs" = no && can_build_shared=no
10443
10444#
10445# Do we need to explicitly link libc?
10446#
10447case "x$archive_cmds_need_lc" in
10448x|xyes)
10449  # Assume -lc should be added
10450  archive_cmds_need_lc=yes
10451
10452  if test "$enable_shared" = yes && test "$GCC" = yes; then
10453    case $archive_cmds in
10454    *'~'*)
10455      # FIXME: we may have to deal with multi-command sequences.
10456      ;;
10457    '$CC '*)
10458      # Test whether the compiler implicitly links with -lc since on some
10459      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10460      # to ld, don't add -lc before -lgcc.
10461      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10462echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10463      $rm conftest*
10464      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10465
10466      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467  (eval $ac_compile) 2>&5
10468  ac_status=$?
10469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470  (exit $ac_status); } 2>conftest.err; then
10471        soname=conftest
10472        lib=conftest
10473        libobjs=conftest.$ac_objext
10474        deplibs=
10475        wl=$lt_prog_compiler_wl
10476        pic_flag=$lt_prog_compiler_pic
10477        compiler_flags=-v
10478        linker_flags=-v
10479        verstring=
10480        output_objdir=.
10481        libname=conftest
10482        lt_save_allow_undefined_flag=$allow_undefined_flag
10483        allow_undefined_flag=
10484        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10485  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10486  ac_status=$?
10487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488  (exit $ac_status); }
10489        then
10490          archive_cmds_need_lc=no
10491        else
10492          archive_cmds_need_lc=yes
10493        fi
10494        allow_undefined_flag=$lt_save_allow_undefined_flag
10495      else
10496        cat conftest.err 1>&5
10497      fi
10498      $rm conftest*
10499      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10500echo "${ECHO_T}$archive_cmds_need_lc" >&6
10501      ;;
10502    esac
10503  fi
10504  ;;
10505esac
10506
10507echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10508echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10509library_names_spec=
10510libname_spec='lib$name'
10511soname_spec=
10512shrext_cmds=".so"
10513postinstall_cmds=
10514postuninstall_cmds=
10515finish_cmds=
10516finish_eval=
10517shlibpath_var=
10518shlibpath_overrides_runpath=unknown
10519version_type=none
10520dynamic_linker="$host_os ld.so"
10521sys_lib_dlsearch_path_spec="/lib /usr/lib"
10522if test "$GCC" = yes; then
10523  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10524  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10525    # if the path contains ";" then we assume it to be the separator
10526    # otherwise default to the standard path separator (i.e. ":") - it is
10527    # assumed that no part of a normal pathname contains ";" but that should
10528    # okay in the real world where ";" in dirpaths is itself problematic.
10529    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10530  else
10531    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10532  fi
10533else
10534  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10535fi
10536need_lib_prefix=unknown
10537hardcode_into_libs=no
10538
10539# when you set need_version to no, make sure it does not cause -set_version
10540# flags to be left without arguments
10541need_version=unknown
10542
10543case $host_os in
10544aix3*)
10545  version_type=linux
10546  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10547  shlibpath_var=LIBPATH
10548
10549  # AIX 3 has no versioning support, so we append a major version to the name.
10550  soname_spec='${libname}${release}${shared_ext}$major'
10551  ;;
10552
10553aix4* | aix5*)
10554  version_type=linux
10555  need_lib_prefix=no
10556  need_version=no
10557  hardcode_into_libs=yes
10558  if test "$host_cpu" = ia64; then
10559    # AIX 5 supports IA64
10560    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10561    shlibpath_var=LD_LIBRARY_PATH
10562  else
10563    # With GCC up to 2.95.x, collect2 would create an import file
10564    # for dependence libraries.  The import file would start with
10565    # the line `#! .'.  This would cause the generated library to
10566    # depend on `.', always an invalid library.  This was fixed in
10567    # development snapshots of GCC prior to 3.0.
10568    case $host_os in
10569      aix4 | aix4.[01] | aix4.[01].*)
10570      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10571           echo ' yes '
10572           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10573        :
10574      else
10575        can_build_shared=no
10576      fi
10577      ;;
10578    esac
10579    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10580    # soname into executable. Probably we can add versioning support to
10581    # collect2, so additional links can be useful in future.
10582    if test "$aix_use_runtimelinking" = yes; then
10583      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10584      # instead of lib<name>.a to let people know that these are not
10585      # typical AIX shared libraries.
10586      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587    else
10588      # We preserve .a as extension for shared libraries through AIX4.2
10589      # and later when we are not doing run time linking.
10590      library_names_spec='${libname}${release}.a $libname.a'
10591      soname_spec='${libname}${release}${shared_ext}$major'
10592    fi
10593    shlibpath_var=LIBPATH
10594  fi
10595  ;;
10596
10597amigaos*)
10598  library_names_spec='$libname.ixlibrary $libname.a'
10599  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10600  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'
10601  ;;
10602
10603beos*)
10604  library_names_spec='${libname}${shared_ext}'
10605  dynamic_linker="$host_os ld.so"
10606  shlibpath_var=LIBRARY_PATH
10607  ;;
10608
10609bsdi[45]*)
10610  version_type=linux
10611  need_version=no
10612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613  soname_spec='${libname}${release}${shared_ext}$major'
10614  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10615  shlibpath_var=LD_LIBRARY_PATH
10616  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10617  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10618  # the default ld.so.conf also contains /usr/contrib/lib and
10619  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10620  # libtool to hard-code these into programs
10621  ;;
10622
10623cygwin* | mingw* | pw32*)
10624  version_type=windows
10625  shrext_cmds=".dll"
10626  need_version=no
10627  need_lib_prefix=no
10628
10629  case $GCC,$host_os in
10630  yes,cygwin* | yes,mingw* | yes,pw32*)
10631    library_names_spec='$libname.dll.a'
10632    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10633    postinstall_cmds='base_file=`basename \${file}`~
10634      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10635      dldir=$destdir/`dirname \$dlpath`~
10636      test -d \$dldir || mkdir -p \$dldir~
10637      $install_prog $dir/$dlname \$dldir/$dlname~
10638      chmod a+x \$dldir/$dlname'
10639    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10640      dlpath=$dir/\$dldll~
10641       $rm \$dlpath'
10642    shlibpath_overrides_runpath=yes
10643
10644    case $host_os in
10645    cygwin*)
10646      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10647      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10648      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10649      ;;
10650    mingw*)
10651      # MinGW DLLs use traditional 'lib' prefix
10652      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10653      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10654      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10655        # It is most probably a Windows format PATH printed by
10656        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10657        # path with ; separators, and with drive letters. We can handle the
10658        # drive letters (cygwin fileutils understands them), so leave them,
10659        # especially as we might pass files found there to a mingw objdump,
10660        # which wouldn't understand a cygwinified path. Ahh.
10661        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10662      else
10663        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10664      fi
10665      ;;
10666    pw32*)
10667      # pw32 DLLs use 'pw' prefix rather than 'lib'
10668      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10669      ;;
10670    esac
10671    ;;
10672
10673  *)
10674    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10675    ;;
10676  esac
10677  dynamic_linker='Win32 ld.exe'
10678  # FIXME: first we should search . and the directory the executable is in
10679  shlibpath_var=PATH
10680  ;;
10681
10682darwin* | rhapsody*)
10683  dynamic_linker="$host_os dyld"
10684  version_type=darwin
10685  need_lib_prefix=no
10686  need_version=no
10687  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10688  soname_spec='${libname}${release}${major}$shared_ext'
10689  shlibpath_overrides_runpath=yes
10690  shlibpath_var=DYLD_LIBRARY_PATH
10691  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10692  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10693  if test "$GCC" = yes; then
10694    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"`
10695  else
10696    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10697  fi
10698  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10699  ;;
10700
10701dgux*)
10702  version_type=linux
10703  need_lib_prefix=no
10704  need_version=no
10705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10706  soname_spec='${libname}${release}${shared_ext}$major'
10707  shlibpath_var=LD_LIBRARY_PATH
10708  ;;
10709
10710freebsd1*)
10711  dynamic_linker=no
10712  ;;
10713
10714kfreebsd*-gnu)
10715  version_type=linux
10716  need_lib_prefix=no
10717  need_version=no
10718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10719  soname_spec='${libname}${release}${shared_ext}$major'
10720  shlibpath_var=LD_LIBRARY_PATH
10721  shlibpath_overrides_runpath=no
10722  hardcode_into_libs=yes
10723  dynamic_linker='GNU ld.so'
10724  ;;
10725
10726freebsd* | dragonfly*)
10727  # DragonFly does not have aout.  When/if they implement a new
10728  # versioning mechanism, adjust this.
10729  if test -x /usr/bin/objformat; then
10730    objformat=`/usr/bin/objformat`
10731  else
10732    case $host_os in
10733    freebsd[123]*) objformat=aout ;;
10734    *) objformat=elf ;;
10735    esac
10736  fi
10737  version_type=freebsd-$objformat
10738  case $version_type in
10739    freebsd-elf*)
10740      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10741      need_version=no
10742      need_lib_prefix=no
10743      ;;
10744    freebsd-*)
10745      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10746      need_version=yes
10747      ;;
10748  esac
10749  shlibpath_var=LD_LIBRARY_PATH
10750  case $host_os in
10751  freebsd2*)
10752    shlibpath_overrides_runpath=yes
10753    ;;
10754  freebsd3.[01]* | freebsdelf3.[01]*)
10755    shlibpath_overrides_runpath=yes
10756    hardcode_into_libs=yes
10757    ;;
10758  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10759  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10760    shlibpath_overrides_runpath=no
10761    hardcode_into_libs=yes
10762    ;;
10763  freebsd*) # from 4.6 on
10764    shlibpath_overrides_runpath=yes
10765    hardcode_into_libs=yes
10766    ;;
10767  esac
10768  ;;
10769
10770gnu*)
10771  version_type=linux
10772  need_lib_prefix=no
10773  need_version=no
10774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10775  soname_spec='${libname}${release}${shared_ext}$major'
10776  shlibpath_var=LD_LIBRARY_PATH
10777  hardcode_into_libs=yes
10778  ;;
10779
10780hpux9* | hpux10* | hpux11*)
10781  # Give a soname corresponding to the major version so that dld.sl refuses to
10782  # link against other versions.
10783  version_type=sunos
10784  need_lib_prefix=no
10785  need_version=no
10786  case $host_cpu in
10787  ia64*)
10788    shrext_cmds='.so'
10789    hardcode_into_libs=yes
10790    dynamic_linker="$host_os dld.so"
10791    shlibpath_var=LD_LIBRARY_PATH
10792    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10793    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794    soname_spec='${libname}${release}${shared_ext}$major'
10795