source: ThirdParty/Glpk/trunk/configure @ 1119

Last change on this file since 1119 was 1119, checked in by stefan, 11 years ago

reran autotools to get bsp changes

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