source: ThirdParty/ASL/stable/1.0/configure @ 1339

Last change on this file since 1339 was 1339, checked in by andreasw, 11 years ago

temporarily committing release candidate to stable

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