source: ThirdParty/Glpk/stable/1.9/configure @ 3083

Last change on this file since 3083 was 3083, checked in by stefan, 7 years ago

temporarily committing release candidate

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