source: ThirdParty/Glpk/trunk/configure @ 959

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

ups, looks like I turned debugging possibility off

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