source: ThirdParty/Glpk/trunk/configure @ 2489

Last change on this file since 2489 was 2489, checked in by tkr, 8 years ago

Re-running the autotools

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