source: ThirdParty/Glpk/trunk/configure @ 1627

Last change on this file since 1627 was 1627, checked in by stefan, 10 years ago

rerun autotools

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