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

Last change on this file since 491 was 491, checked in by andreasw, 13 years ago

added dummy.c which is always going to be compiled - otherwise some archivers choke...

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