source: ThirdParty/Glpk/trunk/configure @ 3298

Last change on this file since 3298 was 3298, checked in by tkr, 6 years ago

restoring BuildTools/ThirdParty/Glpk?/trunk

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