source: ThirdParty/Blas/trunk/configure @ 1396

Last change on this file since 1396 was 1396, checked in by stefan, 10 years ago

add pkgconfig files

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