source: ThirdParty/Glpk/trunk/configure @ 1585

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

give project name to COIN_PROJECTDIR_INIT; rerun autotools

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