source: ThirdParty/Glpk/stable/1.9/configure @ 2784

Last change on this file since 2784 was 2784, checked in by stefan, 6 years ago

restoring BuildTools/ThirdParty/Glpk?/stable/1.9

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