source: ThirdParty/HSL/branches/BSP/trunk/configure @ 509

Last change on this file since 509 was 509, checked in by andreasw, 14 years ago

suppress warning messages for AIX compilers

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