source: ThirdParty/ASL/stable/1.2/configure @ 2436

Last change on this file since 2436 was 2436, checked in by stefan, 9 years ago

temporarily committing release candidate

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