source: ThirdParty/Glpk/trunk/configure @ 2170

Last change on this file since 2170 was 2170, checked in by stefan, 9 years ago

rerun autotools

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