source: ThirdParty/Glpk/stable/1.8/configure @ 2439

Last change on this file since 2439 was 2439, checked in by stefan, 8 years ago

temporarily committing release candidate

File size: 776.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 1.8.1.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='1.8.1'
433PACKAGE_STRING='ThirdPartyGlpk 1.8.1'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/include/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS glpkmajorver glpkminorver COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk 1.8.1 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk 1.8.1:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-glpk compile project Glpk with debug compiler flags
1064  --enable-doscompile     Under Cygwin, compile so that executables run under
1065                          DOS. Set to mingw to use gcc/g++/ld with
1066                          -mno-cygwin. Set to msvc to use cl/link (or
1067                          icl/link). Default when mentioned: mingw. Default
1068                          when not mentioned: disabled.
1069  --disable-pkg-config    disable use of pkg-config (if available)
1070  --enable-static[=PKGS]
1071                          build static libraries [default=no]
1072  --disable-dependency-tracking  speeds up one-time build
1073  --enable-dependency-tracking   do not reject slow dependency extractors
1074  --enable-maintainer-mode  enable make rules and dependencies not useful
1075                          (and sometimes confusing) to the casual installer
1076  --enable-shared[=PKGS]
1077                          build shared libraries [default=yes]
1078  --enable-fast-install[=PKGS]
1079                          optimize for fast installation [default=yes]
1080  --disable-libtool-lock  avoid locking (might break parallel builds)
1081  --disable-zlib          do not compile with compression library zlib
1082  --disable-gmp           do not compile with GNU multiple precision library
1083  --enable-odbc           enable MathProg ODBC support [default=auto]
1084  --enable-mysql          enable MathProg MySQL support [default=auto]
1085
1086Optional Packages:
1087  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1088  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1089  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1090  --with-glpk-checklevel specify the sanity check level for project Glpk
1091  --with-coin-instdir     prefix of installation directory for precompiled
1092                          COIN packages
1093  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1094  --with-pic              try to use only PIC/non-PIC objects [default=use
1095                          both]
1096  --with-tags[=TAGS]
1097                          include additional configurations [automatic]
1098
1099Some influential environment variables:
1100  CDEFS       Additional -D flags to be used when compiling C code.
1101  ADD_CFLAGS  Additional C compiler options
1102  DBG_CFLAGS  Debug C compiler options
1103  OPT_CFLAGS  Optimize C compiler options
1104  CC          C compiler command
1105  CFLAGS      C compiler flags
1106  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1107              nonstandard directory <lib dir>
1108  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1109              headers in a nonstandard directory <include dir>
1110  MPICC       C MPI Compiler
1111  PKG_CONFIG  path to pkg-config utility
1112  CPP         C preprocessor
1113  CXX         C++ compiler command
1114  CXXFLAGS    C++ compiler flags
1115  CXXCPP      C++ preprocessor
1116  F77         Fortran 77 compiler command
1117  FFLAGS      Fortran 77 compiler flags
1118
1119Use these variables to override the choices made by `configure' or to help
1120it to find libraries and programs with nonstandard names/locations.
1121
1122Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1123_ACEOF
1124fi
1125
1126if test "$ac_init_help" = "recursive"; then
1127  # If there are subdirs, report their specific --help.
1128  ac_popdir=`pwd`
1129  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1130    test -d $ac_dir || continue
1131    ac_builddir=.
1132
1133if test "$ac_dir" != .; then
1134  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1135  # A "../" for each directory in $ac_dir_suffix.
1136  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1137else
1138  ac_dir_suffix= ac_top_builddir=
1139fi
1140
1141case $srcdir in
1142  .)  # No --srcdir option.  We are building in place.
1143    ac_srcdir=.
1144    if test -z "$ac_top_builddir"; then
1145       ac_top_srcdir=.
1146    else
1147       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1148    fi ;;
1149  [\\/]* | ?:[\\/]* )  # Absolute path.
1150    ac_srcdir=$srcdir$ac_dir_suffix;
1151    ac_top_srcdir=$srcdir ;;
1152  *) # Relative path.
1153    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1154    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1155esac
1156
1157# Do not use `cd foo && pwd` to compute absolute paths, because
1158# the directories may not exist.
1159case `pwd` in
1160.) ac_abs_builddir="$ac_dir";;
1161*)
1162  case "$ac_dir" in
1163  .) ac_abs_builddir=`pwd`;;
1164  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1165  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1166  esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_builddir=${ac_top_builddir}.;;
1170*)
1171  case ${ac_top_builddir}. in
1172  .) ac_abs_top_builddir=$ac_abs_builddir;;
1173  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1174  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1175  esac;;
1176esac
1177case $ac_abs_builddir in
1178.) ac_abs_srcdir=$ac_srcdir;;
1179*)
1180  case $ac_srcdir in
1181  .) ac_abs_srcdir=$ac_abs_builddir;;
1182  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1183  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1184  esac;;
1185esac
1186case $ac_abs_builddir in
1187.) ac_abs_top_srcdir=$ac_top_srcdir;;
1188*)
1189  case $ac_top_srcdir in
1190  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1191  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1192  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1193  esac;;
1194esac
1195
1196    cd $ac_dir
1197    # Check for guested configure; otherwise get Cygnus style configure.
1198    if test -f $ac_srcdir/configure.gnu; then
1199      echo
1200      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1201    elif test -f $ac_srcdir/configure; then
1202      echo
1203      $SHELL $ac_srcdir/configure  --help=recursive
1204    elif test -f $ac_srcdir/configure.ac ||
1205           test -f $ac_srcdir/configure.in; then
1206      echo
1207      $ac_configure --help
1208    else
1209      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1210    fi
1211    cd $ac_popdir
1212  done
1213fi
1214
1215test -n "$ac_init_help" && exit 0
1216if $ac_init_version; then
1217  cat <<\_ACEOF
1218ThirdPartyGlpk configure 1.8.1
1219generated by GNU Autoconf 2.59
1220
1221Copyright (C) 2003 Free Software Foundation, Inc.
1222This configure script is free software; the Free Software Foundation
1223gives unlimited permission to copy, distribute and modify it.
1224
1225
1226Copyright 2007-2010 Stefan Vigerske and others.
1227All Rights Reserved.
1228This file is part of the open source package Coin which is distributed
1229under the Eclipse Public License.
1230_ACEOF
1231  exit 0
1232fi
1233exec 5>config.log
1234cat >&5 <<_ACEOF
1235This file contains any messages produced by compilers while
1236running configure, to aid debugging if configure makes a mistake.
1237
1238It was created by ThirdPartyGlpk $as_me 1.8.1, which was
1239generated by GNU Autoconf 2.59.  Invocation command line was
1240
1241  $ $0 $@
1242
1243_ACEOF
1244{
1245cat <<_ASUNAME
1246## --------- ##
1247## Platform. ##
1248## --------- ##
1249
1250hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1251uname -m = `(uname -m) 2>/dev/null || echo unknown`
1252uname -r = `(uname -r) 2>/dev/null || echo unknown`
1253uname -s = `(uname -s) 2>/dev/null || echo unknown`
1254uname -v = `(uname -v) 2>/dev/null || echo unknown`
1255
1256/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1257/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1258
1259/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1260/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1261/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1262hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1263/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1264/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1265/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1266
1267_ASUNAME
1268
1269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1270for as_dir in $PATH
1271do
1272  IFS=$as_save_IFS
1273  test -z "$as_dir" && as_dir=.
1274  echo "PATH: $as_dir"
1275done
1276
1277} >&5
1278
1279cat >&5 <<_ACEOF
1280
1281
1282## ----------- ##
1283## Core tests. ##
1284## ----------- ##
1285
1286_ACEOF
1287
1288
1289# Keep a trace of the command line.
1290# Strip out --no-create and --no-recursion so they do not pile up.
1291# Strip out --silent because we don't want to record it for future runs.
1292# Also quote any args containing shell meta-characters.
1293# Make two passes to allow for proper duplicate-argument suppression.
1294ac_configure_args=
1295ac_configure_args0=
1296ac_configure_args1=
1297ac_sep=
1298ac_must_keep_next=false
1299for ac_pass in 1 2
1300do
1301  for ac_arg
1302  do
1303    case $ac_arg in
1304    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1305    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1306    | -silent | --silent | --silen | --sile | --sil)
1307      continue ;;
1308    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1310    esac
1311    case $ac_pass in
1312    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1313    2)
1314      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1315      if test $ac_must_keep_next = true; then
1316        ac_must_keep_next=false # Got value, back to normal.
1317      else
1318        case $ac_arg in
1319          *=* | --config-cache | -C | -disable-* | --disable-* \
1320          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1321          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1322          | -with-* | --with-* | -without-* | --without-* | --x)
1323            case "$ac_configure_args0 " in
1324              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1325            esac
1326            ;;
1327          -* ) ac_must_keep_next=true ;;
1328        esac
1329      fi
1330      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1331      # Get rid of the leading space.
1332      ac_sep=" "
1333      ;;
1334    esac
1335  done
1336done
1337$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1338$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1339
1340# When interrupted or exit'd, cleanup temporary files, and complete
1341# config.log.  We remove comments because anyway the quotes in there
1342# would cause problems or look ugly.
1343# WARNING: Be sure not to use single quotes in there, as some shells,
1344# such as our DU 5.0 friend, will then `close' the trap.
1345trap 'exit_status=$?
1346  # Save into config.log some information that might help in debugging.
1347  {
1348    echo
1349
1350    cat <<\_ASBOX
1351## ---------------- ##
1352## Cache variables. ##
1353## ---------------- ##
1354_ASBOX
1355    echo
1356    # The following way of writing the cache mishandles newlines in values,
1357{
1358  (set) 2>&1 |
1359    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1360    *ac_space=\ *)
1361      sed -n \
1362        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1363          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1364      ;;
1365    *)
1366      sed -n \
1367        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1368      ;;
1369    esac;
1370}
1371    echo
1372
1373    cat <<\_ASBOX
1374## ----------------- ##
1375## Output variables. ##
1376## ----------------- ##
1377_ASBOX
1378    echo
1379    for ac_var in $ac_subst_vars
1380    do
1381      eval ac_val=$`echo $ac_var`
1382      echo "$ac_var='"'"'$ac_val'"'"'"
1383    done | sort
1384    echo
1385
1386    if test -n "$ac_subst_files"; then
1387      cat <<\_ASBOX
1388## ------------- ##
1389## Output files. ##
1390## ------------- ##
1391_ASBOX
1392      echo
1393      for ac_var in $ac_subst_files
1394      do
1395        eval ac_val=$`echo $ac_var`
1396        echo "$ac_var='"'"'$ac_val'"'"'"
1397      done | sort
1398      echo
1399    fi
1400
1401    if test -s confdefs.h; then
1402      cat <<\_ASBOX
1403## ----------- ##
1404## confdefs.h. ##
1405## ----------- ##
1406_ASBOX
1407      echo
1408      sed "/^$/d" confdefs.h | sort
1409      echo
1410    fi
1411    test "$ac_signal" != 0 &&
1412      echo "$as_me: caught signal $ac_signal"
1413    echo "$as_me: exit $exit_status"
1414  } >&5
1415  rm -f core *.core &&
1416  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1417    exit $exit_status
1418     ' 0
1419for ac_signal in 1 2 13 15; do
1420  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1421done
1422ac_signal=0
1423
1424# confdefs.h avoids OS command line length limits that DEFS can exceed.
1425rm -rf conftest* confdefs.h
1426# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1427echo >confdefs.h
1428
1429# Predefined preprocessor variables.
1430
1431cat >>confdefs.h <<_ACEOF
1432#define PACKAGE_NAME "$PACKAGE_NAME"
1433_ACEOF
1434
1435
1436cat >>confdefs.h <<_ACEOF
1437#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1438_ACEOF
1439
1440
1441cat >>confdefs.h <<_ACEOF
1442#define PACKAGE_VERSION "$PACKAGE_VERSION"
1443_ACEOF
1444
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_STRING "$PACKAGE_STRING"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1453_ACEOF
1454
1455
1456# Let the site file select an alternate cache file if it wants to.
1457# Prefer explicitly selected file to automatically selected ones.
1458if test -z "$CONFIG_SITE"; then
1459  if test "x$prefix" != xNONE; then
1460    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1461  else
1462    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1463  fi
1464fi
1465for ac_site_file in $CONFIG_SITE; do
1466  if test -r "$ac_site_file"; then
1467    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1468echo "$as_me: loading site script $ac_site_file" >&6;}
1469    sed 's/^/| /' "$ac_site_file" >&5
1470    . "$ac_site_file"
1471  fi
1472done
1473
1474if test -r "$cache_file"; then
1475  # Some versions of bash will fail to source /dev/null (special
1476  # files actually), so we avoid doing that.
1477  if test -f "$cache_file"; then
1478    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1479echo "$as_me: loading cache $cache_file" >&6;}
1480    case $cache_file in
1481      [\\/]* | ?:[\\/]* ) . $cache_file;;
1482      *)                      . ./$cache_file;;
1483    esac
1484  fi
1485else
1486  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1487echo "$as_me: creating cache $cache_file" >&6;}
1488  >$cache_file
1489fi
1490
1491# Check that the precious variables saved in the cache have kept the same
1492# value.
1493ac_cache_corrupted=false
1494for ac_var in `(set) 2>&1 |
1495               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1496  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1497  eval ac_new_set=\$ac_env_${ac_var}_set
1498  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1499  eval ac_new_val="\$ac_env_${ac_var}_value"
1500  case $ac_old_set,$ac_new_set in
1501    set,)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,set)
1506      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1507echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1508      ac_cache_corrupted=: ;;
1509    ,);;
1510    *)
1511      if test "x$ac_old_val" != "x$ac_new_val"; then
1512        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1513echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1514        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1515echo "$as_me:   former value:  $ac_old_val" >&2;}
1516        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1517echo "$as_me:   current value: $ac_new_val" >&2;}
1518        ac_cache_corrupted=:
1519      fi;;
1520  esac
1521  # Pass precious variables to config.status.
1522  if test "$ac_new_set" = set; then
1523    case $ac_new_val in
1524    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1525      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1526    *) ac_arg=$ac_var=$ac_new_val ;;
1527    esac
1528    case " $ac_configure_args " in
1529      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1530      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1531    esac
1532  fi
1533done
1534if $ac_cache_corrupted; then
1535  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1536echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1537  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1538echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1539   { (exit 1); exit 1; }; }
1540fi
1541
1542ac_ext=c
1543ac_cpp='$CPP $CPPFLAGS'
1544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1546ac_compiler_gnu=$ac_cv_c_compiler_gnu
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577# List one file in the package so that the configure script can test
1578# whether the package is actually there
1579
1580
1581# Where should everything be installed by default?  Here, we want it
1582# to be installed directly in 'bin', 'lib', 'include' subdirectories
1583# of the directory where configure is run.  The default would be
1584# /usr/local.
1585
1586
1587
1588# As backup, we make sure we don't loose an FLIBS if it has been set
1589# by the user
1590save_FLIBS="$FLIBS"
1591
1592# A useful makefile conditional that is always false
1593
1594
1595if false; then
1596  ALWAYS_FALSE_TRUE=
1597  ALWAYS_FALSE_FALSE='#'
1598else
1599  ALWAYS_FALSE_TRUE='#'
1600  ALWAYS_FALSE_FALSE=
1601fi
1602
1603
1604# We set the following variable so that we know later in AC_COIN_FINALIZE
1605# that we are in a project main directory
1606coin_projectdir=yes
1607
1608# Set the project's version numbers
1609
1610
1611cat >>confdefs.h <<_ACEOF
1612#define GLPK_VERSION "$PACKAGE_VERSION"
1613_ACEOF
1614
1615
1616  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1617  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1618  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1619  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1620  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1621  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1622
1623cat >>confdefs.h <<_ACEOF
1624#define GLPK_VERSION_MAJOR $coin_majorver
1625_ACEOF
1626
1627
1628cat >>confdefs.h <<_ACEOF
1629#define GLPK_VERSION_MINOR $coin_minorver
1630_ACEOF
1631
1632
1633cat >>confdefs.h <<_ACEOF
1634#define GLPK_VERSION_RELEASE $coin_releasever
1635_ACEOF
1636
1637
1638  # We use the following variable to have a string with the upper case
1639  # version of the project name
1640  COIN_PRJCT=GLPK
1641
1642  # Set the project's SVN revision number. The complicated sed expression
1643  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1644  # as a single number.
1645  # Extract the first word of "svnversion", so it can be a program name with args.
1646set dummy svnversion; ac_word=$2
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_have_svnversion+set}" = set; then
1650  echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652  if test -n "$have_svnversion"; then
1653  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658  IFS=$as_save_IFS
1659  test -z "$as_dir" && as_dir=.
1660  for ac_exec_ext in '' $ac_executable_extensions; do
1661  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662    ac_cv_prog_have_svnversion="yes"
1663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664    break 2
1665  fi
1666done
1667done
1668
1669  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1670fi
1671fi
1672have_svnversion=$ac_cv_prog_have_svnversion
1673if test -n "$have_svnversion"; then
1674  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1675echo "${ECHO_T}$have_svnversion" >&6
1676else
1677  echo "$as_me:$LINENO: result: no" >&5
1678echo "${ECHO_T}no" >&6
1679fi
1680
1681  if test "x$have_svnversion" = xyes; then
1682
1683    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1684    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1685      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1686
1687cat >>confdefs.h <<_ACEOF
1688#define GLPK_SVN_REV $GLPK_SVN_REV
1689_ACEOF
1690
1691    fi
1692  fi
1693
1694
1695
1696# Capture libtool library version, if given.
1697coin_libversion=9:1:8
1698
1699
1700
1701
1702#############################################################################
1703#                         Standard build tool stuff                         #
1704#############################################################################
1705
1706# Get the system type
1707ac_aux_dir=
1708for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1709  if test -f $ac_dir/install-sh; then
1710    ac_aux_dir=$ac_dir
1711    ac_install_sh="$ac_aux_dir/install-sh -c"
1712    break
1713  elif test -f $ac_dir/install.sh; then
1714    ac_aux_dir=$ac_dir
1715    ac_install_sh="$ac_aux_dir/install.sh -c"
1716    break
1717  elif test -f $ac_dir/shtool; then
1718    ac_aux_dir=$ac_dir
1719    ac_install_sh="$ac_aux_dir/shtool install -c"
1720    break
1721  fi
1722done
1723if test -z "$ac_aux_dir"; then
1724  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1725echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1726   { (exit 1); exit 1; }; }
1727fi
1728ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1729ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1730ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1731
1732# Make sure we can run config.sub.
1733$ac_config_sub sun4 >/dev/null 2>&1 ||
1734  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1735echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1736   { (exit 1); exit 1; }; }
1737
1738echo "$as_me:$LINENO: checking build system type" >&5
1739echo $ECHO_N "checking build system type... $ECHO_C" >&6
1740if test "${ac_cv_build+set}" = set; then
1741  echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743  ac_cv_build_alias=$build_alias
1744test -z "$ac_cv_build_alias" &&
1745  ac_cv_build_alias=`$ac_config_guess`
1746test -z "$ac_cv_build_alias" &&
1747  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1748echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1749   { (exit 1); exit 1; }; }
1750ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1751  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1752echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1753   { (exit 1); exit 1; }; }
1754
1755fi
1756echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1757echo "${ECHO_T}$ac_cv_build" >&6
1758build=$ac_cv_build
1759build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1760build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1761build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1762
1763
1764
1765#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1766#and we couldn't fix it anyway
1767coin_skip_warn_cflags=yes
1768
1769# Check if user wants to produce debugging code
1770
1771echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1772echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1773
1774# Check whether --enable-debug or --disable-debug was given.
1775if test "${enable_debug+set}" = set; then
1776  enableval="$enable_debug"
1777  case "${enableval}" in
1778   yes) coin_debug_compile=true
1779        if test "${enable_shared+set}" = set; then :; else
1780          enable_shared=no
1781        fi
1782        ;;
1783   no)  coin_debug_compile=false
1784        ;;
1785   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1786echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1787   { (exit 1); exit 1; }; }
1788        ;;
1789esac
1790else
1791  coin_debug_compile=false
1792fi;
1793
1794# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1795if test "${enable_debug_glpk+set}" = set; then
1796  enableval="$enable_debug_glpk"
1797  case "${enableval}" in
1798    yes) coin_debug_compile=true
1799         ;;
1800    no)  coin_debug_compile=false
1801         ;;
1802    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1803echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1804   { (exit 1); exit 1; }; }
1805         ;;
1806 esac
1807else
1808  :
1809fi;
1810
1811 # m4_ifvaln([Glpk],
1812
1813if test $coin_debug_compile = true; then
1814  echo "$as_me:$LINENO: result: yes" >&5
1815echo "${ECHO_T}yes" >&6
1816else
1817  echo "$as_me:$LINENO: result: no" >&5
1818echo "${ECHO_T}no" >&6
1819fi
1820
1821
1822# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1823if test "${with_glpk_verbosity+set}" = set; then
1824  withval="$with_glpk_verbosity"
1825  if test "$withval" = yes; then
1826                withval=1
1827              fi
1828              coin_glpk_verbosity=$withval
1829else
1830  coin_glpk_verbosity=0
1831fi;
1832
1833cat >>confdefs.h <<_ACEOF
1834#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1835_ACEOF
1836
1837
1838
1839# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1840if test "${with_glpk_checklevel+set}" = set; then
1841  withval="$with_glpk_checklevel"
1842  if test "$withval" = yes; then
1843                withval=1
1844              fi
1845              coin_glpk_checklevel=$withval
1846else
1847  coin_glpk_checklevel=0
1848fi;
1849
1850cat >>confdefs.h <<_ACEOF
1851#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1852_ACEOF
1853
1854
1855 # m4_ifvaln([Glpk],
1856
1857
1858
1859# Get the name of the C compiler
1860case $build in
1861  *-mingw*)
1862    if test "${LD+set}" = set; then :; else
1863      LD=link
1864    fi
1865    ;;
1866 esac
1867 case $enable_doscompile in
1868   msvc)
1869     if test "x${LD+set}" = xset; then :; else
1870       LD=link
1871     fi
1872     ;;
1873 esac
1874
1875
1876 # Check whether --enable-doscompile or --disable-doscompile was given.
1877if test "${enable_doscompile+set}" = set; then
1878  enableval="$enable_doscompile"
1879  if test "$enable_doscompile" != no; then
1880     case $build in
1881       *-cygwin* | *-mingw*) ;;
1882       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1883echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1884   { (exit 1); exit 1; }; } ;;
1885     esac
1886   fi
1887else
1888  enable_doscompile=no
1889fi;
1890 case "$enable_doscompile" in
1891   mingw)
1892     case $build in
1893       *-mingw*) enable_doscompile=no ;;
1894     esac
1895     ;;
1896   msvc|no) ;;
1897   yes) enable_doscompile=mingw ;;
1898   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1899                    Try configure --help=recursive." >&5
1900echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1901                    Try configure --help=recursive." >&2;}
1902   { (exit 1); exit 1; }; }
1903      ;;
1904  esac
1905  if test "$enable_doscompile" != no ; then
1906    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1907echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1908  fi
1909
1910
1911
1912
1913ac_ext=c
1914ac_cpp='$CPP $CPPFLAGS'
1915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920# For consistency, we set the C compiler to the same value of the C++
1921# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1922if test x"$CXX" != x; then
1923  case "$CXX" in
1924    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1925      if test x"$CC" = x; then
1926        CC="$CXX"
1927        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1928echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1929      fi
1930      ;;
1931  esac
1932fi
1933
1934
1935
1936
1937
1938
1939coin_has_cc=yes
1940
1941save_cflags="$CFLAGS"
1942
1943# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1944# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1945# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1946# compiler. In this case, put cc after gcc.
1947
1948case $build in
1949  *-cygwin* | *-mingw*)
1950             if test "$enable_doscompile" = msvc ; then
1951               comps="icl cl"
1952             else
1953               comps="gcc cl"
1954             fi ;;
1955  *-*-solaris*)
1956             # Extract the first word of "cc", so it can be a program name with args.
1957set dummy cc; ac_word=$2
1958echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1961  echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963  if test -n "$sol_cc_compiler"; then
1964  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1965else
1966  ac_prog_rejected=no
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970  IFS=$as_save_IFS
1971  test -z "$as_dir" && as_dir=.
1972  for ac_exec_ext in '' $ac_executable_extensions; do
1973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975       ac_prog_rejected=yes
1976       continue
1977     fi
1978    ac_cv_prog_sol_cc_compiler="cc"
1979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980    break 2
1981  fi
1982done
1983done
1984
1985if test $ac_prog_rejected = yes; then
1986  # We found a bogon in the path, so make sure we never use it.
1987  set dummy $ac_cv_prog_sol_cc_compiler
1988  shift
1989  if test $# != 0; then
1990    # We chose a different compiler from the bogus one.
1991    # However, it has the same basename, so the bogon will be chosen
1992    # first if we set sol_cc_compiler to just the basename; use the full file name.
1993    shift
1994    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1995  fi
1996fi
1997fi
1998fi
1999sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2000if test -n "$sol_cc_compiler"; then
2001  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2002echo "${ECHO_T}$sol_cc_compiler" >&6
2003else
2004  echo "$as_me:$LINENO: result: no" >&5
2005echo "${ECHO_T}no" >&6
2006fi
2007
2008             if test "$sol_cc_compiler" = "cc" ; then
2009               comps="cc xlc gcc pgcc icc"
2010             else
2011               comps="xlc gcc pgcc icc cc"
2012             fi
2013             ;;
2014  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2015  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2016  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2017esac
2018
2019# We delete the cached value, since the test might not have been
2020# performed with our choice of compilers earlier
2021$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2022# AC_MSG_NOTICE([C compiler candidates: $comps])
2023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028if test -n "$ac_tool_prefix"; then
2029  for ac_prog in $comps
2030  do
2031    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033echo "$as_me:$LINENO: checking for $ac_word" >&5
2034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035if test "${ac_cv_prog_CC+set}" = set; then
2036  echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038  if test -n "$CC"; then
2039  ac_cv_prog_CC="$CC" # Let the user override the test.
2040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044  IFS=$as_save_IFS
2045  test -z "$as_dir" && as_dir=.
2046  for ac_exec_ext in '' $ac_executable_extensions; do
2047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050    break 2
2051  fi
2052done
2053done
2054
2055fi
2056fi
2057CC=$ac_cv_prog_CC
2058if test -n "$CC"; then
2059  echo "$as_me:$LINENO: result: $CC" >&5
2060echo "${ECHO_T}$CC" >&6
2061else
2062  echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
2066    test -n "$CC" && break
2067  done
2068fi
2069if test -z "$CC"; then
2070  ac_ct_CC=$CC
2071  for ac_prog in $comps
2072do
2073  # Extract the first word of "$ac_prog", so it can be a program name with args.
2074set dummy $ac_prog; ac_word=$2
2075echo "$as_me:$LINENO: checking for $ac_word" >&5
2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078  echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080  if test -n "$ac_ct_CC"; then
2081  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082else
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086  IFS=$as_save_IFS
2087  test -z "$as_dir" && as_dir=.
2088  for ac_exec_ext in '' $ac_executable_extensions; do
2089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090    ac_cv_prog_ac_ct_CC="$ac_prog"
2091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092    break 2
2093  fi
2094done
2095done
2096
2097fi
2098fi
2099ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100if test -n "$ac_ct_CC"; then
2101  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102echo "${ECHO_T}$ac_ct_CC" >&6
2103else
2104  echo "$as_me:$LINENO: result: no" >&5
2105echo "${ECHO_T}no" >&6
2106fi
2107
2108  test -n "$ac_ct_CC" && break
2109done
2110
2111  CC=$ac_ct_CC
2112fi
2113
2114
2115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: no acceptable C compiler found in \$PATH
2118See \`config.log' for more details." >&2;}
2119   { (exit 1); exit 1; }; }
2120
2121# Provide some information about the compiler.
2122echo "$as_me:$LINENO:" \
2123     "checking for C compiler version" >&5
2124ac_compiler=`set X $ac_compile; echo $2`
2125{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126  (eval $ac_compiler --version </dev/null >&5) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131  (eval $ac_compiler -v </dev/null >&5) 2>&5
2132  ac_status=$?
2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134  (exit $ac_status); }
2135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136  (eval $ac_compiler -V </dev/null >&5) 2>&5
2137  ac_status=$?
2138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139  (exit $ac_status); }
2140
2141cat >conftest.$ac_ext <<_ACEOF
2142/* confdefs.h.  */
2143_ACEOF
2144cat confdefs.h >>conftest.$ac_ext
2145cat >>conftest.$ac_ext <<_ACEOF
2146/* end confdefs.h.  */
2147
2148int
2149main ()
2150{
2151
2152  ;
2153  return 0;
2154}
2155_ACEOF
2156ac_clean_files_save=$ac_clean_files
2157ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158# Try to create an executable without -o first, disregard a.out.
2159# It will help us diagnose broken compilers, and finding out an intuition
2160# of exeext.
2161echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2163ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2165  (eval $ac_link_default) 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }; then
2169  # Find the output, starting from the most likely.  This scheme is
2170# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2171# resort.
2172
2173# Be careful to initialize this variable, since it used to be cached.
2174# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2175ac_cv_exeext=
2176# b.out is created by i960 compilers.
2177for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2178do
2179  test -f "$ac_file" || continue
2180  case $ac_file in
2181    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2182        ;;
2183    conftest.$ac_ext )
2184        # This is the source file.
2185        ;;
2186    [ab].out )
2187        # We found the default executable, but exeext='' is most
2188        # certainly right.
2189        break;;
2190    *.* )
2191        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192        # FIXME: I believe we export ac_cv_exeext for Libtool,
2193        # but it would be cool to find out if it's true.  Does anybody
2194        # maintain Libtool? --akim.
2195        export ac_cv_exeext
2196        break;;
2197    * )
2198        break;;
2199  esac
2200done
2201else
2202  echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206See \`config.log' for more details." >&5
2207echo "$as_me: error: C compiler cannot create executables
2208See \`config.log' for more details." >&2;}
2209   { (exit 77); exit 77; }; }
2210fi
2211
2212ac_exeext=$ac_cv_exeext
2213echo "$as_me:$LINENO: result: $ac_file" >&5
2214echo "${ECHO_T}$ac_file" >&6
2215
2216# Check the compiler produces executables we can run.  If not, either
2217# the compiler is broken, or we cross compile.
2218echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221# If not cross compiling, check that we can run a simple program.
2222if test "$cross_compiling" != yes; then
2223  if { ac_try='./$ac_file'
2224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225  (eval $ac_try) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; }; then
2229    cross_compiling=no
2230  else
2231    if test "$cross_compiling" = maybe; then
2232        cross_compiling=yes
2233    else
2234        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot run C compiled programs.
2238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&2;}
2240   { (exit 1); exit 1; }; }
2241    fi
2242  fi
2243fi
2244echo "$as_me:$LINENO: result: yes" >&5
2245echo "${ECHO_T}yes" >&6
2246
2247rm -f a.out a.exe conftest$ac_cv_exeext b.out
2248ac_clean_files=$ac_clean_files_save
2249# Check the compiler produces executables we can run.  If not, either
2250# the compiler is broken, or we cross compile.
2251echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2253echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254echo "${ECHO_T}$cross_compiling" >&6
2255
2256echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2259  (eval $ac_link) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; then
2263  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2265# work properly (i.e., refer to `conftest.exe'), while it won't with
2266# `rm'.
2267for ac_file in conftest.exe conftest conftest.*; do
2268  test -f "$ac_file" || continue
2269  case $ac_file in
2270    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2271    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272          export ac_cv_exeext
2273          break;;
2274    * ) break;;
2275  esac
2276done
2277else
2278  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279See \`config.log' for more details." >&5
2280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&2;}
2282   { (exit 1); exit 1; }; }
2283fi
2284
2285rm -f conftest$ac_cv_exeext
2286echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287echo "${ECHO_T}$ac_cv_exeext" >&6
2288
2289rm -f conftest.$ac_ext
2290EXEEXT=$ac_cv_exeext
2291ac_exeext=$EXEEXT
2292echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2294if test "${ac_cv_objext+set}" = set; then
2295  echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297  cat >conftest.$ac_ext <<_ACEOF
2298/* confdefs.h.  */
2299_ACEOF
2300cat confdefs.h >>conftest.$ac_ext
2301cat >>conftest.$ac_ext <<_ACEOF
2302/* end confdefs.h.  */
2303
2304int
2305main ()
2306{
2307
2308  ;
2309  return 0;
2310}
2311_ACEOF
2312rm -f conftest.o conftest.obj
2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314  (eval $ac_compile) 2>&5
2315  ac_status=$?
2316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317  (exit $ac_status); }; then
2318  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2319  case $ac_file in
2320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2321    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2322       break;;
2323  esac
2324done
2325else
2326  echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: cannot compute suffix of object files: cannot compile
2332See \`config.log' for more details." >&2;}
2333   { (exit 1); exit 1; }; }
2334fi
2335
2336rm -f conftest.$ac_cv_objext conftest.$ac_ext
2337fi
2338echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2339echo "${ECHO_T}$ac_cv_objext" >&6
2340OBJEXT=$ac_cv_objext
2341ac_objext=$OBJEXT
2342echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2343echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2344if test "${ac_cv_c_compiler_gnu+set}" = set; then
2345  echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347  cat >conftest.$ac_ext <<_ACEOF
2348/* confdefs.h.  */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h.  */
2353
2354int
2355main ()
2356{
2357#ifndef __GNUC__
2358       choke me
2359#endif
2360
2361  ;
2362  return 0;
2363}
2364_ACEOF
2365rm -f conftest.$ac_objext
2366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367  (eval $ac_compile) 2>conftest.er1
2368  ac_status=$?
2369  grep -v '^ *+' conftest.er1 >conftest.err
2370  rm -f conftest.er1
2371  cat conftest.err >&5
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); } &&
2374         { ac_try='test -z "$ac_c_werror_flag"
2375                         || test ! -s conftest.err'
2376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377  (eval $ac_try) 2>&5
2378  ac_status=$?
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); }; } &&
2381         { ac_try='test -s conftest.$ac_objext'
2382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383  (eval $ac_try) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; }; then
2387  ac_compiler_gnu=yes
2388else
2389  echo "$as_me: failed program was:" >&5
2390sed 's/^/| /' conftest.$ac_ext >&5
2391
2392ac_compiler_gnu=no
2393fi
2394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2395ac_cv_c_compiler_gnu=$ac_compiler_gnu
2396
2397fi
2398echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2399echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2400GCC=`test $ac_compiler_gnu = yes && echo yes`
2401ac_test_CFLAGS=${CFLAGS+set}
2402ac_save_CFLAGS=$CFLAGS
2403CFLAGS="-g"
2404echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2405echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2406if test "${ac_cv_prog_cc_g+set}" = set; then
2407  echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409  cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h.  */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h.  */
2415
2416int
2417main ()
2418{
2419
2420  ;
2421  return 0;
2422}
2423_ACEOF
2424rm -f conftest.$ac_objext
2425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426  (eval $ac_compile) 2>conftest.er1
2427  ac_status=$?
2428  grep -v '^ *+' conftest.er1 >conftest.err
2429  rm -f conftest.er1
2430  cat conftest.err >&5
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); } &&
2433         { ac_try='test -z "$ac_c_werror_flag"
2434                         || test ! -s conftest.err'
2435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436  (eval $ac_try) 2>&5
2437  ac_status=$?
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); }; } &&
2440         { ac_try='test -s conftest.$ac_objext'
2441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442  (eval $ac_try) 2>&5
2443  ac_status=$?
2444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445  (exit $ac_status); }; }; then
2446  ac_cv_prog_cc_g=yes
2447else
2448  echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451ac_cv_prog_cc_g=no
2452fi
2453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2454fi
2455echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2456echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2457if test "$ac_test_CFLAGS" = set; then
2458  CFLAGS=$ac_save_CFLAGS
2459elif test $ac_cv_prog_cc_g = yes; then
2460  if test "$GCC" = yes; then
2461    CFLAGS="-g -O2"
2462  else
2463    CFLAGS="-g"
2464  fi
2465else
2466  if test "$GCC" = yes; then
2467    CFLAGS="-O2"
2468  else
2469    CFLAGS=
2470  fi
2471fi
2472echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2473echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2474if test "${ac_cv_prog_cc_stdc+set}" = set; then
2475  echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477  ac_cv_prog_cc_stdc=no
2478ac_save_CC=$CC
2479cat >conftest.$ac_ext <<_ACEOF
2480/* confdefs.h.  */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h.  */
2485#include <stdarg.h>
2486#include <stdio.h>
2487#include <sys/types.h>
2488#include <sys/stat.h>
2489/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2490struct buf { int x; };
2491FILE * (*rcsopen) (struct buf *, struct stat *, int);
2492static char *e (p, i)
2493     char **p;
2494     int i;
2495{
2496  return p[i];
2497}
2498static char *f (char * (*g) (char **, int), char **p, ...)
2499{
2500  char *s;
2501  va_list v;
2502  va_start (v,p);
2503  s = g (p, va_arg (v,int));
2504  va_end (v);
2505  return s;
2506}
2507
2508/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2509   function prototypes and stuff, but not '\xHH' hex character constants.
2510   These don't provoke an error unfortunately, instead are silently treated
2511   as 'x'.  The following induces an error, until -std1 is added to get
2512   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2513   array size at least.  It's necessary to write '\x00'==0 to get something
2514   that's true only with -std1.  */
2515int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2516
2517int test (int i, double x);
2518struct s1 {int (*f) (int a);};
2519struct s2 {int (*f) (double a);};
2520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2521int argc;
2522char **argv;
2523int
2524main ()
2525{
2526return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2527  ;
2528  return 0;
2529}
2530_ACEOF
2531# Don't try gcc -ansi; that turns off useful extensions and
2532# breaks some systems' header files.
2533# AIX                   -qlanglvl=ansi
2534# Ultrix and OSF/1      -std1
2535# HP-UX 10.20 and later -Ae
2536# HP-UX older versions  -Aa -D_HPUX_SOURCE
2537# SVR4                  -Xc -D__EXTENSIONS__
2538for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2539do
2540  CC="$ac_save_CC $ac_arg"
2541  rm -f conftest.$ac_objext
2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543  (eval $ac_compile) 2>conftest.er1
2544  ac_status=$?
2545  grep -v '^ *+' conftest.er1 >conftest.err
2546  rm -f conftest.er1
2547  cat conftest.err >&5
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); } &&
2550         { ac_try='test -z "$ac_c_werror_flag"
2551                         || test ! -s conftest.err'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; } &&
2557         { ac_try='test -s conftest.$ac_objext'
2558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559  (eval $ac_try) 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); }; }; then
2563  ac_cv_prog_cc_stdc=$ac_arg
2564break
2565else
2566  echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569fi
2570rm -f conftest.err conftest.$ac_objext
2571done
2572rm -f conftest.$ac_ext conftest.$ac_objext
2573CC=$ac_save_CC
2574
2575fi
2576
2577case "x$ac_cv_prog_cc_stdc" in
2578  x|xno)
2579    echo "$as_me:$LINENO: result: none needed" >&5
2580echo "${ECHO_T}none needed" >&6 ;;
2581  *)
2582    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2583echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2584    CC="$CC $ac_cv_prog_cc_stdc" ;;
2585esac
2586
2587# Some people use a C++ compiler to compile C.  Since we use `exit',
2588# in C++ we need to declare it.  In case someone uses the same compiler
2589# for both compiling C and C++ we need to have the C++ compiler decide
2590# the declaration of exit, since it's the most demanding environment.
2591cat >conftest.$ac_ext <<_ACEOF
2592#ifndef __cplusplus
2593  choke me
2594#endif
2595_ACEOF
2596rm -f conftest.$ac_objext
2597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598  (eval $ac_compile) 2>conftest.er1
2599  ac_status=$?
2600  grep -v '^ *+' conftest.er1 >conftest.err
2601  rm -f conftest.er1
2602  cat conftest.err >&5
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); } &&
2605         { ac_try='test -z "$ac_c_werror_flag"
2606                         || test ! -s conftest.err'
2607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608  (eval $ac_try) 2>&5
2609  ac_status=$?
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); }; } &&
2612         { ac_try='test -s conftest.$ac_objext'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; }; then
2618  for ac_declaration in \
2619   '' \
2620   'extern "C" void std::exit (int) throw (); using std::exit;' \
2621   'extern "C" void std::exit (int); using std::exit;' \
2622   'extern "C" void exit (int) throw ();' \
2623   'extern "C" void exit (int);' \
2624   'void exit (int);'
2625do
2626  cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h.  */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h.  */
2632$ac_declaration
2633#include <stdlib.h>
2634int
2635main ()
2636{
2637exit (42);
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644  (eval $ac_compile) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651         { ac_try='test -z "$ac_c_werror_flag"
2652                         || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658         { ac_try='test -s conftest.$ac_objext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  :
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669continue
2670fi
2671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672  cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h.  */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h.  */
2678$ac_declaration
2679int
2680main ()
2681{
2682exit (42);
2683  ;
2684  return 0;
2685}
2686_ACEOF
2687rm -f conftest.$ac_objext
2688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689  (eval $ac_compile) 2>conftest.er1
2690  ac_status=$?
2691  grep -v '^ *+' conftest.er1 >conftest.err
2692  rm -f conftest.er1
2693  cat conftest.err >&5
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); } &&
2696         { ac_try='test -z "$ac_c_werror_flag"
2697                         || test ! -s conftest.err'
2698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699  (eval $ac_try) 2>&5
2700  ac_status=$?
2701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702  (exit $ac_status); }; } &&
2703         { ac_try='test -s conftest.$ac_objext'
2704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705  (eval $ac_try) 2>&5
2706  ac_status=$?
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); }; }; then
2709  break
2710else
2711  echo "$as_me: failed program was:" >&5
2712sed 's/^/| /' conftest.$ac_ext >&5
2713
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716done
2717rm -f conftest*
2718if test -n "$ac_declaration"; then
2719  echo '#ifdef __cplusplus' >>confdefs.h
2720  echo $ac_declaration      >>confdefs.h
2721  echo '#endif'             >>confdefs.h
2722fi
2723
2724else
2725  echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728fi
2729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730ac_ext=c
2731ac_cpp='$CPP $CPPFLAGS'
2732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735
2736if test -z "$CC" ; then
2737  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2738echo "$as_me: error: Failed to find a C compiler!" >&2;}
2739   { (exit 1); exit 1; }; }
2740fi
2741# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2742case "$CC" in
2743  cl* | */cl* | CL* | */CL* )
2744    if test "$ac_cv_prog_cc_g" = yes ; then
2745      ac_cv_prog_cc_g=no
2746      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2747echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2748    fi ;;
2749esac
2750CFLAGS="$save_cflags"
2751
2752# add automake conditional so we can recognize cl compiler in makefile
2753coin_cc_is_cl=false
2754case "$CC" in
2755  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2756    coin_cc_is_cl=true
2757    ;;
2758esac
2759
2760
2761if test $coin_cc_is_cl = true; then
2762  COIN_CC_IS_CL_TRUE=
2763  COIN_CC_IS_CL_FALSE='#'
2764else
2765  COIN_CC_IS_CL_TRUE='#'
2766  COIN_CC_IS_CL_FALSE=
2767fi
2768
2769
2770# Check if a project specific CFLAGS variable has been set
2771if test x$COIN_PRJCT != x; then
2772  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2773  if test x$coin_tmp = xset; then
2774    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2775  fi
2776fi
2777
2778if test x"$CFLAGS" = x; then
2779
2780  coin_add_cflags=
2781  coin_opt_cflags=
2782  coin_dbg_cflags=
2783  coin_warn_cflags=
2784
2785  if test "$GCC" = "yes"; then
2786    case "$CC" in
2787      icc* | */icc*)
2788        ;;
2789      *)
2790        coin_opt_cflags="-O3"
2791        coin_add_cflags="-pipe"
2792        coin_dbg_cflags="-g -O0"
2793        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2794        case $build in
2795          *-darwin*)
2796            ;;
2797          *)
2798            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2799            ;;
2800        esac
2801        case $enable_doscompile in
2802          mingw)
2803            CFLAGS="-mno-cygwin"
2804            cat >conftest.$ac_ext <<_ACEOF
2805/* confdefs.h.  */
2806_ACEOF
2807cat confdefs.h >>conftest.$ac_ext
2808cat >>conftest.$ac_ext <<_ACEOF
2809/* end confdefs.h.  */
2810
2811int
2812main ()
2813{
2814int i=0; i++;
2815  ;
2816  return 0;
2817}
2818_ACEOF
2819rm -f conftest.$ac_objext conftest$ac_exeext
2820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2821  (eval $ac_link) 2>conftest.er1
2822  ac_status=$?
2823  grep -v '^ *+' conftest.er1 >conftest.err
2824  rm -f conftest.er1
2825  cat conftest.err >&5
2826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827  (exit $ac_status); } &&
2828         { ac_try='test -z "$ac_c_werror_flag"
2829                         || test ! -s conftest.err'
2830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831  (eval $ac_try) 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }; } &&
2835         { ac_try='test -s conftest$ac_exeext'
2836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837  (eval $ac_try) 2>&5
2838  ac_status=$?
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); }; }; then
2841  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2842else
2843  echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846fi
2847rm -f conftest.err conftest.$ac_objext \
2848      conftest$ac_exeext conftest.$ac_ext
2849            CFLAGS=
2850          ;;
2851        esac
2852    esac
2853  fi
2854  if test -z "$coin_opt_cflags"; then
2855    case $build in
2856      *-cygwin* | *-mingw*)
2857        case "$CC" in
2858          cl* | */cl* | CL* | */CL*)
2859            coin_opt_cflags='-MT -O2'
2860            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2861            coin_dbg_cflags='-MTd'
2862            ;;
2863          icl* | */icl* | ICL* | */ICL*)
2864            coin_opt_cflags='-MT -Ox'
2865            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2866            coin_dbg_cflags='-MTd -debug'
2867            ;;
2868        esac
2869        ;;
2870      *-linux-*)
2871        case "$CC" in
2872          icc* | */icc*)
2873            coin_opt_cflags="-O3 -ip -mp1"
2874            coin_add_cflags=""
2875            coin_dbg_cflags="-g"
2876            # Check if -i_dynamic is necessary (for new glibc library)
2877            CFLAGS=
2878            cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888int i=0; i++;
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext conftest$ac_exeext
2894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895  (eval $ac_link) 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } &&
2902         { ac_try='test -z "$ac_c_werror_flag"
2903                         || test ! -s conftest.err'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; } &&
2909         { ac_try='test -s conftest$ac_exeext'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; }; then
2915  :
2916else
2917  echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920coin_add_cflags="-i_dynamic $coin_add_cflags"
2921fi
2922rm -f conftest.err conftest.$ac_objext \
2923      conftest$ac_exeext conftest.$ac_ext
2924            ;;
2925          pgcc* | */pgcc*)
2926            coin_opt_cflags="-fast"
2927            coin_add_cflags="-Kieee -pc 64"
2928            coin_dbg_cflags="-g"
2929            ;;
2930        esac
2931        ;;
2932      *-ibm-*)
2933        case "$CC" in
2934          xlc* | */xlc* | mpxlc* | */mpxlc*)
2935            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2936            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2937            coin_dbg_cflags="-g"
2938          ;;
2939        esac
2940        ;;
2941      *-hp-*)
2942        coin_opt_cflags="-O"
2943        coin_add_cflags="-Ae"
2944        coin_dbg_cflags="-g"
2945        ;;
2946      *-*-solaris*)
2947        coin_opt_cflags="-xO4"
2948        coin_dbg_cflags="-g"
2949        ;;
2950      *-sgi-*)
2951        coin_opt_cflags="-O -OPT:Olimit=0"
2952        coin_dbg_cflags="-g"
2953        ;;
2954    esac
2955  fi
2956
2957  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2958    coin_dbg_cflags="-g"
2959  fi
2960
2961  if test -z "$coin_opt_cflags"; then
2962    # Try if -O option works if nothing else is set
2963    CFLAGS="-O"
2964    cat >conftest.$ac_ext <<_ACEOF
2965/* confdefs.h.  */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h.  */
2970
2971int
2972main ()
2973{
2974int i=0; i++;
2975  ;
2976  return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext conftest$ac_exeext
2980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2981  (eval $ac_link) 2>conftest.er1
2982  ac_status=$?
2983  grep -v '^ *+' conftest.er1 >conftest.err
2984  rm -f conftest.er1
2985  cat conftest.err >&5
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); } &&
2988         { ac_try='test -z "$ac_c_werror_flag"
2989                         || test ! -s conftest.err'
2990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991  (eval $ac_try) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }; } &&
2995         { ac_try='test -s conftest$ac_exeext'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; }; then
3001  coin_opt_cflags="-O"
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006fi
3007rm -f conftest.err conftest.$ac_objext \
3008      conftest$ac_exeext conftest.$ac_ext
3009  fi
3010
3011  # if PM doesn't want the warning messages, take them out
3012  if test x"$coin_skip_warn_cflags" = xyes; then
3013    coin_warn_cflags=
3014  fi
3015
3016  if test x${DBG_CFLAGS+set} != xset; then
3017    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3018  fi
3019  if test x${OPT_CFLAGS+set} != xset; then
3020    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3021  fi
3022
3023  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3024  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3025
3026  if test "$coin_debug_compile" = "true"; then
3027    CFLAGS="$DBG_CFLAGS"
3028  else
3029    CFLAGS="$OPT_CFLAGS"
3030  fi
3031else
3032  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3033  if test x${DBG_CFLAGS+set} != xset; then
3034    DBG_CFLAGS="$CFLAGS"
3035  fi
3036  if test x${OPT_CFLAGS+set} != xset; then
3037    OPT_CFLAGS="$CFLAGS"
3038  fi
3039fi
3040
3041# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3042
3043case "$CFLAGS" in
3044  *-mno-cygwin*)
3045    if test x${CPPFLAGS+set} != xset ; then
3046      CPPFLAGS="-mno-cygwin"
3047    else
3048      case "$CPPFLAGS" in
3049        *-mno-cygwin*)
3050          ;;
3051        *)
3052          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3053          ;;
3054      esac
3055    fi ;;
3056esac
3057
3058# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3059if test x$COIN_PRJCT != x; then
3060  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3061fi
3062
3063# Try if CFLAGS works
3064save_CFLAGS="$CFLAGS"
3065cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h.  */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h.  */
3071
3072int
3073main ()
3074{
3075int i=0; i++;
3076  ;
3077  return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext conftest$ac_exeext
3081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3082  (eval $ac_link) 2>conftest.er1
3083  ac_status=$?
3084  grep -v '^ *+' conftest.er1 >conftest.err
3085  rm -f conftest.er1
3086  cat conftest.err >&5
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); } &&
3089         { ac_try='test -z "$ac_c_werror_flag"
3090                         || test ! -s conftest.err'
3091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092  (eval $ac_try) 2>&5
3093  ac_status=$?
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); }; } &&
3096         { ac_try='test -s conftest$ac_exeext'
3097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098  (eval $ac_try) 2>&5
3099  ac_status=$?
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); }; }; then
3102  :
3103else
3104  echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107CFLAGS=
3108fi
3109rm -f conftest.err conftest.$ac_objext \
3110      conftest$ac_exeext conftest.$ac_ext
3111if test -z "$CFLAGS"; then
3112  { 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
3113echo "$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;}
3114  CFLAGS='-O'
3115  cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h.  */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h.  */
3121
3122int
3123main ()
3124{
3125int i=0; i++;
3126  ;
3127  return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext conftest$ac_exeext
3131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3132  (eval $ac_link) 2>conftest.er1
3133  ac_status=$?
3134  grep -v '^ *+' conftest.er1 >conftest.err
3135  rm -f conftest.er1
3136  cat conftest.err >&5
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); } &&
3139         { ac_try='test -z "$ac_c_werror_flag"
3140                         || test ! -s conftest.err'
3141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142  (eval $ac_try) 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; } &&
3146         { ac_try='test -s conftest$ac_exeext'
3147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148  (eval $ac_try) 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }; }; then
3152  :
3153else
3154  echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157CFLAGS=
3158fi
3159rm -f conftest.err conftest.$ac_objext \
3160      conftest$ac_exeext conftest.$ac_ext
3161  if test -z "$CFLAGS"; then
3162    { 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
3163echo "$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;}
3164  fi
3165fi
3166
3167{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3168echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3169
3170
3171if test x"$MPICC" = x; then :; else
3172  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3173echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3174  CC="$MPICC"
3175fi
3176
3177# Correct the LD variable if we are using the MS or Intel-windows compiler
3178case "$CC" in
3179  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3180    case $build in
3181  *-mingw*)
3182    if test "${LD+set}" = set; then :; else
3183      LD=link
3184    fi
3185    ;;
3186 esac
3187 case $enable_doscompile in
3188   msvc)
3189     if test "x${LD+set}" = xset; then :; else
3190       LD=link
3191     fi
3192     ;;
3193 esac
3194
3195    ;;
3196esac
3197
3198ac_ext=c
3199ac_cpp='$CPP $CPPFLAGS'
3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203
3204
3205
3206# Check if pkg-config is available (to setup addlibs file)
3207
3208
3209# Check whether --enable-pkg-config or --disable-pkg-config was given.
3210if test "${enable_pkg_config+set}" = set; then
3211  enableval="$enable_pkg_config"
3212  use_pkgconfig="$enableval"
3213else
3214  use_pkgconfig=yes
3215fi;
3216
3217if test $use_pkgconfig = yes ; then
3218  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3219    if test -n "$ac_tool_prefix"; then
3220  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3221set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3222echo "$as_me:$LINENO: checking for $ac_word" >&5
3223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3224if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3225  echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
3227  case $PKG_CONFIG in
3228  [\\/]* | ?:[\\/]*)
3229  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3230  ;;
3231  *)
3232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH
3234do
3235  IFS=$as_save_IFS
3236  test -z "$as_dir" && as_dir=.
3237  for ac_exec_ext in '' $ac_executable_extensions; do
3238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241    break 2
3242  fi
3243done
3244done
3245
3246  ;;
3247esac
3248fi
3249PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3250
3251if test -n "$PKG_CONFIG"; then
3252  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3253echo "${ECHO_T}$PKG_CONFIG" >&6
3254else
3255  echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257fi
3258
3259fi
3260if test -z "$ac_cv_path_PKG_CONFIG"; then
3261  ac_pt_PKG_CONFIG=$PKG_CONFIG
3262  # Extract the first word of "pkg-config", so it can be a program name with args.
3263set dummy pkg-config; ac_word=$2
3264echo "$as_me:$LINENO: checking for $ac_word" >&5
3265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3266if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3267  echo $ECHO_N "(cached) $ECHO_C" >&6
3268else
3269  case $ac_pt_PKG_CONFIG in
3270  [\\/]* | ?:[\\/]*)
3271  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3272  ;;
3273  *)
3274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277  IFS=$as_save_IFS
3278  test -z "$as_dir" && as_dir=.
3279  for ac_exec_ext in '' $ac_executable_extensions; do
3280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283    break 2
3284  fi
3285done
3286done
3287
3288  ;;
3289esac
3290fi
3291ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3292
3293if test -n "$ac_pt_PKG_CONFIG"; then
3294  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3295echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3296else
3297  echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
3299fi
3300
3301  PKG_CONFIG=$ac_pt_PKG_CONFIG
3302else
3303  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3304fi
3305
3306  fi
3307  if test -n "$PKG_CONFIG"; then
3308    _pkg_min_version=0.16.0
3309    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3310echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3311    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3312      echo "$as_me:$LINENO: result: yes" >&5
3313echo "${ECHO_T}yes" >&6
3314    else
3315      echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317      PKG_CONFIG=""
3318    fi
3319  fi
3320
3321  # check if pkg-config supports the short-errors flag
3322  if test -n "$PKG_CONFIG" && \
3323    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3324    pkg_short_errors=" --short-errors "
3325  else
3326    pkg_short_errors=""
3327  fi
3328fi
3329
3330
3331
3332if test -n "$PKG_CONFIG"; then
3333  COIN_HAS_PKGCONFIG_TRUE=
3334  COIN_HAS_PKGCONFIG_FALSE='#'
3335else
3336  COIN_HAS_PKGCONFIG_TRUE='#'
3337  COIN_HAS_PKGCONFIG_FALSE=
3338fi
3339
3340
3341
3342# assemble pkg-config search path for installed projects
3343COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3344
3345# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
3346# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3347# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3348if test "x${prefix}" = xNONE ; then
3349  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3350else
3351  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3352fi
3353
3354
3355# Check whether --with-coin-instdir or --without-coin-instdir was given.
3356if test "${with_coin_instdir+set}" = set; then
3357  withval="$with_coin_instdir"
3358  if test -d "$withval"; then : ; else
3359     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3360echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3361   { (exit 1); exit 1; }; }
3362   fi
3363   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3364
3365fi;
3366
3367
3368
3369# assemble additional pkg-config search paths for uninstalled projects
3370if test x$coin_projectdir = xyes ; then
3371  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3372  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3373  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3374  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
3375  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3376  if test -e ../coin_subdirs.txt ; then
3377    for i in `cat ../coin_subdirs.txt` ; do
3378      if test -d ../$i ; then
3379        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3380      fi
3381      if test -d ../$i/pkgconfig ; then
3382        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3383      fi
3384    done
3385  fi
3386
3387  if test -e ../../coin_subdirs.txt ; then
3388    for i in `cat ../../coin_subdirs.txt` ; do
3389      if test -d ../../$i ; then
3390        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3391      fi
3392      if test -d ../../$i/pkgconfig ; then
3393        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3394      fi
3395    done
3396  fi
3397
3398
3399fi
3400
3401if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3402  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
3403echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
3404fi
3405
3406
3407
3408# Initialize automake
3409{
3410
3411
3412
3413# START
3414
3415# Test if force_shared has been set
3416if test "x" = xforce_shared; then
3417  if test x$enable_shared = xno; then
3418    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3419echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3420   { (exit 1); exit 1; }; }
3421  fi
3422  enable_shared=yes;
3423else
3424  # On Cygwin and AIX, building DLLs doesn't work
3425  case $build in
3426    *-cygwin*)
3427      coin_disable_shared=yes
3428      platform=Cygwin
3429    ;;
3430    *-aix*)
3431      coin_disable_shared=yes
3432      platform=AIX
3433    ;;
3434    *-mingw*)
3435      coin_disable_shared=yes
3436      platform="Msys"
3437#      case "$CXX" in
3438#        cl*)
3439#          coin_disable_shared=yes
3440#          platform="Msys with cl"
3441#      ;;
3442#      esac
3443    ;;
3444  esac
3445fi
3446if test x"$coin_disable_shared" = xyes; then
3447  if test x"$enable_shared" = xyes; then
3448    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3449echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3450  fi
3451  enable_shared=no
3452fi
3453# By default, we only want the shared objects to be compiled
3454# Check whether --enable-static or --disable-static was given.
3455if test "${enable_static+set}" = set; then
3456  enableval="$enable_static"
3457  p=${PACKAGE-default}
3458    case $enableval in
3459    yes) enable_static=yes ;;
3460    no) enable_static=no ;;
3461    *)
3462     enable_static=no
3463      # Look at the argument we got.  We use all the common list separators.
3464      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3465      for pkg in $enableval; do
3466        IFS="$lt_save_ifs"
3467        if test "X$pkg" = "X$p"; then
3468          enable_static=yes
3469        fi
3470      done
3471      IFS="$lt_save_ifs"
3472      ;;
3473    esac
3474else
3475  enable_static=no
3476fi;
3477
3478
3479
3480
3481# Initialize automake
3482echo "$as_me:$LINENO: checking for egrep" >&5
3483echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3484if test "${ac_cv_prog_egrep+set}" = set; then
3485  echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3488    then ac_cv_prog_egrep='grep -E'
3489    else ac_cv_prog_egrep='egrep'
3490    fi
3491fi
3492echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3493echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3494 EGREP=$ac_cv_prog_egrep
3495
3496
3497echo "$as_me:$LINENO: checking whether ln -s works" >&5
3498echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3499LN_S=$as_ln_s
3500if test "$LN_S" = "ln -s"; then
3501  echo "$as_me:$LINENO: result: yes" >&5
3502echo "${ECHO_T}yes" >&6
3503else
3504  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3505echo "${ECHO_T}no, using $LN_S" >&6
3506fi
3507
3508am__api_version="1.9"
3509# Find a good install program.  We prefer a C program (faster),
3510# so one script is as good as another.  But avoid the broken or
3511# incompatible versions:
3512# SysV /etc/install, /usr/sbin/install
3513# SunOS /usr/etc/install
3514# IRIX /sbin/install
3515# AIX /bin/install
3516# AmigaOS /C/install, which installs bootblocks on floppy discs
3517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3518# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3520# OS/2's system install, which has a completely different semantic
3521# ./install, which can be erroneously created by make from ./install.sh.
3522echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3523echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3524if test -z "$INSTALL"; then
3525if test "${ac_cv_path_install+set}" = set; then
3526  echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
3528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531  IFS=$as_save_IFS
3532  test -z "$as_dir" && as_dir=.
3533  # Account for people who put trailing slashes in PATH elements.
3534case $as_dir/ in
3535  ./ | .// | /cC/* | \
3536  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3537  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3538  /usr/ucb/* ) ;;
3539  *)
3540    # OSF1 and SCO ODT 3.0 have their own names for install.
3541    # Don't use installbsd from OSF since it installs stuff as root
3542    # by default.
3543    for ac_prog in ginstall scoinst install; do
3544      for ac_exec_ext in '' $ac_executable_extensions; do
3545        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3546          if test $ac_prog = install &&
3547            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3548            # AIX install.  It has an incompatible calling convention.
3549            :
3550          elif test $ac_prog = install &&
3551            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3552            # program-specific install script used by HP pwplus--don't use.
3553            :
3554          else
3555            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3556            break 3
3557          fi
3558        fi
3559      done
3560    done
3561    ;;
3562esac
3563done
3564
3565
3566fi
3567  if test "${ac_cv_path_install+set}" = set; then
3568    INSTALL=$ac_cv_path_install
3569  else
3570    # As a last resort, use the slow shell script.  We don't cache a
3571    # path for INSTALL within a source directory, because that will
3572    # break other packages using the cache if that directory is
3573    # removed, or if the path is relative.
3574    INSTALL=$ac_install_sh
3575  fi
3576fi
3577echo "$as_me:$LINENO: result: $INSTALL" >&5
3578echo "${ECHO_T}$INSTALL" >&6
3579
3580# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3581# It thinks the first close brace ends the variable substitution.
3582test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3583
3584test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3585
3586test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3587
3588echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3589echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3590# Just in case
3591sleep 1
3592echo timestamp > conftest.file
3593# Do `set' in a subshell so we don't clobber the current shell's
3594# arguments.  Must try -L first in case configure is actually a
3595# symlink; some systems play weird games with the mod time of symlinks
3596# (eg FreeBSD returns the mod time of the symlink's containing
3597# directory).
3598if (
3599   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3600   if test "$*" = "X"; then
3601      # -L didn't work.
3602      set X `ls -t $srcdir/configure conftest.file`
3603   fi
3604   rm -f conftest.file
3605   if test "$*" != "X $srcdir/configure conftest.file" \
3606      && test "$*" != "X conftest.file $srcdir/configure"; then
3607
3608      # If neither matched, then we have a broken ls.  This can happen
3609      # if, for instance, CONFIG_SHELL is bash and it inherits a
3610      # broken ls alias from the environment.  This has actually
3611      # happened.  Such a system could not be considered "sane".
3612      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3613alias in your environment" >&5
3614echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3615alias in your environment" >&2;}
3616   { (exit 1); exit 1; }; }
3617   fi
3618
3619   test "$2" = conftest.file
3620   )
3621then
3622   # Ok.
3623   :
3624else
3625   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3626Check your system clock" >&5
3627echo "$as_me: error: newly created file is older than distributed files!
3628Check your system clock" >&2;}
3629   { (exit 1); exit 1; }; }
3630fi
3631echo "$as_me:$LINENO: result: yes" >&5
3632echo "${ECHO_T}yes" >&6
3633test "$program_prefix" != NONE &&
3634  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3635# Use a double $ so make ignores it.
3636test "$program_suffix" != NONE &&
3637  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3638# Double any \ or $.  echo might interpret backslashes.
3639# By default was `s,x,x', remove it if useless.
3640cat <<\_ACEOF >conftest.sed
3641s/[\\$]/&&/g;s/;s,x,x,$//
3642_ACEOF
3643program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3644rm conftest.sed
3645
3646# expand $ac_aux_dir to an absolute path
3647am_aux_dir=`cd $ac_aux_dir && pwd`
3648
3649test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3650# Use eval to expand $SHELL
3651if eval "$MISSING --run true"; then
3652  am_missing_run="$MISSING --run "
3653else
3654  am_missing_run=
3655  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3656echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3657fi
3658
3659if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3660  # We used to keeping the `.' as first argument, in order to
3661  # allow $(mkdir_p) to be used without argument.  As in
3662  #   $(mkdir_p) $(somedir)
3663  # where $(somedir) is conditionally defined.  However this is wrong
3664  # for two reasons:
3665  #  1. if the package is installed by a user who cannot write `.'
3666  #     make install will fail,
3667  #  2. the above comment should most certainly read
3668  #     $(mkdir_p) $(DESTDIR)$(somedir)
3669  #     so it does not work when $(somedir) is undefined and
3670  #     $(DESTDIR) is not.
3671  #  To support the latter case, we have to write
3672  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3673  #  so the `.' trick is pointless.
3674  mkdir_p='mkdir -p --'
3675else
3676  # On NextStep and OpenStep, the `mkdir' command does not
3677  # recognize any option.  It will interpret all options as
3678  # directories to create, and then abort because `.' already
3679  # exists.
3680  for d in ./-p ./--version;
3681  do
3682    test -d $d && rmdir $d
3683  done
3684  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3685  if test -f "$ac_aux_dir/mkinstalldirs"; then
3686    mkdir_p='$(mkinstalldirs)'
3687  else
3688    mkdir_p='$(install_sh) -d'
3689  fi
3690fi
3691
3692for ac_prog in gawk mawk nawk awk
3693do
3694  # Extract the first word of "$ac_prog", so it can be a program name with args.
3695set dummy $ac_prog; ac_word=$2
3696echo "$as_me:$LINENO: checking for $ac_word" >&5
3697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698if test "${ac_cv_prog_AWK+set}" = set; then
3699  echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701  if test -n "$AWK"; then
3702  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3703else
3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707  IFS=$as_save_IFS
3708  test -z "$as_dir" && as_dir=.
3709  for ac_exec_ext in '' $ac_executable_extensions; do
3710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711    ac_cv_prog_AWK="$ac_prog"
3712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713    break 2
3714  fi
3715done
3716done
3717
3718fi
3719fi
3720AWK=$ac_cv_prog_AWK
3721if test -n "$AWK"; then
3722  echo "$as_me:$LINENO: result: $AWK" >&5
3723echo "${ECHO_T}$AWK" >&6
3724else
3725  echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727fi
3728
3729  test -n "$AWK" && break
3730done
3731
3732echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3733echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3734set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3735if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3736  echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
3738  cat >conftest.make <<\_ACEOF
3739all:
3740        @echo 'ac_maketemp="$(MAKE)"'
3741_ACEOF
3742# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3743eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3744if test -n "$ac_maketemp"; then
3745  eval ac_cv_prog_make_${ac_make}_set=yes
3746else
3747  eval ac_cv_prog_make_${ac_make}_set=no
3748fi
3749rm -f conftest.make
3750fi
3751if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3752  echo "$as_me:$LINENO: result: yes" >&5
3753echo "${ECHO_T}yes" >&6
3754  SET_MAKE=
3755else
3756  echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6
3758  SET_MAKE="MAKE=${MAKE-make}"
3759fi
3760
3761rm -rf .tst 2>/dev/null
3762mkdir .tst 2>/dev/null
3763if test -d .tst; then
3764  am__leading_dot=.
3765else
3766  am__leading_dot=_
3767fi
3768rmdir .tst 2>/dev/null
3769
3770DEPDIR="${am__leading_dot}deps"
3771
3772          ac_config_commands="$ac_config_commands depfiles"
3773
3774
3775am_make=${MAKE-make}
3776cat > confinc << 'END'
3777am__doit:
3778        @echo done
3779.PHONY: am__doit
3780END
3781# If we don't find an include directive, just comment out the code.
3782echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3783echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3784am__include="#"
3785am__quote=
3786_am_result=none
3787# First try GNU make style include.
3788echo "include confinc" > confmf
3789# We grep out `Entering directory' and `Leaving directory'
3790# messages which can occur if `w' ends up in MAKEFLAGS.
3791# In particular we don't look at `^make:' because GNU make might
3792# be invoked under some other name (usually "gmake"), in which
3793# case it prints its new name instead of `make'.
3794if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3795   am__include=include
3796   am__quote=
3797   _am_result=GNU
3798fi
3799# Now try BSD make style include.
3800if test "$am__include" = "#"; then
3801   echo '.include "confinc"' > confmf
3802   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3803      am__include=.include
3804      am__quote="\""
3805      _am_result=BSD
3806   fi
3807fi
3808
3809
3810echo "$as_me:$LINENO: result: $_am_result" >&5
3811echo "${ECHO_T}$_am_result" >&6
3812rm -f confinc confmf
3813
3814# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3815if test "${enable_dependency_tracking+set}" = set; then
3816  enableval="$enable_dependency_tracking"
3817
3818fi;
3819if test "x$enable_dependency_tracking" != xno; then
3820  am_depcomp="$ac_aux_dir/depcomp"
3821  AMDEPBACKSLASH='\'
3822fi
3823
3824
3825if test "x$enable_dependency_tracking" != xno; then
3826  AMDEP_TRUE=
3827  AMDEP_FALSE='#'
3828else
3829  AMDEP_TRUE='#'
3830  AMDEP_FALSE=
3831fi
3832
3833
3834
3835
3836
3837
3838# AC_MSG_NOTICE([Beginning automake initialisation.])
3839# Stuff for automake
3840# test to see if srcdir already configured
3841if test "`cd $srcdir && pwd`" != "`pwd`" &&
3842   test -f $srcdir/config.status; then
3843  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3844echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3845   { (exit 1); exit 1; }; }
3846fi
3847
3848# test whether we have cygpath
3849if test -z "$CYGPATH_W"; then
3850  if (cygpath --version) >/dev/null 2>/dev/null; then
3851    CYGPATH_W='cygpath -w'
3852  else
3853    CYGPATH_W=echo
3854  fi
3855fi
3856
3857
3858# Define the identity of the package.
3859 PACKAGE='thirdpartyglpk'
3860 VERSION='1.8.1'
3861
3862
3863cat >>confdefs.h <<_ACEOF
3864#define PACKAGE "$PACKAGE"
3865_ACEOF
3866
3867
3868cat >>confdefs.h <<_ACEOF
3869#define VERSION "$VERSION"
3870_ACEOF
3871
3872# Some tools Automake needs.
3873
3874ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3875
3876
3877AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3878
3879
3880AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3881
3882
3883AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3884
3885
3886MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3887
3888install_sh=${install_sh-"$am_aux_dir/install-sh"}
3889
3890# Installed binaries are usually stripped using `strip' when the user
3891# run `make install-strip'.  However `strip' might not be the right
3892# tool to use in cross-compilation environments, therefore Automake
3893# will honor the `STRIP' environment variable to overrule this program.
3894if test "$cross_compiling" != no; then
3895  if test -n "$ac_tool_prefix"; then
3896  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3897set dummy ${ac_tool_prefix}strip; ac_word=$2
3898echo "$as_me:$LINENO: checking for $ac_word" >&5
3899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900if test "${ac_cv_prog_STRIP+set}" = set; then
3901  echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903  if test -n "$STRIP"; then
3904  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3905else
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909  IFS=$as_save_IFS
3910  test -z "$as_dir" && as_dir=.
3911  for ac_exec_ext in '' $ac_executable_extensions; do
3912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915    break 2
3916  fi
3917done
3918done
3919
3920fi
3921fi
3922STRIP=$ac_cv_prog_STRIP
3923if test -n "$STRIP"; then
3924  echo "$as_me:$LINENO: result: $STRIP" >&5
3925echo "${ECHO_T}$STRIP" >&6
3926else
3927  echo "$as_me:$LINENO: result: no" >&5
3928echo "${ECHO_T}no" >&6
3929fi
3930
3931fi
3932if test -z "$ac_cv_prog_STRIP"; then
3933  ac_ct_STRIP=$STRIP
3934  # Extract the first word of "strip", so it can be a program name with args.
3935set dummy strip; ac_word=$2
3936echo "$as_me:$LINENO: checking for $ac_word" >&5
3937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3939  echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941  if test -n "$ac_ct_STRIP"; then
3942  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3943else
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947  IFS=$as_save_IFS
3948  test -z "$as_dir" && as_dir=.
3949  for ac_exec_ext in '' $ac_executable_extensions; do
3950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951    ac_cv_prog_ac_ct_STRIP="strip"
3952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953    break 2
3954  fi
3955done
3956done
3957
3958  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3959fi
3960fi
3961ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3962if test -n "$ac_ct_STRIP"; then
3963  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3964echo "${ECHO_T}$ac_ct_STRIP" >&6
3965else
3966  echo "$as_me:$LINENO: result: no" >&5
3967echo "${ECHO_T}no" >&6
3968fi
3969
3970  STRIP=$ac_ct_STRIP
3971else
3972  STRIP="$ac_cv_prog_STRIP"
3973fi
3974
3975fi
3976INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3977
3978# We need awk for the "check" target.  The system "awk" is bad on
3979# some platforms.
3980# Always define AMTAR for backward compatibility.
3981
3982AMTAR=${AMTAR-"${am_missing_run}tar"}
3983
3984am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3985
3986
3987
3988
3989depcc="$CC"   am_compiler_list=
3990
3991echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3992echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3993if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3994  echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3997  # We make a subdir and do the tests there.  Otherwise we can end up
3998  # making bogus files that we don't know about and never remove.  For
3999  # instance it was reported that on HP-UX the gcc test will end up
4000  # making a dummy file named `D' -- because `-MD' means `put the output
4001  # in D'.
4002  mkdir conftest.dir
4003  # Copy depcomp to subdir because otherwise we won't find it if we're
4004  # using a relative directory.
4005  cp "$am_depcomp" conftest.dir
4006  cd conftest.dir
4007  # We will build objects and dependencies in a subdirectory because
4008  # it helps to detect inapplicable dependency modes.  For instance
4009  # both Tru64's cc and ICC support -MD to output dependencies as a
4010  # side effect of compilation, but ICC will put the dependencies in
4011  # the current directory while Tru64 will put them in the object
4012  # directory.
4013  mkdir sub
4014
4015  am_cv_CC_dependencies_compiler_type=none
4016  if test "$am_compiler_list" = ""; then
4017     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4018  fi
4019  for depmode in $am_compiler_list; do
4020    # Setup a source with many dependencies, because some compilers
4021    # like to wrap large dependency lists on column 80 (with \), and
4022    # we should not choose a depcomp mode which is confused by this.
4023    #
4024    # We need to recreate these files for each test, as the compiler may
4025    # overwrite some of them when testing with obscure command lines.
4026    # This happens at least with the AIX C compiler.
4027    : > sub/conftest.c
4028    for i in 1 2 3 4 5 6; do
4029      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4031      # Solaris 8's {/usr,}/bin/sh.
4032      touch sub/conftst$i.h
4033    done
4034    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035
4036    case $depmode in
4037    nosideeffect)
4038      # after this tag, mechanisms are not by side-effect, so they'll
4039      # only be used when explicitly requested
4040      if test "x$enable_dependency_tracking" = xyes; then
4041        continue
4042      else
4043        break
4044      fi
4045      ;;
4046    none) break ;;
4047    esac
4048    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4049    # mode.  It turns out that the SunPro C++ compiler does not properly
4050    # handle `-M -o', and we need to detect this.
4051    if depmode=$depmode \
4052       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4053       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4054       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4055         >/dev/null 2>conftest.err &&
4056       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4058       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059      # icc doesn't choke on unknown options, it will just issue warnings
4060      # or remarks (even with -Werror).  So we grep stderr for any message
4061      # that says an option was ignored or not supported.
4062      # When given -MP, icc 7.0 and 7.1 complain thusly:
4063      #   icc: Command line warning: ignoring option '-M'; no argument required
4064      # The diagnosis changed in icc 8.0:
4065      #   icc: Command line remark: option '-MP' not supported
4066      if (grep 'ignoring option' conftest.err ||
4067          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068        am_cv_CC_dependencies_compiler_type=$depmode
4069        break
4070      fi
4071    fi
4072  done
4073
4074  cd ..
4075  rm -rf conftest.dir
4076else
4077  am_cv_CC_dependencies_compiler_type=none
4078fi
4079
4080fi
4081echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4082echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4083CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4084
4085
4086
4087if
4088  test "x$enable_dependency_tracking" != xno \
4089  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4090  am__fastdepCC_TRUE=
4091  am__fastdepCC_FALSE='#'
4092else
4093  am__fastdepCC_TRUE='#'
4094  am__fastdepCC_FALSE=
4095fi
4096
4097
4098
4099echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4100echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4101    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4102if test "${enable_maintainer_mode+set}" = set; then
4103  enableval="$enable_maintainer_mode"
4104  USE_MAINTAINER_MODE=$enableval
4105else
4106  USE_MAINTAINER_MODE=no
4107fi;
4108  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4109echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4110
4111
4112if test $USE_MAINTAINER_MODE = yes; then
4113  MAINTAINER_MODE_TRUE=
4114  MAINTAINER_MODE_FALSE='#'
4115else
4116  MAINTAINER_MODE_TRUE='#'
4117  MAINTAINER_MODE_FALSE=
4118fi
4119
4120  MAINT=$MAINTAINER_MODE_TRUE
4121
4122
4123
4124coin_have_externals=no
4125if test "$enable_maintainer_mode" = yes; then
4126
4127  # If maintainer mode is chosen, we make sure that the correct versions
4128  # of the tools are used, and that we know where libtool.m4 is (to
4129  # recreate acinclude.m4)
4130
4131
4132  LIBTOOLM4=
4133  # Normally, $HOME
4134  AUTOTOOLS_DFLT=$HOME
4135
4136  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4137echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4138if test "${ac_cv_use_correct_autotools+set}" = set; then
4139  echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141  ac_cv_use_correct_autotools=check
4142fi
4143echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4144echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4145
4146  if test $ac_cv_use_correct_autotools = check; then
4147    ac_cv_use_correct_autotools=yes
4148    # Check if we have autoconf
4149    # Extract the first word of "autoconf", so it can be a program name with args.
4150set dummy autoconf; ac_word=$2
4151echo "$as_me:$LINENO: checking for $ac_word" >&5
4152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153if test "${ac_cv_prog_have_autoconf+set}" = set; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  if test -n "$have_autoconf"; then
4157  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162  IFS=$as_save_IFS
4163  test -z "$as_dir" && as_dir=.
4164  for ac_exec_ext in '' $ac_executable_extensions; do
4165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166    ac_cv_prog_have_autoconf="yes"
4167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168    break 2
4169  fi
4170done
4171done
4172
4173  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4174fi
4175fi
4176have_autoconf=$ac_cv_prog_have_autoconf
4177if test -n "$have_autoconf"; then
4178  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4179echo "${ECHO_T}$have_autoconf" >&6
4180else
4181  echo "$as_me:$LINENO: result: no" >&5
4182echo "${ECHO_T}no" >&6
4183fi
4184
4185    if test $have_autoconf = no; then
4186      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4187echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4188   { (exit 1); exit 1; }; }
4189    fi
4190
4191    # Check whether autoconf is the correct version
4192    correct_version='2.59'
4193    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4194    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4195echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4196    autoconf --version > confauto.out 2>&1
4197    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4198      echo "$as_me:$LINENO: result: yes" >&5
4199echo "${ECHO_T}yes" >&6
4200    else
4201      rm -f confauto.out
4202      echo "$as_me:$LINENO: result: no" >&5
4203echo "${ECHO_T}no" >&6
4204      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4205echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4206   { (exit 1); exit 1; }; }
4207    fi
4208    rm -f confauto.out
4209
4210    # Check if the executable autoconf is picked up from the correct location
4211    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4212echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4213    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4214    autoconf_dir=`cd $autoconf_dir; pwd`
4215    if test x$AUTOTOOLS_DIR = x; then
4216      want_dir=$AUTOTOOLS_DFLT/bin
4217    else
4218      want_dir=$AUTOTOOLS_DIR/bin
4219    fi
4220    if test $autoconf_dir = `cd $want_dir; pwd`; then
4221      echo "$as_me:$LINENO: result: yes" >&5
4222echo "${ECHO_T}yes" >&6
4223    else
4224      rm -f confauto.out
4225      echo "$as_me:$LINENO: result: no" >&5
4226echo "${ECHO_T}no" >&6
4227      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4228echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4229   { (exit 1); exit 1; }; }
4230    fi
4231
4232    # Check if we have automake
4233    # Extract the first word of "automake", so it can be a program name with args.
4234set dummy automake; ac_word=$2
4235echo "$as_me:$LINENO: checking for $ac_word" >&5
4236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237if test "${ac_cv_prog_have_automake+set}" = set; then
4238  echo $ECHO_N "(cached) $ECHO_C" >&6
4239else
4240  if test -n "$have_automake"; then
4241  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4242else
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246  IFS=$as_save_IFS
4247  test -z "$as_dir" && as_dir=.
4248  for ac_exec_ext in '' $ac_executable_extensions; do
4249  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250    ac_cv_prog_have_automake="yes"
4251    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252    break 2
4253  fi
4254done
4255done
4256
4257  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4258fi
4259fi
4260have_automake=$ac_cv_prog_have_automake
4261if test -n "$have_automake"; then
4262  echo "$as_me:$LINENO: result: $have_automake" >&5
4263echo "${ECHO_T}$have_automake" >&6
4264else
4265  echo "$as_me:$LINENO: result: no" >&5
4266echo "${ECHO_T}no" >&6
4267fi
4268
4269    if test $have_automake = no; then
4270      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4271echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4272   { (exit 1); exit 1; }; }
4273    fi
4274
4275    # Check whether automake is the correct version
4276    correct_version='1.9.6'
4277    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4278    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4279echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4280    automake --version > confauto.out 2>&1
4281    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4282      echo "$as_me:$LINENO: result: yes" >&5
4283echo "${ECHO_T}yes" >&6
4284    else
4285      rm -f confauto.out
4286      echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
4288      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4289echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4290   { (exit 1); exit 1; }; }
4291    fi
4292    rm -f confauto.out
4293
4294    # Check if the executable automake is picked up from the correct location
4295    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4296echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4297    automake_dir=`which automake | sed -e 's=/automake=='`
4298    automake_dir=`cd $automake_dir; pwd`
4299    if test x$AUTOTOOLS_DIR = x; then
4300      want_dir=$AUTOTOOLS_DFLT/bin
4301    else
4302      want_dir=$AUTOTOOLS_DIR/bin
4303    fi
4304    if test $automake_dir = `cd $want_dir; pwd`; then
4305      echo "$as_me:$LINENO: result: yes" >&5
4306echo "${ECHO_T}yes" >&6
4307    else
4308      rm -f confauto.out
4309      echo "$as_me:$LINENO: result: no" >&5
4310echo "${ECHO_T}no" >&6
4311      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4312echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4313   { (exit 1); exit 1; }; }
4314    fi
4315
4316    # Check if this is the correct version of libtool (with escaped dots)
4317    if test x$AUTOTOOLS_DIR = x; then
4318      want_dir=$AUTOTOOLS_DFLT/share
4319    else
4320      want_dir=$AUTOTOOLS_DIR/share
4321    fi
4322    correct_version='1.5.22'
4323    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4324    if test -r $want_dir/libtool/ltmain.sh; then
4325  have_ltmain=yes
4326  :
4327else
4328  have_ltmain=no
4329  :
4330fi
4331
4332    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4333echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4334    if test $have_ltmain = yes; then
4335    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4336        echo "$as_me:$LINENO: result: yes" >&5
4337echo "${ECHO_T}yes" >&6
4338      else
4339        echo "$as_me:$LINENO: result: no" >&5
4340echo "${ECHO_T}no" >&6
4341        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4342echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4343   { (exit 1); exit 1; }; }
4344      fi
4345    else
4346      echo "$as_me:$LINENO: result: no" >&5
4347echo "${ECHO_T}no" >&6
4348      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4349echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4350   { (exit 1); exit 1; }; }
4351    fi
4352  fi
4353
4354  # Check if we can find the libtool file
4355  if test x$AUTOTOOLS_DIR = x; then
4356    want_dir=$AUTOTOOLS_DFLT/share
4357  else
4358    want_dir=$AUTOTOOLS_DIR/share
4359  fi
4360  if test -r $want_dir/aclocal/libtool.m4; then
4361  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4362  :
4363else
4364  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4365echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4366   { (exit 1); exit 1; }; }
4367  :
4368fi
4369
4370
4371  # Check if we have an Dependencies file
4372  if test -r $srcdir/Dependencies; then
4373    coin_have_externals=yes
4374  fi
4375  # Check if subversion is installed and understands https
4376  # Extract the first word of "svn", so it can be a program name with args.
4377set dummy svn; ac_word=$2
4378echo "$as_me:$LINENO: checking for $ac_word" >&5
4379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4380if test "${ac_cv_prog_have_svn+set}" = set; then
4381  echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383  if test -n "$have_svn"; then
4384  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4385else
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389  IFS=$as_save_IFS
4390  test -z "$as_dir" && as_dir=.
4391  for ac_exec_ext in '' $ac_executable_extensions; do
4392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393    ac_cv_prog_have_svn="yes"
4394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395    break 2
4396  fi
4397done
4398done
4399
4400  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4401fi
4402fi
4403have_svn=$ac_cv_prog_have_svn
4404if test -n "$have_svn"; then
4405  echo "$as_me:$LINENO: result: $have_svn" >&5
4406echo "${ECHO_T}$have_svn" >&6
4407else
4408  echo "$as_me:$LINENO: result: no" >&5
4409echo "${ECHO_T}no" >&6
4410fi
4411
4412  if test x$have_svn = xyes; then
4413    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4414echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4415if test "${ac_cv_svn_understands_https+set}" = set; then
4416  echo $ECHO_N "(cached) $ECHO_C" >&6
4417else
4418  svn --version > confauto.out 2>&1
4419                    if $EGREP https confauto.out >/dev/null 2>&1; then
4420                      ac_cv_svn_understands_https=yes
4421                    else
4422                      ac_cv_svn_understands_https=no
4423                      have_svn=no
4424                      ac_cv_prog_have_svn=no
4425                    fi
4426                    rm -f confauto.out
4427fi
4428echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4429echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4430  fi
4431
4432  # Find the location of the BuildTools directory
4433  BUILDTOOLSDIR=
4434  if test -r $srcdir/BuildTools/coin.m4; then
4435    BUILDTOOLSDIR=$srcdir/BuildTools
4436  else
4437    if test -r $srcdir/../BuildTools/coin.m4; then
4438      BUILDTOOLSDIR=$srcdir/../BuildTools
4439    else
4440      if test -r $srcdir/../../BuildTools/coin.m4; then
4441        BUILDTOOLSDIR=$srcdir/../../BuildTools
4442      else
4443        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4444echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4445   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4446      fi
4447    fi
4448  fi
4449
4450
4451  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4452  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4453    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4454  fi
4455
4456  # The following variable is set to the name of the directory where
4457  # the autotool scripts are located
4458
4459  AUX_DIR=$ac_aux_dir
4460fi
4461
4462# helpful variable for the base directory of this package
4463abs_source_dir=`cd $srcdir; pwd`
4464
4465
4466# Stuff for example Makefiles
4467if test x$prefix = xNONE; then
4468  full_prefix=$ac_default_prefix
4469else
4470  full_prefix=$prefix
4471fi
4472full_prefix=`cd $full_prefix ; pwd`
4473
4474abs_lib_dir=$full_prefix/lib
4475
4476abs_include_dir=$full_prefix/include
4477
4478abs_bin_dir=$full_prefix/bin
4479
4480
4481
4482if test $coin_have_externals = yes && test x$have_svn = xyes; then
4483  HAVE_EXTERNALS_TRUE=
4484  HAVE_EXTERNALS_FALSE='#'
4485else
4486  HAVE_EXTERNALS_TRUE='#'
4487  HAVE_EXTERNALS_FALSE=
4488fi
4489
4490
4491# AC_MSG_NOTICE([End automake initialisation.])
4492
4493
4494
4495LIBTOOL=
4496if test -r ../libtool; then
4497  coin_config_dir=..
4498  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4499fi
4500if test "x$LIBTOOL" = x; then
4501  if test -r ../../libtool; then
4502    coin_config_dir=../..
4503    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4504  fi
4505fi
4506
4507if test "x$LIBTOOL" = x; then
4508# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4509  # Stuff for libtool
4510  # Check whether --enable-shared or --disable-shared was given.
4511if test "${enable_shared+set}" = set; then
4512  enableval="$enable_shared"
4513  p=${PACKAGE-default}
4514    case $enableval in
4515    yes) enable_shared=yes ;;
4516    no) enable_shared=no ;;
4517    *)
4518      enable_shared=no
4519      # Look at the argument we got.  We use all the common list separators.
4520      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4521      for pkg in $enableval; do
4522        IFS="$lt_save_ifs"
4523        if test "X$pkg" = "X$p"; then
4524          enable_shared=yes
4525        fi
4526      done
4527      IFS="$lt_save_ifs"
4528      ;;
4529    esac
4530else
4531  enable_shared=yes
4532fi;
4533
4534# Check whether --enable-fast-install or --disable-fast-install was given.
4535if test "${enable_fast_install+set}" = set; then
4536  enableval="$enable_fast_install"
4537  p=${PACKAGE-default}
4538    case $enableval in
4539    yes) enable_fast_install=yes ;;
4540    no) enable_fast_install=no ;;
4541    *)
4542      enable_fast_install=no
4543      # Look at the argument we got.  We use all the common list separators.
4544      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4545      for pkg in $enableval; do
4546        IFS="$lt_save_ifs"
4547        if test "X$pkg" = "X$p"; then
4548          enable_fast_install=yes
4549        fi
4550      done
4551      IFS="$lt_save_ifs"
4552      ;;
4553    esac
4554else
4555  enable_fast_install=yes
4556fi;
4557
4558echo "$as_me:$LINENO: checking host system type" >&5
4559echo $ECHO_N "checking host system type... $ECHO_C" >&6
4560if test "${ac_cv_host+set}" = set; then
4561  echo $ECHO_N "(cached) $ECHO_C" >&6
4562else
4563  ac_cv_host_alias=$host_alias
4564test -z "$ac_cv_host_alias" &&
4565  ac_cv_host_alias=$ac_cv_build_alias
4566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4567  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4569   { (exit 1); exit 1; }; }
4570
4571fi
4572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4573echo "${ECHO_T}$ac_cv_host" >&6
4574host=$ac_cv_host
4575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4578
4579
4580echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4581echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4582if test "${lt_cv_path_SED+set}" = set; then
4583  echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585  # Loop through the user's path and test for sed and gsed.
4586# Then use that list of sed's as ones to test for truncation.
4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590  IFS=$as_save_IFS
4591  test -z "$as_dir" && as_dir=.
4592  for lt_ac_prog in sed gsed; do
4593    for ac_exec_ext in '' $ac_executable_extensions; do
4594      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4595        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4596      fi
4597    done
4598  done
4599done
4600lt_ac_max=0
4601lt_ac_count=0
4602# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4603# along with /bin/sed that truncates output.
4604for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4605  test ! -f $lt_ac_sed && continue
4606  cat /dev/null > conftest.in
4607  lt_ac_count=0
4608  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4609  # Check for GNU sed and select it if it is found.
4610  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4611    lt_cv_path_SED=$lt_ac_sed
4612    break
4613  fi
4614  while true; do
4615    cat conftest.in conftest.in >conftest.tmp
4616    mv conftest.tmp conftest.in
4617    cp conftest.in conftest.nl
4618    echo >>conftest.nl
4619    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4620    cmp -s conftest.out conftest.nl || break
4621    # 10000 chars as input seems more than enough
4622    test $lt_ac_count -gt 10 && break
4623    lt_ac_count=`expr $lt_ac_count + 1`
4624    if test $lt_ac_count -gt $lt_ac_max; then
4625      lt_ac_max=$lt_ac_count
4626      lt_cv_path_SED=$lt_ac_sed
4627    fi
4628  done
4629done
4630
4631fi
4632
4633SED=$lt_cv_path_SED
4634echo "$as_me:$LINENO: result: $SED" >&5
4635echo "${ECHO_T}$SED" >&6
4636
4637
4638# Check whether --with-gnu-ld or --without-gnu-ld was given.
4639if test "${with_gnu_ld+set}" = set; then
4640  withval="$with_gnu_ld"
4641  test "$withval" = no || with_gnu_ld=yes
4642else
4643  with_gnu_ld=no
4644fi;
4645ac_prog=ld
4646if test "$GCC" = yes; then
4647  # Check if gcc -print-prog-name=ld gives a path.
4648  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4649echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4650  case $host in
4651  *-*-mingw*)
4652    # gcc leaves a trailing carriage return which upsets mingw
4653    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4654  *)
4655    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4656  esac
4657  case $ac_prog in
4658    # Accept absolute paths.
4659    [\\/]* | ?:[\\/]*)
4660      re_direlt='/[^/][^/]*/\.\./'
4661      # Canonicalize the pathname of ld
4662      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4663      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4664        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4665      done
4666      test -z "$LD" && LD="$ac_prog"
4667      ;;
4668  "")
4669    # If it fails, then pretend we aren't using GCC.
4670    ac_prog=ld
4671    ;;
4672  *)
4673    # If it is relative, then search for the first ld in PATH.
4674    with_gnu_ld=unknown
4675    ;;
4676  esac
4677elif test "$with_gnu_ld" = yes; then
4678  echo "$as_me:$LINENO: checking for GNU ld" >&5
4679echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4680else
4681  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4682echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4683fi
4684if test "${lt_cv_path_LD+set}" = set; then
4685  echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687  if test -z "$LD"; then
4688  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4689  for ac_dir in $PATH; do
4690    IFS="$lt_save_ifs"
4691    test -z "$ac_dir" && ac_dir=.
4692    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4693      lt_cv_path_LD="$ac_dir/$ac_prog"
4694      # Check to see if the program is GNU ld.  I'd rather use --version,
4695      # but apparently some variants of GNU ld only accept -v.
4696      # Break only if it was the GNU/non-GNU ld that we prefer.
4697      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4698      *GNU* | *'with BFD'*)
4699        test "$with_gnu_ld" != no && break
4700        ;;
4701      *)
4702        test "$with_gnu_ld" != yes && break
4703        ;;
4704      esac
4705    fi
4706  done
4707  IFS="$lt_save_ifs"
4708else
4709  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4710fi
4711fi
4712
4713LD="$lt_cv_path_LD"
4714if test -n "$LD"; then
4715  echo "$as_me:$LINENO: result: $LD" >&5
4716echo "${ECHO_T}$LD" >&6
4717else
4718  echo "$as_me:$LINENO: result: no" >&5
4719echo "${ECHO_T}no" >&6
4720fi
4721test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4722echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4723   { (exit 1); exit 1; }; }
4724echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4725echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4726if test "${lt_cv_prog_gnu_ld+set}" = set; then
4727  echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4730case `$LD -v 2>&1 </dev/null` in
4731*GNU* | *'with BFD'*)
4732  lt_cv_prog_gnu_ld=yes
4733  ;;
4734*)
4735  lt_cv_prog_gnu_ld=no
4736  ;;
4737esac
4738fi
4739echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4740echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4741with_gnu_ld=$lt_cv_prog_gnu_ld
4742
4743
4744echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4745echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4746if test "${lt_cv_ld_reload_flag+set}" = set; then
4747  echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749  lt_cv_ld_reload_flag='-r'
4750fi
4751echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4752echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4753reload_flag=$lt_cv_ld_reload_flag
4754case $reload_flag in
4755"" | " "*) ;;
4756*) reload_flag=" $reload_flag" ;;
4757esac
4758reload_cmds='$LD$reload_flag -o $output$reload_objs'
4759case $host_os in
4760  darwin*)
4761    if test "$GCC" = yes; then
4762      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4763    else
4764      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4765    fi
4766    ;;
4767esac
4768
4769echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4770echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4771if test "${lt_cv_path_NM+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  if test -n "$NM"; then
4775  # Let the user override the test.
4776  lt_cv_path_NM="$NM"
4777else
4778  lt_nm_to_check="${ac_tool_prefix}nm"
4779  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4780    lt_nm_to_check="$lt_nm_to_check nm"
4781  fi
4782  for lt_tmp_nm in $lt_nm_to_check; do
4783    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4784    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4785      IFS="$lt_save_ifs"
4786      test -z "$ac_dir" && ac_dir=.
4787      tmp_nm="$ac_dir/$lt_tmp_nm"
4788      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4789        # Check to see if the nm accepts a BSD-compat flag.
4790        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4791        #   nm: unknown option "B" ignored
4792        # Tru64's nm complains that /dev/null is an invalid object file
4793        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4794        */dev/null* | *'Invalid file or object type'*)
4795          lt_cv_path_NM="$tmp_nm -B"
4796          break
4797          ;;
4798        *)
4799          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4800          */dev/null*)
4801            lt_cv_path_NM="$tmp_nm -p"
4802            break
4803            ;;
4804          *)
4805            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4806            continue # so that we can try to find one that supports BSD flags
4807            ;;
4808          esac
4809          ;;
4810        esac
4811      fi
4812    done
4813    IFS="$lt_save_ifs"
4814  done
4815  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4816fi
4817fi
4818echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4819echo "${ECHO_T}$lt_cv_path_NM" >&6
4820NM="$lt_cv_path_NM"
4821
4822echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4823echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4824if test "${lt_cv_deplibs_check_method+set}" = set; then
4825  echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827  lt_cv_file_magic_cmd='$MAGIC_CMD'
4828lt_cv_file_magic_test_file=
4829lt_cv_deplibs_check_method='unknown'
4830# Need to set the preceding variable on all platforms that support
4831# interlibrary dependencies.
4832# 'none' -- dependencies not supported.
4833# `unknown' -- same as none, but documents that we really don't know.
4834# 'pass_all' -- all dependencies passed with no checks.
4835# 'test_compile' -- check by making test program.
4836# 'file_magic [[regex]]' -- check by looking for files in library path
4837# which responds to the $file_magic_cmd with a given extended regex.
4838# If you have `file' or equivalent on your system and you're not sure
4839# whether `pass_all' will *always* work, you probably want this one.
4840
4841case $host_os in
4842aix4* | aix5*)
4843  lt_cv_deplibs_check_method=pass_all
4844  ;;
4845
4846beos*)
4847  lt_cv_deplibs_check_method=pass_all
4848  ;;
4849
4850bsdi[45]*)
4851  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4852  lt_cv_file_magic_cmd='/usr/bin/file -L'
4853  lt_cv_file_magic_test_file=/shlib/libc.so
4854  ;;
4855
4856cygwin*)
4857  # func_win32_libid is a shell function defined in ltmain.sh
4858  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4859  lt_cv_file_magic_cmd='func_win32_libid'
4860  ;;
4861
4862mingw* | pw32*)
4863  # Base MSYS/MinGW do not provide the 'file' command needed by
4864  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4865  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4866  lt_cv_file_magic_cmd='$OBJDUMP -f'
4867  ;;
4868
4869darwin* | rhapsody*)
4870  lt_cv_deplibs_check_method=pass_all
4871  ;;
4872
4873freebsd* | kfreebsd*-gnu | dragonfly*)
4874  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4875    case $host_cpu in
4876    i*86 )
4877      # Not sure whether the presence of OpenBSD here was a mistake.
4878      # Let's accept both of them until this is cleared up.
4879      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4880      lt_cv_file_magic_cmd=/usr/bin/file
4881      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4882      ;;
4883    esac
4884  else
4885    lt_cv_deplibs_check_method=pass_all
4886  fi
4887  ;;
4888
4889gnu*)
4890  lt_cv_deplibs_check_method=pass_all
4891  ;;
4892
4893hpux10.20* | hpux11*)
4894  lt_cv_file_magic_cmd=/usr/bin/file
4895  case $host_cpu in
4896  ia64*)
4897    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4898    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4899    ;;
4900  hppa*64*)
4901    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]'
4902    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4903    ;;
4904  *)
4905    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4906    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4907    ;;
4908  esac
4909  ;;
4910
4911interix3*)
4912  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4913  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4914  ;;
4915
4916irix5* | irix6* | nonstopux*)
4917  case $LD in
4918  *-32|*"-32 ") libmagic=32-bit;;
4919  *-n32|*"-n32 ") libmagic=N32;;
4920  *-64|*"-64 ") libmagic=64-bit;;
4921  *) libmagic=never-match;;
4922  esac
4923  lt_cv_deplibs_check_method=pass_all
4924  ;;
4925
4926# This must be Linux ELF.
4927linux*)
4928  lt_cv_deplibs_check_method=pass_all
4929  ;;
4930
4931netbsd*)
4932  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4933    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4934  else
4935    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4936  fi
4937  ;;
4938
4939newos6*)
4940  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4941  lt_cv_file_magic_cmd=/usr/bin/file
4942  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4943  ;;
4944
4945nto-qnx*)
4946  lt_cv_deplibs_check_method=unknown
4947  ;;
4948
4949openbsd*)
4950  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4951    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4952  else
4953    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4954  fi
4955  ;;
4956
4957osf3* | osf4* | osf5*)
4958  lt_cv_deplibs_check_method=pass_all
4959  ;;
4960
4961solaris*)
4962  lt_cv_deplibs_check_method=pass_all
4963  ;;
4964
4965sysv4 | sysv4.3*)
4966  case $host_vendor in
4967  motorola)
4968    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]'
4969    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4970    ;;
4971  ncr)
4972    lt_cv_deplibs_check_method=pass_all
4973    ;;
4974  sequent)
4975    lt_cv_file_magic_cmd='/bin/file'
4976    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4977    ;;
4978  sni)
4979    lt_cv_file_magic_cmd='/bin/file'
4980    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4981    lt_cv_file_magic_test_file=/lib/libc.so
4982    ;;
4983  siemens)
4984    lt_cv_deplibs_check_method=pass_all
4985    ;;
4986  pc)
4987    lt_cv_deplibs_check_method=pass_all
4988    ;;
4989  esac
4990  ;;
4991
4992sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4993  lt_cv_deplibs_check_method=pass_all
4994  ;;
4995esac
4996
4997fi
4998echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4999echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5000file_magic_cmd=$lt_cv_file_magic_cmd
5001deplibs_check_method=$lt_cv_deplibs_check_method
5002test -z "$deplibs_check_method" && deplibs_check_method=unknown
5003
5004
5005
5006
5007# If no C compiler was specified, use CC.
5008LTCC=${LTCC-"$CC"}
5009
5010# If no C compiler flags were specified, use CFLAGS.
5011LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5012
5013# Allow CC to be a program name with arguments.
5014compiler=$CC
5015
5016# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5017if test "${enable_libtool_lock+set}" = set; then
5018  enableval="$enable_libtool_lock"
5019
5020fi;
5021test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5022
5023# Some flags need to be propagated to the compiler or linker for good
5024# libtool support.
5025case $host in
5026ia64-*-hpux*)
5027  # Find out which ABI we are using.
5028  echo 'int i;' > conftest.$ac_ext
5029  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030  (eval $ac_compile) 2>&5
5031  ac_status=$?
5032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033  (exit $ac_status); }; then
5034    case `/usr/bin/file conftest.$ac_objext` in
5035    *ELF-32*)
5036      HPUX_IA64_MODE="32"
5037      ;;
5038    *ELF-64*)
5039      HPUX_IA64_MODE="64"
5040      ;;
5041    esac
5042  fi
5043  rm -rf conftest*
5044  ;;
5045*-*-irix6*)
5046  # Find out which ABI we are using.
5047  echo '#line 5047 "configure"' > conftest.$ac_ext
5048  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049  (eval $ac_compile) 2>&5
5050  ac_status=$?
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); }; then
5053   if test "$lt_cv_prog_gnu_ld" = yes; then
5054    case `/usr/bin/file conftest.$ac_objext` in
5055    *32-bit*)
5056      LD="${LD-ld} -melf32bsmip"
5057      ;;
5058    *N32*)
5059      LD="${LD-ld} -melf32bmipn32"
5060      ;;
5061    *64-bit*)
5062      LD="${LD-ld} -melf64bmip"
5063      ;;
5064    esac
5065   else
5066    case `/usr/bin/file conftest.$ac_objext` in
5067    *32-bit*)
5068      LD="${LD-ld} -32"
5069      ;;
5070    *N32*)
5071      LD="${LD-ld} -n32"
5072      ;;
5073    *64-bit*)
5074      LD="${LD-ld} -64"
5075      ;;
5076    esac
5077   fi
5078  fi
5079  rm -rf conftest*
5080  ;;
5081
5082x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5083  # Find out which ABI we are using.
5084  echo 'int i;' > conftest.$ac_ext
5085  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086  (eval $ac_compile) 2>&5
5087  ac_status=$?
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); }; then
5090    case `/usr/bin/file conftest.o` in
5091    *32-bit*)
5092      case $host in
5093        x86_64-*linux*)
5094          LD="${LD-ld} -m elf_i386"
5095          ;;
5096        ppc64-*linux*|powerpc64-*linux*)
5097          LD="${LD-ld} -m elf32ppclinux"
5098          ;;
5099        s390x-*linux*)
5100          LD="${LD-ld} -m elf_s390"
5101          ;;
5102        sparc64-*linux*)
5103          LD="${LD-ld} -m elf32_sparc"
5104          ;;
5105      esac
5106      ;;
5107    *64-bit*)
5108      case $host in
5109        x86_64-*linux*)
5110          LD="${LD-ld} -m elf_x86_64"
5111          ;;
5112        ppc*-*linux*|powerpc*-*linux*)
5113          LD="${LD-ld} -m elf64ppc"
5114          ;;
5115        s390*-*linux*)
5116          LD="${LD-ld} -m elf64_s390"
5117          ;;
5118        sparc*-*linux*)
5119          LD="${LD-ld} -m elf64_sparc"
5120          ;;
5121      esac
5122      ;;
5123    esac
5124  fi
5125  rm -rf conftest*
5126  ;;
5127
5128*-*-sco3.2v5*)
5129  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5130  SAVE_CFLAGS="$CFLAGS"
5131  CFLAGS="$CFLAGS -belf"
5132  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5133echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5134if test "${lt_cv_cc_needs_belf+set}" = set; then
5135  echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
5137  ac_ext=c
5138ac_cpp='$CPP $CPPFLAGS'
5139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143     cat >conftest.$ac_ext <<_ACEOF
5144/* confdefs.h.  */
5145_ACEOF
5146cat confdefs.h >>conftest.$ac_ext
5147cat >>conftest.$ac_ext <<_ACEOF
5148/* end confdefs.h.  */
5149
5150int
5151main ()
5152{
5153
5154  ;
5155  return 0;
5156}
5157_ACEOF
5158rm -f conftest.$ac_objext conftest$ac_exeext
5159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5160  (eval $ac_link) 2>conftest.er1
5161  ac_status=$?
5162  grep -v '^ *+' conftest.er1 >conftest.err
5163  rm -f conftest.er1
5164  cat conftest.err >&5
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); } &&
5167         { ac_try='test -z "$ac_c_werror_flag"
5168                         || test ! -s conftest.err'
5169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170  (eval $ac_try) 2>&5
5171  ac_status=$?
5172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173  (exit $ac_status); }; } &&
5174         { ac_try='test -s conftest$ac_exeext'
5175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176  (eval $ac_try) 2>&5
5177  ac_status=$?
5178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179  (exit $ac_status); }; }; then
5180  lt_cv_cc_needs_belf=yes
5181else
5182  echo "$as_me: failed program was:" >&5
5183sed 's/^/| /' conftest.$ac_ext >&5
5184
5185lt_cv_cc_needs_belf=no
5186fi
5187rm -f conftest.err conftest.$ac_objext \
5188      conftest$ac_exeext conftest.$ac_ext
5189     ac_ext=c
5190ac_cpp='$CPP $CPPFLAGS'
5191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194
5195fi
5196echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5197echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5198  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5199    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5200    CFLAGS="$SAVE_CFLAGS"
5201  fi
5202  ;;
5203sparc*-*solaris*)
5204  # Find out which ABI we are using.
5205  echo 'int i;' > conftest.$ac_ext
5206  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207  (eval $ac_compile) 2>&5
5208  ac_status=$?
5209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); }; then
5211    case `/usr/bin/file conftest.o` in
5212    *64-bit*)
5213      case $lt_cv_prog_gnu_ld in
5214      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5215      *)    LD="${LD-ld} -64" ;;
5216      esac
5217      ;;
5218    esac
5219  fi
5220  rm -rf conftest*
5221  ;;
5222
5223
5224esac
5225
5226need_locks="$enable_libtool_lock"
5227
5228
5229ac_ext=c
5230ac_cpp='$CPP $CPPFLAGS'
5231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5235echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5236# On Suns, sometimes $CPP names a directory.
5237if test -n "$CPP" && test -d "$CPP"; then
5238  CPP=
5239fi
5240if test -z "$CPP"; then
5241  if test "${ac_cv_prog_CPP+set}" = set; then
5242  echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244      # Double quotes because CPP needs to be expanded
5245    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5246    do
5247      ac_preproc_ok=false
5248for ac_c_preproc_warn_flag in '' yes
5249do
5250  # Use a header file that comes with gcc, so configuring glibc
5251  # with a fresh cross-compiler works.
5252  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5253  # <limits.h> exists even on freestanding compilers.
5254  # On the NeXT, cc -E runs the code through the compiler's parser,
5255  # not just through cpp. "Syntax error" is here to catch this case.
5256  cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h.  */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h.  */
5262#ifdef __STDC__
5263# include <limits.h>
5264#else
5265# include <assert.h>
5266#endif
5267                     Syntax error
5268_ACEOF
5269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5270  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5271  ac_status=$?
5272  grep -v '^ *+' conftest.er1 >conftest.err
5273  rm -f conftest.er1
5274  cat conftest.err >&5
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); } >/dev/null; then
5277  if test -s conftest.err; then
5278    ac_cpp_err=$ac_c_preproc_warn_flag
5279    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5280  else
5281    ac_cpp_err=
5282  fi
5283else
5284  ac_cpp_err=yes
5285fi
5286if test -z "$ac_cpp_err"; then
5287  :
5288else
5289  echo "$as_me: failed program was:" >&5
5290sed 's/^/| /' conftest.$ac_ext >&5
5291
5292  # Broken: fails on valid input.
5293continue
5294fi
5295rm -f conftest.err conftest.$ac_ext
5296
5297  # OK, works on sane cases.  Now check whether non-existent headers
5298  # can be detected and how.
5299  cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h.  */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h.  */
5305#include <ac_nonexistent.h>
5306_ACEOF
5307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5308  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5309  ac_status=$?
5310  grep -v '^ *+' conftest.er1 >conftest.err
5311  rm -f conftest.er1
5312  cat conftest.err >&5
5313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314  (exit $ac_status); } >/dev/null; then
5315  if test -s conftest.err; then
5316    ac_cpp_err=$ac_c_preproc_warn_flag
5317    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5318  else
5319    ac_cpp_err=
5320  fi
5321else
5322  ac_cpp_err=yes
5323fi
5324if test -z "$ac_cpp_err"; then
5325  # Broken: success on invalid input.
5326continue
5327else
5328  echo "$as_me: failed program was:" >&5
5329sed 's/^/| /' conftest.$ac_ext >&5
5330
5331  # Passes both tests.
5332ac_preproc_ok=:
5333break
5334fi
5335rm -f conftest.err conftest.$ac_ext
5336
5337done
5338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5339rm -f conftest.err conftest.$ac_ext
5340if $ac_preproc_ok; then
5341  break
5342fi
5343
5344    done
5345    ac_cv_prog_CPP=$CPP
5346
5347fi
5348  CPP=$ac_cv_prog_CPP
5349else
5350  ac_cv_prog_CPP=$CPP
5351fi
5352echo "$as_me:$LINENO: result: $CPP" >&5
5353echo "${ECHO_T}$CPP" >&6
5354ac_preproc_ok=false
5355for ac_c_preproc_warn_flag in '' yes
5356do
5357  # Use a header file that comes with gcc, so configuring glibc
5358  # with a fresh cross-compiler works.
5359  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5360  # <limits.h> exists even on freestanding compilers.
5361  # On the NeXT, cc -E runs the code through the compiler's parser,
5362  # not just through cpp. "Syntax error" is here to catch this case.
5363  cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h.  */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h.  */
5369#ifdef __STDC__
5370# include <limits.h>
5371#else
5372# include <assert.h>
5373#endif
5374                     Syntax error
5375_ACEOF
5376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5377  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5378  ac_status=$?
5379  grep -v '^ *+' conftest.er1 >conftest.err
5380  rm -f conftest.er1
5381  cat conftest.err >&5
5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383  (exit $ac_status); } >/dev/null; then
5384  if test -s conftest.err; then
5385    ac_cpp_err=$ac_c_preproc_warn_flag
5386    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5387  else
5388    ac_cpp_err=
5389  fi
5390else
5391  ac_cpp_err=yes
5392fi
5393if test -z "$ac_cpp_err"; then
5394  :
5395else
5396  echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399  # Broken: fails on valid input.
5400continue
5401fi
5402rm -f conftest.err conftest.$ac_ext
5403
5404  # OK, works on sane cases.  Now check whether non-existent headers
5405  # can be detected and how.
5406  cat >conftest.$ac_ext <<_ACEOF
5407/* confdefs.h.  */
5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h.  */
5412#include <ac_nonexistent.h>
5413_ACEOF
5414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5415  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5416  ac_status=$?
5417  grep -v '^ *+' conftest.er1 >conftest.err
5418  rm -f conftest.er1
5419  cat conftest.err >&5
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); } >/dev/null; then
5422  if test -s conftest.err; then
5423    ac_cpp_err=$ac_c_preproc_warn_flag
5424    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5425  else
5426    ac_cpp_err=
5427  fi
5428else
5429  ac_cpp_err=yes
5430fi
5431if test -z "$ac_cpp_err"; then
5432  # Broken: success on invalid input.
5433continue
5434else
5435  echo "$as_me: failed program was:" >&5
5436sed 's/^/| /' conftest.$ac_ext >&5
5437
5438  # Passes both tests.
5439ac_preproc_ok=:
5440break
5441fi
5442rm -f conftest.err conftest.$ac_ext
5443
5444done
5445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5446rm -f conftest.err conftest.$ac_ext
5447if $ac_preproc_ok; then
5448  :
5449else
5450  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5451See \`config.log' for more details." >&5
5452echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5453See \`config.log' for more details." >&2;}
5454   { (exit 1); exit 1; }; }
5455fi
5456
5457ac_ext=c
5458ac_cpp='$CPP $CPPFLAGS'
5459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462
5463
5464echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5465echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5466if test "${ac_cv_header_stdc+set}" = set; then
5467  echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469  cat >conftest.$ac_ext <<_ACEOF
5470/* confdefs.h.  */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h.  */
5475#include <stdlib.h>
5476#include <stdarg.h>
5477#include <string.h>
5478#include <float.h>
5479
5480int
5481main ()
5482{
5483
5484  ;
5485  return 0;
5486}
5487_ACEOF
5488rm -f conftest.$ac_objext
5489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490  (eval $ac_compile) 2>conftest.er1
5491  ac_status=$?
5492  grep -v '^ *+' conftest.er1 >conftest.err
5493  rm -f conftest.er1
5494  cat conftest.err >&5
5495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496  (exit $ac_status); } &&
5497         { ac_try='test -z "$ac_c_werror_flag"
5498                         || test ! -s conftest.err'
5499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500  (eval $ac_try) 2>&5
5501  ac_status=$?
5502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503  (exit $ac_status); }; } &&
5504         { ac_try='test -s conftest.$ac_objext'
5505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506  (eval $ac_try) 2>&5
5507  ac_status=$?
5508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509  (exit $ac_status); }; }; then
5510  ac_cv_header_stdc=yes
5511else
5512  echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515ac_cv_header_stdc=no
5516fi
5517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5518
5519if test $ac_cv_header_stdc = yes; then
5520  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5521  cat >conftest.$ac_ext <<_ACEOF
5522/* confdefs.h.  */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
5526/* end confdefs.h.  */
5527#include <string.h>
5528
5529_ACEOF
5530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5531  $EGREP "memchr" >/dev/null 2>&1; then
5532  :
5533else
5534  ac_cv_header_stdc=no
5535fi
5536rm -f conftest*
5537
5538fi
5539
5540if test $ac_cv_header_stdc = yes; then
5541  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5542  cat >conftest.$ac_ext <<_ACEOF
5543/* confdefs.h.  */
5544_ACEOF
5545cat confdefs.h >>conftest.$ac_ext
5546cat >>conftest.$ac_ext <<_ACEOF
5547/* end confdefs.h.  */
5548#include <stdlib.h>
5549
5550_ACEOF
5551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5552  $EGREP "free" >/dev/null 2>&1; then
5553  :
5554else
5555  ac_cv_header_stdc=no
5556fi
5557rm -f conftest*
5558
5559fi
5560
5561if test $ac_cv_header_stdc = yes; then
5562  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5563  if test "$cross_compiling" = yes; then
5564  :
5565else
5566  cat >conftest.$ac_ext <<_ACEOF
5567/* confdefs.h.  */
5568_ACEOF
5569cat confdefs.h >>conftest.$ac_ext
5570cat >>conftest.$ac_ext <<_ACEOF
5571/* end confdefs.h.  */
5572#include <ctype.h>
5573#if ((' ' & 0x0FF) == 0x020)
5574# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5575# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5576#else
5577# define ISLOWER(c) \
5578                   (('a' <= (c) && (c) <= 'i') \
5579                     || ('j' <= (c) && (c) <= 'r') \
5580                     || ('s' <= (c) && (c) <= 'z'))
5581# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5582#endif
5583
5584#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5585int
5586main ()
5587{
5588  int i;
5589  for (i = 0; i < 256; i++)
5590    if (XOR (islower (i), ISLOWER (i))
5591        || toupper (i) != TOUPPER (i))
5592      exit(2);
5593  exit (0);
5594}
5595_ACEOF
5596rm -f conftest$ac_exeext
5597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598  (eval $ac_link) 2>&5
5599  ac_status=$?
5600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603  (eval $ac_try) 2>&5
5604  ac_status=$?
5605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606  (exit $ac_status); }; }; then
5607  :
5608else
5609  echo "$as_me: program exited with status $ac_status" >&5
5610echo "$as_me: failed program was:" >&5
5611sed 's/^/| /' conftest.$ac_ext >&5
5612
5613( exit $ac_status )
5614ac_cv_header_stdc=no
5615fi
5616rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617fi
5618fi
5619fi
5620echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5621echo "${ECHO_T}$ac_cv_header_stdc" >&6
5622if test $ac_cv_header_stdc = yes; then
5623
5624cat >>confdefs.h <<\_ACEOF
5625#define STDC_HEADERS 1
5626_ACEOF
5627
5628fi
5629
5630# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5641                  inttypes.h stdint.h unistd.h
5642do
5643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5644echo "$as_me:$LINENO: checking for $ac_header" >&5
5645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5646if eval "test \"\${$as_ac_Header+set}\" = set"; then
5647  echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649  cat >conftest.$ac_ext <<_ACEOF
5650/* confdefs.h.  */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
5654/* end confdefs.h.  */
5655$ac_includes_default
5656
5657#include <$ac_header>
5658_ACEOF
5659rm -f conftest.$ac_objext
5660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661  (eval $ac_compile) 2>conftest.er1
5662  ac_status=$?
5663  grep -v '^ *+' conftest.er1 >conftest.err
5664  rm -f conftest.er1
5665  cat conftest.err >&5
5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667  (exit $ac_status); } &&
5668         { ac_try='test -z "$ac_c_werror_flag"
5669                         || test ! -s conftest.err'
5670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671  (eval $ac_try) 2>&5
5672  ac_status=$?
5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); }; } &&
5675         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5681  eval "$as_ac_Header=yes"
5682else
5683  echo "$as_me: failed program was:" >&5
5684sed 's/^/| /' conftest.$ac_ext >&5
5685
5686eval "$as_ac_Header=no"
5687fi
5688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5689fi
5690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5692if test `eval echo '${'$as_ac_Header'}'` = yes; then
5693  cat >>confdefs.h <<_ACEOF
5694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5695_ACEOF
5696
5697fi
5698
5699done
5700
5701
5702
5703for ac_header in dlfcn.h
5704do
5705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5706if eval "test \"\${$as_ac_Header+set}\" = set"; then
5707  echo "$as_me:$LINENO: checking for $ac_header" >&5
5708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5709if eval "test \"\${$as_ac_Header+set}\" = set"; then
5710  echo $ECHO_N "(cached) $ECHO_C" >&6
5711fi
5712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5714else
5715  # Is the header compilable?
5716echo "$as_me:$LINENO: checking $ac_header usability" >&5
5717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5718cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h.  */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h.  */
5724$ac_includes_default
5725#include <$ac_header>
5726_ACEOF
5727rm -f conftest.$ac_objext
5728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729  (eval $ac_compile) 2>conftest.er1
5730  ac_status=$?
5731  grep -v '^ *+' conftest.er1 >conftest.err
5732  rm -f conftest.er1
5733  cat conftest.err >&5
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); } &&
5736         { ac_try='test -z "$ac_c_werror_flag"
5737                         || test ! -s conftest.err'
5738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739  (eval $ac_try) 2>&5
5740  ac_status=$?
5741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742  (exit $ac_status); }; } &&
5743         { ac_try='test -s conftest.$ac_objext'
5744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745  (eval $ac_try) 2>&5
5746  ac_status=$?
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); }; }; then
5749  ac_header_compiler=yes
5750else
5751  echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754ac_header_compiler=no
5755fi
5756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5758echo "${ECHO_T}$ac_header_compiler" >&6
5759
5760# Is the header present?
5761echo "$as_me:$LINENO: checking $ac_header presence" >&5
5762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5763cat >conftest.$ac_ext <<_ACEOF
5764/* confdefs.h.  */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h.  */
5769#include <$ac_header>
5770_ACEOF
5771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5772  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5773  ac_status=$?
5774  grep -v '^ *+' conftest.er1 >conftest.err
5775  rm -f conftest.er1
5776  cat conftest.err >&5
5777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778  (exit $ac_status); } >/dev/null; then
5779  if test -s conftest.err; then
5780    ac_cpp_err=$ac_c_preproc_warn_flag
5781    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5782  else
5783    ac_cpp_err=
5784  fi
5785else
5786  ac_cpp_err=yes
5787fi
5788if test -z "$ac_cpp_err"; then
5789  ac_header_preproc=yes
5790else
5791  echo "$as_me: failed program was:" >&5
5792sed 's/^/| /' conftest.$ac_ext >&5
5793
5794  ac_header_preproc=no
5795fi
5796rm -f conftest.err conftest.$ac_ext
5797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5798echo "${ECHO_T}$ac_header_preproc" >&6
5799
5800# So?  What about this header?
5801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5802  yes:no: )
5803    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5805    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5807    ac_header_preproc=yes
5808    ;;
5809  no:yes:* )
5810    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5812    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5813echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5814    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5816    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5817echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5818    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5820    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5822    (
5823      cat <<\_ASBOX
5824## --------------------------------------------------------------- ##
5825## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5826## --------------------------------------------------------------- ##
5827_ASBOX
5828    ) |
5829      sed "s/^/$as_me: WARNING:     /" >&2
5830    ;;
5831esac
5832echo "$as_me:$LINENO: checking for $ac_header" >&5
5833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5834if eval "test \"\${$as_ac_Header+set}\" = set"; then
5835  echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837  eval "$as_ac_Header=\$ac_header_preproc"
5838fi
5839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5841
5842fi
5843if test `eval echo '${'$as_ac_Header'}'` = yes; then
5844  cat >>confdefs.h <<_ACEOF
5845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5846_ACEOF
5847
5848fi
5849
5850done
5851
5852ac_ext=cc
5853ac_cpp='$CXXCPP $CPPFLAGS'
5854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5857if test -n "$ac_tool_prefix"; then
5858  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5859  do
5860    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5861set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5862echo "$as_me:$LINENO: checking for $ac_word" >&5
5863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864if test "${ac_cv_prog_CXX+set}" = set; then
5865  echo $ECHO_N "(cached) $ECHO_C" >&6
5866else
5867  if test -n "$CXX"; then
5868  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873  IFS=$as_save_IFS
5874  test -z "$as_dir" && as_dir=.
5875  for ac_exec_ext in '' $ac_executable_extensions; do
5876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879    break 2
5880  fi
5881done
5882done
5883
5884fi
5885fi
5886CXX=$ac_cv_prog_CXX
5887if test -n "$CXX"; then
5888  echo "$as_me:$LINENO: result: $CXX" >&5
5889echo "${ECHO_T}$CXX" >&6
5890else
5891  echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6
5893fi
5894
5895    test -n "$CXX" && break
5896  done
5897fi
5898if test -z "$CXX"; then
5899  ac_ct_CXX=$CXX
5900  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5901do
5902  # Extract the first word of "$ac_prog", so it can be a program name with args.
5903set dummy $ac_prog; ac_word=$2
5904echo "$as_me:$LINENO: checking for $ac_word" >&5
5905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5907  echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909  if test -n "$ac_ct_CXX"; then
5910  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915  IFS=$as_save_IFS
5916  test -z "$as_dir" && as_dir=.
5917  for ac_exec_ext in '' $ac_executable_extensions; do
5918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919    ac_cv_prog_ac_ct_CXX="$ac_prog"
5920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921    break 2
5922  fi
5923done
5924done
5925
5926fi
5927fi
5928ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5929if test -n "$ac_ct_CXX"; then
5930  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5931echo "${ECHO_T}$ac_ct_CXX" >&6
5932else
5933  echo "$as_me:$LINENO: result: no" >&5
5934echo "${ECHO_T}no" >&6
5935fi
5936
5937  test -n "$ac_ct_CXX" && break
5938done
5939test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5940
5941  CXX=$ac_ct_CXX
5942fi
5943
5944
5945# Provide some information about the compiler.
5946echo "$as_me:$LINENO:" \
5947     "checking for C++ compiler version" >&5
5948ac_compiler=`set X $ac_compile; echo $2`
5949{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5950  (eval $ac_compiler --version </dev/null >&5) 2>&5
5951  ac_status=$?
5952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953  (exit $ac_status); }
5954{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5955  (eval $ac_compiler -v </dev/null >&5) 2>&5
5956  ac_status=$?
5957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958  (exit $ac_status); }
5959{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5960  (eval $ac_compiler -V </dev/null >&5) 2>&5
5961  ac_status=$?
5962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); }
5964
5965echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5966echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5967if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h.  */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h.  */
5976
5977int
5978main ()
5979{
5980#ifndef __GNUC__
5981       choke me
5982#endif
5983
5984  ;
5985  return 0;
5986}
5987_ACEOF
5988rm -f conftest.$ac_objext
5989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990  (eval $ac_compile) 2>conftest.er1
5991  ac_status=$?
5992  grep -v '^ *+' conftest.er1 >conftest.err
5993  rm -f conftest.er1
5994  cat conftest.err >&5
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); } &&
5997         { ac_try='test -z "$ac_cxx_werror_flag"
5998                         || test ! -s conftest.err'
5999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000  (eval $ac_try) 2>&5
6001  ac_status=$?
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); }; } &&
6004         { ac_try='test -s conftest.$ac_objext'
6005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006  (eval $ac_try) 2>&5
6007  ac_status=$?
6008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009  (exit $ac_status); }; }; then
6010  ac_compiler_gnu=yes
6011else
6012  echo "$as_me: failed program was:" >&5
6013sed 's/^/| /' conftest.$ac_ext >&5
6014
6015ac_compiler_gnu=no
6016fi
6017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6019
6020fi
6021echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6022echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6023GXX=`test $ac_compiler_gnu = yes && echo yes`
6024ac_test_CXXFLAGS=${CXXFLAGS+set}
6025ac_save_CXXFLAGS=$CXXFLAGS
6026CXXFLAGS="-g"
6027echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6028echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6029if test "${ac_cv_prog_cxx_g+set}" = set; then
6030  echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032  cat >conftest.$ac_ext <<_ACEOF
6033/* confdefs.h.  */
6034_ACEOF
6035cat confdefs.h >>conftest.$ac_ext
6036cat >>conftest.$ac_ext <<_ACEOF
6037/* end confdefs.h.  */
6038
6039int
6040main ()
6041{
6042
6043  ;
6044  return 0;
6045}
6046_ACEOF
6047rm -f conftest.$ac_objext
6048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049  (eval $ac_compile) 2>conftest.er1
6050  ac_status=$?
6051  grep -v '^ *+' conftest.er1 >conftest.err
6052  rm -f conftest.er1
6053  cat conftest.err >&5
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); } &&
6056         { ac_try='test -z "$ac_cxx_werror_flag"
6057                         || test ! -s conftest.err'
6058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059  (eval $ac_try) 2>&5
6060  ac_status=$?
6061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062  (exit $ac_status); }; } &&
6063         { ac_try='test -s conftest.$ac_objext'
6064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065  (eval $ac_try) 2>&5
6066  ac_status=$?
6067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); }; }; then
6069  ac_cv_prog_cxx_g=yes
6070else
6071  echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074ac_cv_prog_cxx_g=no
6075fi
6076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077fi
6078echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6079echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6080if test "$ac_test_CXXFLAGS" = set; then
6081  CXXFLAGS=$ac_save_CXXFLAGS
6082elif test $ac_cv_prog_cxx_g = yes; then
6083  if test "$GXX" = yes; then
6084    CXXFLAGS="-g -O2"
6085  else
6086    CXXFLAGS="-g"
6087  fi
6088else
6089  if test "$GXX" = yes; then
6090    CXXFLAGS="-O2"
6091  else
6092    CXXFLAGS=
6093  fi
6094fi
6095for ac_declaration in \
6096   '' \
6097   'extern "C" void std::exit (int) throw (); using std::exit;' \
6098   'extern "C" void std::exit (int); using std::exit;' \
6099   'extern "C" void exit (int) throw ();' \
6100   'extern "C" void exit (int);' \
6101   'void exit (int);'
6102do
6103  cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h.  */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h.  */
6109$ac_declaration
6110#include <stdlib.h>
6111int
6112main ()
6113{
6114exit (42);
6115  ;
6116  return 0;
6117}
6118_ACEOF
6119rm -f conftest.$ac_objext
6120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121  (eval $ac_compile) 2>conftest.er1
6122  ac_status=$?
6123  grep -v '^ *+' conftest.er1 >conftest.err
6124  rm -f conftest.er1
6125  cat conftest.err >&5
6126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127  (exit $ac_status); } &&
6128         { ac_try='test -z "$ac_cxx_werror_flag"
6129                         || test ! -s conftest.err'
6130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131  (eval $ac_try) 2>&5
6132  ac_status=$?
6133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134  (exit $ac_status); }; } &&
6135         { ac_try='test -s conftest.$ac_objext'
6136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137  (eval $ac_try) 2>&5
6138  ac_status=$?
6139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140  (exit $ac_status); }; }; then
6141  :
6142else
6143  echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146continue
6147fi
6148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149  cat >conftest.$ac_ext <<_ACEOF
6150/* confdefs.h.  */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
6154/* end confdefs.h.  */
6155$ac_declaration
6156int
6157main ()
6158{
6159exit (42);
6160  ;
6161  return 0;
6162}
6163_ACEOF
6164rm -f conftest.$ac_objext
6165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166  (eval $ac_compile) 2>conftest.er1
6167  ac_status=$?
6168  grep -v '^ *+' conftest.er1 >conftest.err
6169  rm -f conftest.er1
6170  cat conftest.err >&5
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); } &&
6173         { ac_try='test -z "$ac_cxx_werror_flag"
6174                         || test ! -s conftest.err'
6175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176  (eval $ac_try) 2>&5
6177  ac_status=$?
6178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179  (exit $ac_status); }; } &&
6180         { ac_try='test -s conftest.$ac_objext'
6181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182  (eval $ac_try) 2>&5
6183  ac_status=$?
6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185  (exit $ac_status); }; }; then
6186  break
6187else
6188  echo "$as_me: failed program was:" >&5
6189sed 's/^/| /' conftest.$ac_ext >&5
6190
6191fi
6192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6193done
6194rm -f conftest*
6195if test -n "$ac_declaration"; then
6196  echo '#ifdef __cplusplus' >>confdefs.h
6197  echo $ac_declaration      >>confdefs.h
6198  echo '#endif'             >>confdefs.h
6199fi
6200
6201ac_ext=cc
6202ac_cpp='$CXXCPP $CPPFLAGS'
6203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6206
6207depcc="$CXX"  am_compiler_list=
6208
6209echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6210echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6211if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6215  # We make a subdir and do the tests there.  Otherwise we can end up
6216  # making bogus files that we don't know about and never remove.  For
6217  # instance it was reported that on HP-UX the gcc test will end up
6218  # making a dummy file named `D' -- because `-MD' means `put the output
6219  # in D'.
6220  mkdir conftest.dir
6221  # Copy depcomp to subdir because otherwise we won't find it if we're
6222  # using a relative directory.
6223  cp "$am_depcomp" conftest.dir
6224  cd conftest.dir
6225  # We will build objects and dependencies in a subdirectory because
6226  # it helps to detect inapplicable dependency modes.  For instance
6227  # both Tru64's cc and ICC support -MD to output dependencies as a
6228  # side effect of compilation, but ICC will put the dependencies in
6229  # the current directory while Tru64 will put them in the object
6230  # directory.
6231  mkdir sub
6232
6233  am_cv_CXX_dependencies_compiler_type=none
6234  if test "$am_compiler_list" = ""; then
6235     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6236  fi
6237  for depmode in $am_compiler_list; do
6238    # Setup a source with many dependencies, because some compilers
6239    # like to wrap large dependency lists on column 80 (with \), and
6240    # we should not choose a depcomp mode which is confused by this.
6241    #
6242    # We need to recreate these files for each test, as the compiler may
6243    # overwrite some of them when testing with obscure command lines.
6244    # This happens at least with the AIX C compiler.
6245    : > sub/conftest.c
6246    for i in 1 2 3 4 5 6; do
6247      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6248      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6249      # Solaris 8's {/usr,}/bin/sh.
6250      touch sub/conftst$i.h
6251    done
6252    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6253
6254    case $depmode in
6255    nosideeffect)
6256      # after this tag, mechanisms are not by side-effect, so they'll
6257      # only be used when explicitly requested
6258      if test "x$enable_dependency_tracking" = xyes; then
6259        continue
6260      else
6261        break
6262      fi
6263      ;;
6264    none) break ;;
6265    esac
6266    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6267    # mode.  It turns out that the SunPro C++ compiler does not properly
6268    # handle `-M -o', and we need to detect this.
6269    if depmode=$depmode \
6270       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6271       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6272       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6273         >/dev/null 2>conftest.err &&
6274       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6275       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6276       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6277      # icc doesn't choke on unknown options, it will just issue warnings
6278      # or remarks (even with -Werror).  So we grep stderr for any message
6279      # that says an option was ignored or not supported.
6280      # When given -MP, icc 7.0 and 7.1 complain thusly:
6281      #   icc: Command line warning: ignoring option '-M'; no argument required
6282      # The diagnosis changed in icc 8.0:
6283      #   icc: Command line remark: option '-MP' not supported
6284      if (grep 'ignoring option' conftest.err ||
6285          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6286        am_cv_CXX_dependencies_compiler_type=$depmode
6287        break
6288      fi
6289    fi
6290  done
6291
6292  cd ..
6293  rm -rf conftest.dir
6294else
6295  am_cv_CXX_dependencies_compiler_type=none
6296fi
6297
6298fi
6299echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6300echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6301CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6302
6303
6304
6305if
6306  test "x$enable_dependency_tracking" != xno \
6307  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6308  am__fastdepCXX_TRUE=
6309  am__fastdepCXX_FALSE='#'
6310else
6311  am__fastdepCXX_TRUE='#'
6312  am__fastdepCXX_FALSE=
6313fi
6314
6315
6316
6317
6318if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6319    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6320    (test "X$CXX" != "Xg++"))) ; then
6321  ac_ext=cc
6322ac_cpp='$CXXCPP $CPPFLAGS'
6323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6326echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6327echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6328if test -z "$CXXCPP"; then
6329  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6330  echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332      # Double quotes because CXXCPP needs to be expanded
6333    for CXXCPP in "$CXX -E" "/lib/cpp"
6334    do
6335      ac_preproc_ok=false
6336for ac_cxx_preproc_warn_flag in '' yes
6337do
6338  # Use a header file that comes with gcc, so configuring glibc
6339  # with a fresh cross-compiler works.
6340  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6341  # <limits.h> exists even on freestanding compilers.
6342  # On the NeXT, cc -E runs the code through the compiler's parser,
6343  # not just through cpp. "Syntax error" is here to catch this case.
6344  cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h.  */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h.  */
6350#ifdef __STDC__
6351# include <limits.h>
6352#else
6353# include <assert.h>
6354#endif
6355                     Syntax error
6356_ACEOF
6357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6358  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6359  ac_status=$?
6360  grep -v '^ *+' conftest.er1 >conftest.err
6361  rm -f conftest.er1
6362  cat conftest.err >&5
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); } >/dev/null; then
6365  if test -s conftest.err; then
6366    ac_cpp_err=$ac_cxx_preproc_warn_flag
6367    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6368  else
6369    ac_cpp_err=
6370  fi
6371else
6372  ac_cpp_err=yes
6373fi
6374if test -z "$ac_cpp_err"; then
6375  :
6376else
6377  echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380  # Broken: fails on valid input.
6381continue
6382fi
6383rm -f conftest.err conftest.$ac_ext
6384
6385  # OK, works on sane cases.  Now check whether non-existent headers
6386  # can be detected and how.
6387  cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h.  */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h.  */
6393#include <ac_nonexistent.h>
6394_ACEOF
6395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6396  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6397  ac_status=$?
6398  grep -v '^ *+' conftest.er1 >conftest.err
6399  rm -f conftest.er1
6400  cat conftest.err >&5
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); } >/dev/null; then
6403  if test -s conftest.err; then
6404    ac_cpp_err=$ac_cxx_preproc_warn_flag
6405    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6406  else
6407    ac_cpp_err=
6408  fi
6409else
6410  ac_cpp_err=yes
6411fi
6412if test -z "$ac_cpp_err"; then
6413  # Broken: success on invalid input.
6414continue
6415else
6416  echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419  # Passes both tests.
6420ac_preproc_ok=:
6421break
6422fi
6423rm -f conftest.err conftest.$ac_ext
6424
6425done
6426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6427rm -f conftest.err conftest.$ac_ext
6428if $ac_preproc_ok; then
6429  break
6430fi
6431
6432    done
6433    ac_cv_prog_CXXCPP=$CXXCPP
6434
6435fi
6436  CXXCPP=$ac_cv_prog_CXXCPP
6437else
6438  ac_cv_prog_CXXCPP=$CXXCPP
6439fi
6440echo "$as_me:$LINENO: result: $CXXCPP" >&5
6441echo "${ECHO_T}$CXXCPP" >&6
6442ac_preproc_ok=false
6443for ac_cxx_preproc_warn_flag in '' yes
6444do
6445  # Use a header file that comes with gcc, so configuring glibc
6446  # with a fresh cross-compiler works.
6447  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448  # <limits.h> exists even on freestanding compilers.
6449  # On the NeXT, cc -E runs the code through the compiler's parser,
6450  # not just through cpp. "Syntax error" is here to catch this case.
6451  cat >conftest.$ac_ext <<_ACEOF
6452/* confdefs.h.  */
6453_ACEOF
6454cat confdefs.h >>conftest.$ac_ext
6455cat >>conftest.$ac_ext <<_ACEOF
6456/* end confdefs.h.  */
6457#ifdef __STDC__
6458# include <limits.h>
6459#else
6460# include <assert.h>
6461#endif
6462                     Syntax error
6463_ACEOF
6464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6466  ac_status=$?
6467  grep -v '^ *+' conftest.er1 >conftest.err
6468  rm -f conftest.er1
6469  cat conftest.err >&5
6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471  (exit $ac_status); } >/dev/null; then
6472  if test -s conftest.err; then
6473    ac_cpp_err=$ac_cxx_preproc_warn_flag
6474    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6475  else
6476    ac_cpp_err=
6477  fi
6478else
6479  ac_cpp_err=yes
6480fi
6481if test -z "$ac_cpp_err"; then
6482  :
6483else
6484  echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487  # Broken: fails on valid input.
6488continue
6489fi
6490rm -f conftest.err conftest.$ac_ext
6491
6492  # OK, works on sane cases.  Now check whether non-existent headers
6493  # can be detected and how.
6494  cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h.  */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h.  */
6500#include <ac_nonexistent.h>
6501_ACEOF
6502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504  ac_status=$?
6505  grep -v '^ *+' conftest.er1 >conftest.err
6506  rm -f conftest.er1
6507  cat conftest.err >&5
6508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509  (exit $ac_status); } >/dev/null; then
6510  if test -s conftest.err; then
6511    ac_cpp_err=$ac_cxx_preproc_warn_flag
6512    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6513  else
6514    ac_cpp_err=
6515  fi
6516else
6517  ac_cpp_err=yes
6518fi
6519if test -z "$ac_cpp_err"; then
6520  # Broken: success on invalid input.
6521continue
6522else
6523  echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
6525
6526  # Passes both tests.
6527ac_preproc_ok=:
6528break
6529fi
6530rm -f conftest.err conftest.$ac_ext
6531
6532done
6533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6534rm -f conftest.err conftest.$ac_ext
6535if $ac_preproc_ok; then
6536  :
6537else
6538  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6539See \`config.log' for more details." >&5
6540echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6541See \`config.log' for more details." >&2;}
6542   { (exit 1); exit 1; }; }
6543fi
6544
6545ac_ext=cc
6546ac_cpp='$CXXCPP $CPPFLAGS'
6547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6550
6551fi
6552
6553
6554ac_ext=f
6555ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6556ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6557ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6558if test -n "$ac_tool_prefix"; then
6559  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6560  do
6561    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6562set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6563echo "$as_me:$LINENO: checking for $ac_word" >&5
6564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6565if test "${ac_cv_prog_F77+set}" = set; then
6566  echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568  if test -n "$F77"; then
6569  ac_cv_prog_F77="$F77" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574  IFS=$as_save_IFS
6575  test -z "$as_dir" && as_dir=.
6576  for ac_exec_ext in '' $ac_executable_extensions; do
6577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580    break 2
6581  fi
6582done
6583done
6584
6585fi
6586fi
6587F77=$ac_cv_prog_F77
6588if test -n "$F77"; then
6589  echo "$as_me:$LINENO: result: $F77" >&5
6590echo "${ECHO_T}$F77" >&6
6591else
6592  echo "$as_me:$LINENO: result: no" >&5
6593echo "${ECHO_T}no" >&6
6594fi
6595
6596    test -n "$F77" && break
6597  done
6598fi
6599if test -z "$F77"; then
6600  ac_ct_F77=$F77
6601  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6602do
6603  # Extract the first word of "$ac_prog", so it can be a program name with args.
6604set dummy $ac_prog; ac_word=$2
6605echo "$as_me:$LINENO: checking for $ac_word" >&5
6606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6607if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6608  echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610  if test -n "$ac_ct_F77"; then
6611  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616  IFS=$as_save_IFS
6617  test -z "$as_dir" && as_dir=.
6618  for ac_exec_ext in '' $ac_executable_extensions; do
6619  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620    ac_cv_prog_ac_ct_F77="$ac_prog"
6621    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622    break 2
6623  fi
6624done
6625done
6626
6627fi
6628fi
6629ac_ct_F77=$ac_cv_prog_ac_ct_F77
6630if test -n "$ac_ct_F77"; then
6631  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6632echo "${ECHO_T}$ac_ct_F77" >&6
6633else
6634  echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6
6636fi
6637
6638  test -n "$ac_ct_F77" && break
6639done
6640
6641  F77=$ac_ct_F77
6642fi
6643
6644
6645# Provide some information about the compiler.
6646echo "$as_me:6646:" \
6647     "checking for Fortran 77 compiler version" >&5
6648ac_compiler=`set X $ac_compile; echo $2`
6649{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6650  (eval $ac_compiler --version </dev/null >&5) 2>&5
6651  ac_status=$?
6652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653  (exit $ac_status); }
6654{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6655  (eval $ac_compiler -v </dev/null >&5) 2>&5
6656  ac_status=$?
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); }
6659{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6660  (eval $ac_compiler -V </dev/null >&5) 2>&5
6661  ac_status=$?
6662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663  (exit $ac_status); }
6664rm -f a.out
6665
6666# If we don't use `.F' as extension, the preprocessor is not run on the
6667# input file.  (Note that this only needs to work for GNU compilers.)
6668ac_save_ext=$ac_ext
6669ac_ext=F
6670echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6671echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6672if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6673  echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675  cat >conftest.$ac_ext <<_ACEOF
6676      program main
6677#ifndef __GNUC__
6678       choke me
6679#endif
6680
6681      end
6682_ACEOF
6683rm -f conftest.$ac_objext
6684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6685  (eval $ac_compile) 2>conftest.er1
6686  ac_status=$?
6687  grep -v '^ *+' conftest.er1 >conftest.err
6688  rm -f conftest.er1
6689  cat conftest.err >&5
6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); } &&
6692         { ac_try='test -z "$ac_f77_werror_flag"
6693                         || test ! -s conftest.err'
6694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695  (eval $ac_try) 2>&5
6696  ac_status=$?
6697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698  (exit $ac_status); }; } &&
6699         { ac_try='test -s conftest.$ac_objext'
6700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701  (eval $ac_try) 2>&5
6702  ac_status=$?
6703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); }; }; then
6705  ac_compiler_gnu=yes
6706else
6707  echo "$as_me: failed program was:" >&5
6708sed 's/^/| /' conftest.$ac_ext >&5
6709
6710ac_compiler_gnu=no
6711fi
6712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6713ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6714
6715fi
6716echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6717echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6718ac_ext=$ac_save_ext
6719ac_test_FFLAGS=${FFLAGS+set}
6720ac_save_FFLAGS=$FFLAGS
6721FFLAGS=
6722echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6723echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6724if test "${ac_cv_prog_f77_g+set}" = set; then
6725  echo $ECHO_N "(cached) $ECHO_C" >&6
6726else
6727  FFLAGS=-g
6728cat >conftest.$ac_ext <<_ACEOF
6729      program main
6730
6731      end
6732_ACEOF
6733rm -f conftest.$ac_objext
6734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735  (eval $ac_compile) 2>conftest.er1
6736  ac_status=$?
6737  grep -v '^ *+' conftest.er1 >conftest.err
6738  rm -f conftest.er1
6739  cat conftest.err >&5
6740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741  (exit $ac_status); } &&
6742         { ac_try='test -z "$ac_f77_werror_flag"
6743                         || test ! -s conftest.err'
6744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745  (eval $ac_try) 2>&5
6746  ac_status=$?
6747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748  (exit $ac_status); }; } &&
6749         { ac_try='test -s conftest.$ac_objext'
6750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751  (eval $ac_try) 2>&5
6752  ac_status=$?
6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754  (exit $ac_status); }; }; then
6755  ac_cv_prog_f77_g=yes
6756else
6757  echo "$as_me: failed program was:" >&5
6758sed 's/^/| /' conftest.$ac_ext >&5
6759
6760ac_cv_prog_f77_g=no
6761fi
6762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6763
6764fi
6765echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6766echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6767if test "$ac_test_FFLAGS" = set; then
6768  FFLAGS=$ac_save_FFLAGS
6769elif test $ac_cv_prog_f77_g = yes; then
6770  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6771    FFLAGS="-g -O2"
6772  else
6773    FFLAGS="-g"
6774  fi
6775else
6776  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6777    FFLAGS="-O2"
6778  else
6779    FFLAGS=
6780  fi
6781fi
6782
6783G77=`test $ac_compiler_gnu = yes && echo yes`
6784ac_ext=c
6785ac_cpp='$CPP $CPPFLAGS'
6786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788ac_compiler_gnu=$ac_cv_c_compiler_gnu
6789
6790
6791
6792# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6793
6794# find the maximum length of command line arguments
6795echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6796echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6797if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6798  echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800    i=0
6801  teststring="ABCD"
6802
6803  case $build_os in
6804  msdosdjgpp*)
6805    # On DJGPP, this test can blow up pretty badly due to problems in libc
6806    # (any single argument exceeding 2000 bytes causes a buffer overrun
6807    # during glob expansion).  Even if it were fixed, the result of this
6808    # check would be larger than it should be.
6809    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6810    ;;
6811
6812  gnu*)
6813    # Under GNU Hurd, this test is not required because there is
6814    # no limit to the length of command line arguments.
6815    # Libtool will interpret -1 as no limit whatsoever
6816    lt_cv_sys_max_cmd_len=-1;
6817    ;;
6818
6819  cygwin* | mingw*)
6820    # On Win9x/ME, this test blows up -- it succeeds, but takes
6821    # about 5 minutes as the teststring grows exponentially.
6822    # Worse, since 9x/ME are not pre-emptively multitasking,
6823    # you end up with a "frozen" computer, even though with patience
6824    # the test eventually succeeds (with a max line length of 256k).
6825    # Instead, let's just punt: use the minimum linelength reported by
6826    # all of the supported platforms: 8192 (on NT/2K/XP).
6827    lt_cv_sys_max_cmd_len=8192;
6828    ;;
6829
6830  amigaos*)
6831    # On AmigaOS with pdksh, this test takes hours, literally.
6832    # So we just punt and use a minimum line length of 8192.
6833    lt_cv_sys_max_cmd_len=8192;
6834    ;;
6835
6836  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6837    # This has been around since 386BSD, at least.  Likely further.
6838    if test -x /sbin/sysctl; then
6839      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6840    elif test -x /usr/sbin/sysctl; then
6841      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6842    else
6843      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6844    fi
6845    # And add a safety zone
6846    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6847    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6848    ;;
6849
6850  interix*)
6851    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6852    lt_cv_sys_max_cmd_len=196608
6853    ;;
6854
6855  osf*)
6856    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6857    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6858    # nice to cause kernel panics so lets avoid the loop below.
6859    # First set a reasonable default.
6860    lt_cv_sys_max_cmd_len=16384
6861    #
6862    if test -x /sbin/sysconfig; then
6863      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6864        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6865      esac
6866    fi
6867    ;;
6868  sco3.2v5*)
6869    lt_cv_sys_max_cmd_len=102400
6870    ;;
6871  sysv5* | sco5v6* | sysv4.2uw2*)
6872    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6873    if test -n "$kargmax"; then
6874      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6875    else
6876      lt_cv_sys_max_cmd_len=32768
6877    fi
6878    ;;
6879  *)
6880    # If test is not a shell built-in, we'll probably end up computing a
6881    # maximum length that is only half of the actual maximum length, but
6882    # we can't tell.
6883    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6884    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6885               = "XX$teststring") >/dev/null 2>&1 &&
6886            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6887            lt_cv_sys_max_cmd_len=$new_result &&
6888            test $i != 17 # 1/2 MB should be enough
6889    do
6890      i=`expr $i + 1`
6891      teststring=$teststring$teststring
6892    done
6893    teststring=
6894    # Add a significant safety factor because C++ compilers can tack on massive
6895    # amounts of additional arguments before passing them to the linker.
6896    # It appears as though 1/2 is a usable value.
6897    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6898    ;;
6899  esac
6900
6901fi
6902
6903if test -n $lt_cv_sys_max_cmd_len ; then
6904  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6905echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6906else
6907  echo "$as_me:$LINENO: result: none" >&5
6908echo "${ECHO_T}none" >&6
6909fi
6910
6911
6912
6913
6914# Check for command to grab the raw symbol name followed by C symbol from nm.
6915echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6916echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6917if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6918  echo $ECHO_N "(cached) $ECHO_C" >&6
6919else
6920
6921# These are sane defaults that work on at least a few old systems.
6922# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6923
6924# Character class describing NM global symbol codes.
6925symcode='[BCDEGRST]'
6926
6927# Regexp to match symbols that can be accessed directly from C.
6928sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6929
6930# Transform an extracted symbol line into a proper C declaration
6931lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6932
6933# Transform an extracted symbol line into symbol name and symbol address
6934lt_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'"
6935
6936# Define system-specific variables.
6937case $host_os in
6938aix*)
6939  symcode='[BCDT]'
6940  ;;
6941cygwin* | mingw* | pw32*)
6942  symcode='[ABCDGISTW]'
6943  ;;
6944hpux*) # Its linker distinguishes data from code symbols
6945  if test "$host_cpu" = ia64; then
6946    symcode='[ABCDEGRST]'
6947  fi
6948  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6949  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'"
6950  ;;
6951linux*)
6952  if test "$host_cpu" = ia64; then
6953    symcode='[ABCDGIRSTW]'
6954    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6955    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'"
6956  fi
6957  ;;
6958irix* | nonstopux*)
6959  symcode='[BCDEGRST]'
6960  ;;
6961osf*)
6962  symcode='[BCDEGQRST]'
6963  ;;
6964solaris*)
6965  symcode='[BDRT]'
6966  ;;
6967sco3.2v5*)
6968  symcode='[DT]'
6969  ;;
6970sysv4.2uw2*)
6971  symcode='[DT]'
6972  ;;
6973sysv5* | sco5v6* | unixware* | OpenUNIX*)
6974  symcode='[ABDT]'
6975  ;;
6976sysv4)
6977  symcode='[DFNSTU]'
6978  ;;
6979esac
6980
6981# Handle CRLF in mingw tool chain
6982opt_cr=
6983case $build_os in
6984mingw*)
6985  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6986  ;;
6987esac
6988
6989# If we're using GNU nm, then use its standard symbol codes.
6990case `$NM -V 2>&1` in
6991*GNU* | *'with BFD'*)
6992  symcode='[ABCDGIRSTW]' ;;
6993esac
6994
6995# Try without a prefix undercore, then with it.
6996for ac_symprfx in "" "_"; do
6997
6998  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6999  symxfrm="\\1 $ac_symprfx\\2 \\2"
7000
7001  # Write the raw and C identifiers.
7002  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7003
7004  # Check to see that the pipe works correctly.
7005  pipe_works=no
7006
7007  rm -f conftest*
7008  cat > conftest.$ac_ext <<EOF
7009#ifdef __cplusplus
7010extern "C" {
7011#endif
7012char nm_test_var;
7013void nm_test_func(){}
7014#ifdef __cplusplus
7015}
7016#endif
7017int main(){nm_test_var='a';nm_test_func();return(0);}
7018EOF
7019
7020  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021  (eval $ac_compile) 2>&5
7022  ac_status=$?
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); }; then
7025    # Now try to grab the symbols.
7026    nlist=conftest.nm
7027    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7028  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7029  ac_status=$?
7030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031  (exit $ac_status); } && test -s "$nlist"; then
7032      # Try sorting and uniquifying the output.
7033      if sort "$nlist" | uniq > "$nlist"T; then
7034        mv -f "$nlist"T "$nlist"
7035      else
7036        rm -f "$nlist"T
7037      fi
7038
7039      # Make sure that we snagged all the symbols we need.
7040      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7041        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7042          cat <<EOF > conftest.$ac_ext
7043#ifdef __cplusplus
7044extern "C" {
7045#endif
7046
7047EOF
7048          # Now generate the symbol file.
7049          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7050
7051          cat <<EOF >> conftest.$ac_ext
7052#if defined (__STDC__) && __STDC__
7053# define lt_ptr_t void *
7054#else
7055# define lt_ptr_t char *
7056# define const
7057#endif
7058
7059/* The mapping between symbol names and symbols. */
7060const struct {
7061  const char *name;
7062  lt_ptr_t address;
7063}
7064lt_preloaded_symbols[] =
7065{
7066EOF
7067          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7068          cat <<\EOF >> conftest.$ac_ext
7069  {0, (lt_ptr_t) 0}
7070};
7071
7072#ifdef __cplusplus
7073}
7074#endif
7075EOF
7076          # Now try linking the two files.
7077          mv conftest.$ac_objext conftstm.$ac_objext
7078          lt_save_LIBS="$LIBS"
7079          lt_save_CFLAGS="$CFLAGS"
7080          LIBS="conftstm.$ac_objext"
7081          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7082          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7083  (eval $ac_link) 2>&5
7084  ac_status=$?
7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7087            pipe_works=yes
7088          fi
7089          LIBS="$lt_save_LIBS"
7090          CFLAGS="$lt_save_CFLAGS"
7091        else
7092          echo "cannot find nm_test_func in $nlist" >&5
7093        fi
7094      else
7095        echo "cannot find nm_test_var in $nlist" >&5
7096      fi
7097    else
7098      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7099    fi
7100  else
7101    echo "$progname: failed program was:" >&5
7102    cat conftest.$ac_ext >&5
7103  fi
7104  rm -f conftest* conftst*
7105
7106  # Do not use the global_symbol_pipe unless it works.
7107  if test "$pipe_works" = yes; then
7108    break
7109  else
7110    lt_cv_sys_global_symbol_pipe=
7111  fi
7112done
7113
7114fi
7115
7116if test -z "$lt_cv_sys_global_symbol_pipe"; then
7117  lt_cv_sys_global_symbol_to_cdecl=
7118fi
7119if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7120  echo "$as_me:$LINENO: result: failed" >&5
7121echo "${ECHO_T}failed" >&6
7122else
7123  echo "$as_me:$LINENO: result: ok" >&5
7124echo "${ECHO_T}ok" >&6
7125fi
7126
7127echo "$as_me:$LINENO: checking for objdir" >&5
7128echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7129if test "${lt_cv_objdir+set}" = set; then
7130  echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132  rm -f .libs 2>/dev/null
7133mkdir .libs 2>/dev/null
7134if test -d .libs; then
7135  lt_cv_objdir=.libs
7136else
7137  # MS-DOS does not allow filenames that begin with a dot.
7138  lt_cv_objdir=_libs
7139fi
7140rmdir .libs 2>/dev/null
7141fi
7142echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7143echo "${ECHO_T}$lt_cv_objdir" >&6
7144objdir=$lt_cv_objdir
7145
7146
7147
7148
7149
7150case $host_os in
7151aix3*)
7152  # AIX sometimes has problems with the GCC collect2 program.  For some
7153  # reason, if we set the COLLECT_NAMES environment variable, the problems
7154  # vanish in a puff of smoke.
7155  if test "X${COLLECT_NAMES+set}" != Xset; then
7156    COLLECT_NAMES=
7157    export COLLECT_NAMES
7158  fi
7159  ;;
7160esac
7161
7162# Sed substitution that helps us do robust quoting.  It backslashifies
7163# metacharacters that are still active within double-quoted strings.
7164Xsed='sed -e 1s/^X//'
7165sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7166
7167# Same as above, but do not quote variable references.
7168double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7169
7170# Sed substitution to delay expansion of an escaped shell variable in a
7171# double_quote_subst'ed string.
7172delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7173
7174# Sed substitution to avoid accidental globbing in evaled expressions
7175no_glob_subst='s/\*/\\\*/g'
7176
7177# Constants:
7178rm="rm -f"
7179
7180# Global variables:
7181default_ofile=libtool
7182can_build_shared=yes
7183
7184# All known linkers require a `.a' archive for static linking (except MSVC,
7185# which needs '.lib').
7186libext=a
7187ltmain="$ac_aux_dir/ltmain.sh"
7188ofile="$default_ofile"
7189with_gnu_ld="$lt_cv_prog_gnu_ld"
7190
7191if test -n "$ac_tool_prefix"; then
7192  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7193set dummy ${ac_tool_prefix}ar; ac_word=$2
7194echo "$as_me:$LINENO: checking for $ac_word" >&5
7195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7196if test "${ac_cv_prog_AR+set}" = set; then
7197  echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199  if test -n "$AR"; then
7200  ac_cv_prog_AR="$AR" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205  IFS=$as_save_IFS
7206  test -z "$as_dir" && as_dir=.
7207  for ac_exec_ext in '' $ac_executable_extensions; do
7208  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209    ac_cv_prog_AR="${ac_tool_prefix}ar"
7210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211    break 2
7212  fi
7213done
7214done
7215
7216fi
7217fi
7218AR=$ac_cv_prog_AR
7219if test -n "$AR"; then
7220  echo "$as_me:$LINENO: result: $AR" >&5
7221echo "${ECHO_T}$AR" >&6
7222else
7223  echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6
7225fi
7226
7227fi
7228if test -z "$ac_cv_prog_AR"; then
7229  ac_ct_AR=$AR
7230  # Extract the first word of "ar", so it can be a program name with args.
7231set dummy ar; ac_word=$2
7232echo "$as_me:$LINENO: checking for $ac_word" >&5
7233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7234if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7235  echo $ECHO_N "(cached) $ECHO_C" >&6
7236else
7237  if test -n "$ac_ct_AR"; then
7238  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7239else
7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243  IFS=$as_save_IFS
7244  test -z "$as_dir" && as_dir=.
7245  for ac_exec_ext in '' $ac_executable_extensions; do
7246  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247    ac_cv_prog_ac_ct_AR="ar"
7248    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249    break 2
7250  fi
7251done
7252done
7253
7254  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7255fi
7256fi
7257ac_ct_AR=$ac_cv_prog_ac_ct_AR
7258if test -n "$ac_ct_AR"; then
7259  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7260echo "${ECHO_T}$ac_ct_AR" >&6
7261else
7262  echo "$as_me:$LINENO: result: no" >&5
7263echo "${ECHO_T}no" >&6
7264fi
7265
7266  AR=$ac_ct_AR
7267else
7268  AR="$ac_cv_prog_AR"
7269fi
7270
7271if test -n "$ac_tool_prefix"; then
7272  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7273set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7274echo "$as_me:$LINENO: checking for $ac_word" >&5
7275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7276if test "${ac_cv_prog_RANLIB+set}" = set; then
7277  echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279  if test -n "$RANLIB"; then
7280  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7281else
7282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285  IFS=$as_save_IFS
7286  test -z "$as_dir" && as_dir=.
7287  for ac_exec_ext in '' $ac_executable_extensions; do
7288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291    break 2
7292  fi
7293done
7294done
7295
7296fi
7297fi
7298RANLIB=$ac_cv_prog_RANLIB
7299if test -n "$RANLIB"; then
7300  echo "$as_me:$LINENO: result: $RANLIB" >&5
7301echo "${ECHO_T}$RANLIB" >&6
7302else
7303  echo "$as_me:$LINENO: result: no" >&5
7304echo "${ECHO_T}no" >&6
7305fi
7306
7307fi
7308if test -z "$ac_cv_prog_RANLIB"; then
7309  ac_ct_RANLIB=$RANLIB
7310  # Extract the first word of "ranlib", so it can be a program name with args.
7311set dummy ranlib; ac_word=$2
7312echo "$as_me:$LINENO: checking for $ac_word" >&5
7313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7314if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7315  echo $ECHO_N "(cached) $ECHO_C" >&6
7316else
7317  if test -n "$ac_ct_RANLIB"; then
7318  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7319else
7320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321for as_dir in $PATH
7322do
7323  IFS=$as_save_IFS
7324  test -z "$as_dir" && as_dir=.
7325  for ac_exec_ext in '' $ac_executable_extensions; do
7326  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327    ac_cv_prog_ac_ct_RANLIB="ranlib"
7328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329    break 2
7330  fi
7331done
7332done
7333
7334  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7335fi
7336fi
7337ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7338if test -n "$ac_ct_RANLIB"; then
7339  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7340echo "${ECHO_T}$ac_ct_RANLIB" >&6
7341else
7342  echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344fi
7345
7346  RANLIB=$ac_ct_RANLIB
7347else
7348  RANLIB="$ac_cv_prog_RANLIB"
7349fi
7350
7351if test -n "$ac_tool_prefix"; then
7352  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7353set dummy ${ac_tool_prefix}strip; ac_word=$2
7354echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7356if test "${ac_cv_prog_STRIP+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  if test -n "$STRIP"; then
7360  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365  IFS=$as_save_IFS
7366  test -z "$as_dir" && as_dir=.
7367  for ac_exec_ext in '' $ac_executable_extensions; do
7368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371    break 2
7372  fi
7373done
7374done
7375
7376fi
7377fi
7378STRIP=$ac_cv_prog_STRIP
7379if test -n "$STRIP"; then
7380  echo "$as_me:$LINENO: result: $STRIP" >&5
7381echo "${ECHO_T}$STRIP" >&6
7382else
7383  echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385fi
7386
7387fi
7388if test -z "$ac_cv_prog_STRIP"; then
7389  ac_ct_STRIP=$STRIP
7390  # Extract the first word of "strip", so it can be a program name with args.
7391set dummy strip; ac_word=$2
7392echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7394if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7395  echo $ECHO_N "(cached) $ECHO_C" >&6
7396else
7397  if test -n "$ac_ct_STRIP"; then
7398  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405  for ac_exec_ext in '' $ac_executable_extensions; do
7406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407    ac_cv_prog_ac_ct_STRIP="strip"
7408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412done
7413
7414  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7415fi
7416fi
7417ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7418if test -n "$ac_ct_STRIP"; then
7419  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7420echo "${ECHO_T}$ac_ct_STRIP" >&6
7421else
7422  echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6
7424fi
7425
7426  STRIP=$ac_ct_STRIP
7427else
7428  STRIP="$ac_cv_prog_STRIP"
7429fi
7430
7431
7432old_CC="$CC"
7433old_CFLAGS="$CFLAGS"
7434
7435# Set sane defaults for various variables
7436test -z "$AR" && AR=ar
7437test -z "$AR_FLAGS" && AR_FLAGS=cru
7438test -z "$AS" && AS=as
7439test -z "$CC" && CC=cc
7440test -z "$LTCC" && LTCC=$CC
7441test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7442test -z "$DLLTOOL" && DLLTOOL=dlltool
7443test -z "$LD" && LD=ld
7444test -z "$LN_S" && LN_S="ln -s"
7445test -z "$MAGIC_CMD" && MAGIC_CMD=file
7446test -z "$NM" && NM=nm
7447test -z "$SED" && SED=sed
7448test -z "$OBJDUMP" && OBJDUMP=objdump
7449test -z "$RANLIB" && RANLIB=:
7450test -z "$STRIP" && STRIP=:
7451test -z "$ac_objext" && ac_objext=o
7452
7453# Determine commands to create old-style static archives.
7454old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7455old_postinstall_cmds='chmod 644 $oldlib'
7456old_postuninstall_cmds=
7457
7458if test -n "$RANLIB"; then
7459  case $host_os in
7460  openbsd*)
7461    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7462    ;;
7463  *)
7464    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7465    ;;
7466  esac
7467  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7468fi
7469
7470for cc_temp in $compiler""; do
7471  case $cc_temp in
7472    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7473    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7474    \-*) ;;
7475    *) break;;
7476  esac
7477done
7478cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7479
7480
7481# Only perform the check for file, if the check method requires it
7482case $deplibs_check_method in
7483file_magic*)
7484  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7485    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7486echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7487if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7488  echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490  case $MAGIC_CMD in
7491[\\/*] |  ?:[\\/]*)
7492  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7493  ;;
7494*)
7495  lt_save_MAGIC_CMD="$MAGIC_CMD"
7496  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7497  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7498  for ac_dir in $ac_dummy; do
7499    IFS="$lt_save_ifs"
7500    test -z "$ac_dir" && ac_dir=.
7501    if test -f $ac_dir/${ac_tool_prefix}file; then
7502      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7503      if test -n "$file_magic_test_file"; then
7504        case $deplibs_check_method in
7505        "file_magic "*)
7506          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7507          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7508          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7509            $EGREP "$file_magic_regex" > /dev/null; then
7510            :
7511          else
7512            cat <<EOF 1>&2
7513
7514*** Warning: the command libtool uses to detect shared libraries,
7515*** $file_magic_cmd, produces output that libtool cannot recognize.
7516*** The result is that libtool may fail to recognize shared libraries
7517*** as such.  This will affect the creation of libtool libraries that
7518*** depend on shared libraries, but programs linked with such libtool
7519*** libraries will work regardless of this problem.  Nevertheless, you
7520*** may want to report the problem to your system manager and/or to
7521*** bug-libtool@gnu.org
7522
7523EOF
7524          fi ;;
7525        esac
7526      fi
7527      break
7528    fi
7529  done
7530  IFS="$lt_save_ifs"
7531  MAGIC_CMD="$lt_save_MAGIC_CMD"
7532  ;;
7533esac
7534fi
7535
7536MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7537if test -n "$MAGIC_CMD"; then
7538  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7539echo "${ECHO_T}$MAGIC_CMD" >&6
7540else
7541  echo "$as_me:$LINENO: result: no" >&5
7542echo "${ECHO_T}no" >&6
7543fi
7544
7545if test -z "$lt_cv_path_MAGIC_CMD"; then
7546  if test -n "$ac_tool_prefix"; then
7547    echo "$as_me:$LINENO: checking for file" >&5
7548echo $ECHO_N "checking for file... $ECHO_C" >&6
7549if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  case $MAGIC_CMD in
7553[\\/*] |  ?:[\\/]*)
7554  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7555  ;;
7556*)
7557  lt_save_MAGIC_CMD="$MAGIC_CMD"
7558  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7559  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7560  for ac_dir in $ac_dummy; do
7561    IFS="$lt_save_ifs"
7562    test -z "$ac_dir" && ac_dir=.
7563    if test -f $ac_dir/file; then
7564      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7565      if test -n "$file_magic_test_file"; then
7566        case $deplibs_check_method in
7567        "file_magic "*)
7568          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7569          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7570          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7571            $EGREP "$file_magic_regex" > /dev/null; then
7572            :
7573          else
7574            cat <<EOF 1>&2
7575
7576*** Warning: the command libtool uses to detect shared libraries,
7577*** $file_magic_cmd, produces output that libtool cannot recognize.
7578*** The result is that libtool may fail to recognize shared libraries
7579*** as such.  This will affect the creation of libtool libraries that
7580*** depend on shared libraries, but programs linked with such libtool
7581*** libraries will work regardless of this problem.  Nevertheless, you
7582*** may want to report the problem to your system manager and/or to
7583*** bug-libtool@gnu.org
7584
7585EOF
7586          fi ;;
7587        esac
7588      fi
7589      break
7590    fi
7591  done
7592  IFS="$lt_save_ifs"
7593  MAGIC_CMD="$lt_save_MAGIC_CMD"
7594  ;;
7595esac
7596fi
7597
7598MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7599if test -n "$MAGIC_CMD"; then
7600  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7601echo "${ECHO_T}$MAGIC_CMD" >&6
7602else
7603  echo "$as_me:$LINENO: result: no" >&5
7604echo "${ECHO_T}no" >&6
7605fi
7606
7607  else
7608    MAGIC_CMD=:
7609  fi
7610fi
7611
7612  fi
7613  ;;
7614esac
7615
7616enable_dlopen=no
7617enable_win32_dll=no
7618
7619# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7620if test "${enable_libtool_lock+set}" = set; then
7621  enableval="$enable_libtool_lock"
7622
7623fi;
7624test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7625
7626
7627# Check whether --with-pic or --without-pic was given.
7628if test "${with_pic+set}" = set; then
7629  withval="$with_pic"
7630  pic_mode="$withval"
7631else
7632  pic_mode=default
7633fi;
7634test -z "$pic_mode" && pic_mode=default
7635
7636# Use C for the default configuration in the libtool script
7637tagname=
7638lt_save_CC="$CC"
7639ac_ext=c
7640ac_cpp='$CPP $CPPFLAGS'
7641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645
7646# Source file extension for C test sources.
7647ac_ext=c
7648
7649# Object file extension for compiled C test sources.
7650objext=o
7651objext=$objext
7652
7653# Code to be used in simple compile tests
7654lt_simple_compile_test_code="int some_variable = 0;\n"
7655
7656# Code to be used in simple link tests
7657lt_simple_link_test_code='int main(){return(0);}\n'
7658
7659
7660# If no C compiler was specified, use CC.
7661LTCC=${LTCC-"$CC"}
7662
7663# If no C compiler flags were specified, use CFLAGS.
7664LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7665
7666# Allow CC to be a program name with arguments.
7667compiler=$CC
7668
7669
7670# save warnings/boilerplate of simple test code
7671ac_outfile=conftest.$ac_objext
7672printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7673eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7674_lt_compiler_boilerplate=`cat conftest.err`
7675$rm conftest*
7676
7677ac_outfile=conftest.$ac_objext
7678printf "$lt_simple_link_test_code" >conftest.$ac_ext
7679eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7680_lt_linker_boilerplate=`cat conftest.err`
7681$rm conftest*
7682
7683
7684## CAVEAT EMPTOR:
7685## There is no encapsulation within the following macros, do not change
7686## the running order or otherwise move them around unless you know exactly
7687## what you are doing...
7688
7689lt_prog_compiler_no_builtin_flag=
7690
7691if test "$GCC" = yes; then
7692  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7693
7694
7695echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7696echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7697if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7698  echo $ECHO_N "(cached) $ECHO_C" >&6
7699else
7700  lt_cv_prog_compiler_rtti_exceptions=no
7701  ac_outfile=conftest.$ac_objext
7702   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7703   lt_compiler_flag="-fno-rtti -fno-exceptions"
7704   # Insert the option either (1) after the last *FLAGS variable, or
7705   # (2) before a word containing "conftest.", or (3) at the end.
7706   # Note that $ac_compile itself does not contain backslashes and begins
7707   # with a dollar sign (not a hyphen), so the echo should work correctly.
7708   # The option is referenced via a variable to avoid confusing sed.
7709   lt_compile=`echo "$ac_compile" | $SED \
7710   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7711   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7712   -e 's:$: $lt_compiler_flag:'`
7713   (eval echo "\"\$as_me:7713: $lt_compile\"" >&5)
7714   (eval "$lt_compile" 2>conftest.err)
7715   ac_status=$?
7716   cat conftest.err >&5
7717   echo "$as_me:7717: \$? = $ac_status" >&5
7718   if (exit $ac_status) && test -s "$ac_outfile"; then
7719     # The compiler can only warn and ignore the option if not recognized
7720     # So say no if there are warnings other than the usual output.
7721     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7722     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7723     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7724       lt_cv_prog_compiler_rtti_exceptions=yes
7725     fi
7726   fi
7727   $rm conftest*
7728
7729fi
7730echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7731echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7732
7733if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7734    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7735else
7736    :
7737fi
7738
7739fi
7740
7741lt_prog_compiler_wl=
7742lt_prog_compiler_pic=
7743lt_prog_compiler_static=
7744
7745echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7746echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7747
7748  if test "$GCC" = yes; then
7749    lt_prog_compiler_wl='-Wl,'
7750    lt_prog_compiler_static='-static'
7751
7752    case $host_os in
7753      aix*)
7754      # All AIX code is PIC.
7755      if test "$host_cpu" = ia64; then
7756        # AIX 5 now supports IA64 processor
7757        lt_prog_compiler_static='-Bstatic'
7758      fi
7759      ;;
7760
7761    amigaos*)
7762      # FIXME: we need at least 68020 code to build shared libraries, but
7763      # adding the `-m68020' flag to GCC prevents building anything better,
7764      # like `-m68040'.
7765      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7766      ;;
7767
7768    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7769      # PIC is the default for these OSes.
7770      ;;
7771
7772    mingw* | pw32* | os2*)
7773      # This hack is so that the source file can tell whether it is being
7774      # built for inclusion in a dll (and should export symbols for example).
7775      lt_prog_compiler_pic='-DDLL_EXPORT'
7776      ;;
7777
7778    darwin* | rhapsody*)
7779      # PIC is the default on this platform
7780      # Common symbols not allowed in MH_DYLIB files
7781      lt_prog_compiler_pic='-fno-common'
7782      ;;
7783
7784    interix3*)
7785      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7786      # Instead, we relocate shared libraries at runtime.
7787      ;;
7788
7789    msdosdjgpp*)
7790      # Just because we use GCC doesn't mean we suddenly get shared libraries
7791      # on systems that don't support them.
7792      lt_prog_compiler_can_build_shared=no
7793      enable_shared=no
7794      ;;
7795
7796    sysv4*MP*)
7797      if test -d /usr/nec; then
7798        lt_prog_compiler_pic=-Kconform_pic
7799      fi
7800      ;;
7801
7802    hpux*)
7803      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7804      # not for PA HP-UX.
7805      case $host_cpu in
7806      hppa*64*|ia64*)
7807        # +Z the default
7808        ;;
7809      *)
7810        lt_prog_compiler_pic='-fPIC'
7811        ;;
7812      esac
7813      ;;
7814
7815    *)
7816      lt_prog_compiler_pic='-fPIC'
7817      ;;
7818    esac
7819  else
7820    # PORTME Check for flag to pass linker flags through the system compiler.
7821    case $host_os in
7822    aix*)
7823      lt_prog_compiler_wl='-Wl,'
7824      if test "$host_cpu" = ia64; then
7825        # AIX 5 now supports IA64 processor
7826        lt_prog_compiler_static='-Bstatic'
7827      else
7828        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7829      fi
7830      ;;
7831      darwin*)
7832        # PIC is the default on this platform
7833        # Common symbols not allowed in MH_DYLIB files
7834       case $cc_basename in
7835         xlc*)
7836         lt_prog_compiler_pic='-qnocommon'
7837         lt_prog_compiler_wl='-Wl,'
7838         ;;
7839       esac
7840       ;;
7841
7842    mingw* | pw32* | os2*)
7843      # This hack is so that the source file can tell whether it is being
7844      # built for inclusion in a dll (and should export symbols for example).
7845      lt_prog_compiler_pic='-DDLL_EXPORT'
7846      ;;
7847
7848    hpux9* | hpux10* | hpux11*)
7849      lt_prog_compiler_wl='-Wl,'
7850      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7851      # not for PA HP-UX.
7852      case $host_cpu in
7853      hppa*64*|ia64*)
7854        # +Z the default
7855        ;;
7856      *)
7857        lt_prog_compiler_pic='+Z'
7858        ;;
7859      esac
7860      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7861      lt_prog_compiler_static='${wl}-a ${wl}archive'
7862      ;;
7863
7864    irix5* | irix6* | nonstopux*)
7865      lt_prog_compiler_wl='-Wl,'
7866      # PIC (with -KPIC) is the default.
7867      lt_prog_compiler_static='-non_shared'
7868      ;;
7869
7870    newsos6)
7871      lt_prog_compiler_pic='-KPIC'
7872      lt_prog_compiler_static='-Bstatic'
7873      ;;
7874
7875    linux*)
7876      case $cc_basename in
7877      icc* | ecc*)
7878        lt_prog_compiler_wl='-Wl,'
7879        lt_prog_compiler_pic='-KPIC'
7880        lt_prog_compiler_static='-static'
7881        ;;
7882      pgcc* | pgf77* | pgf90* | pgf95*)
7883        # Portland Group compilers (*not* the Pentium gcc compiler,
7884        # which looks to be a dead project)
7885        lt_prog_compiler_wl='-Wl,'
7886        lt_prog_compiler_pic='-fpic'
7887        lt_prog_compiler_static='-Bstatic'
7888        ;;
7889      ccc*)
7890        lt_prog_compiler_wl='-Wl,'
7891        # All Alpha code is PIC.
7892        lt_prog_compiler_static='-non_shared'
7893        ;;
7894      esac
7895      ;;
7896
7897    osf3* | osf4* | osf5*)
7898      lt_prog_compiler_wl='-Wl,'
7899      # All OSF/1 code is PIC.
7900      lt_prog_compiler_static='-non_shared'
7901      ;;
7902
7903    solaris*)
7904      lt_prog_compiler_pic='-KPIC'
7905      lt_prog_compiler_static='-Bstatic'
7906      case $cc_basename in
7907      f77* | f90* | f95*)
7908        lt_prog_compiler_wl='-Qoption ld ';;
7909      *)
7910        lt_prog_compiler_wl='-Wl,';;
7911      esac
7912      ;;
7913
7914    sunos4*)
7915      lt_prog_compiler_wl='-Qoption ld '
7916      lt_prog_compiler_pic='-PIC'
7917      lt_prog_compiler_static='-Bstatic'
7918      ;;
7919
7920    sysv4 | sysv4.2uw2* | sysv4.3*)
7921      lt_prog_compiler_wl='-Wl,'
7922      lt_prog_compiler_pic='-KPIC'
7923      lt_prog_compiler_static='-Bstatic'
7924      ;;
7925
7926    sysv4*MP*)
7927      if test -d /usr/nec ;then
7928        lt_prog_compiler_pic='-Kconform_pic'
7929        lt_prog_compiler_static='-Bstatic'
7930      fi
7931      ;;
7932
7933    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7934      lt_prog_compiler_wl='-Wl,'
7935      lt_prog_compiler_pic='-KPIC'
7936      lt_prog_compiler_static='-Bstatic'
7937      ;;
7938
7939    unicos*)
7940      lt_prog_compiler_wl='-Wl,'
7941      lt_prog_compiler_can_build_shared=no
7942      ;;
7943
7944    uts4*)
7945      lt_prog_compiler_pic='-pic'
7946      lt_prog_compiler_static='-Bstatic'
7947      ;;
7948
7949    *)
7950      lt_prog_compiler_can_build_shared=no
7951      ;;
7952    esac
7953  fi
7954
7955echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7956echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7957
7958#
7959# Check to make sure the PIC flag actually works.
7960#
7961if test -n "$lt_prog_compiler_pic"; then
7962
7963echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7964echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7965if test "${lt_prog_compiler_pic_works+set}" = set; then
7966  echo $ECHO_N "(cached) $ECHO_C" >&6
7967else
7968  lt_prog_compiler_pic_works=no
7969  ac_outfile=conftest.$ac_objext
7970   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7971   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7972   # Insert the option either (1) after the last *FLAGS variable, or
7973   # (2) before a word containing "conftest.", or (3) at the end.
7974   # Note that $ac_compile itself does not contain backslashes and begins
7975   # with a dollar sign (not a hyphen), so the echo should work correctly.
7976   # The option is referenced via a variable to avoid confusing sed.
7977   lt_compile=`echo "$ac_compile" | $SED \
7978   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7979   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7980   -e 's:$: $lt_compiler_flag:'`
7981   (eval echo "\"\$as_me:7981: $lt_compile\"" >&5)
7982   (eval "$lt_compile" 2>conftest.err)
7983   ac_status=$?
7984   cat conftest.err >&5
7985   echo "$as_me:7985: \$? = $ac_status" >&5
7986   if (exit $ac_status) && test -s "$ac_outfile"; then
7987     # The compiler can only warn and ignore the option if not recognized
7988     # So say no if there are warnings other than the usual output.
7989     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7990     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7991     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7992       lt_prog_compiler_pic_works=yes
7993     fi
7994   fi
7995   $rm conftest*
7996
7997fi
7998echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7999echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8000
8001if test x"$lt_prog_compiler_pic_works" = xyes; then
8002    case $lt_prog_compiler_pic in
8003     "" | " "*) ;;
8004     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8005     esac
8006else
8007    lt_prog_compiler_pic=
8008     lt_prog_compiler_can_build_shared=no
8009fi
8010
8011fi
8012case $host_os in
8013  # For platforms which do not support PIC, -DPIC is meaningless:
8014  *djgpp*)
8015    lt_prog_compiler_pic=
8016    ;;
8017  *)
8018    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8019    ;;
8020esac
8021
8022#
8023# Check to make sure the static flag actually works.
8024#
8025wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8026echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8027echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8028if test "${lt_prog_compiler_static_works+set}" = set; then
8029  echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031  lt_prog_compiler_static_works=no
8032   save_LDFLAGS="$LDFLAGS"
8033   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8034   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8035   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8036     # The linker can only warn and ignore the option if not recognized
8037     # So say no if there are warnings
8038     if test -s conftest.err; then
8039       # Append any errors to the config.log.
8040       cat conftest.err 1>&5
8041       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8042       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8043       if diff conftest.exp conftest.er2 >/dev/null; then
8044         lt_prog_compiler_static_works=yes
8045       fi
8046     else
8047       lt_prog_compiler_static_works=yes
8048     fi
8049   fi
8050   $rm conftest*
8051   LDFLAGS="$save_LDFLAGS"
8052
8053fi
8054echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8055echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8056
8057if test x"$lt_prog_compiler_static_works" = xyes; then
8058    :
8059else
8060    lt_prog_compiler_static=
8061fi
8062
8063
8064echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8065echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8066if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8067  echo $ECHO_N "(cached) $ECHO_C" >&6
8068else
8069  lt_cv_prog_compiler_c_o=no
8070   $rm -r conftest 2>/dev/null
8071   mkdir conftest
8072   cd conftest
8073   mkdir out
8074   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8075
8076   lt_compiler_flag="-o out/conftest2.$ac_objext"
8077   # Insert the option either (1) after the last *FLAGS variable, or
8078   # (2) before a word containing "conftest.", or (3) at the end.
8079   # Note that $ac_compile itself does not contain backslashes and begins
8080   # with a dollar sign (not a hyphen), so the echo should work correctly.
8081   lt_compile=`echo "$ac_compile" | $SED \
8082   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8083   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8084   -e 's:$: $lt_compiler_flag:'`
8085   (eval echo "\"\$as_me:8085: $lt_compile\"" >&5)
8086   (eval "$lt_compile" 2>out/conftest.err)
8087   ac_status=$?
8088   cat out/conftest.err >&5
8089   echo "$as_me:8089: \$? = $ac_status" >&5
8090   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8091   then
8092     # The compiler can only warn and ignore the option if not recognized
8093     # So say no if there are warnings
8094     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8095     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8096     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8097       lt_cv_prog_compiler_c_o=yes
8098     fi
8099   fi
8100   chmod u+w . 2>&5
8101   $rm conftest*
8102   # SGI C++ compiler will create directory out/ii_files/ for
8103   # template instantiation
8104   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8105   $rm out/* && rmdir out
8106   cd ..
8107   rmdir conftest
8108   $rm conftest*
8109
8110fi
8111echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8112echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8113
8114
8115hard_links="nottested"
8116if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8117  # do not overwrite the value of need_locks provided by the user
8118  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8119echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8120  hard_links=yes
8121  $rm conftest*
8122  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8123  touch conftest.a
8124  ln conftest.a conftest.b 2>&5 || hard_links=no
8125  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8126  echo "$as_me:$LINENO: result: $hard_links" >&5
8127echo "${ECHO_T}$hard_links" >&6
8128  if test "$hard_links" = no; then
8129    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8130echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8131    need_locks=warn
8132  fi
8133else
8134  need_locks=no
8135fi
8136
8137echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8138echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8139
8140  runpath_var=
8141  allow_undefined_flag=
8142  enable_shared_with_static_runtimes=no
8143  archive_cmds=
8144  archive_expsym_cmds=
8145  old_archive_From_new_cmds=
8146  old_archive_from_expsyms_cmds=
8147  export_dynamic_flag_spec=
8148  whole_archive_flag_spec=
8149  thread_safe_flag_spec=
8150  hardcode_libdir_flag_spec=
8151  hardcode_libdir_flag_spec_ld=
8152  hardcode_libdir_separator=
8153  hardcode_direct=no
8154  hardcode_minus_L=no
8155  hardcode_shlibpath_var=unsupported
8156  link_all_deplibs=unknown
8157  hardcode_automatic=no
8158  module_cmds=
8159  module_expsym_cmds=
8160  always_export_symbols=no
8161  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8162  # include_expsyms should be a list of space-separated symbols to be *always*
8163  # included in the symbol list
8164  include_expsyms=
8165  # exclude_expsyms can be an extended regexp of symbols to exclude
8166  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8167  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8168  # as well as any symbol that contains `d'.
8169  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8170  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8171  # platforms (ab)use it in PIC code, but their linkers get confused if
8172  # the symbol is explicitly referenced.  Since portable code cannot
8173  # rely on this symbol name, it's probably fine to never include it in
8174  # preloaded symbol tables.
8175  extract_expsyms_cmds=
8176  # Just being paranoid about ensuring that cc_basename is set.
8177  for cc_temp in $compiler""; do
8178  case $cc_temp in
8179    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8180    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8181    \-*) ;;
8182    *) break;;
8183  esac
8184done
8185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8186
8187  case $host_os in
8188  cygwin* | mingw* | pw32*)
8189    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8190    # When not using gcc, we currently assume that we are using
8191    # Microsoft Visual C++.
8192    if test "$GCC" != yes; then
8193      with_gnu_ld=no
8194    fi
8195    ;;
8196  interix*)
8197    # we just hope/assume this is gcc and not c89 (= MSVC++)
8198    with_gnu_ld=yes
8199    ;;
8200  openbsd*)
8201    with_gnu_ld=no
8202    ;;
8203  esac
8204
8205  ld_shlibs=yes
8206  if test "$with_gnu_ld" = yes; then
8207    # If archive_cmds runs LD, not CC, wlarc should be empty
8208    wlarc='${wl}'
8209
8210    # Set some defaults for GNU ld with shared library support. These
8211    # are reset later if shared libraries are not supported. Putting them
8212    # here allows them to be overridden if necessary.
8213    runpath_var=LD_RUN_PATH
8214    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8215    export_dynamic_flag_spec='${wl}--export-dynamic'
8216    # ancient GNU ld didn't support --whole-archive et. al.
8217    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8218        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8219      else
8220        whole_archive_flag_spec=
8221    fi
8222    supports_anon_versioning=no
8223    case `$LD -v 2>/dev/null` in
8224      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8225      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8226      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8227      *\ 2.11.*) ;; # other 2.11 versions
8228      *) supports_anon_versioning=yes ;;
8229    esac
8230
8231    # See if GNU ld supports shared libraries.
8232    case $host_os in
8233    aix3* | aix4* | aix5*)
8234      # On AIX/PPC, the GNU linker is very broken
8235      if test "$host_cpu" != ia64; then
8236        ld_shlibs=no
8237        cat <<EOF 1>&2
8238
8239*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8240*** to be unable to reliably create shared libraries on AIX.
8241*** Therefore, libtool is disabling shared libraries support.  If you
8242*** really care for shared libraries, you may want to modify your PATH
8243*** so that a non-GNU linker is found, and then restart.
8244
8245EOF
8246      fi
8247      ;;
8248
8249    amigaos*)
8250      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)'
8251      hardcode_libdir_flag_spec='-L$libdir'
8252      hardcode_minus_L=yes
8253
8254      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8255      # that the semantics of dynamic libraries on AmigaOS, at least up
8256      # to version 4, is to share data among multiple programs linked
8257      # with the same dynamic library.  Since this doesn't match the
8258      # behavior of shared libraries on other platforms, we can't use
8259      # them.
8260      ld_shlibs=no
8261      ;;
8262
8263    beos*)
8264      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8265        allow_undefined_flag=unsupported
8266        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8267        # support --undefined.  This deserves some investigation.  FIXME
8268        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8269      else
8270        ld_shlibs=no
8271      fi
8272      ;;
8273
8274    cygwin* | mingw* | pw32*)
8275      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8276      # as there is no search path for DLLs.
8277      hardcode_libdir_flag_spec='-L$libdir'
8278      allow_undefined_flag=unsupported
8279      always_export_symbols=no
8280      enable_shared_with_static_runtimes=yes
8281      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8282
8283      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8284        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8285        # If the export-symbols file already is a .def file (1st line
8286        # is EXPORTS), use it as is; otherwise, prepend...
8287        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8288          cp $export_symbols $output_objdir/$soname.def;
8289        else
8290          echo EXPORTS > $output_objdir/$soname.def;
8291          cat $export_symbols >> $output_objdir/$soname.def;
8292        fi~
8293        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294      else
8295        ld_shlibs=no
8296      fi
8297      ;;
8298
8299    interix3*)
8300      hardcode_direct=no
8301      hardcode_shlibpath_var=no
8302      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8303      export_dynamic_flag_spec='${wl}-E'
8304      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8305      # Instead, shared libraries are loaded at an image base (0x10000000 by
8306      # default) and relocated if they conflict, which is a slow very memory
8307      # consuming and fragmenting process.  To avoid this, we pick a random,
8308      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8309      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8310      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8311      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'
8312      ;;
8313
8314    linux*)
8315      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8316        tmp_addflag=
8317        case $cc_basename,$host_cpu in
8318        pgcc*)                          # Portland Group C compiler
8319          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'
8320          tmp_addflag=' $pic_flag'
8321          ;;
8322        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8323          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'
8324          tmp_addflag=' $pic_flag -Mnomain' ;;
8325        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8326          tmp_addflag=' -i_dynamic' ;;
8327        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8328          tmp_addflag=' -i_dynamic -nofor_main' ;;
8329        ifc* | ifort*)                  # Intel Fortran compiler
8330          tmp_addflag=' -nofor_main' ;;
8331        esac
8332        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333
8334        if test $supports_anon_versioning = yes; then
8335          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8336  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8337  $echo "local: *; };" >> $output_objdir/$libname.ver~
8338          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8339        fi
8340      else
8341        ld_shlibs=no
8342      fi
8343      ;;
8344
8345    netbsd*)
8346      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8347        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8348        wlarc=
8349      else
8350        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8351        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8352      fi
8353      ;;
8354
8355    solaris*)
8356      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8357        ld_shlibs=no
8358        cat <<EOF 1>&2
8359
8360*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8361*** create shared libraries on Solaris systems.  Therefore, libtool
8362*** is disabling shared libraries support.  We urge you to upgrade GNU
8363*** binutils to release 2.9.1 or newer.  Another option is to modify
8364*** your PATH or compiler configuration so that the native linker is
8365*** used, and then restart.
8366
8367EOF
8368      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8369        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8371      else
8372        ld_shlibs=no
8373      fi
8374      ;;
8375
8376    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8377      case `$LD -v 2>&1` in
8378        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8379        ld_shlibs=no
8380        cat <<_LT_EOF 1>&2
8381
8382*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8383*** reliably create shared libraries on SCO systems.  Therefore, libtool
8384*** is disabling shared libraries support.  We urge you to upgrade GNU
8385*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8386*** your PATH or compiler configuration so that the native linker is
8387*** used, and then restart.
8388
8389_LT_EOF
8390        ;;
8391        *)
8392          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8393            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8394            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8395            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8396          else
8397            ld_shlibs=no
8398          fi
8399        ;;
8400      esac
8401      ;;
8402
8403    sunos4*)
8404      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8405      wlarc=
8406      hardcode_direct=yes
8407      hardcode_shlibpath_var=no
8408      ;;
8409
8410    *)
8411      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8412        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8413        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8414      else
8415        ld_shlibs=no
8416      fi
8417      ;;
8418    esac
8419
8420    if test "$ld_shlibs" = no; then
8421      runpath_var=
8422      hardcode_libdir_flag_spec=
8423      export_dynamic_flag_spec=
8424      whole_archive_flag_spec=
8425    fi
8426  else
8427    # PORTME fill in a description of your system's linker (not GNU ld)
8428    case $host_os in
8429    aix3*)
8430      allow_undefined_flag=unsupported
8431      always_export_symbols=yes
8432      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'
8433      # Note: this linker hardcodes the directories in LIBPATH if there
8434      # are no directories specified by -L.
8435      hardcode_minus_L=yes
8436      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8437        # Neither direct hardcoding nor static linking is supported with a
8438        # broken collect2.
8439        hardcode_direct=unsupported
8440      fi
8441      ;;
8442
8443    aix4* | aix5*)
8444      if test "$host_cpu" = ia64; then
8445        # On IA64, the linker does run time linking by default, so we don't
8446        # have to do anything special.
8447        aix_use_runtimelinking=no
8448        exp_sym_flag='-Bexport'
8449        no_entry_flag=""
8450      else
8451        # If we're using GNU nm, then we don't want the "-C" option.
8452        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8453        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8454          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'
8455        else
8456          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'
8457        fi
8458        aix_use_runtimelinking=no
8459
8460        # Test if we are trying to use run time linking or normal
8461        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8462        # need to do runtime linking.
8463        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8464          for ld_flag in $LDFLAGS; do
8465          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8466            aix_use_runtimelinking=yes
8467            break
8468          fi
8469          done
8470          ;;
8471        esac
8472
8473        exp_sym_flag='-bexport'
8474        no_entry_flag='-bnoentry'
8475      fi
8476
8477      # When large executables or shared objects are built, AIX ld can
8478      # have problems creating the table of contents.  If linking a library
8479      # or program results in "error TOC overflow" add -mminimal-toc to
8480      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8481      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8482
8483      archive_cmds=''
8484      hardcode_direct=yes
8485      hardcode_libdir_separator=':'
8486      link_all_deplibs=yes
8487
8488      if test "$GCC" = yes; then
8489        case $host_os in aix4.[012]|aix4.[012].*)
8490        # We only want to do this on AIX 4.2 and lower, the check
8491        # below for broken collect2 doesn't work under 4.3+
8492          collect2name=`${CC} -print-prog-name=collect2`
8493          if test -f "$collect2name" && \
8494           strings "$collect2name" | grep resolve_lib_name >/dev/null
8495          then
8496          # We have reworked collect2
8497          hardcode_direct=yes
8498          else
8499          # We have old collect2
8500          hardcode_direct=unsupported
8501          # It fails to find uninstalled libraries when the uninstalled
8502          # path is not listed in the libpath.  Setting hardcode_minus_L
8503          # to unsupported forces relinking
8504          hardcode_minus_L=yes
8505          hardcode_libdir_flag_spec='-L$libdir'
8506          hardcode_libdir_separator=
8507          fi
8508          ;;
8509        esac
8510        shared_flag='-shared'
8511        if test "$aix_use_runtimelinking" = yes; then
8512          shared_flag="$shared_flag "'${wl}-G'
8513        fi
8514      else
8515        # not using gcc
8516        if test "$host_cpu" = ia64; then
8517        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8518        # chokes on -Wl,-G. The following line is correct:
8519          shared_flag='-G'
8520        else
8521          if test "$aix_use_runtimelinking" = yes; then
8522            shared_flag='${wl}-G'
8523          else
8524            shared_flag='${wl}-bM:SRE'
8525          fi
8526        fi
8527      fi
8528
8529      # It seems that -bexpall does not export symbols beginning with
8530      # underscore (_), so it is better to generate a list of symbols to export.
8531      always_export_symbols=yes
8532      if test "$aix_use_runtimelinking" = yes; then
8533        # Warning - without using the other runtime loading flags (-brtl),
8534        # -berok will link without error, but may produce a broken library.
8535        allow_undefined_flag='-berok'
8536       # Determine the default libpath from the value encoded in an empty executable.
8537       cat >conftest.$ac_ext <<_ACEOF
8538/* confdefs.h.  */
8539_ACEOF
8540cat confdefs.h >>conftest.$ac_ext
8541cat >>conftest.$ac_ext <<_ACEOF
8542/* end confdefs.h.  */
8543
8544int
8545main ()
8546{
8547
8548  ;
8549  return 0;
8550}
8551_ACEOF
8552rm -f conftest.$ac_objext conftest$ac_exeext
8553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554  (eval $ac_link) 2>conftest.er1
8555  ac_status=$?
8556  grep -v '^ *+' conftest.er1 >conftest.err
8557  rm -f conftest.er1
8558  cat conftest.err >&5
8559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560  (exit $ac_status); } &&
8561         { ac_try='test -z "$ac_c_werror_flag"
8562                         || test ! -s conftest.err'
8563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564  (eval $ac_try) 2>&5
8565  ac_status=$?
8566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567  (exit $ac_status); }; } &&
8568         { ac_try='test -s conftest$ac_exeext'
8569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570  (eval $ac_try) 2>&5
8571  ac_status=$?
8572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573  (exit $ac_status); }; }; then
8574
8575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8576}'`
8577# Check for a 64-bit object if we didn't find anything.
8578if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8579}'`; fi
8580else
8581  echo "$as_me: failed program was:" >&5
8582sed 's/^/| /' conftest.$ac_ext >&5
8583
8584fi
8585rm -f conftest.err conftest.$ac_objext \
8586      conftest$ac_exeext conftest.$ac_ext
8587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8588
8589       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8590        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"
8591       else
8592        if test "$host_cpu" = ia64; then
8593          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8594          allow_undefined_flag="-z nodefs"
8595          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"
8596        else
8597         # Determine the default libpath from the value encoded in an empty executable.
8598         cat >conftest.$ac_ext <<_ACEOF
8599/* confdefs.h.  */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
8602cat >>conftest.$ac_ext <<_ACEOF
8603/* end confdefs.h.  */
8604
8605int
8606main ()
8607{
8608
8609  ;
8610  return 0;
8611}
8612_ACEOF
8613rm -f conftest.$ac_objext conftest$ac_exeext
8614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615  (eval $ac_link) 2>conftest.er1
8616  ac_status=$?
8617  grep -v '^ *+' conftest.er1 >conftest.err
8618  rm -f conftest.er1
8619  cat conftest.err >&5
8620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621  (exit $ac_status); } &&
8622         { ac_try='test -z "$ac_c_werror_flag"
8623                         || test ! -s conftest.err'
8624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625  (eval $ac_try) 2>&5
8626  ac_status=$?
8627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628  (exit $ac_status); }; } &&
8629         { ac_try='test -s conftest$ac_exeext'
8630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631  (eval $ac_try) 2>&5
8632  ac_status=$?
8633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634  (exit $ac_status); }; }; then
8635
8636aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8637}'`
8638# Check for a 64-bit object if we didn't find anything.
8639if 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; }
8640}'`; fi
8641else
8642  echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645fi
8646rm -f conftest.err conftest.$ac_objext \
8647      conftest$ac_exeext conftest.$ac_ext
8648if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8649
8650         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8651          # Warning - without using the other run time loading flags,
8652          # -berok will link without error, but may produce a broken library.
8653          no_undefined_flag=' ${wl}-bernotok'
8654          allow_undefined_flag=' ${wl}-berok'
8655          # Exported symbols can be pulled into shared objects from archives
8656          whole_archive_flag_spec='$convenience'
8657          archive_cmds_need_lc=yes
8658          # This is similar to how AIX traditionally builds its shared libraries.
8659          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'
8660        fi
8661      fi
8662      ;;
8663
8664    amigaos*)
8665      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)'
8666      hardcode_libdir_flag_spec='-L$libdir'
8667      hardcode_minus_L=yes
8668      # see comment about different semantics on the GNU ld section
8669      ld_shlibs=no
8670      ;;
8671
8672    bsdi[45]*)
8673      export_dynamic_flag_spec=-rdynamic
8674      ;;
8675
8676    cygwin* | mingw* | pw32*)
8677      # When not using gcc, we currently assume that we are using
8678      # Microsoft Visual C++.
8679      # hardcode_libdir_flag_spec is actually meaningless, as there is
8680      # no search path for DLLs.
8681      hardcode_libdir_flag_spec=' '
8682      allow_undefined_flag=unsupported
8683      # Tell ltmain to make .lib files, not .a files.
8684      libext=lib
8685      # Tell ltmain to make .dll files, not .so files.
8686      shrext_cmds=".dll"
8687      # FIXME: Setting linknames here is a bad hack.
8688      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8689      # The linker will automatically build a .lib file if we build a DLL.
8690      old_archive_From_new_cmds='true'
8691      # FIXME: Should let the user specify the lib program.
8692      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8693      fix_srcfile_path='`cygpath -w "$srcfile"`'
8694      enable_shared_with_static_runtimes=yes
8695      ;;
8696
8697    darwin* | rhapsody*)
8698      case $host_os in
8699        rhapsody* | darwin1.[012])
8700         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8701         ;;
8702       *) # Darwin 1.3 on
8703         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8704           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8705         else
8706           case ${MACOSX_DEPLOYMENT_TARGET} in
8707             10.[012])
8708               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8709               ;;
8710             10.*)
8711               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8712               ;;
8713           esac
8714         fi
8715         ;;
8716      esac
8717      archive_cmds_need_lc=no
8718      hardcode_direct=no
8719      hardcode_automatic=yes
8720      hardcode_shlibpath_var=unsupported
8721      whole_archive_flag_spec=''
8722      link_all_deplibs=yes
8723    if test "$GCC" = yes ; then
8724        output_verbose_link_cmd='echo'
8725        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8726      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8727      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8728      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}'
8729      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}'
8730    else
8731      case $cc_basename in
8732        xlc*)
8733         output_verbose_link_cmd='echo'
8734         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8735         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8736          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8737         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}'
8738          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}'
8739          ;;
8740       *)
8741         ld_shlibs=no
8742          ;;
8743      esac
8744    fi
8745      ;;
8746
8747    dgux*)
8748      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8749      hardcode_libdir_flag_spec='-L$libdir'
8750      hardcode_shlibpath_var=no
8751      ;;
8752
8753    freebsd1*)
8754      ld_shlibs=no
8755      ;;
8756
8757    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8758    # support.  Future versions do this automatically, but an explicit c++rt0.o
8759    # does not break anything, and helps significantly (at the cost of a little
8760    # extra space).
8761    freebsd2.2*)
8762      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8763      hardcode_libdir_flag_spec='-R$libdir'
8764      hardcode_direct=yes
8765      hardcode_shlibpath_var=no
8766      ;;
8767
8768    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8769    freebsd2*)
8770      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8771      hardcode_direct=yes
8772      hardcode_minus_L=yes
8773      hardcode_shlibpath_var=no
8774      ;;
8775
8776    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8777    freebsd* | kfreebsd*-gnu | dragonfly*)
8778      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8779      hardcode_libdir_flag_spec='-R$libdir'
8780      hardcode_direct=yes
8781      hardcode_shlibpath_var=no
8782      ;;
8783
8784    hpux9*)
8785      if test "$GCC" = yes; then
8786        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'
8787      else
8788        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'
8789      fi
8790      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8791      hardcode_libdir_separator=:
8792      hardcode_direct=yes
8793
8794      # hardcode_minus_L: Not really in the search PATH,
8795      # but as the default location of the library.
8796      hardcode_minus_L=yes
8797      export_dynamic_flag_spec='${wl}-E'
8798      ;;
8799
8800    hpux10*)
8801      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8802        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8803      else
8804        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8805      fi
8806      if test "$with_gnu_ld" = no; then
8807        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8808        hardcode_libdir_separator=:
8809
8810        hardcode_direct=yes
8811        export_dynamic_flag_spec='${wl}-E'
8812
8813        # hardcode_minus_L: Not really in the search PATH,
8814        # but as the default location of the library.
8815        hardcode_minus_L=yes
8816      fi
8817      ;;
8818
8819    hpux11*)
8820      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8821        case $host_cpu in
8822        hppa*64*)
8823          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8824          ;;
8825        ia64*)
8826          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8827          ;;
8828        *)
8829          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8830          ;;
8831        esac
8832      else
8833        case $host_cpu in
8834        hppa*64*)
8835          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836          ;;
8837        ia64*)
8838          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8839          ;;
8840        *)
8841          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8842          ;;
8843        esac
8844      fi
8845      if test "$with_gnu_ld" = no; then
8846        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8847        hardcode_libdir_separator=:
8848
8849        case $host_cpu in
8850        hppa*64*|ia64*)
8851          hardcode_libdir_flag_spec_ld='+b $libdir'
8852          hardcode_direct=no
8853          hardcode_shlibpath_var=no
8854          ;;
8855        *)
8856          hardcode_direct=yes
8857          export_dynamic_flag_spec='${wl}-E'
8858
8859          # hardcode_minus_L: Not really in the search PATH,
8860          # but as the default location of the library.
8861          hardcode_minus_L=yes
8862          ;;
8863        esac
8864      fi
8865      ;;
8866
8867    irix5* | irix6* | nonstopux*)
8868      if test "$GCC" = yes; then
8869        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'
8870      else
8871        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'
8872        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8873      fi
8874      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8875      hardcode_libdir_separator=:
8876      link_all_deplibs=yes
8877      ;;
8878
8879    netbsd*)
8880      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8881        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8882      else
8883        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8884      fi
8885      hardcode_libdir_flag_spec='-R$libdir'
8886      hardcode_direct=yes
8887      hardcode_shlibpath_var=no
8888      ;;
8889
8890    newsos6)
8891      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8892      hardcode_direct=yes
8893      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8894      hardcode_libdir_separator=:
8895      hardcode_shlibpath_var=no
8896      ;;
8897
8898    openbsd*)
8899      hardcode_direct=yes
8900      hardcode_shlibpath_var=no
8901      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8902        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8903        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8904        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8905        export_dynamic_flag_spec='${wl}-E'
8906      else
8907       case $host_os in
8908         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8909           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8910           hardcode_libdir_flag_spec='-R$libdir'
8911           ;;
8912         *)
8913           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8914           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8915           ;;
8916       esac
8917      fi
8918      ;;
8919
8920    os2*)
8921      hardcode_libdir_flag_spec='-L$libdir'
8922      hardcode_minus_L=yes
8923      allow_undefined_flag=unsupported
8924      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'
8925      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8926      ;;
8927
8928    osf3*)
8929      if test "$GCC" = yes; then
8930        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8931        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'
8932      else
8933        allow_undefined_flag=' -expect_unresolved \*'
8934        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'
8935      fi
8936      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937      hardcode_libdir_separator=:
8938      ;;
8939
8940    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8941      if test "$GCC" = yes; then
8942        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8943        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'
8944        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8945      else
8946        allow_undefined_flag=' -expect_unresolved \*'
8947        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'
8948        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8949        $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'
8950
8951        # Both c and cxx compiler support -rpath directly
8952        hardcode_libdir_flag_spec='-rpath $libdir'
8953      fi
8954      hardcode_libdir_separator=:
8955      ;;
8956
8957    solaris*)
8958      no_undefined_flag=' -z text'
8959      if test "$GCC" = yes; then
8960        wlarc='${wl}'
8961        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8963          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8964      else
8965        wlarc=''
8966        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8967        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8968        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8969      fi
8970      hardcode_libdir_flag_spec='-R$libdir'
8971      hardcode_shlibpath_var=no
8972      case $host_os in
8973      solaris2.[0-5] | solaris2.[0-5].*) ;;
8974      *)
8975        # The compiler driver will combine linker options so we
8976        # cannot just pass the convience library names through
8977        # without $wl, iff we do not link with $LD.
8978        # Luckily, gcc supports the same syntax we need for Sun Studio.
8979        # Supported since Solaris 2.6 (maybe 2.5.1?)
8980        case $wlarc in
8981        '')
8982          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8983        *)
8984          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' ;;
8985        esac ;;
8986      esac
8987      link_all_deplibs=yes
8988      ;;
8989
8990    sunos4*)
8991      if test "x$host_vendor" = xsequent; then
8992        # Use $CC to link under sequent, because it throws in some extra .o
8993        # files that make .init and .fini sections work.
8994        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8995      else
8996        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8997      fi
8998      hardcode_libdir_flag_spec='-L$libdir'
8999      hardcode_direct=yes
9000      hardcode_minus_L=yes
9001      hardcode_shlibpath_var=no
9002      ;;
9003
9004    sysv4)
9005      case $host_vendor in
9006        sni)
9007          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9008          hardcode_direct=yes # is this really true???
9009        ;;
9010        siemens)
9011          ## LD is ld it makes a PLAMLIB
9012          ## CC just makes a GrossModule.
9013          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9014          reload_cmds='$CC -r -o $output$reload_objs'
9015          hardcode_direct=no
9016        ;;
9017        motorola)
9018          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9019          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9020        ;;
9021      esac
9022      runpath_var='LD_RUN_PATH'
9023      hardcode_shlibpath_var=no
9024      ;;
9025
9026    sysv4.3*)
9027      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028      hardcode_shlibpath_var=no
9029      export_dynamic_flag_spec='-Bexport'
9030      ;;
9031
9032    sysv4*MP*)
9033      if test -d /usr/nec; then
9034        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9035        hardcode_shlibpath_var=no
9036        runpath_var=LD_RUN_PATH
9037        hardcode_runpath_var=yes
9038        ld_shlibs=yes
9039      fi
9040      ;;
9041
9042    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9043      no_undefined_flag='${wl}-z,text'
9044      archive_cmds_need_lc=no
9045      hardcode_shlibpath_var=no
9046      runpath_var='LD_RUN_PATH'
9047
9048      if test "$GCC" = yes; then
9049        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9050        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051      else
9052        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054      fi
9055      ;;
9056
9057    sysv5* | sco3.2v5* | sco5v6*)
9058      # Note: We can NOT use -z defs as we might desire, because we do not
9059      # link with -lc, and that would cause any symbols used from libc to
9060      # always be unresolved, which means just about no library would
9061      # ever link correctly.  If we're not using GNU ld we use -z text
9062      # though, which does catch some bad symbols but isn't as heavy-handed
9063      # as -z defs.
9064      no_undefined_flag='${wl}-z,text'
9065      allow_undefined_flag='${wl}-z,nodefs'
9066      archive_cmds_need_lc=no
9067      hardcode_shlibpath_var=no
9068      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9069      hardcode_libdir_separator=':'
9070      link_all_deplibs=yes
9071      export_dynamic_flag_spec='${wl}-Bexport'
9072      runpath_var='LD_RUN_PATH'
9073
9074      if test "$GCC" = yes; then
9075        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9077      else
9078        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9080      fi
9081      ;;
9082
9083    uts4*)
9084      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9085      hardcode_libdir_flag_spec='-L$libdir'
9086      hardcode_shlibpath_var=no
9087      ;;
9088
9089    *)
9090      ld_shlibs=no
9091      ;;
9092    esac
9093  fi
9094
9095echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9096echo "${ECHO_T}$ld_shlibs" >&6
9097test "$ld_shlibs" = no && can_build_shared=no
9098
9099#
9100# Do we need to explicitly link libc?
9101#
9102case "x$archive_cmds_need_lc" in
9103x|xyes)
9104  # Assume -lc should be added
9105  archive_cmds_need_lc=yes
9106
9107  if test "$enable_shared" = yes && test "$GCC" = yes; then
9108    case $archive_cmds in
9109    *'~'*)
9110      # FIXME: we may have to deal with multi-command sequences.
9111      ;;
9112    '$CC '*)
9113      # Test whether the compiler implicitly links with -lc since on some
9114      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9115      # to ld, don't add -lc before -lgcc.
9116      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9117echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9118      $rm conftest*
9119      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9120
9121      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9122  (eval $ac_compile) 2>&5
9123  ac_status=$?
9124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125  (exit $ac_status); } 2>conftest.err; then
9126        soname=conftest
9127        lib=conftest
9128        libobjs=conftest.$ac_objext
9129        deplibs=
9130        wl=$lt_prog_compiler_wl
9131        pic_flag=$lt_prog_compiler_pic
9132        compiler_flags=-v
9133        linker_flags=-v
9134        verstring=
9135        output_objdir=.
9136        libname=conftest
9137        lt_save_allow_undefined_flag=$allow_undefined_flag
9138        allow_undefined_flag=
9139        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9140  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9141  ac_status=$?
9142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143  (exit $ac_status); }
9144        then
9145          archive_cmds_need_lc=no
9146        else
9147          archive_cmds_need_lc=yes
9148        fi
9149        allow_undefined_flag=$lt_save_allow_undefined_flag
9150      else
9151        cat conftest.err 1>&5
9152      fi
9153      $rm conftest*
9154      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9155echo "${ECHO_T}$archive_cmds_need_lc" >&6
9156      ;;
9157    esac
9158  fi
9159  ;;
9160esac
9161
9162echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9163echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9164library_names_spec=
9165libname_spec='lib$name'
9166soname_spec=
9167shrext_cmds=".so"
9168postinstall_cmds=
9169postuninstall_cmds=
9170finish_cmds=
9171finish_eval=
9172shlibpath_var=
9173shlibpath_overrides_runpath=unknown
9174version_type=none
9175dynamic_linker="$host_os ld.so"
9176sys_lib_dlsearch_path_spec="/lib /usr/lib"
9177if test "$GCC" = yes; then
9178  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9179  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9180    # if the path contains ";" then we assume it to be the separator
9181    # otherwise default to the standard path separator (i.e. ":") - it is
9182    # assumed that no part of a normal pathname contains ";" but that should
9183    # okay in the real world where ";" in dirpaths is itself problematic.
9184    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9185  else
9186    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9187  fi
9188else
9189  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9190fi
9191need_lib_prefix=unknown
9192hardcode_into_libs=no
9193
9194# when you set need_version to no, make sure it does not cause -set_version
9195# flags to be left without arguments
9196need_version=unknown
9197
9198case $host_os in
9199aix3*)
9200  version_type=linux
9201  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9202  shlibpath_var=LIBPATH
9203
9204  # AIX 3 has no versioning support, so we append a major version to the name.
9205  soname_spec='${libname}${release}${shared_ext}$major'
9206  ;;
9207
9208aix4* | aix5*)
9209  version_type=linux
9210  need_lib_prefix=no
9211  need_version=no
9212  hardcode_into_libs=yes
9213  if test "$host_cpu" = ia64; then
9214    # AIX 5 supports IA64
9215    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9216    shlibpath_var=LD_LIBRARY_PATH
9217  else
9218    # With GCC up to 2.95.x, collect2 would create an import file
9219    # for dependence libraries.  The import file would start with
9220    # the line `#! .'.  This would cause the generated library to
9221    # depend on `.', always an invalid library.  This was fixed in
9222    # development snapshots of GCC prior to 3.0.
9223    case $host_os in
9224      aix4 | aix4.[01] | aix4.[01].*)
9225      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9226           echo ' yes '
9227           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9228        :
9229      else
9230        can_build_shared=no
9231      fi
9232      ;;
9233    esac
9234    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9235    # soname into executable. Probably we can add versioning support to
9236    # collect2, so additional links can be useful in future.
9237    if test "$aix_use_runtimelinking" = yes; then
9238      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9239      # instead of lib<name>.a to let people know that these are not
9240      # typical AIX shared libraries.
9241      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242    else
9243      # We preserve .a as extension for shared libraries through AIX4.2
9244      # and later when we are not doing run time linking.
9245      library_names_spec='${libname}${release}.a $libname.a'
9246      soname_spec='${libname}${release}${shared_ext}$major'
9247    fi
9248    shlibpath_var=LIBPATH
9249  fi
9250  ;;
9251
9252amigaos*)
9253  library_names_spec='$libname.ixlibrary $libname.a'
9254  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9255  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'
9256  ;;
9257
9258beos*)
9259  library_names_spec='${libname}${shared_ext}'
9260  dynamic_linker="$host_os ld.so"
9261  shlibpath_var=LIBRARY_PATH
9262  ;;
9263
9264bsdi[45]*)
9265  version_type=linux
9266  need_version=no
9267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268  soname_spec='${libname}${release}${shared_ext}$major'
9269  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9270  shlibpath_var=LD_LIBRARY_PATH
9271  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9272  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9273  # the default ld.so.conf also contains /usr/contrib/lib and
9274  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9275  # libtool to hard-code these into programs
9276  ;;
9277
9278cygwin* | mingw* | pw32*)
9279  version_type=windows
9280  shrext_cmds=".dll"
9281  need_version=no
9282  need_lib_prefix=no
9283
9284  case $GCC,$host_os in
9285  yes,cygwin* | yes,mingw* | yes,pw32*)
9286    library_names_spec='$libname.dll.a'
9287    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9288    postinstall_cmds='base_file=`basename \${file}`~
9289      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9290      dldir=$destdir/`dirname \$dlpath`~
9291      test -d \$dldir || mkdir -p \$dldir~
9292      $install_prog $dir/$dlname \$dldir/$dlname~
9293      chmod a+x \$dldir/$dlname'
9294    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9295      dlpath=$dir/\$dldll~
9296       $rm \$dlpath'
9297    shlibpath_overrides_runpath=yes
9298
9299    case $host_os in
9300    cygwin*)
9301      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9302      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9303      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9304      ;;
9305    mingw*)
9306      # MinGW DLLs use traditional 'lib' prefix
9307      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9308      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9309      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9310        # It is most probably a Windows format PATH printed by
9311        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9312        # path with ; separators, and with drive letters. We can handle the
9313        # drive letters (cygwin fileutils understands them), so leave them,
9314        # especially as we might pass files found there to a mingw objdump,
9315        # which wouldn't understand a cygwinified path. Ahh.
9316        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9317      else
9318        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9319      fi
9320      ;;
9321    pw32*)
9322      # pw32 DLLs use 'pw' prefix rather than 'lib'
9323      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9324      ;;
9325    esac
9326    ;;
9327
9328  *)
9329    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9330    ;;
9331  esac
9332  dynamic_linker='Win32 ld.exe'
9333  # FIXME: first we should search . and the directory the executable is in
9334  shlibpath_var=PATH
9335  ;;
9336
9337darwin* | rhapsody*)
9338  dynamic_linker="$host_os dyld"
9339  version_type=darwin
9340  need_lib_prefix=no
9341  need_version=no
9342  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9343  soname_spec='${libname}${release}${major}$shared_ext'
9344  shlibpath_overrides_runpath=yes
9345  shlibpath_var=DYLD_LIBRARY_PATH
9346  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9347  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9348  if test "$GCC" = yes; then
9349    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"`
9350  else
9351    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9352  fi
9353  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9354  ;;
9355
9356dgux*)
9357  version_type=linux
9358  need_lib_prefix=no
9359  need_version=no
9360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9361  soname_spec='${libname}${release}${shared_ext}$major'
9362  shlibpath_var=LD_LIBRARY_PATH
9363  ;;
9364
9365freebsd1*)
9366  dynamic_linker=no
9367  ;;
9368
9369kfreebsd*-gnu)
9370  version_type=linux
9371  need_lib_prefix=no
9372  need_version=no
9373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9374  soname_spec='${libname}${release}${shared_ext}$major'
9375  shlibpath_var=LD_LIBRARY_PATH
9376  shlibpath_overrides_runpath=no
9377  hardcode_into_libs=yes
9378  dynamic_linker='GNU ld.so'
9379  ;;
9380
9381freebsd* | dragonfly*)
9382  # DragonFly does not have aout.  When/if they implement a new
9383  # versioning mechanism, adjust this.
9384  if test -x /usr/bin/objformat; then
9385    objformat=`/usr/bin/objformat`
9386  else
9387    case $host_os in
9388    freebsd[123]*) objformat=aout ;;
9389    *) objformat=elf ;;
9390    esac
9391  fi
9392  version_type=freebsd-$objformat
9393  case $version_type in
9394    freebsd-elf*)
9395      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9396      need_version=no
9397      need_lib_prefix=no
9398      ;;
9399    freebsd-*)
9400      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9401      need_version=yes
9402      ;;
9403  esac
9404  shlibpath_var=LD_LIBRARY_PATH
9405  case $host_os in
9406  freebsd2*)
9407    shlibpath_overrides_runpath=yes
9408    ;;
9409  freebsd3.[01]* | freebsdelf3.[01]*)
9410    shlibpath_overrides_runpath=yes
9411    hardcode_into_libs=yes
9412    ;;
9413  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9414  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9415    shlibpath_overrides_runpath=no
9416    hardcode_into_libs=yes
9417    ;;
9418  freebsd*) # from 4.6 on
9419    shlibpath_overrides_runpath=yes
9420    hardcode_into_libs=yes
9421    ;;
9422  esac
9423  ;;
9424
9425gnu*)
9426  version_type=linux
9427  need_lib_prefix=no
9428  need_version=no
9429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9430  soname_spec='${libname}${release}${shared_ext}$major'
9431  shlibpath_var=LD_LIBRARY_PATH
9432  hardcode_into_libs=yes
9433  ;;
9434
9435hpux9* | hpux10* | hpux11*)
9436  # Give a soname corresponding to the major version so that dld.sl refuses to
9437  # link against other versions.
9438  version_type=sunos
9439  need_lib_prefix=no
9440  need_version=no
9441  case $host_cpu in
9442  ia64*)
9443    shrext_cmds='.so'
9444    hardcode_into_libs=yes
9445    dynamic_linker="$host_os dld.so"
9446    shlibpath_var=LD_LIBRARY_PATH
9447    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449    soname_spec='${libname}${release}${shared_ext}$major'
9450    if test "X$HPUX_IA64_MODE" = X32; then
9451      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9452    else
9453      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9454    fi
9455    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9456    ;;
9457   hppa*64*)
9458     shrext_cmds='.sl'
9459     hardcode_into_libs=yes
9460     dynamic_linker="$host_os dld.sl"
9461     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9462     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464     soname_spec='${libname}${release}${shared_ext}$major'
9465     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9466     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9467     ;;
9468   *)
9469    shrext_cmds='.sl'
9470    dynamic_linker="$host_os dld.sl"
9471    shlibpath_var=SHLIB_PATH
9472    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9473    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474    soname_spec='${libname}${release}${shared_ext}$major'
9475    ;;
9476  esac
9477  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9478  postinstall_cmds='chmod 555 $lib'
9479  ;;
9480
9481interix3*)
9482  version_type=linux
9483  need_lib_prefix=no
9484  need_version=no
9485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9486  soname_spec='${libname}${release}${shared_ext}$major'
9487  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9488  shlibpath_var=LD_LIBRARY_PATH
9489  shlibpath_overrides_runpath=no
9490  hardcode_into_libs=yes
9491  ;;
9492
9493irix5* | irix6* | nonstopux*)
9494  case $host_os in
9495    nonstopux*) version_type=nonstopux ;;
9496    *)
9497        if test "$lt_cv_prog_gnu_ld" = yes; then
9498                version_type=linux
9499        else
9500                version_type=irix
9501        fi ;;
9502  esac
9503  need_lib_prefix=no
9504  need_version=no
9505  soname_spec='${libname}${release}${shared_ext}$major'
9506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9507  case $host_os in
9508  irix5* | nonstopux*)
9509    libsuff= shlibsuff=
9510    ;;
9511  *)
9512    case $LD in # libtool.m4 will add one of these switches to LD
9513    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9514      libsuff= shlibsuff= libmagic=32-bit;;
9515    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9516      libsuff=32 shlibsuff=N32 libmagic=N32;;
9517    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9518      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9519    *) libsuff= shlibsuff= libmagic=never-match;;
9520    esac
9521    ;;
9522  esac
9523  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9524  shlibpath_overrides_runpath=no
9525  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9526  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9527  hardcode_into_libs=yes
9528  ;;
9529
9530# No shared lib support for Linux oldld, aout, or coff.
9531linux*oldld* | linux*aout* | linux*coff*)
9532  dynamic_linker=no
9533  ;;
9534
9535# This must be Linux ELF.
9536linux*)
9537  version_type=linux
9538  need_lib_prefix=no
9539  need_version=no
9540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541  soname_spec='${libname}${release}${shared_ext}$major'
9542  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9543  shlibpath_var=LD_LIBRARY_PATH
9544  shlibpath_overrides_runpath=no
9545  # This implies no fast_install, which is unacceptable.
9546  # Some rework will be needed to allow for fast_install
9547  # before this can be enabled.
9548  hardcode_into_libs=yes
9549
9550  # Append ld.so.conf contents to the search path
9551  if test -f /etc/ld.so.conf; then
9552    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' ' '`
9553    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9554  fi
9555
9556  # We used to test for /lib/ld.so.1 and disable shared libraries on
9557  # powerpc, because MkLinux only supported shared libraries with the
9558  # GNU dynamic linker.  Since this was broken with cross compilers,
9559  # most powerpc-linux boxes support dynamic linking these days and
9560  # people can always --disable-shared, the test was removed, and we
9561  # assume the GNU/Linux dynamic linker is in use.
9562  dynamic_linker='GNU/Linux ld.so'
9563  ;;
9564
9565knetbsd*-gnu)
9566  version_type=linux
9567  need_lib_prefix=no
9568  need_version=no
9569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9570  soname_spec='${libname}${release}${shared_ext}$major'
9571  shlibpath_var=LD_LIBRARY_PATH
9572  shlibpath_overrides_runpath=no
9573  hardcode_into_libs=yes
9574  dynamic_linker='GNU ld.so'
9575  ;;
9576
9577netbsd*)
9578  version_type=sunos
9579  need_lib_prefix=no
9580  need_version=no
9581  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9582    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9583    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9584    dynamic_linker='NetBSD (a.out) ld.so'
9585  else
9586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9587    soname_spec='${libname}${release}${shared_ext}$major'
9588    dynamic_linker='NetBSD ld.elf_so'
9589  fi
9590  shlibpath_var=LD_LIBRARY_PATH
9591  shlibpath_overrides_runpath=yes
9592  hardcode_into_libs=yes
9593  ;;
9594
9595newsos6)
9596  version_type=linux
9597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598  shlibpath_var=LD_LIBRARY_PATH
9599  shlibpath_overrides_runpath=yes
9600  ;;
9601
9602nto-qnx*)
9603  version_type=linux
9604  need_lib_prefix=no
9605  need_version=no
9606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607  soname_spec='${libname}${release}${shared_ext}$major'
9608  shlibpath_var=LD_LIBRARY_PATH
9609  shlibpath_overrides_runpath=yes
9610  ;;
9611
9612openbsd*)
9613  version_type=sunos
9614  sys_lib_dlsearch_path_spec="/usr/lib"
9615  need_lib_prefix=no
9616  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9617  case $host_os in
9618    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9619    *)                         need_version=no  ;;
9620  esac
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9622  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9623  shlibpath_var=LD_LIBRARY_PATH
9624  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9625    case $host_os in
9626      openbsd2.[89] | openbsd2.[89].*)
9627        shlibpath_overrides_runpath=no
9628        ;;
9629      *)
9630        shlibpath_overrides_runpath=yes
9631        ;;
9632      esac
9633  else
9634    shlibpath_overrides_runpath=yes
9635  fi
9636  ;;
9637
9638os2*)
9639  libname_spec='$name'
9640  shrext_cmds=".dll"
9641  need_lib_prefix=no
9642  library_names_spec='$libname${shared_ext} $libname.a'
9643  dynamic_linker='OS/2 ld.exe'
9644  shlibpath_var=LIBPATH
9645  ;;
9646
9647osf3* | osf4* | osf5*)
9648  version_type=osf
9649  need_lib_prefix=no
9650  need_version=no
9651  soname_spec='${libname}${release}${shared_ext}$major'
9652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653  shlibpath_var=LD_LIBRARY_PATH
9654  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9655  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9656  ;;
9657
9658solaris*)
9659  version_type=linux
9660  need_lib_prefix=no
9661  need_version=no
9662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663  soname_spec='${libname}${release}${shared_ext}$major'
9664  shlibpath_var=LD_LIBRARY_PATH
9665  shlibpath_overrides_runpath=yes
9666  hardcode_into_libs=yes
9667  # ldd complains unless libraries are executable
9668  postinstall_cmds='chmod +x $lib'
9669  ;;
9670
9671sunos4*)
9672  version_type=sunos
9673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9674  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9675  shlibpath_var=LD_LIBRARY_PATH
9676  shlibpath_overrides_runpath=yes
9677  if test "$with_gnu_ld" = yes; then
9678    need_lib_prefix=no
9679  fi
9680  need_version=yes
9681  ;;
9682
9683sysv4 | sysv4.3*)
9684  version_type=linux
9685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686  soname_spec='${libname}${release}${shared_ext}$major'
9687  shlibpath_var=LD_LIBRARY_PATH
9688  case $host_vendor in
9689    sni)
9690      shlibpath_overrides_runpath=no
9691      need_lib_prefix=no
9692      export_dynamic_flag_spec='${wl}-Blargedynsym'
9693      runpath_var=LD_RUN_PATH
9694      ;;
9695    siemens)
9696      need_lib_prefix=no
9697      ;;
9698    motorola)
9699      need_lib_prefix=no
9700      need_version=no
9701      shlibpath_overrides_runpath=no
9702      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9703      ;;
9704  esac
9705  ;;
9706
9707sysv4*MP*)
9708  if test -d /usr/nec ;then
9709    version_type=linux
9710    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9711    soname_spec='$libname${shared_ext}.$major'
9712    shlibpath_var=LD_LIBRARY_PATH
9713  fi
9714  ;;
9715
9716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9717  version_type=freebsd-elf
9718  need_lib_prefix=no
9719  need_version=no
9720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9721  soname_spec='${libname}${release}${shared_ext}$major'
9722  shlibpath_var=LD_LIBRARY_PATH
9723  hardcode_into_libs=yes
9724  if test "$with_gnu_ld" = yes; then
9725    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9726    shlibpath_overrides_runpath=no
9727  else
9728    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9729    shlibpath_overrides_runpath=yes
9730    case $host_os in
9731      sco3.2v5*)
9732        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9733        ;;
9734    esac
9735  fi
9736  sys_lib_dlsearch_path_spec='/usr/lib'
9737  ;;
9738
9739uts4*)
9740  version_type=linux
9741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742  soname_spec='${libname}${release}${shared_ext}$major'
9743  shlibpath_var=LD_LIBRARY_PATH
9744  ;;
9745
9746*)
9747  dynamic_linker=no
9748  ;;
9749esac
9750echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9751echo "${ECHO_T}$dynamic_linker" >&6
9752test "$dynamic_linker" = no && can_build_shared=no
9753
9754variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9755if test "$GCC" = yes; then
9756  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9757fi
9758
9759echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9760echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9761hardcode_action=
9762if test -n "$hardcode_libdir_flag_spec" || \
9763   test -n "$runpath_var" || \
9764   test "X$hardcode_automatic" = "Xyes" ; then
9765
9766  # We can hardcode non-existant directories.
9767  if test "$hardcode_direct" != no &&
9768     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9769     # have to relink, otherwise we might link with an installed library
9770     # when we should be linking with a yet-to-be-installed one
9771     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9772     test "$hardcode_minus_L" != no; then
9773    # Linking always hardcodes the temporary library directory.
9774    hardcode_action=relink
9775  else
9776    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9777    hardcode_action=immediate
9778  fi
9779else
9780  # We cannot hardcode anything, or else we can only hardcode existing
9781  # directories.
9782  hardcode_action=unsupported
9783fi
9784echo "$as_me:$LINENO: result: $hardcode_action" >&5
9785echo "${ECHO_T}$hardcode_action" >&6
9786
9787if test "$hardcode_action" = relink; then
9788  # Fast installation is not supported
9789  enable_fast_install=no
9790elif test "$shlibpath_overrides_runpath" = yes ||
9791     test "$enable_shared" = no; then
9792  # Fast installation is not necessary
9793  enable_fast_install=needless
9794fi
9795
9796striplib=
9797old_striplib=
9798echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9799echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9800if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9801  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9802  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9803  echo "$as_me:$LINENO: result: yes" >&5
9804echo "${ECHO_T}yes" >&6
9805else
9806# FIXME - insert some real tests, host_os isn't really good enough
9807  case $host_os in
9808   darwin*)
9809       if test -n "$STRIP" ; then
9810         striplib="$STRIP -x"
9811         echo "$as_me:$LINENO: result: yes" >&5
9812echo "${ECHO_T}yes" >&6
9813       else
9814  echo "$as_me:$LINENO: result: no" >&5
9815echo "${ECHO_T}no" >&6
9816fi
9817       ;;
9818   *)
9819  echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
9821    ;;
9822  esac
9823fi
9824
9825if test "x$enable_dlopen" != xyes; then
9826  enable_dlopen=unknown
9827  enable_dlopen_self=unknown
9828  enable_dlopen_self_static=unknown
9829else
9830  lt_cv_dlopen=no
9831  lt_cv_dlopen_libs=
9832
9833  case $host_os in
9834  beos*)
9835    lt_cv_dlopen="load_add_on"
9836    lt_cv_dlopen_libs=
9837    lt_cv_dlopen_self=yes
9838    ;;
9839
9840  mingw* | pw32*)
9841    lt_cv_dlopen="LoadLibrary"
9842    lt_cv_dlopen_libs=
9843   ;;
9844
9845  cygwin*)
9846    lt_cv_dlopen="dlopen"
9847    lt_cv_dlopen_libs=
9848   ;;
9849
9850  darwin*)
9851  # if libdl is installed we need to link against it
9852    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9853echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9854if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9855  echo $ECHO_N "(cached) $ECHO_C" >&6
9856else
9857  ac_check_lib_save_LIBS=$LIBS
9858LIBS="-ldl  $LIBS"
9859cat >conftest.$ac_ext <<_ACEOF
9860/* confdefs.h.  */
9861_ACEOF
9862cat confdefs.h >>conftest.$ac_ext
9863cat >>conftest.$ac_ext <<_ACEOF
9864/* end confdefs.h.  */
9865
9866/* Override any gcc2 internal prototype to avoid an error.  */
9867#ifdef __cplusplus
9868extern "C"
9869#endif
9870/* We use char because int might match the return type of a gcc2
9871   builtin and then its argument prototype would still apply.  */
9872char dlopen ();
9873int
9874main ()
9875{
9876dlopen ();
9877  ;
9878  return 0;
9879}
9880_ACEOF
9881rm -f conftest.$ac_objext conftest$ac_exeext
9882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9883  (eval $ac_link) 2>conftest.er1
9884  ac_status=$?
9885  grep -v '^ *+' conftest.er1 >conftest.err
9886  rm -f conftest.er1
9887  cat conftest.err >&5
9888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889  (exit $ac_status); } &&
9890         { ac_try='test -z "$ac_c_werror_flag"
9891                         || test ! -s conftest.err'
9892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893  (eval $ac_try) 2>&5
9894  ac_status=$?
9895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896  (exit $ac_status); }; } &&
9897         { ac_try='test -s conftest$ac_exeext'
9898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899  (eval $ac_try) 2>&5
9900  ac_status=$?
9901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902  (exit $ac_status); }; }; then
9903  ac_cv_lib_dl_dlopen=yes
9904else
9905  echo "$as_me: failed program was:" >&5
9906sed 's/^/| /' conftest.$ac_ext >&5
9907
9908ac_cv_lib_dl_dlopen=no
9909fi
9910rm -f conftest.err conftest.$ac_objext \
9911      conftest$ac_exeext conftest.$ac_ext
9912LIBS=$ac_check_lib_save_LIBS
9913fi
9914echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9915echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9916if test $ac_cv_lib_dl_dlopen = yes; then
9917  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9918else
9919
9920    lt_cv_dlopen="dyld"
9921    lt_cv_dlopen_libs=
9922    lt_cv_dlopen_self=yes
9923
9924fi
9925
9926   ;;
9927
9928  *)
9929    echo "$as_me:$LINENO: checking for shl_load" >&5
9930echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9931if test "${ac_cv_func_shl_load+set}" = set; then
9932  echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934  cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h.  */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h.  */
9940/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9941   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9942#define shl_load innocuous_shl_load
9943
9944/* System header to define __stub macros and hopefully few prototypes,
9945    which can conflict with char shl_load (); below.
9946    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9947    <limits.h> exists even on freestanding compilers.  */
9948
9949#ifdef __STDC__
9950# include <limits.h>
9951#else
9952# include <assert.h>
9953#endif
9954
9955#undef shl_load
9956
9957/* Override any gcc2 internal prototype to avoid an error.  */
9958#ifdef __cplusplus
9959extern "C"
9960{
9961#endif
9962/* We use char because int might match the return type of a gcc2
9963   builtin and then its argument prototype would still apply.  */
9964char shl_load ();
9965/* The GNU C library defines this for functions which it implements
9966    to always fail with ENOSYS.  Some functions are actually named
9967    something starting with __ and the normal name is an alias.  */
9968#if defined (__stub_shl_load) || defined (__stub___shl_load)
9969choke me
9970#else
9971char (*f) () = shl_load;
9972#endif
9973#ifdef __cplusplus
9974}
9975#endif
9976
9977int
9978main ()
9979{
9980return f != shl_load;
9981  ;
9982  return 0;
9983}
9984_ACEOF
9985rm -f conftest.$ac_objext conftest$ac_exeext
9986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987  (eval $ac_link) 2>conftest.er1
9988  ac_status=$?
9989  grep -v '^ *+' conftest.er1 >conftest.err
9990  rm -f conftest.er1
9991  cat conftest.err >&5
9992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993  (exit $ac_status); } &&
9994         { ac_try='test -z "$ac_c_werror_flag"
9995                         || test ! -s conftest.err'
9996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997  (eval $ac_try) 2>&5
9998  ac_status=$?
9999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000  (exit $ac_status); }; } &&
10001         { ac_try='test -s conftest$ac_exeext'
10002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003  (eval $ac_try) 2>&5
10004  ac_status=$?
10005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006  (exit $ac_status); }; }; then
10007  ac_cv_func_shl_load=yes
10008else
10009  echo "$as_me: failed program was:" >&5
10010sed 's/^/| /' conftest.$ac_ext >&5
10011
10012ac_cv_func_shl_load=no
10013fi
10014rm -f conftest.err conftest.$ac_objext \
10015      conftest$ac_exeext conftest.$ac_ext
10016fi
10017echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10018echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10019if test $ac_cv_func_shl_load = yes; then
10020  lt_cv_dlopen="shl_load"
10021else
10022  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10023echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10024if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10025  echo $ECHO_N "(cached) $ECHO_C" >&6
10026else
10027  ac_check_lib_save_LIBS=$LIBS
10028LIBS="-ldld  $LIBS"
10029cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h.  */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h.  */
10035
10036/* Override any gcc2 internal prototype to avoid an error.  */
10037#ifdef __cplusplus
10038extern "C"
10039#endif
10040/* We use char because int might match the return type of a gcc2
10041   builtin and then its argument prototype would still apply.  */
10042char shl_load ();
10043int
10044main ()
10045{
10046shl_load ();
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051rm -f conftest.$ac_objext conftest$ac_exeext
10052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053  (eval $ac_link) 2>conftest.er1
10054  ac_status=$?
10055  grep -v '^ *+' conftest.er1 >conftest.err
10056  rm -f conftest.er1
10057  cat conftest.err >&5
10058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059  (exit $ac_status); } &&
10060         { ac_try='test -z "$ac_c_werror_flag"
10061                         || test ! -s conftest.err'
10062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063  (eval $ac_try) 2>&5
10064  ac_status=$?
10065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066  (exit $ac_status); }; } &&
10067         { ac_try='test -s conftest$ac_exeext'
10068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069  (eval $ac_try) 2>&5
10070  ac_status=$?
10071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072  (exit $ac_status); }; }; then
10073  ac_cv_lib_dld_shl_load=yes
10074else
10075  echo "$as_me: failed program was:" >&5
10076sed 's/^/| /' conftest.$ac_ext >&5
10077
10078ac_cv_lib_dld_shl_load=no
10079fi
10080rm -f conftest.err conftest.$ac_objext \
10081      conftest$ac_exeext conftest.$ac_ext
10082LIBS=$ac_check_lib_save_LIBS
10083fi
10084echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10085echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10086if test $ac_cv_lib_dld_shl_load = yes; then
10087  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10088else
10089  echo "$as_me:$LINENO: checking for dlopen" >&5
10090echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10091if test "${ac_cv_func_dlopen+set}" = set; then
10092  echo $ECHO_N "(cached) $ECHO_C" >&6
10093else
10094  cat >conftest.$ac_ext <<_ACEOF
10095/* confdefs.h.  */
10096_ACEOF
10097cat confdefs.h >>conftest.$ac_ext
10098cat >>conftest.$ac_ext <<_ACEOF
10099/* end confdefs.h.  */
10100/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10101   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10102#define dlopen innocuous_dlopen
10103
10104/* System header to define __stub macros and hopefully few prototypes,
10105    which can conflict with char dlopen (); below.
10106    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10107    <limits.h> exists even on freestanding compilers.  */
10108
10109#ifdef __STDC__
10110# include <limits.h>
10111#else
10112# include <assert.h>
10113#endif
10114
10115#undef dlopen
10116
10117/* Override any gcc2 internal prototype to avoid an error.  */
10118#ifdef __cplusplus
10119extern "C"
10120{
10121#endif
10122/* We use char because int might match the return type of a gcc2
10123   builtin and then its argument prototype would still apply.  */
10124char dlopen ();
10125/* The GNU C library defines this for functions which it implements
10126    to always fail with ENOSYS.  Some functions are actually named
10127    something starting with __ and the normal name is an alias.  */
10128#if defined (__stub_dlopen) || defined (__stub___dlopen)
10129choke me
10130#else
10131char (*f) () = dlopen;
10132#endif
10133#ifdef __cplusplus
10134}
10135#endif
10136
10137int
10138main ()
10139{
10140return f != dlopen;
10141  ;
10142  return 0;
10143}
10144_ACEOF
10145rm -f conftest.$ac_objext conftest$ac_exeext
10146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147  (eval $ac_link) 2>conftest.er1
10148  ac_status=$?
10149  grep -v '^ *+' conftest.er1 >conftest.err
10150  rm -f conftest.er1
10151  cat conftest.err >&5
10152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153  (exit $ac_status); } &&
10154         { ac_try='test -z "$ac_c_werror_flag"
10155                         || test ! -s conftest.err'
10156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157  (eval $ac_try) 2>&5
10158  ac_status=$?
10159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160  (exit $ac_status); }; } &&
10161         { ac_try='test -s conftest$ac_exeext'
10162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163  (eval $ac_try) 2>&5
10164  ac_status=$?
10165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166  (exit $ac_status); }; }; then
10167  ac_cv_func_dlopen=yes
10168else
10169  echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172ac_cv_func_dlopen=no
10173fi
10174rm -f conftest.err conftest.$ac_objext \
10175      conftest$ac_exeext conftest.$ac_ext
10176fi
10177echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10178echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10179if test $ac_cv_func_dlopen = yes; then
10180  lt_cv_dlopen="dlopen"
10181else
10182  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10183echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10184if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10185  echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187  ac_check_lib_save_LIBS=$LIBS
10188LIBS="-ldl  $LIBS"
10189cat >conftest.$ac_ext <<_ACEOF
10190/* confdefs.h.  */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h.  */
10195
10196/* Override any gcc2 internal prototype to avoid an error.  */
10197#ifdef __cplusplus
10198extern "C"
10199#endif
10200/* We use char because int might match the return type of a gcc2
10201   builtin and then its argument prototype would still apply.  */
10202char dlopen ();
10203int
10204main ()
10205{
10206dlopen ();
10207  ;
10208  return 0;
10209}
10210_ACEOF
10211rm -f conftest.$ac_objext conftest$ac_exeext
10212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10213  (eval $ac_link) 2>conftest.er1
10214  ac_status=$?
10215  grep -v '^ *+' conftest.er1 >conftest.err
10216  rm -f conftest.er1
10217  cat conftest.err >&5
10218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219  (exit $ac_status); } &&
10220         { ac_try='test -z "$ac_c_werror_flag"
10221                         || test ! -s conftest.err'
10222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223  (eval $ac_try) 2>&5
10224  ac_status=$?
10225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226  (exit $ac_status); }; } &&
10227         { ac_try='test -s conftest$ac_exeext'
10228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229  (eval $ac_try) 2>&5
10230  ac_status=$?
10231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232  (exit $ac_status); }; }; then
10233  ac_cv_lib_dl_dlopen=yes
10234else
10235  echo "$as_me: failed program was:" >&5
10236sed 's/^/| /' conftest.$ac_ext >&5
10237
10238ac_cv_lib_dl_dlopen=no
10239fi
10240rm -f conftest.err conftest.$ac_objext \
10241      conftest$ac_exeext conftest.$ac_ext
10242LIBS=$ac_check_lib_save_LIBS
10243fi
10244echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10245echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10246if test $ac_cv_lib_dl_dlopen = yes; then
10247  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10248else
10249  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10250echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10251if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10252  echo $ECHO_N "(cached) $ECHO_C" >&6
10253else
10254  ac_check_lib_save_LIBS=$LIBS
10255LIBS="-lsvld  $LIBS"
10256cat >conftest.$ac_ext <<_ACEOF
10257/* confdefs.h.  */
10258_ACEOF
10259cat confdefs.h >>conftest.$ac_ext
10260cat >>conftest.$ac_ext <<_ACEOF
10261/* end confdefs.h.  */
10262
10263/* Override any gcc2 internal prototype to avoid an error.  */
10264#ifdef __cplusplus
10265extern "C"
10266#endif
10267/* We use char because int might match the return type of a gcc2
10268   builtin and then its argument prototype would still apply.  */
10269char dlopen ();
10270int
10271main ()
10272{
10273dlopen ();
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278rm -f conftest.$ac_objext conftest$ac_exeext
10279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10280  (eval $ac_link) 2>conftest.er1
10281  ac_status=$?
10282  grep -v '^ *+' conftest.er1 >conftest.err
10283  rm -f conftest.er1
10284  cat conftest.err >&5
10285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286  (exit $ac_status); } &&
10287         { ac_try='test -z "$ac_c_werror_flag"
10288                         || test ! -s conftest.err'
10289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290  (eval $ac_try) 2>&5
10291  ac_status=$?
10292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293  (exit $ac_status); }; } &&
10294         { ac_try='test -s conftest$ac_exeext'
10295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296  (eval $ac_try) 2>&5
10297  ac_status=$?
10298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299  (exit $ac_status); }; }; then
10300  ac_cv_lib_svld_dlopen=yes
10301else
10302  echo "$as_me: failed program was:" >&5
10303sed 's/^/| /' conftest.$ac_ext >&5
10304
10305ac_cv_lib_svld_dlopen=no
10306fi
10307rm -f conftest.err conftest.$ac_objext \
10308      conftest$ac_exeext conftest.$ac_ext
10309LIBS=$ac_check_lib_save_LIBS
10310fi
10311echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10312echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10313if test $ac_cv_lib_svld_dlopen = yes; then
10314  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10315else
10316  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10317echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10318if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10319  echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321  ac_check_lib_save_LIBS=$LIBS
10322LIBS="-ldld  $LIBS"
10323cat >conftest.$ac_ext <<_ACEOF
10324/* confdefs.h.  */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h.  */
10329
10330/* Override any gcc2 internal prototype to avoid an error.  */
10331#ifdef __cplusplus
10332extern "C"
10333#endif
10334/* We use char because int might match the return type of a gcc2
10335   builtin and then its argument prototype would still apply.  */
10336char dld_link ();
10337int
10338main ()
10339{
10340dld_link ();
10341  ;
10342  return 0;
10343}
10344_ACEOF
10345rm -f conftest.$ac_objext conftest$ac_exeext
10346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10347  (eval $ac_link) 2>conftest.er1
10348  ac_status=$?
10349  grep -v '^ *+' conftest.er1 >conftest.err
10350  rm -f conftest.er1
10351  cat conftest.err >&5
10352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353  (exit $ac_status); } &&
10354         { ac_try='test -z "$ac_c_werror_flag"
10355                         || test ! -s conftest.err'
10356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357  (eval $ac_try) 2>&5
10358  ac_status=$?
10359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360  (exit $ac_status); }; } &&
10361         { ac_try='test -s conftest$ac_exeext'
10362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363  (eval $ac_try) 2>&5
10364  ac_status=$?
10365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366  (exit $ac_status); }; }; then
10367  ac_cv_lib_dld_dld_link=yes
10368else
10369  echo "$as_me: failed program was:" >&5
10370sed 's/^/| /' conftest.$ac_ext >&5
10371
10372ac_cv_lib_dld_dld_link=no
10373fi
10374rm -f conftest.err conftest.$ac_objext \
10375      conftest$ac_exeext conftest.$ac_ext
10376LIBS=$ac_check_lib_save_LIBS
10377fi
10378echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10379echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10380if test $ac_cv_lib_dld_dld_link = yes; then
10381  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10382fi
10383
10384
10385fi
10386
10387
10388fi
10389
10390
10391fi
10392
10393
10394fi
10395
10396
10397fi
10398
10399    ;;
10400  esac
10401
10402  if test "x$lt_cv_dlopen" != xno; then
10403    enable_dlopen=yes
10404  else
10405    enable_dlopen=no
10406  fi
10407
10408  case $lt_cv_dlopen in
10409  dlopen)
10410    save_CPPFLAGS="$CPPFLAGS"
10411    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10412
10413    save_LDFLAGS="$LDFLAGS"
10414    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10415
10416    save_LIBS="$LIBS"
10417    LIBS="$lt_cv_dlopen_libs $LIBS"
10418
10419    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10420echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10421if test "${lt_cv_dlopen_self+set}" = set; then
10422  echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424          if test "$cross_compiling" = yes; then :
10425  lt_cv_dlopen_self=cross
10426else
10427  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10428  lt_status=$lt_dlunknown
10429  cat > conftest.$ac_ext <<EOF
10430#line 10430 "configure"
10431#include "confdefs.h"
10432
10433#if HAVE_DLFCN_H
10434#include <dlfcn.h>
10435#endif
10436
10437#include <stdio.h>
10438
10439#ifdef RTLD_GLOBAL
10440#  define LT_DLGLOBAL           RTLD_GLOBAL
10441#else
10442#  ifdef DL_GLOBAL
10443#    define LT_DLGLOBAL         DL_GLOBAL
10444#  else
10445#    define LT_DLGLOBAL         0
10446#  endif
10447#endif
10448
10449/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10450   find out it does not work in some platform. */
10451#ifndef LT_DLLAZY_OR_NOW
10452#  ifdef RTLD_LAZY
10453#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10454#  else
10455#    ifdef DL_LAZY
10456#      define LT_DLLAZY_OR_NOW          DL_LAZY
10457#    else
10458#      ifdef RTLD_NOW
10459#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10460#      else
10461#        ifdef DL_NOW
10462#          define LT_DLLAZY_OR_NOW      DL_NOW
10463#        else
10464#          define LT_DLLAZY_OR_NOW      0
10465#        endif
10466#      endif
10467#    endif
10468#  endif
10469#endif
10470
10471#ifdef __cplusplus
10472extern "C" void exit (int);
10473#endif
10474
10475void fnord() { int i=42;}
10476int main ()
10477{
10478  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10479  int status = $lt_dlunknown;
10480
10481  if (self)
10482    {
10483      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10484      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10485      /* dlclose (self); */
10486    }
10487  else
10488    puts (dlerror ());
10489
10490    exit (status);
10491}
10492EOF
10493  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10494  (eval $ac_link) 2>&5
10495  ac_status=$?
10496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10498    (./conftest; exit; ) >&5 2>/dev/null
10499    lt_status=$?
10500    case x$lt_status in
10501      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10502      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10503      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10504    esac
10505  else :
10506    # compilation failed
10507    lt_cv_dlopen_self=no
10508  fi
10509fi
10510rm -fr conftest*
10511
10512
10513fi
10514echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10515echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10516
10517    if test "x$lt_cv_dlopen_self" = xyes; then
10518      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10519      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10520echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10521if test "${lt_cv_dlopen_self_static+set}" = set; then
10522  echo $ECHO_N "(cached) $ECHO_C" >&6
10523else
10524          if test "$cross_compiling" = yes; then :
10525  lt_cv_dlopen_self_static=cross
10526else
10527  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10528  lt_status=$lt_dlunknown
10529  cat > conftest.$ac_ext <<EOF
10530#line 10530 "configure"
10531#include "confdefs.h"
10532
10533#if HAVE_DLFCN_H
10534#include <dlfcn.h>
10535#endif
10536
10537#include <stdio.h>
10538
10539#ifdef RTLD_GLOBAL
10540#  define LT_DLGLOBAL           RTLD_GLOBAL
10541#else
10542#  ifdef DL_GLOBAL
10543#    define LT_DLGLOBAL         DL_GLOBAL
10544#  else
10545#    define LT_DLGLOBAL         0
10546#  endif
10547#endif
10548
10549/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10550   find out it does not work in some platform. */
10551#ifndef LT_DLLAZY_OR_NOW
10552#  ifdef RTLD_LAZY
10553#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10554#  else
10555#    ifdef DL_LAZY
10556#      define LT_DLLAZY_OR_NOW          DL_LAZY
10557#    else
10558#      ifdef RTLD_NOW
10559#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10560#      else
10561#        ifdef DL_NOW
10562#          define LT_DLLAZY_OR_NOW      DL_NOW
10563#        else
10564#          define LT_DLLAZY_OR_NOW      0
10565#        endif
10566#      endif
10567#    endif
10568#  endif
10569#endif
10570
10571#ifdef __cplusplus
10572extern "C" void exit (int);
10573#endif
10574
10575void fnord() { int i=42;}
10576int main ()
10577{
10578  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10579  int status = $lt_dlunknown;
10580
10581  if (self)
10582    {
10583      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10584      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10585      /* dlclose (self); */
10586    }
10587  else
10588    puts (dlerror ());
10589
10590    exit (status);
10591}
10592EOF
10593  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594  (eval $ac_link) 2>&5
10595  ac_status=$?
10596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10598    (./conftest; exit; ) >&5 2>/dev/null
10599    lt_status=$?
10600    case x$lt_status in
10601      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10602      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10603      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10604    esac
10605  else :
10606    # compilation failed
10607    lt_cv_dlopen_self_static=no
10608  fi
10609fi
10610rm -fr conftest*
10611
10612
10613fi
10614echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10615echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10616    fi
10617
10618    CPPFLAGS="$save_CPPFLAGS"
10619    LDFLAGS="$save_LDFLAGS"
10620    LIBS="$save_LIBS"
10621    ;;
10622  esac
10623
10624  case $lt_cv_dlopen_self in
10625  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10626  *) enable_dlopen_self=unknown ;;
10627  esac
10628
10629  case $lt_cv_dlopen_self_static in
10630  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10631  *) enable_dlopen_self_static=unknown ;;
10632  esac
10633fi
10634
10635
10636# Report which library types will actually be built
10637echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10638echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10639echo "$as_me:$LINENO: result: $can_build_shared" >&5
10640echo "${ECHO_T}$can_build_shared" >&6
10641
10642echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10643echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10644test "$can_build_shared" = "no" && enable_shared=no
10645
10646# On AIX, shared libraries and static libraries use the same namespace, and
10647# are all built from PIC.
10648case $host_os in
10649aix3*)
10650  test "$enable_shared" = yes && enable_static=no
10651  if test -n "$RANLIB"; then
10652    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10653    postinstall_cmds='$RANLIB $lib'
10654  fi
10655  ;;
10656
10657aix4* | aix5*)
10658  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10659    test "$enable_shared" = yes && enable_static=no
10660  fi
10661    ;;
10662esac
10663echo "$as_me:$LINENO: result: $enable_shared" >&5
10664echo "${ECHO_T}$enable_shared" >&6
10665
10666echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10667echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10668# Make sure either enable_shared or enable_static is yes.
10669test "$enable_shared" = yes || enable_static=yes
10670echo "$as_me:$LINENO: result: $enable_static" >&5
10671echo "${ECHO_T}$enable_static" >&6
10672
10673# The else clause should only fire when bootstrapping the
10674# libtool distribution, otherwise you forgot to ship ltmain.sh
10675# with your package, and you will get complaints that there are
10676# no rules to generate ltmain.sh.
10677if test -f "$ltmain"; then
10678  # See if we are running on zsh, and set the options which allow our commands through
10679  # without removal of \ escapes.
10680  if test -n "${ZSH_VERSION+set}" ; then
10681    setopt NO_GLOB_SUBST
10682  fi
10683  # Now quote all the things that may contain metacharacters while being
10684  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10685  # variables and quote the copies for generation of the libtool script.
10686  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10687    SED SHELL STRIP \
10688    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10689    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10690    deplibs_check_method reload_flag reload_cmds need_locks \
10691    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10692    lt_cv_sys_global_symbol_to_c_name_address \
10693    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10694    old_postinstall_cmds old_postuninstall_cmds \
10695    compiler \
10696    CC \
10697    LD \
10698    lt_prog_compiler_wl \
10699    lt_prog_compiler_pic \
10700    lt_prog_compiler_static \
10701    lt_prog_compiler_no_builtin_flag \
10702    export_dynamic_flag_spec \
10703    thread_safe_flag_spec \
10704    whole_archive_flag_spec \
10705    enable_shared_with_static_runtimes \
10706    old_archive_cmds \
10707    old_archive_from_new_cmds \
10708    predep_objects \
10709    postdep_objects \
10710    predeps \
10711    postdeps \
10712    compiler_lib_search_path \
10713    archive_cmds \
10714    archive_expsym_cmds \
10715    postinstall_cmds \
10716    postuninstall_cmds \
10717    old_archive_from_expsyms_cmds \
10718    allow_undefined_flag \
10719    no_undefined_flag \
10720    export_symbols_cmds \
10721    hardcode_libdir_flag_spec \
10722    hardcode_libdir_flag_spec_ld \
10723    hardcode_libdir_separator \
10724    hardcode_automatic \
10725    module_cmds \
10726    module_expsym_cmds \
10727    lt_cv_prog_compiler_c_o \
10728    exclude_expsyms \
10729    include_expsyms; do
10730
10731    case $var in
10732    old_archive_cmds | \
10733    old_archive_from_new_cmds | \
10734    archive_cmds | \
10735    archive_expsym_cmds | \
10736    module_cmds | \
10737    module_expsym_cmds | \
10738    old_archive_from_expsyms_cmds | \
10739    export_symbols_cmds | \
10740    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10741    postinstall_cmds | postuninstall_cmds | \
10742    old_postinstall_cmds | old_postuninstall_cmds | \
10743    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10744      # Double-quote double-evaled strings.
10745      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10746      ;;
10747    *)
10748      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10749      ;;
10750    esac
10751  done
10752
10753  case $lt_echo in
10754  *'\$0 --fallback-echo"')
10755    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10756    ;;
10757  esac
10758
10759cfgfile="${ofile}T"
10760  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10761  $rm -f "$cfgfile"
10762  { echo "$as_me:$LINENO: creating $ofile" >&5
10763echo "$as_me: creating $ofile" >&6;}
10764
10765  cat <<__EOF__ >> "$cfgfile"
10766#! $SHELL
10767
10768# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10769# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10770# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10771#
10772# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10773# Free Software Foundation, Inc.
10774#
10775# This file is part of GNU Libtool:
10776# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10777#
<