source: ThirdParty/HSL/trunk/configure @ 196

Last change on this file since 196 was 196, checked in by andreasw, 15 years ago

reran autotools

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