source: ThirdParty/ASL/trunk/configure @ 2904

Last change on this file since 2904 was 2904, checked in by stefan, 6 years ago

run autotools with BuildTools?/stable/0.7

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