source: ThirdParty/Glpk/trunk/configure @ 2652

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

restoring BuildTools/ThirdParty/Glpk?/trunk

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