source: ThirdParty/Glpk/trunk/configure @ 2711

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

update to Glpk 4.48

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