source: ThirdParty/Glpk/trunk/configure @ 1321

Last change on this file since 1321 was 1321, checked in by stefan, 12 years ago

create config.h and config_glpk.h for glpk; check for additional libraries, especially for odbc and mysql drivers (for Osi ticket 72); store additional dependencies in glpk_addlibs.txt

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