source: stable/BSPsplit/Clp/configure @ 1391

Last change on this file since 1391 was 1391, checked in by andreasw, 11 years ago

correct -version-info option

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