source: branches/devel/Clp/configure @ 881

Last change on this file since 881 was 881, checked in by andreasw, 13 years ago

updated autotools generated files in devel according to current BuildTools?/stable/0.5

  • Property svn:executable set to *
File size: 711.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 0.1.
4#
5# Report bugs to <coin-clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='0.1'
433PACKAGE_STRING='Clp 0.1'
434PACKAGE_BUGREPORT='coin-clp@list.coin-or.org'
435
436ac_unique_file="src/ClpCholeskyBase.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LT_LDFLAGS RPATH_FLAGS COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Clp 0.1 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Clp 0.1:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-clp compile this project (Clp) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS (default: disabled)
1081  --enable-static[=PKGS]
1082                          build static libraries [default=no]
1083  --disable-dependency-tracking  speeds up one-time build
1084  --enable-dependency-tracking   do not reject slow dependency extractors
1085  --enable-maintainer-mode  enable make rules and dependencies not useful
1086                          (and sometimes confusing) to the casual installer
1087  --enable-shared[=PKGS]
1088                          build shared libraries [default=yes]
1089  --enable-fast-install[=PKGS]
1090                          optimize for fast installation [default=yes]
1091  --disable-libtool-lock  avoid locking (might break parallel builds)
1092  --enable-gnu-packages   compile with GNU packages (disabled by default)
1093
1094Optional Packages:
1095  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1096  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1097  --with-clp-verbosity specify the debug verbosity level for project Clp
1098  --with-clp-checklevel specify the sanity check level for project Clp
1099  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1100  --with-pic              try to use only PIC/non-PIC objects [default=use
1101                          both]
1102  --with-tags[=TAGS]
1103                          include additional configurations [automatic]
1104
1105Some influential environment variables:
1106  CDEFS       Additional -D flags to be used when compiling C code.
1107  ADD_CFLAGS  Additional C compiler options
1108  DBG_CFLAGS  Debug C compiler options
1109  OPT_CFLAGS  Optimize C compiler options
1110  CC          C compiler command
1111  CFLAGS      C compiler flags
1112  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1113              nonstandard directory <lib dir>
1114  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1115              headers in a nonstandard directory <include dir>
1116  MPICC       C MPI Compiler
1117  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1118  ADD_CXXFLAGS
1119              Additional C++ compiler options
1120  DBG_CXXFLAGS
1121              Debug C++ compiler options
1122  OPT_CXXFLAGS
1123              Optimize C++ compiler options
1124  CXX         C++ compiler command
1125  CXXFLAGS    C++ compiler flags
1126  MPICXX      C++ MPI Compiler
1127  CPP         C preprocessor
1128  CXXCPP      C++ preprocessor
1129  F77         Fortran 77 compiler command
1130  FFLAGS      Fortran 77 compiler flags
1131
1132Use these variables to override the choices made by `configure' or to help
1133it to find libraries and programs with nonstandard names/locations.
1134
1135Report bugs to <coin-clp@list.coin-or.org>.
1136_ACEOF
1137fi
1138
1139if test "$ac_init_help" = "recursive"; then
1140  # If there are subdirs, report their specific --help.
1141  ac_popdir=`pwd`
1142  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1143    test -d $ac_dir || continue
1144    ac_builddir=.
1145
1146if test "$ac_dir" != .; then
1147  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1148  # A "../" for each directory in $ac_dir_suffix.
1149  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1150else
1151  ac_dir_suffix= ac_top_builddir=
1152fi
1153
1154case $srcdir in
1155  .)  # No --srcdir option.  We are building in place.
1156    ac_srcdir=.
1157    if test -z "$ac_top_builddir"; then
1158       ac_top_srcdir=.
1159    else
1160       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1161    fi ;;
1162  [\\/]* | ?:[\\/]* )  # Absolute path.
1163    ac_srcdir=$srcdir$ac_dir_suffix;
1164    ac_top_srcdir=$srcdir ;;
1165  *) # Relative path.
1166    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1167    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1168esac
1169
1170# Do not use `cd foo && pwd` to compute absolute paths, because
1171# the directories may not exist.
1172case `pwd` in
1173.) ac_abs_builddir="$ac_dir";;
1174*)
1175  case "$ac_dir" in
1176  .) ac_abs_builddir=`pwd`;;
1177  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1178  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1179  esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_top_builddir=${ac_top_builddir}.;;
1183*)
1184  case ${ac_top_builddir}. in
1185  .) ac_abs_top_builddir=$ac_abs_builddir;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1187  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1188  esac;;
1189esac
1190case $ac_abs_builddir in
1191.) ac_abs_srcdir=$ac_srcdir;;
1192*)
1193  case $ac_srcdir in
1194  .) ac_abs_srcdir=$ac_abs_builddir;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1196  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1197  esac;;
1198esac
1199case $ac_abs_builddir in
1200.) ac_abs_top_srcdir=$ac_top_srcdir;;
1201*)
1202  case $ac_top_srcdir in
1203  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1204  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1205  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1206  esac;;
1207esac
1208
1209    cd $ac_dir
1210    # Check for guested configure; otherwise get Cygnus style configure.
1211    if test -f $ac_srcdir/configure.gnu; then
1212      echo
1213      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1214    elif test -f $ac_srcdir/configure; then
1215      echo
1216      $SHELL $ac_srcdir/configure  --help=recursive
1217    elif test -f $ac_srcdir/configure.ac ||
1218           test -f $ac_srcdir/configure.in; then
1219      echo
1220      $ac_configure --help
1221    else
1222      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1223    fi
1224    cd $ac_popdir
1225  done
1226fi
1227
1228test -n "$ac_init_help" && exit 0
1229if $ac_init_version; then
1230  cat <<\_ACEOF
1231Clp configure 0.1
1232generated by GNU Autoconf 2.59
1233
1234Copyright (C) 2003 Free Software Foundation, Inc.
1235This configure script is free software; the Free Software Foundation
1236gives unlimited permission to copy, distribute and modify it.
1237
1238
1239Copyright 2006 International Business Machines and others.
1240All Rights Reserved.
1241This file is part of the open source package Coin which is distributed
1242under the Common Public License.
1243_ACEOF
1244  exit 0
1245fi
1246exec 5>config.log
1247cat >&5 <<_ACEOF
1248This file contains any messages produced by compilers while
1249running configure, to aid debugging if configure makes a mistake.
1250
1251It was created by Clp $as_me 0.1, which was
1252generated by GNU Autoconf 2.59.  Invocation command line was
1253
1254  $ $0 $@
1255
1256_ACEOF
1257{
1258cat <<_ASUNAME
1259## --------- ##
1260## Platform. ##
1261## --------- ##
1262
1263hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1264uname -m = `(uname -m) 2>/dev/null || echo unknown`
1265uname -r = `(uname -r) 2>/dev/null || echo unknown`
1266uname -s = `(uname -s) 2>/dev/null || echo unknown`
1267uname -v = `(uname -v) 2>/dev/null || echo unknown`
1268
1269/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1270/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1271
1272/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1273/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1274/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1275hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1276/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1277/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1278/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1279
1280_ASUNAME
1281
1282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1283for as_dir in $PATH
1284do
1285  IFS=$as_save_IFS
1286  test -z "$as_dir" && as_dir=.
1287  echo "PATH: $as_dir"
1288done
1289
1290} >&5
1291
1292cat >&5 <<_ACEOF
1293
1294
1295## ----------- ##
1296## Core tests. ##
1297## ----------- ##
1298
1299_ACEOF
1300
1301
1302# Keep a trace of the command line.
1303# Strip out --no-create and --no-recursion so they do not pile up.
1304# Strip out --silent because we don't want to record it for future runs.
1305# Also quote any args containing shell meta-characters.
1306# Make two passes to allow for proper duplicate-argument suppression.
1307ac_configure_args=
1308ac_configure_args0=
1309ac_configure_args1=
1310ac_sep=
1311ac_must_keep_next=false
1312for ac_pass in 1 2
1313do
1314  for ac_arg
1315  do
1316    case $ac_arg in
1317    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1318    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1319    | -silent | --silent | --silen | --sile | --sil)
1320      continue ;;
1321    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1322      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1323    esac
1324    case $ac_pass in
1325    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1326    2)
1327      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1328      if test $ac_must_keep_next = true; then
1329        ac_must_keep_next=false # Got value, back to normal.
1330      else
1331        case $ac_arg in
1332          *=* | --config-cache | -C | -disable-* | --disable-* \
1333          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1334          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1335          | -with-* | --with-* | -without-* | --without-* | --x)
1336            case "$ac_configure_args0 " in
1337              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1338            esac
1339            ;;
1340          -* ) ac_must_keep_next=true ;;
1341        esac
1342      fi
1343      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1344      # Get rid of the leading space.
1345      ac_sep=" "
1346      ;;
1347    esac
1348  done
1349done
1350$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1351$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1352
1353# When interrupted or exit'd, cleanup temporary files, and complete
1354# config.log.  We remove comments because anyway the quotes in there
1355# would cause problems or look ugly.
1356# WARNING: Be sure not to use single quotes in there, as some shells,
1357# such as our DU 5.0 friend, will then `close' the trap.
1358trap 'exit_status=$?
1359  # Save into config.log some information that might help in debugging.
1360  {
1361    echo
1362
1363    cat <<\_ASBOX
1364## ---------------- ##
1365## Cache variables. ##
1366## ---------------- ##
1367_ASBOX
1368    echo
1369    # The following way of writing the cache mishandles newlines in values,
1370{
1371  (set) 2>&1 |
1372    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1373    *ac_space=\ *)
1374      sed -n \
1375        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1376          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1377      ;;
1378    *)
1379      sed -n \
1380        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1381      ;;
1382    esac;
1383}
1384    echo
1385
1386    cat <<\_ASBOX
1387## ----------------- ##
1388## Output variables. ##
1389## ----------------- ##
1390_ASBOX
1391    echo
1392    for ac_var in $ac_subst_vars
1393    do
1394      eval ac_val=$`echo $ac_var`
1395      echo "$ac_var='"'"'$ac_val'"'"'"
1396    done | sort
1397    echo
1398
1399    if test -n "$ac_subst_files"; then
1400      cat <<\_ASBOX
1401## ------------- ##
1402## Output files. ##
1403## ------------- ##
1404_ASBOX
1405      echo
1406      for ac_var in $ac_subst_files
1407      do
1408        eval ac_val=$`echo $ac_var`
1409        echo "$ac_var='"'"'$ac_val'"'"'"
1410      done | sort
1411      echo
1412    fi
1413
1414    if test -s confdefs.h; then
1415      cat <<\_ASBOX
1416## ----------- ##
1417## confdefs.h. ##
1418## ----------- ##
1419_ASBOX
1420      echo
1421      sed "/^$/d" confdefs.h | sort
1422      echo
1423    fi
1424    test "$ac_signal" != 0 &&
1425      echo "$as_me: caught signal $ac_signal"
1426    echo "$as_me: exit $exit_status"
1427  } >&5
1428  rm -f core *.core &&
1429  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1430    exit $exit_status
1431     ' 0
1432for ac_signal in 1 2 13 15; do
1433  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1434done
1435ac_signal=0
1436
1437# confdefs.h avoids OS command line length limits that DEFS can exceed.
1438rm -rf conftest* confdefs.h
1439# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1440echo >confdefs.h
1441
1442# Predefined preprocessor variables.
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_NAME "$PACKAGE_NAME"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_VERSION "$PACKAGE_VERSION"
1456_ACEOF
1457
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_STRING "$PACKAGE_STRING"
1461_ACEOF
1462
1463
1464cat >>confdefs.h <<_ACEOF
1465#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1466_ACEOF
1467
1468
1469# Let the site file select an alternate cache file if it wants to.
1470# Prefer explicitly selected file to automatically selected ones.
1471if test -z "$CONFIG_SITE"; then
1472  if test "x$prefix" != xNONE; then
1473    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1474  else
1475    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1476  fi
1477fi
1478for ac_site_file in $CONFIG_SITE; do
1479  if test -r "$ac_site_file"; then
1480    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1481echo "$as_me: loading site script $ac_site_file" >&6;}
1482    sed 's/^/| /' "$ac_site_file" >&5
1483    . "$ac_site_file"
1484  fi
1485done
1486
1487if test -r "$cache_file"; then
1488  # Some versions of bash will fail to source /dev/null (special
1489  # files actually), so we avoid doing that.
1490  if test -f "$cache_file"; then
1491    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1492echo "$as_me: loading cache $cache_file" >&6;}
1493    case $cache_file in
1494      [\\/]* | ?:[\\/]* ) . $cache_file;;
1495      *)                      . ./$cache_file;;
1496    esac
1497  fi
1498else
1499  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1500echo "$as_me: creating cache $cache_file" >&6;}
1501  >$cache_file
1502fi
1503
1504# Check that the precious variables saved in the cache have kept the same
1505# value.
1506ac_cache_corrupted=false
1507for ac_var in `(set) 2>&1 |
1508               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1509  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1510  eval ac_new_set=\$ac_env_${ac_var}_set
1511  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1512  eval ac_new_val="\$ac_env_${ac_var}_value"
1513  case $ac_old_set,$ac_new_set in
1514    set,)
1515      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1516echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1517      ac_cache_corrupted=: ;;
1518    ,set)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,);;
1523    *)
1524      if test "x$ac_old_val" != "x$ac_new_val"; then
1525        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1526echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1527        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1528echo "$as_me:   former value:  $ac_old_val" >&2;}
1529        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1530echo "$as_me:   current value: $ac_new_val" >&2;}
1531        ac_cache_corrupted=:
1532      fi;;
1533  esac
1534  # Pass precious variables to config.status.
1535  if test "$ac_new_set" = set; then
1536    case $ac_new_val in
1537    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1538      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1539    *) ac_arg=$ac_var=$ac_new_val ;;
1540    esac
1541    case " $ac_configure_args " in
1542      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1543      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1544    esac
1545  fi
1546done
1547if $ac_cache_corrupted; then
1548  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1549echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1550  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1551echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1552   { (exit 1); exit 1; }; }
1553fi
1554
1555ac_ext=c
1556ac_cpp='$CPP $CPPFLAGS'
1557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1559ac_compiler_gnu=$ac_cv_c_compiler_gnu
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590# List one file in the package so that the configure script can test
1591# whether the package is actually there
1592
1593
1594# Where should everything be installed by default?  Here, we want it
1595# to be installed directly in 'bin', 'lib', 'include' subdirectories
1596# of the directory where configure is run.  The default would be
1597# /usr/local.
1598
1599
1600#############################################################################
1601#                         Standard build tool stuff                         #
1602#############################################################################
1603
1604# Get the system type
1605ac_aux_dir=
1606for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607  if test -f $ac_dir/install-sh; then
1608    ac_aux_dir=$ac_dir
1609    ac_install_sh="$ac_aux_dir/install-sh -c"
1610    break
1611  elif test -f $ac_dir/install.sh; then
1612    ac_aux_dir=$ac_dir
1613    ac_install_sh="$ac_aux_dir/install.sh -c"
1614    break
1615  elif test -f $ac_dir/shtool; then
1616    ac_aux_dir=$ac_dir
1617    ac_install_sh="$ac_aux_dir/shtool install -c"
1618    break
1619  fi
1620done
1621if test -z "$ac_aux_dir"; then
1622  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624   { (exit 1); exit 1; }; }
1625fi
1626ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630# Make sure we can run config.sub.
1631$ac_config_sub sun4 >/dev/null 2>&1 ||
1632  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634   { (exit 1); exit 1; }; }
1635
1636echo "$as_me:$LINENO: checking build system type" >&5
1637echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638if test "${ac_cv_build+set}" = set; then
1639  echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641  ac_cv_build_alias=$build_alias
1642test -z "$ac_cv_build_alias" &&
1643  ac_cv_build_alias=`$ac_config_guess`
1644test -z "$ac_cv_build_alias" &&
1645  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647   { (exit 1); exit 1; }; }
1648ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651   { (exit 1); exit 1; }; }
1652
1653fi
1654echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655echo "${ECHO_T}$ac_cv_build" >&6
1656build=$ac_cv_build
1657build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662
1663# If this project depends on external projects, the Externals file in
1664# the source root directory contains definition of where to find those
1665# externals.  The following macro ensures that those externals are
1666# retrieved by svn if they are not there yet.
1667# Initialize the ADDLIBS variable
1668ADDLIBS='-lm'
1669
1670
1671# Initialize the FADDLIBS variable (which is to be used with a fortran
1672# compiler and will not include FLIBS)
1673FADDLIBS=
1674
1675
1676# A useful makefile conditional that is always false
1677
1678
1679if false; then
1680  ALWAYS_FALSE_TRUE=
1681  ALWAYS_FALSE_FALSE='#'
1682else
1683  ALWAYS_FALSE_TRUE='#'
1684  ALWAYS_FALSE_FALSE=
1685fi
1686
1687
1688# We set the following variable so that we know later in AC_COIN_FINALIZE
1689# that we are in a project main directory
1690coin_projectdir=yes
1691
1692
1693# Check if user wants to produce debugging code
1694
1695echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1696echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1697
1698# Check whether --enable-debug or --disable-debug was given.
1699if test "${enable_debug+set}" = set; then
1700  enableval="$enable_debug"
1701  case "${enableval}" in
1702   yes) coin_debug_compile=true
1703        enable_shared=no
1704        ;;
1705   no)  coin_debug_compile=false
1706        ;;
1707   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1708echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1709   { (exit 1); exit 1; }; }
1710        ;;
1711esac
1712else
1713  coin_debug_compile=false
1714fi;
1715
1716# Check whether --enable-debug-clp or --disable-debug-clp was given.
1717if test "${enable_debug_clp+set}" = set; then
1718  enableval="$enable_debug_clp"
1719  case "${enableval}" in
1720    yes) coin_debug_compile=true
1721         enable_shared=no
1722         ;;
1723    no)  coin_debug_compile=false
1724         ;;
1725    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1726echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1727   { (exit 1); exit 1; }; }
1728         ;;
1729 esac
1730else
1731  :
1732fi;
1733
1734 # m4_ifvaln([Clp],
1735
1736if test $coin_debug_compile = true; then
1737  echo "$as_me:$LINENO: result: yes" >&5
1738echo "${ECHO_T}yes" >&6
1739else
1740  echo "$as_me:$LINENO: result: no" >&5
1741echo "${ECHO_T}no" >&6
1742fi
1743
1744
1745# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1746if test "${with_clp_verbosity+set}" = set; then
1747  withval="$with_clp_verbosity"
1748  coin_clp_verbosity=$withval
1749else
1750  coin_clp_verbosity=0
1751fi;
1752
1753cat >>confdefs.h <<_ACEOF
1754#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1755_ACEOF
1756
1757
1758
1759# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1760if test "${with_clp_checklevel+set}" = set; then
1761  withval="$with_clp_checklevel"
1762  coin_clp_checklevel=$withval
1763else
1764  coin_clp_checklevel=0
1765fi;
1766
1767cat >>confdefs.h <<_ACEOF
1768#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1769_ACEOF
1770
1771
1772# We use the following variable to have a string with the upper case
1773# version of the project name
1774COIN_PRJCT=CLP
1775
1776
1777 # m4_ifvaln([Clp],
1778
1779
1780
1781# Get the name of the C++ compiler and appropriate compiler options
1782case $build in
1783  *-mingw*)
1784    if test "${LD+set}" = set; then :; else
1785      LD=link
1786    fi
1787    ;;
1788esac
1789
1790# Check whether --enable-doscompile or --disable-doscompile was given.
1791if test "${enable_doscompile+set}" = set; then
1792  enableval="$enable_doscompile"
1793  if test "$enable_doscompile = yes"; then
1794  case $build in
1795    *-cygwin*) ;;
1796    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
1797echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
1798   { (exit 1); exit 1; }; } ;;
1799  esac
1800fi
1801else
1802  enable_doscompile=no
1803fi;
1804
1805
1806
1807
1808ac_ext=c
1809ac_cpp='$CPP $CPPFLAGS'
1810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813
1814
1815# For consistency, we set the C compiler to the same value of the C++
1816# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1817if test x"$CXX" != x; then
1818  case "$CXX" in
1819    cl*)
1820      if test x"$CC" = x; then
1821        CC="$CXX"
1822        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1823echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1824      fi
1825      ;;
1826  esac
1827fi
1828
1829
1830
1831
1832
1833
1834coin_has_cc=yes
1835
1836save_cflags="$CFLAGS"
1837case $build in
1838  *-cygwin* | *-mingw*)
1839             comps="gcc cl" ;;
1840  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1841  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1842esac
1843
1844# We delete the cached value, since the test might not have been
1845# performed with out choise of compilers earlier
1846$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1847ac_ext=c
1848ac_cpp='$CPP $CPPFLAGS'
1849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852if test -n "$ac_tool_prefix"; then
1853  for ac_prog in $comps
1854  do
1855    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1856set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1857echo "$as_me:$LINENO: checking for $ac_word" >&5
1858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859if test "${ac_cv_prog_CC+set}" = set; then
1860  echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
1862  if test -n "$CC"; then
1863  ac_cv_prog_CC="$CC" # Let the user override the test.
1864else
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868  IFS=$as_save_IFS
1869  test -z "$as_dir" && as_dir=.
1870  for ac_exec_ext in '' $ac_executable_extensions; do
1871  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874    break 2
1875  fi
1876done
1877done
1878
1879fi
1880fi
1881CC=$ac_cv_prog_CC
1882if test -n "$CC"; then
1883  echo "$as_me:$LINENO: result: $CC" >&5
1884echo "${ECHO_T}$CC" >&6
1885else
1886  echo "$as_me:$LINENO: result: no" >&5
1887echo "${ECHO_T}no" >&6
1888fi
1889
1890    test -n "$CC" && break
1891  done
1892fi
1893if test -z "$CC"; then
1894  ac_ct_CC=$CC
1895  for ac_prog in $comps
1896do
1897  # Extract the first word of "$ac_prog", so it can be a program name with args.
1898set dummy $ac_prog; ac_word=$2
1899echo "$as_me:$LINENO: checking for $ac_word" >&5
1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1902  echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904  if test -n "$ac_ct_CC"; then
1905  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1906else
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  test -z "$as_dir" && as_dir=.
1912  for ac_exec_ext in '' $ac_executable_extensions; do
1913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914    ac_cv_prog_ac_ct_CC="$ac_prog"
1915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916    break 2
1917  fi
1918done
1919done
1920
1921fi
1922fi
1923ac_ct_CC=$ac_cv_prog_ac_ct_CC
1924if test -n "$ac_ct_CC"; then
1925  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1926echo "${ECHO_T}$ac_ct_CC" >&6
1927else
1928  echo "$as_me:$LINENO: result: no" >&5
1929echo "${ECHO_T}no" >&6
1930fi
1931
1932  test -n "$ac_ct_CC" && break
1933done
1934
1935  CC=$ac_ct_CC
1936fi
1937
1938
1939test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940See \`config.log' for more details." >&5
1941echo "$as_me: error: no acceptable C compiler found in \$PATH
1942See \`config.log' for more details." >&2;}
1943   { (exit 1); exit 1; }; }
1944
1945# Provide some information about the compiler.
1946echo "$as_me:$LINENO:" \
1947     "checking for C compiler version" >&5
1948ac_compiler=`set X $ac_compile; echo $2`
1949{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950  (eval $ac_compiler --version </dev/null >&5) 2>&5
1951  ac_status=$?
1952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953  (exit $ac_status); }
1954{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955  (eval $ac_compiler -v </dev/null >&5) 2>&5
1956  ac_status=$?
1957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958  (exit $ac_status); }
1959{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960  (eval $ac_compiler -V </dev/null >&5) 2>&5
1961  ac_status=$?
1962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963  (exit $ac_status); }
1964
1965cat >conftest.$ac_ext <<_ACEOF
1966/* confdefs.h.  */
1967_ACEOF
1968cat confdefs.h >>conftest.$ac_ext
1969cat >>conftest.$ac_ext <<_ACEOF
1970/* end confdefs.h.  */
1971
1972int
1973main ()
1974{
1975
1976  ;
1977  return 0;
1978}
1979_ACEOF
1980ac_clean_files_save=$ac_clean_files
1981ac_clean_files="$ac_clean_files a.out a.exe b.out"
1982# Try to create an executable without -o first, disregard a.out.
1983# It will help us diagnose broken compilers, and finding out an intuition
1984# of exeext.
1985echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1986echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1987ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1988if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1989  (eval $ac_link_default) 2>&5
1990  ac_status=$?
1991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992  (exit $ac_status); }; then
1993  # Find the output, starting from the most likely.  This scheme is
1994# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1995# resort.
1996
1997# Be careful to initialize this variable, since it used to be cached.
1998# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1999ac_cv_exeext=
2000# b.out is created by i960 compilers.
2001for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2002do
2003  test -f "$ac_file" || continue
2004  case $ac_file in
2005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2006        ;;
2007    conftest.$ac_ext )
2008        # This is the source file.
2009        ;;
2010    [ab].out )
2011        # We found the default executable, but exeext='' is most
2012        # certainly right.
2013        break;;
2014    *.* )
2015        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2016        # FIXME: I believe we export ac_cv_exeext for Libtool,
2017        # but it would be cool to find out if it's true.  Does anybody
2018        # maintain Libtool? --akim.
2019        export ac_cv_exeext
2020        break;;
2021    * )
2022        break;;
2023  esac
2024done
2025else
2026  echo "$as_me: failed program was:" >&5
2027sed 's/^/| /' conftest.$ac_ext >&5
2028
2029{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2030See \`config.log' for more details." >&5
2031echo "$as_me: error: C compiler cannot create executables
2032See \`config.log' for more details." >&2;}
2033   { (exit 77); exit 77; }; }
2034fi
2035
2036ac_exeext=$ac_cv_exeext
2037echo "$as_me:$LINENO: result: $ac_file" >&5
2038echo "${ECHO_T}$ac_file" >&6
2039
2040# Check the compiler produces executables we can run.  If not, either
2041# the compiler is broken, or we cross compile.
2042echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2043echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2044# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2045# If not cross compiling, check that we can run a simple program.
2046if test "$cross_compiling" != yes; then
2047  if { ac_try='./$ac_file'
2048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049  (eval $ac_try) 2>&5
2050  ac_status=$?
2051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052  (exit $ac_status); }; }; then
2053    cross_compiling=no
2054  else
2055    if test "$cross_compiling" = maybe; then
2056        cross_compiling=yes
2057    else
2058        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2059If you meant to cross compile, use \`--host'.
2060See \`config.log' for more details." >&5
2061echo "$as_me: error: cannot run C compiled programs.
2062If you meant to cross compile, use \`--host'.
2063See \`config.log' for more details." >&2;}
2064   { (exit 1); exit 1; }; }
2065    fi
2066  fi
2067fi
2068echo "$as_me:$LINENO: result: yes" >&5
2069echo "${ECHO_T}yes" >&6
2070
2071rm -f a.out a.exe conftest$ac_cv_exeext b.out
2072ac_clean_files=$ac_clean_files_save
2073# Check the compiler produces executables we can run.  If not, either
2074# the compiler is broken, or we cross compile.
2075echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2076echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2077echo "$as_me:$LINENO: result: $cross_compiling" >&5
2078echo "${ECHO_T}$cross_compiling" >&6
2079
2080echo "$as_me:$LINENO: checking for suffix of executables" >&5
2081echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2083  (eval $ac_link) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); }; then
2087  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2088# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2089# work properly (i.e., refer to `conftest.exe'), while it won't with
2090# `rm'.
2091for ac_file in conftest.exe conftest conftest.*; do
2092  test -f "$ac_file" || continue
2093  case $ac_file in
2094    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2095    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096          export ac_cv_exeext
2097          break;;
2098    * ) break;;
2099  esac
2100done
2101else
2102  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2103See \`config.log' for more details." >&5
2104echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2105See \`config.log' for more details." >&2;}
2106   { (exit 1); exit 1; }; }
2107fi
2108
2109rm -f conftest$ac_cv_exeext
2110echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2111echo "${ECHO_T}$ac_cv_exeext" >&6
2112
2113rm -f conftest.$ac_ext
2114EXEEXT=$ac_cv_exeext
2115ac_exeext=$EXEEXT
2116echo "$as_me:$LINENO: checking for suffix of object files" >&5
2117echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2118if test "${ac_cv_objext+set}" = set; then
2119  echo $ECHO_N "(cached) $ECHO_C" >&6
2120else
2121  cat >conftest.$ac_ext <<_ACEOF
2122/* confdefs.h.  */
2123_ACEOF
2124cat confdefs.h >>conftest.$ac_ext
2125cat >>conftest.$ac_ext <<_ACEOF
2126/* end confdefs.h.  */
2127
2128int
2129main ()
2130{
2131
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136rm -f conftest.o conftest.obj
2137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138  (eval $ac_compile) 2>&5
2139  ac_status=$?
2140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141  (exit $ac_status); }; then
2142  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2143  case $ac_file in
2144    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2145    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2146       break;;
2147  esac
2148done
2149else
2150  echo "$as_me: failed program was:" >&5
2151sed 's/^/| /' conftest.$ac_ext >&5
2152
2153{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2154See \`config.log' for more details." >&5
2155echo "$as_me: error: cannot compute suffix of object files: cannot compile
2156See \`config.log' for more details." >&2;}
2157   { (exit 1); exit 1; }; }
2158fi
2159
2160rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161fi
2162echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2163echo "${ECHO_T}$ac_cv_objext" >&6
2164OBJEXT=$ac_cv_objext
2165ac_objext=$OBJEXT
2166echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2167echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2168if test "${ac_cv_c_compiler_gnu+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h.  */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h.  */
2177
2178int
2179main ()
2180{
2181#ifndef __GNUC__
2182       choke me
2183#endif
2184
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189rm -f conftest.$ac_objext
2190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191  (eval $ac_compile) 2>conftest.er1
2192  ac_status=$?
2193  grep -v '^ *+' conftest.er1 >conftest.err
2194  rm -f conftest.er1
2195  cat conftest.err >&5
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); } &&
2198         { ac_try='test -z "$ac_c_werror_flag"
2199                         || test ! -s conftest.err'
2200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201  (eval $ac_try) 2>&5
2202  ac_status=$?
2203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204  (exit $ac_status); }; } &&
2205         { ac_try='test -s conftest.$ac_objext'
2206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207  (eval $ac_try) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; }; then
2211  ac_compiler_gnu=yes
2212else
2213  echo "$as_me: failed program was:" >&5
2214sed 's/^/| /' conftest.$ac_ext >&5
2215
2216ac_compiler_gnu=no
2217fi
2218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219ac_cv_c_compiler_gnu=$ac_compiler_gnu
2220
2221fi
2222echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2223echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2224GCC=`test $ac_compiler_gnu = yes && echo yes`
2225ac_test_CFLAGS=${CFLAGS+set}
2226ac_save_CFLAGS=$CFLAGS
2227CFLAGS="-g"
2228echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2229echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2230if test "${ac_cv_prog_cc_g+set}" = set; then
2231  echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233  cat >conftest.$ac_ext <<_ACEOF
2234/* confdefs.h.  */
2235_ACEOF
2236cat confdefs.h >>conftest.$ac_ext
2237cat >>conftest.$ac_ext <<_ACEOF
2238/* end confdefs.h.  */
2239
2240int
2241main ()
2242{
2243
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250  (eval $ac_compile) 2>conftest.er1
2251  ac_status=$?
2252  grep -v '^ *+' conftest.er1 >conftest.err
2253  rm -f conftest.er1
2254  cat conftest.err >&5
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); } &&
2257         { ac_try='test -z "$ac_c_werror_flag"
2258                         || test ! -s conftest.err'
2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260  (eval $ac_try) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; } &&
2264         { ac_try='test -s conftest.$ac_objext'
2265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266  (eval $ac_try) 2>&5
2267  ac_status=$?
2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269  (exit $ac_status); }; }; then
2270  ac_cv_prog_cc_g=yes
2271else
2272  echo "$as_me: failed program was:" >&5
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
2275ac_cv_prog_cc_g=no
2276fi
2277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278fi
2279echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2281if test "$ac_test_CFLAGS" = set; then
2282  CFLAGS=$ac_save_CFLAGS
2283elif test $ac_cv_prog_cc_g = yes; then
2284  if test "$GCC" = yes; then
2285    CFLAGS="-g -O2"
2286  else
2287    CFLAGS="-g"
2288  fi
2289else
2290  if test "$GCC" = yes; then
2291    CFLAGS="-O2"
2292  else
2293    CFLAGS=
2294  fi
2295fi
2296echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2297echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2298if test "${ac_cv_prog_cc_stdc+set}" = set; then
2299  echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301  ac_cv_prog_cc_stdc=no
2302ac_save_CC=$CC
2303cat >conftest.$ac_ext <<_ACEOF
2304/* confdefs.h.  */
2305_ACEOF
2306cat confdefs.h >>conftest.$ac_ext
2307cat >>conftest.$ac_ext <<_ACEOF
2308/* end confdefs.h.  */
2309#include <stdarg.h>
2310#include <stdio.h>
2311#include <sys/types.h>
2312#include <sys/stat.h>
2313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2314struct buf { int x; };
2315FILE * (*rcsopen) (struct buf *, struct stat *, int);
2316static char *e (p, i)
2317     char **p;
2318     int i;
2319{
2320  return p[i];
2321}
2322static char *f (char * (*g) (char **, int), char **p, ...)
2323{
2324  char *s;
2325  va_list v;
2326  va_start (v,p);
2327  s = g (p, va_arg (v,int));
2328  va_end (v);
2329  return s;
2330}
2331
2332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2333   function prototypes and stuff, but not '\xHH' hex character constants.
2334   These don't provoke an error unfortunately, instead are silently treated
2335   as 'x'.  The following induces an error, until -std1 is added to get
2336   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2337   array size at least.  It's necessary to write '\x00'==0 to get something
2338   that's true only with -std1.  */
2339int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2340
2341int test (int i, double x);
2342struct s1 {int (*f) (int a);};
2343struct s2 {int (*f) (double a);};
2344int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2345int argc;
2346char **argv;
2347int
2348main ()
2349{
2350return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2351  ;
2352  return 0;
2353}
2354_ACEOF
2355# Don't try gcc -ansi; that turns off useful extensions and
2356# breaks some systems' header files.
2357# AIX                   -qlanglvl=ansi
2358# Ultrix and OSF/1      -std1
2359# HP-UX 10.20 and later -Ae
2360# HP-UX older versions  -Aa -D_HPUX_SOURCE
2361# SVR4                  -Xc -D__EXTENSIONS__
2362for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2363do
2364  CC="$ac_save_CC $ac_arg"
2365  rm -f conftest.$ac_objext
2366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367  (eval $ac_compile) 2>conftest.er1
2368  ac_status=$?
2369  grep -v '^ *+' conftest.er1 >conftest.err
2370  rm -f conftest.er1
2371  cat conftest.err >&5
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); } &&
2374         { ac_try='test -z "$ac_c_werror_flag"
2375                         || test ! -s conftest.err'
2376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377  (eval $ac_try) 2>&5
2378  ac_status=$?
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); }; } &&
2381         { ac_try='test -s conftest.$ac_objext'
2382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383  (eval $ac_try) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; }; then
2387  ac_cv_prog_cc_stdc=$ac_arg
2388break
2389else
2390  echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393fi
2394rm -f conftest.err conftest.$ac_objext
2395done
2396rm -f conftest.$ac_ext conftest.$ac_objext
2397CC=$ac_save_CC
2398
2399fi
2400
2401case "x$ac_cv_prog_cc_stdc" in
2402  x|xno)
2403    echo "$as_me:$LINENO: result: none needed" >&5
2404echo "${ECHO_T}none needed" >&6 ;;
2405  *)
2406    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2407echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2408    CC="$CC $ac_cv_prog_cc_stdc" ;;
2409esac
2410
2411# Some people use a C++ compiler to compile C.  Since we use `exit',
2412# in C++ we need to declare it.  In case someone uses the same compiler
2413# for both compiling C and C++ we need to have the C++ compiler decide
2414# the declaration of exit, since it's the most demanding environment.
2415cat >conftest.$ac_ext <<_ACEOF
2416#ifndef __cplusplus
2417  choke me
2418#endif
2419_ACEOF
2420rm -f conftest.$ac_objext
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422  (eval $ac_compile) 2>conftest.er1
2423  ac_status=$?
2424  grep -v '^ *+' conftest.er1 >conftest.err
2425  rm -f conftest.er1
2426  cat conftest.err >&5
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); } &&
2429         { ac_try='test -z "$ac_c_werror_flag"
2430                         || test ! -s conftest.err'
2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432  (eval $ac_try) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }; } &&
2436         { ac_try='test -s conftest.$ac_objext'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; }; then
2442  for ac_declaration in \
2443   '' \
2444   'extern "C" void std::exit (int) throw (); using std::exit;' \
2445   'extern "C" void std::exit (int); using std::exit;' \
2446   'extern "C" void exit (int) throw ();' \
2447   'extern "C" void exit (int);' \
2448   'void exit (int);'
2449do
2450  cat >conftest.$ac_ext <<_ACEOF
2451/* confdefs.h.  */
2452_ACEOF
2453cat confdefs.h >>conftest.$ac_ext
2454cat >>conftest.$ac_ext <<_ACEOF
2455/* end confdefs.h.  */
2456$ac_declaration
2457#include <stdlib.h>
2458int
2459main ()
2460{
2461exit (42);
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466rm -f conftest.$ac_objext
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468  (eval $ac_compile) 2>conftest.er1
2469  ac_status=$?
2470  grep -v '^ *+' conftest.er1 >conftest.err
2471  rm -f conftest.er1
2472  cat conftest.err >&5
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); } &&
2475         { ac_try='test -z "$ac_c_werror_flag"
2476                         || test ! -s conftest.err'
2477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478  (eval $ac_try) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; } &&
2482         { ac_try='test -s conftest.$ac_objext'
2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484  (eval $ac_try) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; }; then
2488  :
2489else
2490  echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493continue
2494fi
2495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496  cat >conftest.$ac_ext <<_ACEOF
2497/* confdefs.h.  */
2498_ACEOF
2499cat confdefs.h >>conftest.$ac_ext
2500cat >>conftest.$ac_ext <<_ACEOF
2501/* end confdefs.h.  */
2502$ac_declaration
2503int
2504main ()
2505{
2506exit (42);
2507  ;
2508  return 0;
2509}
2510_ACEOF
2511rm -f conftest.$ac_objext
2512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513  (eval $ac_compile) 2>conftest.er1
2514  ac_status=$?
2515  grep -v '^ *+' conftest.er1 >conftest.err
2516  rm -f conftest.er1
2517  cat conftest.err >&5
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); } &&
2520         { ac_try='test -z "$ac_c_werror_flag"
2521                         || test ! -s conftest.err'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; } &&
2527         { ac_try='test -s conftest.$ac_objext'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; }; then
2533  break
2534else
2535  echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538fi
2539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2540done
2541rm -f conftest*
2542if test -n "$ac_declaration"; then
2543  echo '#ifdef __cplusplus' >>confdefs.h
2544  echo $ac_declaration      >>confdefs.h
2545  echo '#endif'             >>confdefs.h
2546fi
2547
2548else
2549  echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552fi
2553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554ac_ext=c
2555ac_cpp='$CPP $CPPFLAGS'
2556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559
2560CFLAGS="$save_cflags"
2561
2562# Check if a project specific CFLAGS variable has been set
2563if test x$COIN_PRJCT != x; then
2564  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2565  if test x$coin_tmp = xset; then
2566    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2567  fi
2568fi
2569
2570if test x"$CFLAGS" = x; then
2571
2572  coin_add_cflags=
2573  coin_opt_cflags=
2574  coin_dbg_cflags=
2575  coin_warn_cflags=
2576
2577  if test "$GCC" = "yes"; then
2578    case "$CC" in
2579      icc* | */icc*)
2580        ;;
2581      *)
2582        coin_opt_cflags="-O3 -fomit-frame-pointer"
2583        coin_add_cflags="-pipe"
2584        coin_dbg_cflags="-g"
2585        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2586        if test "$enable_doscompile" = yes; then
2587          case $build in
2588            *-cygwin*)
2589              CFLAGS="-mno-cygwin"
2590              cat >conftest.$ac_ext <<_ACEOF
2591/* confdefs.h.  */
2592_ACEOF
2593cat confdefs.h >>conftest.$ac_ext
2594cat >>conftest.$ac_ext <<_ACEOF
2595/* end confdefs.h.  */
2596
2597int
2598main ()
2599{
2600int i=0; i++;
2601  ;
2602  return 0;
2603}
2604_ACEOF
2605rm -f conftest.$ac_objext conftest$ac_exeext
2606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607  (eval $ac_link) 2>conftest.er1
2608  ac_status=$?
2609  grep -v '^ *+' conftest.er1 >conftest.err
2610  rm -f conftest.er1
2611  cat conftest.err >&5
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); } &&
2614         { ac_try='test -z "$ac_c_werror_flag"
2615                         || test ! -s conftest.err'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; } &&
2621         { ac_try='test -s conftest$ac_exeext'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; }; then
2627  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2628else
2629  echo "$as_me: failed program was:" >&5
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
2632fi
2633rm -f conftest.err conftest.$ac_objext \
2634      conftest$ac_exeext conftest.$ac_ext
2635              CFLAGS=
2636            ;;
2637          esac
2638        fi
2639    esac
2640  fi
2641  if test -z "$coin_opt_cflags"; then
2642    case $build in
2643      *-cygwin* | *-mingw*)
2644        case "$CC" in
2645          cl* | */cl*)
2646            coin_opt_cflags='-O2'
2647            coin_add_cflags='-nologo'
2648            coin_dbg_cflags='-Yd'
2649            ;;
2650        esac
2651        ;;
2652      *-linux-*)
2653        case "$CC" in
2654          icc* | */icc*)
2655            coin_opt_cflags="-O3 -ip"
2656            coin_add_cflags=""
2657            coin_dbg_cflags="-g"
2658            # Check if -i_dynamic is necessary (for new glibc library)
2659            CFLAGS=
2660            cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666
2667int
2668main ()
2669{
2670int i=0; i++;
2671  ;
2672  return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext conftest$ac_exeext
2676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2677  (eval $ac_link) 2>conftest.er1
2678  ac_status=$?
2679  grep -v '^ *+' conftest.er1 >conftest.err
2680  rm -f conftest.er1
2681  cat conftest.err >&5
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); } &&
2684         { ac_try='test -z "$ac_c_werror_flag"
2685                         || test ! -s conftest.err'
2686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687  (eval $ac_try) 2>&5
2688  ac_status=$?
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); }; } &&
2691         { ac_try='test -s conftest$ac_exeext'
2692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693  (eval $ac_try) 2>&5
2694  ac_status=$?
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); }; }; then
2697  :
2698else
2699  echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702coin_add_cflags="-i_dynamic $coin_add_cflags"
2703fi
2704rm -f conftest.err conftest.$ac_objext \
2705      conftest$ac_exeext conftest.$ac_ext
2706            ;;
2707          pgcc* | */pgcc*)
2708            coin_opt_cflags="-fast"
2709            coin_add_cflags="-Kieee -pc 64"
2710            coin_dbg_cflags="-g"
2711            ;;
2712        esac
2713        ;;
2714      *-ibm-*)
2715        case "$CC" in
2716          xlc* | */xlc* | mpxlc* | */mpxlc*)
2717            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2718            coin_add_cflags="-bmaxdata:0x80000000"
2719            coin_dbg_cflags="-g"
2720          ;;
2721        esac
2722        ;;
2723      *-hp-*)
2724        coin_opt_cflags="-O"
2725        coin_add_cflags="-Ae"
2726        coin_dbg_cflags="-g"
2727        ;;
2728      *-sun-*)
2729        coin_opt_cflags="-xO4"
2730        coin_dbg_cflags="-g"
2731        ;;
2732      *-sgi-*)
2733        coin_opt_cflags="-O -OPT:Olimit=0"
2734        coin_dbg_cflags="-g"
2735        ;;
2736    esac
2737  fi
2738
2739  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2740    coin_dbg_cflags="-g"
2741  fi
2742
2743  if test -z "$coin_opt_cflags"; then
2744    # Try if -O option works if nothing else is set
2745    CFLAGS="-O"
2746    cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h.  */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h.  */
2752
2753int
2754main ()
2755{
2756int i=0; i++;
2757  ;
2758  return 0;
2759}
2760_ACEOF
2761rm -f conftest.$ac_objext conftest$ac_exeext
2762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2763  (eval $ac_link) 2>conftest.er1
2764  ac_status=$?
2765  grep -v '^ *+' conftest.er1 >conftest.err
2766  rm -f conftest.er1
2767  cat conftest.err >&5
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); } &&
2770         { ac_try='test -z "$ac_c_werror_flag"
2771                         || test ! -s conftest.err'
2772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773  (eval $ac_try) 2>&5
2774  ac_status=$?
2775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776  (exit $ac_status); }; } &&
2777         { ac_try='test -s conftest$ac_exeext'
2778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779  (eval $ac_try) 2>&5
2780  ac_status=$?
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); }; }; then
2783  coin_opt_cflags="-O"
2784else
2785  echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788fi
2789rm -f conftest.err conftest.$ac_objext \
2790      conftest$ac_exeext conftest.$ac_ext
2791  fi
2792
2793  if test x${DBG_CFLAGS+set} != xset; then
2794    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2795  fi
2796  if test x${OPT_CFLAGS+set} != xset; then
2797    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2798  fi
2799
2800  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2801  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2802
2803  if test "$coin_debug_compile" = "true"; then
2804    CFLAGS="$DBG_CFLAGS"
2805  else
2806    CFLAGS="$OPT_CFLAGS"
2807  fi
2808else
2809  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2810  if test x${DBG_CFLAGS+set} != xset; then
2811    DBG_CFLAGS="$CFLAGS"
2812  fi
2813  if test x${OPT_CFLAGS+set} != xset; then
2814    OPT_CFLAGS="$CFLAGS"
2815  fi
2816fi
2817
2818# Check if user wants to have additional CFLAGS options
2819
2820if test x"$ADD_CFLAGS" != x; then
2821  CFLAGS="$CFLAGS $ADD_CFLAGS"
2822fi
2823
2824# Try if CFLAGS works
2825save_CFLAGS="$CFLAGS"
2826cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832
2833int
2834main ()
2835{
2836int i=0; i++;
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext conftest$ac_exeext
2842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2843  (eval $ac_link) 2>conftest.er1
2844  ac_status=$?
2845  grep -v '^ *+' conftest.er1 >conftest.err
2846  rm -f conftest.er1
2847  cat conftest.err >&5
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); } &&
2850         { ac_try='test -z "$ac_c_werror_flag"
2851                         || test ! -s conftest.err'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; } &&
2857         { ac_try='test -s conftest$ac_exeext'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; }; then
2863  :
2864else
2865  echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868CFLAGS=
2869fi
2870rm -f conftest.err conftest.$ac_objext \
2871      conftest$ac_exeext conftest.$ac_ext
2872if test -z "$CFLAGS"; then
2873  { 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
2874echo "$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;}
2875  CFLAGS='-O'
2876  cat >conftest.$ac_ext <<_ACEOF
2877/* confdefs.h.  */
2878_ACEOF
2879cat confdefs.h >>conftest.$ac_ext
2880cat >>conftest.$ac_ext <<_ACEOF
2881/* end confdefs.h.  */
2882
2883int
2884main ()
2885{
2886int i=0; i++;
2887  ;
2888  return 0;
2889}
2890_ACEOF
2891rm -f conftest.$ac_objext conftest$ac_exeext
2892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2893  (eval $ac_link) 2>conftest.er1
2894  ac_status=$?
2895  grep -v '^ *+' conftest.er1 >conftest.err
2896  rm -f conftest.er1
2897  cat conftest.err >&5
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); } &&
2900         { ac_try='test -z "$ac_c_werror_flag"
2901                         || test ! -s conftest.err'
2902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903  (eval $ac_try) 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; } &&
2907         { ac_try='test -s conftest$ac_exeext'
2908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909  (eval $ac_try) 2>&5
2910  ac_status=$?
2911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912  (exit $ac_status); }; }; then
2913  :
2914else
2915  echo "$as_me: failed program was:" >&5
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
2918CFLAGS=
2919fi
2920rm -f conftest.err conftest.$ac_objext \
2921      conftest$ac_exeext conftest.$ac_ext
2922  if test -z "$CFLAGS"; then
2923    { 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
2924echo "$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;}
2925  fi
2926fi
2927
2928{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2929echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2930
2931
2932if test x"$MPICC" = x; then :; else
2933  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2934echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2935  CC="$MPICC"
2936fi
2937
2938# Correct ADDLIBS initialization if we are using the MS compiler
2939case "$CC" in
2940  cl*)
2941    ADDLIBS=
2942    case $build in
2943  *-mingw*)
2944    if test "${LD+set}" = set; then :; else
2945      LD=link
2946    fi
2947    ;;
2948esac
2949
2950    ;;
2951esac
2952
2953ac_ext=c
2954ac_cpp='$CPP $CPPFLAGS'
2955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958
2959
2960
2961 #Let's try if that overcomes configuration problem with VC++ 6.0
2962
2963ac_ext=cc
2964ac_cpp='$CXXCPP $CPPFLAGS'
2965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2968
2969
2970
2971
2972
2973
2974
2975coin_has_cxx=yes
2976
2977save_cxxflags="$CXXFLAGS"
2978case $build in
2979  *-cygwin* | *-mingw*)
2980             comps="g++ cl" ;;
2981  *-darwin*) comps="g++ c++ CC" ;;
2982          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
2983esac
2984
2985# We delete the cached value, since the test might not have been
2986# performed with out choise of compilers earlier
2987$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
2988ac_ext=cc
2989ac_cpp='$CXXCPP $CPPFLAGS'
2990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2993if test -n "$ac_tool_prefix"; then
2994  for ac_prog in $CCC $comps
2995  do
2996    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998echo "$as_me:$LINENO: checking for $ac_word" >&5
2999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3000if test "${ac_cv_prog_CXX+set}" = set; then
3001  echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003  if test -n "$CXX"; then
3004  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009  IFS=$as_save_IFS
3010  test -z "$as_dir" && as_dir=.
3011  for ac_exec_ext in '' $ac_executable_extensions; do
3012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3015    break 2
3016  fi
3017done
3018done
3019
3020fi
3021fi
3022CXX=$ac_cv_prog_CXX
3023if test -n "$CXX"; then
3024  echo "$as_me:$LINENO: result: $CXX" >&5
3025echo "${ECHO_T}$CXX" >&6
3026else
3027  echo "$as_me:$LINENO: result: no" >&5
3028echo "${ECHO_T}no" >&6
3029fi
3030
3031    test -n "$CXX" && break
3032  done
3033fi
3034if test -z "$CXX"; then
3035  ac_ct_CXX=$CXX
3036  for ac_prog in $CCC $comps
3037do
3038  # Extract the first word of "$ac_prog", so it can be a program name with args.
3039set dummy $ac_prog; ac_word=$2
3040echo "$as_me:$LINENO: checking for $ac_word" >&5
3041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3042if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3043  echo $ECHO_N "(cached) $ECHO_C" >&6
3044else
3045  if test -n "$ac_ct_CXX"; then
3046  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3047else
3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049for as_dir in $PATH
3050do
3051  IFS=$as_save_IFS
3052  test -z "$as_dir" && as_dir=.
3053  for ac_exec_ext in '' $ac_executable_extensions; do
3054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055    ac_cv_prog_ac_ct_CXX="$ac_prog"
3056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057    break 2
3058  fi
3059done
3060done
3061
3062fi
3063fi
3064ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3065if test -n "$ac_ct_CXX"; then
3066  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3067echo "${ECHO_T}$ac_ct_CXX" >&6
3068else
3069  echo "$as_me:$LINENO: result: no" >&5
3070echo "${ECHO_T}no" >&6
3071fi
3072
3073  test -n "$ac_ct_CXX" && break
3074done
3075test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3076
3077  CXX=$ac_ct_CXX
3078fi
3079
3080
3081# Provide some information about the compiler.
3082echo "$as_me:$LINENO:" \
3083     "checking for C++ compiler version" >&5
3084ac_compiler=`set X $ac_compile; echo $2`
3085{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3086  (eval $ac_compiler --version </dev/null >&5) 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }
3090{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3091  (eval $ac_compiler -v </dev/null >&5) 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }
3095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3096  (eval $ac_compiler -V </dev/null >&5) 2>&5
3097  ac_status=$?
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); }
3100
3101echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3102echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3103if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3104  echo $ECHO_N "(cached) $ECHO_C" >&6
3105else
3106  cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h.  */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h.  */
3112
3113int
3114main ()
3115{
3116#ifndef __GNUC__
3117       choke me
3118#endif
3119
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124rm -f conftest.$ac_objext
3125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126  (eval $ac_compile) 2>conftest.er1
3127  ac_status=$?
3128  grep -v '^ *+' conftest.er1 >conftest.err
3129  rm -f conftest.er1
3130  cat conftest.err >&5
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); } &&
3133         { ac_try='test -z "$ac_cxx_werror_flag"
3134                         || test ! -s conftest.err'
3135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136  (eval $ac_try) 2>&5
3137  ac_status=$?
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); }; } &&
3140         { ac_try='test -s conftest.$ac_objext'
3141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142  (eval $ac_try) 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; }; then
3146  ac_compiler_gnu=yes
3147else
3148  echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151ac_compiler_gnu=no
3152fi
3153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3154ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3155
3156fi
3157echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3158echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3159GXX=`test $ac_compiler_gnu = yes && echo yes`
3160ac_test_CXXFLAGS=${CXXFLAGS+set}
3161ac_save_CXXFLAGS=$CXXFLAGS
3162CXXFLAGS="-g"
3163echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3164echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3165if test "${ac_cv_prog_cxx_g+set}" = set; then
3166  echo $ECHO_N "(cached) $ECHO_C" >&6
3167else
3168  cat >conftest.$ac_ext <<_ACEOF
3169/* confdefs.h.  */
3170_ACEOF
3171cat confdefs.h >>conftest.$ac_ext
3172cat >>conftest.$ac_ext <<_ACEOF
3173/* end confdefs.h.  */
3174
3175int
3176main ()
3177{
3178
3179  ;
3180  return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext
3184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185  (eval $ac_compile) 2>conftest.er1
3186  ac_status=$?
3187  grep -v '^ *+' conftest.er1 >conftest.err
3188  rm -f conftest.er1
3189  cat conftest.err >&5
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); } &&
3192         { ac_try='test -z "$ac_cxx_werror_flag"
3193                         || test ! -s conftest.err'
3194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195  (eval $ac_try) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }; } &&
3199         { ac_try='test -s conftest.$ac_objext'
3200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201  (eval $ac_try) 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }; }; then
3205  ac_cv_prog_cxx_g=yes
3206else
3207  echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210ac_cv_prog_cxx_g=no
3211fi
3212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
3214echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3215echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3216if test "$ac_test_CXXFLAGS" = set; then
3217  CXXFLAGS=$ac_save_CXXFLAGS
3218elif test $ac_cv_prog_cxx_g = yes; then
3219  if test "$GXX" = yes; then
3220    CXXFLAGS="-g -O2"
3221  else
3222    CXXFLAGS="-g"
3223  fi
3224else
3225  if test "$GXX" = yes; then
3226    CXXFLAGS="-O2"
3227  else
3228    CXXFLAGS=
3229  fi
3230fi
3231for ac_declaration in \
3232   '' \
3233   'extern "C" void std::exit (int) throw (); using std::exit;' \
3234   'extern "C" void std::exit (int); using std::exit;' \
3235   'extern "C" void exit (int) throw ();' \
3236   'extern "C" void exit (int);' \
3237   'void exit (int);'
3238do
3239  cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h.  */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h.  */
3245$ac_declaration
3246#include <stdlib.h>
3247int
3248main ()
3249{
3250exit (42);
3251  ;
3252  return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257  (eval $ac_compile) 2>conftest.er1
3258  ac_status=$?
3259  grep -v '^ *+' conftest.er1 >conftest.err
3260  rm -f conftest.er1
3261  cat conftest.err >&5
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); } &&
3264         { ac_try='test -z "$ac_cxx_werror_flag"
3265                         || test ! -s conftest.err'
3266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267  (eval $ac_try) 2>&5
3268  ac_status=$?
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); }; } &&
3271         { ac_try='test -s conftest.$ac_objext'
3272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273  (eval $ac_try) 2>&5
3274  ac_status=$?
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; }; then
3277  :
3278else
3279  echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282continue
3283fi
3284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285  cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h.  */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h.  */
3291$ac_declaration
3292int
3293main ()
3294{
3295exit (42);
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300rm -f conftest.$ac_objext
3301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302  (eval $ac_compile) 2>conftest.er1
3303  ac_status=$?
3304  grep -v '^ *+' conftest.er1 >conftest.err
3305  rm -f conftest.er1
3306  cat conftest.err >&5
3307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308  (exit $ac_status); } &&
3309         { ac_try='test -z "$ac_cxx_werror_flag"
3310                         || test ! -s conftest.err'
3311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312  (eval $ac_try) 2>&5
3313  ac_status=$?
3314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315  (exit $ac_status); }; } &&
3316         { ac_try='test -s conftest.$ac_objext'
3317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318  (eval $ac_try) 2>&5
3319  ac_status=$?
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); }; }; then
3322  break
3323else
3324  echo "$as_me: failed program was:" >&5
3325sed 's/^/| /' conftest.$ac_ext >&5
3326
3327fi
3328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3329done
3330rm -f conftest*
3331if test -n "$ac_declaration"; then
3332  echo '#ifdef __cplusplus' >>confdefs.h
3333  echo $ac_declaration      >>confdefs.h
3334  echo '#endif'             >>confdefs.h
3335fi
3336
3337ac_ext=cc
3338ac_cpp='$CXXCPP $CPPFLAGS'
3339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3342
3343CXXFLAGS="$save_cxxflags"
3344
3345# Check if a project specific CXXFLAGS variable has been set
3346if test x$COIN_PRJCT != x; then
3347  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3348  if test x$coin_tmp = xset; then
3349    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3350  fi
3351fi
3352
3353if test x"$CXXFLAGS" = x; then
3354
3355# ToDo decide whether we want -DNDEBUG for optimization
3356  coin_add_cxxflags=
3357  coin_opt_cxxflags=
3358  coin_dbg_cxxflags=
3359  coin_warn_cxxflags=
3360
3361  if test "$GXX" = "yes"; then
3362    case "$CXX" in
3363      icpc* | */icpc*)
3364        ;;
3365      *)
3366# ToDo decide about unroll-loops
3367        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3368        coin_add_cxxflags="-pipe"
3369        coin_dbg_cxxflags="-g"
3370        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3371        if test "$enable_doscompile" = yes; then
3372          case $build in
3373            *-cygwin*)
3374              CXXFLAGS="-mno-cygwin"
3375              cat >conftest.$ac_ext <<_ACEOF
3376/* confdefs.h.  */
3377_ACEOF
3378cat confdefs.h >>conftest.$ac_ext
3379cat >>conftest.$ac_ext <<_ACEOF
3380/* end confdefs.h.  */
3381
3382int
3383main ()
3384{
3385int i=0; i++;
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390rm -f conftest.$ac_objext conftest$ac_exeext
3391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3392  (eval $ac_link) 2>conftest.er1
3393  ac_status=$?
3394  grep -v '^ *+' conftest.er1 >conftest.err
3395  rm -f conftest.er1
3396  cat conftest.err >&5
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); } &&
3399         { ac_try='test -z "$ac_cxx_werror_flag"
3400                         || test ! -s conftest.err'
3401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402  (eval $ac_try) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); }; } &&
3406         { ac_try='test -s conftest$ac_exeext'
3407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408  (eval $ac_try) 2>&5
3409  ac_status=$?
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }; }; then
3412  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3413else
3414  echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417fi
3418rm -f conftest.err conftest.$ac_objext \
3419      conftest$ac_exeext conftest.$ac_ext
3420              CXXFLAGS=
3421              ;;
3422          esac
3423        fi
3424    esac
3425  fi
3426  if test -z "$coin_opt_cxxflags"; then
3427    case $build in
3428      *-cygwin* | *-mingw*)
3429        case "$CXX" in
3430          cl* | */cl*)
3431            coin_opt_cxxflags='-O2'
3432            coin_add_cxxflags='-nologo -EHsc -GR -MT'
3433            coin_dbg_cxxflags='-Yd'
3434            ;;
3435        esac
3436        ;;
3437      *-linux-*)
3438        case "$CXX" in
3439          icpc* | */icpc*)
3440            coin_opt_cxxflags="-O3 -ip"
3441            coin_add_cxxflags=""
3442            coin_dbg_cxxflags="-g"
3443            # Check if -i_dynamic is necessary (for new glibc library)
3444            CXXFLAGS=
3445            cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h.  */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h.  */
3451
3452int
3453main ()
3454{
3455int i=0; i++;
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460rm -f conftest.$ac_objext conftest$ac_exeext
3461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3462  (eval $ac_link) 2>conftest.er1
3463  ac_status=$?
3464  grep -v '^ *+' conftest.er1 >conftest.err
3465  rm -f conftest.er1
3466  cat conftest.err >&5
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); } &&
3469         { ac_try='test -z "$ac_cxx_werror_flag"
3470                         || test ! -s conftest.err'
3471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472  (eval $ac_try) 2>&5
3473  ac_status=$?
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); }; } &&
3476         { ac_try='test -s conftest$ac_exeext'
3477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478  (eval $ac_try) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }; }; then
3482  :
3483else
3484  echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3488fi
3489rm -f conftest.err conftest.$ac_objext \
3490      conftest$ac_exeext conftest.$ac_ext
3491            ;;
3492          pgCC* | */pgCC*)
3493            coin_opt_cxxflags="-fast"
3494            coin_add_cxxflags="-Kieee -pc 64"
3495            coin_dbg_cxxflags="-g"
3496            ;;
3497        esac
3498        ;;
3499      *-ibm-*)
3500        case "$CXX" in
3501          xlC* | */xlC* | mpxlC* | */mpxlC*)
3502            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3503            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3504            coin_dbg_cxxflags="-g"
3505            ;;
3506        esac
3507        ;;
3508      *-hp-*)
3509        case "$CXX" in
3510          aCC* | */aCC* )
3511            coin_opt_cxxflags="-O"
3512            coin_add_cxxflags="-AA"
3513            coin_dbg_cxxflags="-g"
3514            ;;
3515        esac
3516        ;;
3517      *-sun-*)
3518          coin_opt_cxxflags="-O4"
3519          coin_dbg_cxxflags="-g"
3520        ;;
3521    esac
3522  fi
3523
3524  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3525    coin_dbg_cxxflags="-g"
3526  fi
3527
3528  if test -z "$coin_opt_cxxflags"; then
3529    # Try if -O option works if nothing else is set
3530    CXXFLAGS=-O
3531    cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h.  */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541int i=0; i++;
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546rm -f conftest.$ac_objext conftest$ac_exeext
3547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3548  (eval $ac_link) 2>conftest.er1
3549  ac_status=$?
3550  grep -v '^ *+' conftest.er1 >conftest.err
3551  rm -f conftest.er1
3552  cat conftest.err >&5
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); } &&
3555         { ac_try='test -z "$ac_cxx_werror_flag"
3556                         || test ! -s conftest.err'
3557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558  (eval $ac_try) 2>&5
3559  ac_status=$?
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); }; } &&
3562         { ac_try='test -s conftest$ac_exeext'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; }; then
3568  coin_opt_cxxflags="-O"
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573fi
3574rm -f conftest.err conftest.$ac_objext \
3575      conftest$ac_exeext conftest.$ac_ext
3576  fi
3577
3578  if test x${DBG_CXXFLAGS+set} != xset; then
3579    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3580  fi
3581  if test x${OPT_CXXFLAGS+set} != xset; then
3582    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3583  fi
3584
3585  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3586  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3587
3588  if test "$coin_debug_compile" = "true"; then
3589    CXXFLAGS="$DBG_CXXFLAGS"
3590  else
3591    CXXFLAGS="$OPT_CXXFLAGS"
3592  fi
3593else
3594  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3595  if test x${DBG_CXXFLAGS+set} != xset; then
3596    DBG_CXXFLAGS="$CXXFLAGS"
3597  fi
3598  if test x${OPT_CXXFLAGS+set} != xset; then
3599    OPT_CXXFLAGS="$CXXFLAGS"
3600  fi
3601fi
3602
3603# Try if CXXFLAGS works
3604save_CXXFLAGS="$CXXFLAGS"
3605cat >conftest.$ac_ext <<_ACEOF
3606/* confdefs.h.  */
3607_ACEOF
3608cat confdefs.h >>conftest.$ac_ext
3609cat >>conftest.$ac_ext <<_ACEOF
3610/* end confdefs.h.  */
3611
3612int
3613main ()
3614{
3615int i=0; i++;
3616  ;
3617  return 0;
3618}
3619_ACEOF
3620rm -f conftest.$ac_objext conftest$ac_exeext
3621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3622  (eval $ac_link) 2>conftest.er1
3623  ac_status=$?
3624  grep -v '^ *+' conftest.er1 >conftest.err
3625  rm -f conftest.er1
3626  cat conftest.err >&5
3627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); } &&
3629         { ac_try='test -z "$ac_cxx_werror_flag"
3630                         || test ! -s conftest.err'
3631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632  (eval $ac_try) 2>&5
3633  ac_status=$?
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); }; } &&
3636         { ac_try='test -s conftest$ac_exeext'
3637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638  (eval $ac_try) 2>&5
3639  ac_status=$?
3640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641  (exit $ac_status); }; }; then
3642  :
3643else
3644  echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647CXXFLAGS=
3648fi
3649rm -f conftest.err conftest.$ac_objext \
3650      conftest$ac_exeext conftest.$ac_ext
3651if test -z "$CXXFLAGS"; then
3652  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
3653echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
3654  CXXFLAGS='-O'
3655  cat >conftest.$ac_ext <<_ACEOF
3656/* confdefs.h.  */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h.  */
3661
3662int
3663main ()
3664{
3665int i=0; i++;
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670rm -f conftest.$ac_objext conftest$ac_exeext
3671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3672  (eval $ac_link) 2>conftest.er1
3673  ac_status=$?
3674  grep -v '^ *+' conftest.er1 >conftest.err
3675  rm -f conftest.er1
3676  cat conftest.err >&5
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); } &&
3679         { ac_try='test -z "$ac_cxx_werror_flag"
3680                         || test ! -s conftest.err'
3681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682  (eval $ac_try) 2>&5
3683  ac_status=$?
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); }; } &&
3686         { ac_try='test -s conftest$ac_exeext'
3687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688  (eval $ac_try) 2>&5
3689  ac_status=$?
3690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); }; }; then
3692  :
3693else
3694  echo "$as_me: failed program was:" >&5
3695sed 's/^/| /' conftest.$ac_ext >&5
3696
3697CXXFLAGS=
3698fi
3699rm -f conftest.err conftest.$ac_objext \
3700      conftest$ac_exeext conftest.$ac_ext
3701  if test -z "$CXXFLAGS"; then
3702    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
3703echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
3704  fi
3705fi
3706
3707{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3708echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3709
3710
3711if test x"$MPICXX" = x; then :; else
3712  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3713echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3714  CXX="$MPICXX"
3715fi
3716
3717case "$CXX" in
3718  cl*)
3719    case $build in
3720  *-mingw*)
3721    if test "${LD+set}" = set; then :; else
3722      LD=link
3723    fi
3724    ;;
3725esac
3726
3727    ;;
3728esac
3729
3730ac_ext=c
3731ac_cpp='$CPP $CPPFLAGS'
3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735
3736
3737
3738# Initialize automake and libtool
3739
3740# On Cygwin, building DLLs doesn't work
3741case $build in
3742  *-cygwin*)
3743    coin_disable_shared=yes
3744    platform=Cygwin
3745  ;;
3746  *-mingw*)
3747    coin_disable_shared=yes
3748    platform="Msys"
3749#    case "$CXX" in
3750#      cl*)
3751#        coin_disable_shared=yes
3752#        platform="Msys with cl"
3753#    ;;
3754#    esac
3755  ;;
3756esac
3757if test x"$coin_disable_shared" = xyes; then
3758  if test x"$enable_shared" = xyes; then
3759    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3760echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3761  fi
3762  enable_shared=no
3763fi
3764# By default, we only want the shared objects to be compiled
3765# Check whether --enable-static or --disable-static was given.
3766if test "${enable_static+set}" = set; then
3767  enableval="$enable_static"
3768  p=${PACKAGE-default}
3769    case $enableval in
3770    yes) enable_static=yes ;;
3771    no) enable_static=no ;;
3772    *)
3773     enable_static=no
3774      # Look at the argument we got.  We use all the common list separators.
3775      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3776      for pkg in $enableval; do
3777        IFS="$lt_save_ifs"
3778        if test "X$pkg" = "X$p"; then
3779          enable_static=yes
3780        fi
3781      done
3782      IFS="$lt_save_ifs"
3783      ;;
3784    esac
3785else
3786  enable_static=no
3787fi;
3788
3789
3790
3791echo "$as_me:$LINENO: checking for egrep" >&5
3792echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3793if test "${ac_cv_prog_egrep+set}" = set; then
3794  echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3797    then ac_cv_prog_egrep='grep -E'
3798    else ac_cv_prog_egrep='egrep'
3799    fi
3800fi
3801echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3802echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3803 EGREP=$ac_cv_prog_egrep
3804
3805
3806am__api_version="1.9"
3807# Find a good install program.  We prefer a C program (faster),
3808# so one script is as good as another.  But avoid the broken or
3809# incompatible versions:
3810# SysV /etc/install, /usr/sbin/install
3811# SunOS /usr/etc/install
3812# IRIX /sbin/install
3813# AIX /bin/install
3814# AmigaOS /C/install, which installs bootblocks on floppy discs
3815# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3816# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3817# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3818# OS/2's system install, which has a completely different semantic
3819# ./install, which can be erroneously created by make from ./install.sh.
3820echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3821echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3822if test -z "$INSTALL"; then
3823if test "${ac_cv_path_install+set}" = set; then
3824  echo $ECHO_N "(cached) $ECHO_C" >&6
3825else
3826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829  IFS=$as_save_IFS
3830  test -z "$as_dir" && as_dir=.
3831  # Account for people who put trailing slashes in PATH elements.
3832case $as_dir/ in
3833  ./ | .// | /cC/* | \
3834  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3835  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3836  /usr/ucb/* ) ;;
3837  *)
3838    # OSF1 and SCO ODT 3.0 have their own names for install.
3839    # Don't use installbsd from OSF since it installs stuff as root
3840    # by default.
3841    for ac_prog in ginstall scoinst install; do
3842      for ac_exec_ext in '' $ac_executable_extensions; do
3843        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3844          if test $ac_prog = install &&
3845            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3846            # AIX install.  It has an incompatible calling convention.
3847            :
3848          elif test $ac_prog = install &&
3849            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3850            # program-specific install script used by HP pwplus--don't use.
3851            :
3852          else
3853            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3854            break 3
3855          fi
3856        fi
3857      done
3858    done
3859    ;;
3860esac
3861done
3862
3863
3864fi
3865  if test "${ac_cv_path_install+set}" = set; then
3866    INSTALL=$ac_cv_path_install
3867  else
3868    # As a last resort, use the slow shell script.  We don't cache a
3869    # path for INSTALL within a source directory, because that will
3870    # break other packages using the cache if that directory is
3871    # removed, or if the path is relative.
3872    INSTALL=$ac_install_sh
3873  fi
3874fi
3875echo "$as_me:$LINENO: result: $INSTALL" >&5
3876echo "${ECHO_T}$INSTALL" >&6
3877
3878# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3879# It thinks the first close brace ends the variable substitution.
3880test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3881
3882test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3883
3884test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3885
3886echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3887echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3888# Just in case
3889sleep 1
3890echo timestamp > conftest.file
3891# Do `set' in a subshell so we don't clobber the current shell's
3892# arguments.  Must try -L first in case configure is actually a
3893# symlink; some systems play weird games with the mod time of symlinks
3894# (eg FreeBSD returns the mod time of the symlink's containing
3895# directory).
3896if (
3897   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3898   if test "$*" = "X"; then
3899      # -L didn't work.
3900      set X `ls -t $srcdir/configure conftest.file`
3901   fi
3902   rm -f conftest.file
3903   if test "$*" != "X $srcdir/configure conftest.file" \
3904      && test "$*" != "X conftest.file $srcdir/configure"; then
3905
3906      # If neither matched, then we have a broken ls.  This can happen
3907      # if, for instance, CONFIG_SHELL is bash and it inherits a
3908      # broken ls alias from the environment.  This has actually
3909      # happened.  Such a system could not be considered "sane".
3910      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3911alias in your environment" >&5
3912echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3913alias in your environment" >&2;}
3914   { (exit 1); exit 1; }; }
3915   fi
3916
3917   test "$2" = conftest.file
3918   )
3919then
3920   # Ok.
3921   :
3922else
3923   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3924Check your system clock" >&5
3925echo "$as_me: error: newly created file is older than distributed files!
3926Check your system clock" >&2;}
3927   { (exit 1); exit 1; }; }
3928fi
3929echo "$as_me:$LINENO: result: yes" >&5
3930echo "${ECHO_T}yes" >&6
3931test "$program_prefix" != NONE &&
3932  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3933# Use a double $ so make ignores it.
3934test "$program_suffix" != NONE &&
3935  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3936# Double any \ or $.  echo might interpret backslashes.
3937# By default was `s,x,x', remove it if useless.
3938cat <<\_ACEOF >conftest.sed
3939s/[\\$]/&&/g;s/;s,x,x,$//
3940_ACEOF
3941program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3942rm conftest.sed
3943
3944# expand $ac_aux_dir to an absolute path
3945am_aux_dir=`cd $ac_aux_dir && pwd`
3946
3947test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3948# Use eval to expand $SHELL
3949if eval "$MISSING --run true"; then
3950  am_missing_run="$MISSING --run "
3951else
3952  am_missing_run=
3953  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3954echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3955fi
3956
3957if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3958  # We used to keeping the `.' as first argument, in order to
3959  # allow $(mkdir_p) to be used without argument.  As in
3960  #   $(mkdir_p) $(somedir)
3961  # where $(somedir) is conditionally defined.  However this is wrong
3962  # for two reasons:
3963  #  1. if the package is installed by a user who cannot write `.'
3964  #     make install will fail,
3965  #  2. the above comment should most certainly read
3966  #     $(mkdir_p) $(DESTDIR)$(somedir)
3967  #     so it does not work when $(somedir) is undefined and
3968  #     $(DESTDIR) is not.
3969  #  To support the latter case, we have to write
3970  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3971  #  so the `.' trick is pointless.
3972  mkdir_p='mkdir -p --'
3973else
3974  # On NextStep and OpenStep, the `mkdir' command does not
3975  # recognize any option.  It will interpret all options as
3976  # directories to create, and then abort because `.' already
3977  # exists.
3978  for d in ./-p ./--version;
3979  do
3980    test -d $d && rmdir $d
3981  done
3982  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3983  if test -f "$ac_aux_dir/mkinstalldirs"; then
3984    mkdir_p='$(mkinstalldirs)'
3985  else
3986    mkdir_p='$(install_sh) -d'
3987  fi
3988fi
3989
3990for ac_prog in gawk mawk nawk awk
3991do
3992  # Extract the first word of "$ac_prog", so it can be a program name with args.
3993set dummy $ac_prog; ac_word=$2
3994echo "$as_me:$LINENO: checking for $ac_word" >&5
3995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996if test "${ac_cv_prog_AWK+set}" = set; then
3997  echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999  if test -n "$AWK"; then
4000  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4001else
4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005  IFS=$as_save_IFS
4006  test -z "$as_dir" && as_dir=.
4007  for ac_exec_ext in '' $ac_executable_extensions; do
4008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009    ac_cv_prog_AWK="$ac_prog"
4010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011    break 2
4012  fi
4013done
4014done
4015
4016fi
4017fi
4018AWK=$ac_cv_prog_AWK
4019if test -n "$AWK"; then
4020  echo "$as_me:$LINENO: result: $AWK" >&5
4021echo "${ECHO_T}$AWK" >&6
4022else
4023  echo "$as_me:$LINENO: result: no" >&5
4024echo "${ECHO_T}no" >&6
4025fi
4026
4027  test -n "$AWK" && break
4028done
4029
4030echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4031echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4032set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4033if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4034  echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036  cat >conftest.make <<\_ACEOF
4037all:
4038        @echo 'ac_maketemp="$(MAKE)"'
4039_ACEOF
4040# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4041eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4042if test -n "$ac_maketemp"; then
4043  eval ac_cv_prog_make_${ac_make}_set=yes
4044else
4045  eval ac_cv_prog_make_${ac_make}_set=no
4046fi
4047rm -f conftest.make
4048fi
4049if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4050  echo "$as_me:$LINENO: result: yes" >&5
4051echo "${ECHO_T}yes" >&6
4052  SET_MAKE=
4053else
4054  echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6
4056  SET_MAKE="MAKE=${MAKE-make}"
4057fi
4058
4059rm -rf .tst 2>/dev/null
4060mkdir .tst 2>/dev/null
4061if test -d .tst; then
4062  am__leading_dot=.
4063else
4064  am__leading_dot=_
4065fi
4066rmdir .tst 2>/dev/null
4067
4068DEPDIR="${am__leading_dot}deps"
4069
4070          ac_config_commands="$ac_config_commands depfiles"
4071
4072
4073am_make=${MAKE-make}
4074cat > confinc << 'END'
4075am__doit:
4076        @echo done
4077.PHONY: am__doit
4078END
4079# If we don't find an include directive, just comment out the code.
4080echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4081echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4082am__include="#"
4083am__quote=
4084_am_result=none
4085# First try GNU make style include.
4086echo "include confinc" > confmf
4087# We grep out `Entering directory' and `Leaving directory'
4088# messages which can occur if `w' ends up in MAKEFLAGS.
4089# In particular we don't look at `^make:' because GNU make might
4090# be invoked under some other name (usually "gmake"), in which
4091# case it prints its new name instead of `make'.
4092if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4093   am__include=include
4094   am__quote=
4095   _am_result=GNU
4096fi
4097# Now try BSD make style include.
4098if test "$am__include" = "#"; then
4099   echo '.include "confinc"' > confmf
4100   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4101      am__include=.include
4102      am__quote="\""
4103      _am_result=BSD
4104   fi
4105fi
4106
4107
4108echo "$as_me:$LINENO: result: $_am_result" >&5
4109echo "${ECHO_T}$_am_result" >&6
4110rm -f confinc confmf
4111
4112# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4113if test "${enable_dependency_tracking+set}" = set; then
4114  enableval="$enable_dependency_tracking"
4115
4116fi;
4117if test "x$enable_dependency_tracking" != xno; then
4118  am_depcomp="$ac_aux_dir/depcomp"
4119  AMDEPBACKSLASH='\'
4120fi
4121
4122
4123if test "x$enable_dependency_tracking" != xno; then
4124  AMDEP_TRUE=
4125  AMDEP_FALSE='#'
4126else
4127  AMDEP_TRUE='#'
4128  AMDEP_FALSE=
4129fi
4130
4131
4132
4133ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139if test x"" = x; then
4140  hdr="#include <dlfcn.h>"
4141else
4142  hdr=""
4143fi
4144
4145for ac_header in dlfcn.h
4146do
4147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4148echo "$as_me:$LINENO: checking for $ac_header" >&5
4149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4150if eval "test \"\${$as_ac_Header+set}\" = set"; then
4151  echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153  cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h.  */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h.  */
4159$hdr
4160
4161#include <$ac_header>
4162_ACEOF
4163rm -f conftest.$ac_objext
4164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165  (eval $ac_compile) 2>conftest.er1
4166  ac_status=$?
4167  grep -v '^ *+' conftest.er1 >conftest.err
4168  rm -f conftest.er1
4169  cat conftest.err >&5
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); } &&
4172         { ac_try='test -z "$ac_c_werror_flag"
4173                         || test ! -s conftest.err'
4174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175  (eval $ac_try) 2>&5
4176  ac_status=$?
4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178  (exit $ac_status); }; } &&
4179         { ac_try='test -s conftest.$ac_objext'
4180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181  (eval $ac_try) 2>&5
4182  ac_status=$?
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); }; }; then
4185  eval "$as_ac_Header=yes"
4186else
4187  echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
4189
4190eval "$as_ac_Header=no"
4191fi
4192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193fi
4194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4196if test `eval echo '${'$as_ac_Header'}'` = yes; then
4197  cat >>confdefs.h <<_ACEOF
4198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4199_ACEOF
4200
4201fi
4202
4203done
4204
4205
4206ac_ext=c
4207ac_cpp='$CPP $CPPFLAGS'
4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211
4212
4213# Check whether --enable-shared or --disable-shared was given.
4214if test "${enable_shared+set}" = set; then
4215  enableval="$enable_shared"
4216  p=${PACKAGE-default}
4217    case $enableval in
4218    yes) enable_shared=yes ;;
4219    no) enable_shared=no ;;
4220    *)
4221      enable_shared=no
4222      # Look at the argument we got.  We use all the common list separators.
4223      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4224      for pkg in $enableval; do
4225        IFS="$lt_save_ifs"
4226        if test "X$pkg" = "X$p"; then
4227          enable_shared=yes
4228        fi
4229      done
4230      IFS="$lt_save_ifs"
4231      ;;
4232    esac
4233else
4234  enable_shared=yes
4235fi;
4236
4237# Check whether --enable-fast-install or --disable-fast-install was given.
4238if test "${enable_fast_install+set}" = set; then
4239  enableval="$enable_fast_install"
4240  p=${PACKAGE-default}
4241    case $enableval in
4242    yes) enable_fast_install=yes ;;
4243    no) enable_fast_install=no ;;
4244    *)
4245      enable_fast_install=no
4246      # Look at the argument we got.  We use all the common list separators.
4247      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4248      for pkg in $enableval; do
4249        IFS="$lt_save_ifs"
4250        if test "X$pkg" = "X$p"; then
4251          enable_fast_install=yes
4252        fi
4253      done
4254      IFS="$lt_save_ifs"
4255      ;;
4256    esac
4257else
4258  enable_fast_install=yes
4259fi;
4260
4261echo "$as_me:$LINENO: checking host system type" >&5
4262echo $ECHO_N "checking host system type... $ECHO_C" >&6
4263if test "${ac_cv_host+set}" = set; then
4264  echo $ECHO_N "(cached) $ECHO_C" >&6
4265else
4266  ac_cv_host_alias=$host_alias
4267test -z "$ac_cv_host_alias" &&
4268  ac_cv_host_alias=$ac_cv_build_alias
4269ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4270  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4271echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4272   { (exit 1); exit 1; }; }
4273
4274fi
4275echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4276echo "${ECHO_T}$ac_cv_host" >&6
4277host=$ac_cv_host
4278host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4279host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4280host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4281
4282
4283echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4284echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4285if test "${lt_cv_path_SED+set}" = set; then
4286  echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288  # Loop through the user's path and test for sed and gsed.
4289# Then use that list of sed's as ones to test for truncation.
4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291for as_dir in $PATH
4292do
4293  IFS=$as_save_IFS
4294  test -z "$as_dir" && as_dir=.
4295  for lt_ac_prog in sed gsed; do
4296    for ac_exec_ext in '' $ac_executable_extensions; do
4297      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4298        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4299      fi
4300    done
4301  done
4302done
4303lt_ac_max=0
4304lt_ac_count=0
4305# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4306# along with /bin/sed that truncates output.
4307for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4308  test ! -f $lt_ac_sed && continue
4309  cat /dev/null > conftest.in
4310  lt_ac_count=0
4311  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4312  # Check for GNU sed and select it if it is found.
4313  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4314    lt_cv_path_SED=$lt_ac_sed
4315    break
4316  fi
4317  while true; do
4318    cat conftest.in conftest.in >conftest.tmp
4319    mv conftest.tmp conftest.in
4320    cp conftest.in conftest.nl
4321    echo >>conftest.nl
4322    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4323    cmp -s conftest.out conftest.nl || break
4324    # 10000 chars as input seems more than enough
4325    test $lt_ac_count -gt 10 && break
4326    lt_ac_count=`expr $lt_ac_count + 1`
4327    if test $lt_ac_count -gt $lt_ac_max; then
4328      lt_ac_max=$lt_ac_count
4329      lt_cv_path_SED=$lt_ac_sed
4330    fi
4331  done
4332done
4333
4334fi
4335
4336SED=$lt_cv_path_SED
4337echo "$as_me:$LINENO: result: $SED" >&5
4338echo "${ECHO_T}$SED" >&6
4339
4340
4341# Check whether --with-gnu-ld or --without-gnu-ld was given.
4342if test "${with_gnu_ld+set}" = set; then
4343  withval="$with_gnu_ld"
4344  test "$withval" = no || with_gnu_ld=yes
4345else
4346  with_gnu_ld=no
4347fi;
4348ac_prog=ld
4349if test "$GCC" = yes; then
4350  # Check if gcc -print-prog-name=ld gives a path.
4351  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4352echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4353  case $host in
4354  *-*-mingw*)
4355    # gcc leaves a trailing carriage return which upsets mingw
4356    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4357  *)
4358    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4359  esac
4360  case $ac_prog in
4361    # Accept absolute paths.
4362    [\\/]* | ?:[\\/]*)
4363      re_direlt='/[^/][^/]*/\.\./'
4364      # Canonicalize the pathname of ld
4365      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4366      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4367        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4368      done
4369      test -z "$LD" && LD="$ac_prog"
4370      ;;
4371  "")
4372    # If it fails, then pretend we aren't using GCC.
4373    ac_prog=ld
4374    ;;
4375  *)
4376    # If it is relative, then search for the first ld in PATH.
4377    with_gnu_ld=unknown
4378    ;;
4379  esac
4380elif test "$with_gnu_ld" = yes; then
4381  echo "$as_me:$LINENO: checking for GNU ld" >&5
4382echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4383else
4384  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4385echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4386fi
4387if test "${lt_cv_path_LD+set}" = set; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390  if test -z "$LD"; then
4391  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4392  for ac_dir in $PATH; do
4393    IFS="$lt_save_ifs"
4394    test -z "$ac_dir" && ac_dir=.
4395    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4396      lt_cv_path_LD="$ac_dir/$ac_prog"
4397      # Check to see if the program is GNU ld.  I'd rather use --version,
4398      # but apparently some variants of GNU ld only accept -v.
4399      # Break only if it was the GNU/non-GNU ld that we prefer.
4400      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4401      *GNU* | *'with BFD'*)
4402        test "$with_gnu_ld" != no && break
4403        ;;
4404      *)
4405        test "$with_gnu_ld" != yes && break
4406        ;;
4407      esac
4408    fi
4409  done
4410  IFS="$lt_save_ifs"
4411else
4412  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4413fi
4414fi
4415
4416LD="$lt_cv_path_LD"
4417if test -n "$LD"; then
4418  echo "$as_me:$LINENO: result: $LD" >&5
4419echo "${ECHO_T}$LD" >&6
4420else
4421  echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6
4423fi
4424test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4425echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4426   { (exit 1); exit 1; }; }
4427echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4428echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4429if test "${lt_cv_prog_gnu_ld+set}" = set; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4433case `$LD -v 2>&1 </dev/null` in
4434*GNU* | *'with BFD'*)
4435  lt_cv_prog_gnu_ld=yes
4436  ;;
4437*)
4438  lt_cv_prog_gnu_ld=no
4439  ;;
4440esac
4441fi
4442echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4443echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4444with_gnu_ld=$lt_cv_prog_gnu_ld
4445
4446
4447echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4448echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4449if test "${lt_cv_ld_reload_flag+set}" = set; then
4450  echo $ECHO_N "(cached) $ECHO_C" >&6
4451else
4452  lt_cv_ld_reload_flag='-r'
4453fi
4454echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4455echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4456reload_flag=$lt_cv_ld_reload_flag
4457case $reload_flag in
4458"" | " "*) ;;
4459*) reload_flag=" $reload_flag" ;;
4460esac
4461reload_cmds='$LD$reload_flag -o $output$reload_objs'
4462case $host_os in
4463  darwin*)
4464    if test "$GCC" = yes; then
4465      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4466    else
4467      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4468    fi
4469    ;;
4470esac
4471
4472echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4473echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4474if test "${lt_cv_path_NM+set}" = set; then
4475  echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477  if test -n "$NM"; then
4478  # Let the user override the test.
4479  lt_cv_path_NM="$NM"
4480else
4481  lt_nm_to_check="${ac_tool_prefix}nm"
4482  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4483    lt_nm_to_check="$lt_nm_to_check nm"
4484  fi
4485  for lt_tmp_nm in $lt_nm_to_check; do
4486    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4487    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4488      IFS="$lt_save_ifs"
4489      test -z "$ac_dir" && ac_dir=.
4490      tmp_nm="$ac_dir/$lt_tmp_nm"
4491      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4492        # Check to see if the nm accepts a BSD-compat flag.
4493        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4494        #   nm: unknown option "B" ignored
4495        # Tru64's nm complains that /dev/null is an invalid object file
4496        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4497        */dev/null* | *'Invalid file or object type'*)
4498          lt_cv_path_NM="$tmp_nm -B"
4499          break
4500          ;;
4501        *)
4502          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4503          */dev/null*)
4504            lt_cv_path_NM="$tmp_nm -p"
4505            break
4506            ;;
4507          *)
4508            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4509            continue # so that we can try to find one that supports BSD flags
4510            ;;
4511          esac
4512          ;;
4513        esac
4514      fi
4515    done
4516    IFS="$lt_save_ifs"
4517  done
4518  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4519fi
4520fi
4521echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4522echo "${ECHO_T}$lt_cv_path_NM" >&6
4523NM="$lt_cv_path_NM"
4524
4525echo "$as_me:$LINENO: checking whether ln -s works" >&5
4526echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4527LN_S=$as_ln_s
4528if test "$LN_S" = "ln -s"; then
4529  echo "$as_me:$LINENO: result: yes" >&5
4530echo "${ECHO_T}yes" >&6
4531else
4532  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4533echo "${ECHO_T}no, using $LN_S" >&6
4534fi
4535
4536echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4537echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4538if test "${lt_cv_deplibs_check_method+set}" = set; then
4539  echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541  lt_cv_file_magic_cmd='$MAGIC_CMD'
4542lt_cv_file_magic_test_file=
4543lt_cv_deplibs_check_method='unknown'
4544# Need to set the preceding variable on all platforms that support
4545# interlibrary dependencies.
4546# 'none' -- dependencies not supported.
4547# `unknown' -- same as none, but documents that we really don't know.
4548# 'pass_all' -- all dependencies passed with no checks.
4549# 'test_compile' -- check by making test program.
4550# 'file_magic [[regex]]' -- check by looking for files in library path
4551# which responds to the $file_magic_cmd with a given extended regex.
4552# If you have `file' or equivalent on your system and you're not sure
4553# whether `pass_all' will *always* work, you probably want this one.
4554
4555case $host_os in
4556aix4* | aix5*)
4557  lt_cv_deplibs_check_method=pass_all
4558  ;;
4559
4560beos*)
4561  lt_cv_deplibs_check_method=pass_all
4562  ;;
4563
4564bsdi[45]*)
4565  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4566  lt_cv_file_magic_cmd='/usr/bin/file -L'
4567  lt_cv_file_magic_test_file=/shlib/libc.so
4568  ;;
4569
4570cygwin*)
4571  # func_win32_libid is a shell function defined in ltmain.sh
4572  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4573  lt_cv_file_magic_cmd='func_win32_libid'
4574  ;;
4575
4576mingw* | pw32*)
4577  # Base MSYS/MinGW do not provide the 'file' command needed by
4578  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4579  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4580  lt_cv_file_magic_cmd='$OBJDUMP -f'
4581  ;;
4582
4583darwin* | rhapsody*)
4584  lt_cv_deplibs_check_method=pass_all
4585  ;;
4586
4587freebsd* | kfreebsd*-gnu | dragonfly*)
4588  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4589    case $host_cpu in
4590    i*86 )
4591      # Not sure whether the presence of OpenBSD here was a mistake.
4592      # Let's accept both of them until this is cleared up.
4593      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4594      lt_cv_file_magic_cmd=/usr/bin/file
4595      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4596      ;;
4597    esac
4598  else
4599    lt_cv_deplibs_check_method=pass_all
4600  fi
4601  ;;
4602
4603gnu*)
4604  lt_cv_deplibs_check_method=pass_all
4605  ;;
4606
4607hpux10.20* | hpux11*)
4608  lt_cv_file_magic_cmd=/usr/bin/file
4609  case $host_cpu in
4610  ia64*)
4611    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4612    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4613    ;;
4614  hppa*64*)
4615    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]'
4616    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4617    ;;
4618  *)
4619    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4620    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4621    ;;
4622  esac
4623  ;;
4624
4625interix3*)
4626  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4627  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4628  ;;
4629
4630irix5* | irix6* | nonstopux*)
4631  case $LD in
4632  *-32|*"-32 ") libmagic=32-bit;;
4633  *-n32|*"-n32 ") libmagic=N32;;
4634  *-64|*"-64 ") libmagic=64-bit;;
4635  *) libmagic=never-match;;
4636  esac
4637  lt_cv_deplibs_check_method=pass_all
4638  ;;
4639
4640# This must be Linux ELF.
4641linux*)
4642  lt_cv_deplibs_check_method=pass_all
4643  ;;
4644
4645netbsd*)
4646  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4647    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4648  else
4649    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4650  fi
4651  ;;
4652
4653newos6*)
4654  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4655  lt_cv_file_magic_cmd=/usr/bin/file
4656  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4657  ;;
4658
4659nto-qnx*)
4660  lt_cv_deplibs_check_method=unknown
4661  ;;
4662
4663openbsd*)
4664  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4665    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4666  else
4667    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4668  fi
4669  ;;
4670
4671osf3* | osf4* | osf5*)
4672  lt_cv_deplibs_check_method=pass_all
4673  ;;
4674
4675solaris*)
4676  lt_cv_deplibs_check_method=pass_all
4677  ;;
4678
4679sysv4 | sysv4.3*)
4680  case $host_vendor in
4681  motorola)
4682    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]'
4683    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4684    ;;
4685  ncr)
4686    lt_cv_deplibs_check_method=pass_all
4687    ;;
4688  sequent)
4689    lt_cv_file_magic_cmd='/bin/file'
4690    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4691    ;;
4692  sni)
4693    lt_cv_file_magic_cmd='/bin/file'
4694    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4695    lt_cv_file_magic_test_file=/lib/libc.so
4696    ;;
4697  siemens)
4698    lt_cv_deplibs_check_method=pass_all
4699    ;;
4700  pc)
4701    lt_cv_deplibs_check_method=pass_all
4702    ;;
4703  esac
4704  ;;
4705
4706sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4707  lt_cv_deplibs_check_method=pass_all
4708  ;;
4709esac
4710
4711fi
4712echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4713echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4714file_magic_cmd=$lt_cv_file_magic_cmd
4715deplibs_check_method=$lt_cv_deplibs_check_method
4716test -z "$deplibs_check_method" && deplibs_check_method=unknown
4717
4718
4719
4720
4721# If no C compiler was specified, use CC.
4722LTCC=${LTCC-"$CC"}
4723
4724# If no C compiler flags were specified, use CFLAGS.
4725LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4726
4727# Allow CC to be a program name with arguments.
4728compiler=$CC
4729
4730# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4731if test "${enable_libtool_lock+set}" = set; then
4732  enableval="$enable_libtool_lock"
4733
4734fi;
4735test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4736
4737# Some flags need to be propagated to the compiler or linker for good
4738# libtool support.
4739case $host in
4740ia64-*-hpux*)
4741  # Find out which ABI we are using.
4742  echo 'int i;' > conftest.$ac_ext
4743  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744  (eval $ac_compile) 2>&5
4745  ac_status=$?
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); }; then
4748    case `/usr/bin/file conftest.$ac_objext` in
4749    *ELF-32*)
4750      HPUX_IA64_MODE="32"
4751      ;;
4752    *ELF-64*)
4753      HPUX_IA64_MODE="64"
4754      ;;
4755    esac
4756  fi
4757  rm -rf conftest*
4758  ;;
4759*-*-irix6*)
4760  # Find out which ABI we are using.
4761  echo '#line 4761 "configure"' > conftest.$ac_ext
4762  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763  (eval $ac_compile) 2>&5
4764  ac_status=$?
4765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766  (exit $ac_status); }; then
4767   if test "$lt_cv_prog_gnu_ld" = yes; then
4768    case `/usr/bin/file conftest.$ac_objext` in
4769    *32-bit*)
4770      LD="${LD-ld} -melf32bsmip"
4771      ;;
4772    *N32*)
4773      LD="${LD-ld} -melf32bmipn32"
4774      ;;
4775    *64-bit*)
4776      LD="${LD-ld} -melf64bmip"
4777      ;;
4778    esac
4779   else
4780    case `/usr/bin/file conftest.$ac_objext` in
4781    *32-bit*)
4782      LD="${LD-ld} -32"
4783      ;;
4784    *N32*)
4785      LD="${LD-ld} -n32"
4786      ;;
4787    *64-bit*)
4788      LD="${LD-ld} -64"
4789      ;;
4790    esac
4791   fi
4792  fi
4793  rm -rf conftest*
4794  ;;
4795
4796x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4797  # Find out which ABI we are using.
4798  echo 'int i;' > conftest.$ac_ext
4799  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800  (eval $ac_compile) 2>&5
4801  ac_status=$?
4802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); }; then
4804    case `/usr/bin/file conftest.o` in
4805    *32-bit*)
4806      case $host in
4807        x86_64-*linux*)
4808          LD="${LD-ld} -m elf_i386"
4809          ;;
4810        ppc64-*linux*|powerpc64-*linux*)
4811          LD="${LD-ld} -m elf32ppclinux"
4812          ;;
4813        s390x-*linux*)
4814          LD="${LD-ld} -m elf_s390"
4815          ;;
4816        sparc64-*linux*)
4817          LD="${LD-ld} -m elf32_sparc"
4818          ;;
4819      esac
4820      ;;
4821    *64-bit*)
4822      case $host in
4823        x86_64-*linux*)
4824          LD="${LD-ld} -m elf_x86_64"
4825          ;;
4826        ppc*-*linux*|powerpc*-*linux*)
4827          LD="${LD-ld} -m elf64ppc"
4828          ;;
4829        s390*-*linux*)
4830          LD="${LD-ld} -m elf64_s390"
4831          ;;
4832        sparc*-*linux*)
4833          LD="${LD-ld} -m elf64_sparc"
4834          ;;
4835      esac
4836      ;;
4837    esac
4838  fi
4839  rm -rf conftest*
4840  ;;
4841
4842*-*-sco3.2v5*)
4843  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4844  SAVE_CFLAGS="$CFLAGS"
4845  CFLAGS="$CFLAGS -belf"
4846  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4847echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4848if test "${lt_cv_cc_needs_belf+set}" = set; then
4849  echo $ECHO_N "(cached) $ECHO_C" >&6
4850else
4851  ac_ext=c
4852ac_cpp='$CPP $CPPFLAGS'
4853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857     cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h.  */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h.  */
4863
4864int
4865main ()
4866{
4867
4868  ;
4869  return 0;
4870}
4871_ACEOF
4872rm -f conftest.$ac_objext conftest$ac_exeext
4873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4874  (eval $ac_link) 2>conftest.er1
4875  ac_status=$?
4876  grep -v '^ *+' conftest.er1 >conftest.err
4877  rm -f conftest.er1
4878  cat conftest.err >&5
4879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880  (exit $ac_status); } &&
4881         { ac_try='test -z "$ac_c_werror_flag"
4882                         || test ! -s conftest.err'
4883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884  (eval $ac_try) 2>&5
4885  ac_status=$?
4886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887  (exit $ac_status); }; } &&
4888         { ac_try='test -s conftest$ac_exeext'
4889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890  (eval $ac_try) 2>&5
4891  ac_status=$?
4892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893  (exit $ac_status); }; }; then
4894  lt_cv_cc_needs_belf=yes
4895else
4896  echo "$as_me: failed program was:" >&5
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
4899lt_cv_cc_needs_belf=no
4900fi
4901rm -f conftest.err conftest.$ac_objext \
4902      conftest$ac_exeext conftest.$ac_ext
4903     ac_ext=c
4904ac_cpp='$CPP $CPPFLAGS'
4905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909fi
4910echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4911echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4912  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4913    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4914    CFLAGS="$SAVE_CFLAGS"
4915  fi
4916  ;;
4917sparc*-*solaris*)
4918  # Find out which ABI we are using.
4919  echo 'int i;' > conftest.$ac_ext
4920  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4921  (eval $ac_compile) 2>&5
4922  ac_status=$?
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); }; then
4925    case `/usr/bin/file conftest.o` in
4926    *64-bit*)
4927      case $lt_cv_prog_gnu_ld in
4928      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4929      *)    LD="${LD-ld} -64" ;;
4930      esac
4931      ;;
4932    esac
4933  fi
4934  rm -rf conftest*
4935  ;;
4936
4937
4938esac
4939
4940need_locks="$enable_libtool_lock"
4941
4942
4943ac_ext=c
4944ac_cpp='$CPP $CPPFLAGS'
4945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4949echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4950# On Suns, sometimes $CPP names a directory.
4951if test -n "$CPP" && test -d "$CPP"; then
4952  CPP=
4953fi
4954if test -z "$CPP"; then
4955  if test "${ac_cv_prog_CPP+set}" = set; then
4956  echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958      # Double quotes because CPP needs to be expanded
4959    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4960    do
4961      ac_preproc_ok=false
4962for ac_c_preproc_warn_flag in '' yes
4963do
4964  # Use a header file that comes with gcc, so configuring glibc
4965  # with a fresh cross-compiler works.
4966  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967  # <limits.h> exists even on freestanding compilers.
4968  # On the NeXT, cc -E runs the code through the compiler's parser,
4969  # not just through cpp. "Syntax error" is here to catch this case.
4970  cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h.  */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h.  */
4976#ifdef __STDC__
4977# include <limits.h>
4978#else
4979# include <assert.h>
4980#endif
4981                     Syntax error
4982_ACEOF
4983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985  ac_status=$?
4986  grep -v '^ *+' conftest.er1 >conftest.err
4987  rm -f conftest.er1
4988  cat conftest.err >&5
4989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990  (exit $ac_status); } >/dev/null; then
4991  if test -s conftest.err; then
4992    ac_cpp_err=$ac_c_preproc_warn_flag
4993    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4994  else
4995    ac_cpp_err=
4996  fi
4997else
4998  ac_cpp_err=yes
4999fi
5000if test -z "$ac_cpp_err"; then
5001  :
5002else
5003  echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006  # Broken: fails on valid input.
5007continue
5008fi
5009rm -f conftest.err conftest.$ac_ext
5010
5011  # OK, works on sane cases.  Now check whether non-existent headers
5012  # can be detected and how.
5013  cat >conftest.$ac_ext <<_ACEOF
5014/* confdefs.h.  */
5015_ACEOF
5016cat confdefs.h >>conftest.$ac_ext
5017cat >>conftest.$ac_ext <<_ACEOF
5018/* end confdefs.h.  */
5019#include <ac_nonexistent.h>
5020_ACEOF
5021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5022  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023  ac_status=$?
5024  grep -v '^ *+' conftest.er1 >conftest.err
5025  rm -f conftest.er1
5026  cat conftest.err >&5
5027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028  (exit $ac_status); } >/dev/null; then
5029  if test -s conftest.err; then
5030    ac_cpp_err=$ac_c_preproc_warn_flag
5031    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5032  else
5033    ac_cpp_err=
5034  fi
5035else
5036  ac_cpp_err=yes
5037fi
5038if test -z "$ac_cpp_err"; then
5039  # Broken: success on invalid input.
5040continue
5041else
5042  echo "$as_me: failed program was:" >&5
5043sed 's/^/| /' conftest.$ac_ext >&5
5044
5045  # Passes both tests.
5046ac_preproc_ok=:
5047break
5048fi
5049rm -f conftest.err conftest.$ac_ext
5050
5051done
5052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5053rm -f conftest.err conftest.$ac_ext
5054if $ac_preproc_ok; then
5055  break
5056fi
5057
5058    done
5059    ac_cv_prog_CPP=$CPP
5060
5061fi
5062  CPP=$ac_cv_prog_CPP
5063else
5064  ac_cv_prog_CPP=$CPP
5065fi
5066echo "$as_me:$LINENO: result: $CPP" >&5
5067echo "${ECHO_T}$CPP" >&6
5068ac_preproc_ok=false
5069for ac_c_preproc_warn_flag in '' yes
5070do
5071  # Use a header file that comes with gcc, so configuring glibc
5072  # with a fresh cross-compiler works.
5073  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074  # <limits.h> exists even on freestanding compilers.
5075  # On the NeXT, cc -E runs the code through the compiler's parser,
5076  # not just through cpp. "Syntax error" is here to catch this case.
5077  cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h.  */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h.  */
5083#ifdef __STDC__
5084# include <limits.h>
5085#else
5086# include <assert.h>
5087#endif
5088                     Syntax error
5089_ACEOF
5090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5092  ac_status=$?
5093  grep -v '^ *+' conftest.er1 >conftest.err
5094  rm -f conftest.er1
5095  cat conftest.err >&5
5096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097  (exit $ac_status); } >/dev/null; then
5098  if test -s conftest.err; then
5099    ac_cpp_err=$ac_c_preproc_warn_flag
5100    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5101  else
5102    ac_cpp_err=
5103  fi
5104else
5105  ac_cpp_err=yes
5106fi
5107if test -z "$ac_cpp_err"; then
5108  :
5109else
5110  echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113  # Broken: fails on valid input.
5114continue
5115fi
5116rm -f conftest.err conftest.$ac_ext
5117
5118  # OK, works on sane cases.  Now check whether non-existent headers
5119  # can be detected and how.
5120  cat >conftest.$ac_ext <<_ACEOF
5121/* confdefs.h.  */
5122_ACEOF
5123cat confdefs.h >>conftest.$ac_ext
5124cat >>conftest.$ac_ext <<_ACEOF
5125/* end confdefs.h.  */
5126#include <ac_nonexistent.h>
5127_ACEOF
5128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130  ac_status=$?
5131  grep -v '^ *+' conftest.er1 >conftest.err
5132  rm -f conftest.er1
5133  cat conftest.err >&5
5134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135  (exit $ac_status); } >/dev/null; then
5136  if test -s conftest.err; then
5137    ac_cpp_err=$ac_c_preproc_warn_flag
5138    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139  else
5140    ac_cpp_err=
5141  fi
5142else
5143  ac_cpp_err=yes
5144fi
5145if test -z "$ac_cpp_err"; then
5146  # Broken: success on invalid input.
5147continue
5148else
5149  echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152  # Passes both tests.
5153ac_preproc_ok=:
5154break
5155fi
5156rm -f conftest.err conftest.$ac_ext
5157
5158done
5159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5160rm -f conftest.err conftest.$ac_ext
5161if $ac_preproc_ok; then
5162  :
5163else
5164  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5165See \`config.log' for more details." >&5
5166echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5167See \`config.log' for more details." >&2;}
5168   { (exit 1); exit 1; }; }
5169fi
5170
5171ac_ext=c
5172ac_cpp='$CPP $CPPFLAGS'
5173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176
5177
5178echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5179echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5180if test "${ac_cv_header_stdc+set}" = set; then
5181  echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183  cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h.  */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h.  */
5189#include <stdlib.h>
5190#include <stdarg.h>
5191#include <string.h>
5192#include <float.h>
5193
5194int
5195main ()
5196{
5197
5198  ;
5199  return 0;
5200}
5201_ACEOF
5202rm -f conftest.$ac_objext
5203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204  (eval $ac_compile) 2>conftest.er1
5205  ac_status=$?
5206  grep -v '^ *+' conftest.er1 >conftest.err
5207  rm -f conftest.er1
5208  cat conftest.err >&5
5209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); } &&
5211         { ac_try='test -z "$ac_c_werror_flag"
5212                         || test ! -s conftest.err'
5213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214  (eval $ac_try) 2>&5
5215  ac_status=$?
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); }; } &&
5218         { ac_try='test -s conftest.$ac_objext'
5219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220  (eval $ac_try) 2>&5
5221  ac_status=$?
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); }; }; then
5224  ac_cv_header_stdc=yes
5225else
5226  echo "$as_me: failed program was:" >&5
5227sed 's/^/| /' conftest.$ac_ext >&5
5228
5229ac_cv_header_stdc=no
5230fi
5231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232
5233if test $ac_cv_header_stdc = yes; then
5234  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5235  cat >conftest.$ac_ext <<_ACEOF
5236/* confdefs.h.  */
5237_ACEOF
5238cat confdefs.h >>conftest.$ac_ext
5239cat >>conftest.$ac_ext <<_ACEOF
5240/* end confdefs.h.  */
5241#include <string.h>
5242
5243_ACEOF
5244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5245  $EGREP "memchr" >/dev/null 2>&1; then
5246  :
5247else
5248  ac_cv_header_stdc=no
5249fi
5250rm -f conftest*
5251
5252fi
5253
5254if test $ac_cv_header_stdc = yes; then
5255  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5256  cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h.  */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h.  */
5262#include <stdlib.h>
5263
5264_ACEOF
5265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266  $EGREP "free" >/dev/null 2>&1; then
5267  :
5268else
5269  ac_cv_header_stdc=no
5270fi
5271rm -f conftest*
5272
5273fi
5274
5275if test $ac_cv_header_stdc = yes; then
5276  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5277  if test "$cross_compiling" = yes; then
5278  :
5279else
5280  cat >conftest.$ac_ext <<_ACEOF
5281/* confdefs.h.  */
5282_ACEOF
5283cat confdefs.h >>conftest.$ac_ext
5284cat >>conftest.$ac_ext <<_ACEOF
5285/* end confdefs.h.  */
5286#include <ctype.h>
5287#if ((' ' & 0x0FF) == 0x020)
5288# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5289# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5290#else
5291# define ISLOWER(c) \
5292                   (('a' <= (c) && (c) <= 'i') \
5293                     || ('j' <= (c) && (c) <= 'r') \
5294                     || ('s' <= (c) && (c) <= 'z'))
5295# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5296#endif
5297
5298#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5299int
5300main ()
5301{
5302  int i;
5303  for (i = 0; i < 256; i++)
5304    if (XOR (islower (i), ISLOWER (i))
5305        || toupper (i) != TOUPPER (i))
5306      exit(2);
5307  exit (0);
5308}
5309_ACEOF
5310rm -f conftest$ac_exeext
5311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312  (eval $ac_link) 2>&5
5313  ac_status=$?
5314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317  (eval $ac_try) 2>&5
5318  ac_status=$?
5319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320  (exit $ac_status); }; }; then
5321  :
5322else
5323  echo "$as_me: program exited with status $ac_status" >&5
5324echo "$as_me: failed program was:" >&5
5325sed 's/^/| /' conftest.$ac_ext >&5
5326
5327( exit $ac_status )
5328ac_cv_header_stdc=no
5329fi
5330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5331fi
5332fi
5333fi
5334echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5335echo "${ECHO_T}$ac_cv_header_stdc" >&6
5336if test $ac_cv_header_stdc = yes; then
5337
5338cat >>confdefs.h <<\_ACEOF
5339#define STDC_HEADERS 1
5340_ACEOF
5341
5342fi
5343
5344# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5355                  inttypes.h stdint.h unistd.h
5356do
5357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358echo "$as_me:$LINENO: checking for $ac_header" >&5
5359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5360if eval "test \"\${$as_ac_Header+set}\" = set"; then
5361  echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363  cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h.  */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h.  */
5369$ac_includes_default
5370
5371#include <$ac_header>
5372_ACEOF
5373rm -f conftest.$ac_objext
5374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375  (eval $ac_compile) 2>conftest.er1
5376  ac_status=$?
5377  grep -v '^ *+' conftest.er1 >conftest.err
5378  rm -f conftest.er1
5379  cat conftest.err >&5
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); } &&
5382         { ac_try='test -z "$ac_c_werror_flag"
5383                         || test ! -s conftest.err'
5384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385  (eval $ac_try) 2>&5
5386  ac_status=$?
5387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388  (exit $ac_status); }; } &&
5389         { ac_try='test -s conftest.$ac_objext'
5390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391  (eval $ac_try) 2>&5
5392  ac_status=$?
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); }; }; then
5395  eval "$as_ac_Header=yes"
5396else
5397  echo "$as_me: failed program was:" >&5
5398sed 's/^/| /' conftest.$ac_ext >&5
5399
5400eval "$as_ac_Header=no"
5401fi
5402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5403fi
5404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5406if test `eval echo '${'$as_ac_Header'}'` = yes; then
5407  cat >>confdefs.h <<_ACEOF
5408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5409_ACEOF
5410
5411fi
5412
5413done
5414
5415
5416
5417for ac_header in dlfcn.h
5418do
5419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5420if eval "test \"\${$as_ac_Header+set}\" = set"; then
5421  echo "$as_me:$LINENO: checking for $ac_header" >&5
5422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5423if eval "test \"\${$as_ac_Header+set}\" = set"; then
5424  echo $ECHO_N "(cached) $ECHO_C" >&6
5425fi
5426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5428else
5429  # Is the header compilable?
5430echo "$as_me:$LINENO: checking $ac_header usability" >&5
5431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5432cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h.  */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h.  */
5438$ac_includes_default
5439#include <$ac_header>
5440_ACEOF
5441rm -f conftest.$ac_objext
5442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443  (eval $ac_compile) 2>conftest.er1
5444  ac_status=$?
5445  grep -v '^ *+' conftest.er1 >conftest.err
5446  rm -f conftest.er1
5447  cat conftest.err >&5
5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449  (exit $ac_status); } &&
5450         { ac_try='test -z "$ac_c_werror_flag"
5451                         || test ! -s conftest.err'
5452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453  (eval $ac_try) 2>&5
5454  ac_status=$?
5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); }; } &&
5457         { ac_try='test -s conftest.$ac_objext'
5458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459  (eval $ac_try) 2>&5
5460  ac_status=$?
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); }; }; then
5463  ac_header_compiler=yes
5464else
5465  echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468ac_header_compiler=no
5469fi
5470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5472echo "${ECHO_T}$ac_header_compiler" >&6
5473
5474# Is the header present?
5475echo "$as_me:$LINENO: checking $ac_header presence" >&5
5476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5477cat >conftest.$ac_ext <<_ACEOF
5478/* confdefs.h.  */
5479_ACEOF
5480cat confdefs.h >>conftest.$ac_ext
5481cat >>conftest.$ac_ext <<_ACEOF
5482/* end confdefs.h.  */
5483#include <$ac_header>
5484_ACEOF
5485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5486  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5487  ac_status=$?
5488  grep -v '^ *+' conftest.er1 >conftest.err
5489  rm -f conftest.er1
5490  cat conftest.err >&5
5491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); } >/dev/null; then
5493  if test -s conftest.err; then
5494    ac_cpp_err=$ac_c_preproc_warn_flag
5495    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5496  else
5497    ac_cpp_err=
5498  fi
5499else
5500  ac_cpp_err=yes
5501fi
5502if test -z "$ac_cpp_err"; then
5503  ac_header_preproc=yes
5504else
5505  echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508  ac_header_preproc=no
5509fi
5510rm -f conftest.err conftest.$ac_ext
5511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5512echo "${ECHO_T}$ac_header_preproc" >&6
5513
5514# So?  What about this header?
5515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5516  yes:no: )
5517    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5519    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5521    ac_header_preproc=yes
5522    ;;
5523  no:yes:* )
5524    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5526    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5527echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5528    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5530    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5531echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5532    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5534    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5536    (
5537      cat <<\_ASBOX
5538## ---------------------------------------- ##
5539## Report this to coin-clp@list.coin-or.org ##
5540## ---------------------------------------- ##
5541_ASBOX
5542    ) |
5543      sed "s/^/$as_me: WARNING:     /" >&2
5544    ;;
5545esac
5546echo "$as_me:$LINENO: checking for $ac_header" >&5
5547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5548if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549  echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551  eval "$as_ac_Header=\$ac_header_preproc"
5552fi
5553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555
5556fi
5557if test `eval echo '${'$as_ac_Header'}'` = yes; then
5558  cat >>confdefs.h <<_ACEOF
5559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560_ACEOF
5561
5562fi
5563
5564done
5565
5566
5567
5568if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5569    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5570    (test "X$CXX" != "Xg++"))) ; then
5571  ac_ext=cc
5572ac_cpp='$CXXCPP $CPPFLAGS'
5573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5576echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5577echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5578if test -z "$CXXCPP"; then
5579  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582      # Double quotes because CXXCPP needs to be expanded
5583    for CXXCPP in "$CXX -E" "/lib/cpp"
5584    do
5585      ac_preproc_ok=false
5586for ac_cxx_preproc_warn_flag in '' yes
5587do
5588  # Use a header file that comes with gcc, so configuring glibc
5589  # with a fresh cross-compiler works.
5590  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5591  # <limits.h> exists even on freestanding compilers.
5592  # On the NeXT, cc -E runs the code through the compiler's parser,
5593  # not just through cpp. "Syntax error" is here to catch this case.
5594  cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h.  */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h.  */
5600#ifdef __STDC__
5601# include <limits.h>
5602#else
5603# include <assert.h>
5604#endif
5605                     Syntax error
5606_ACEOF
5607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5608  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5609  ac_status=$?
5610  grep -v '^ *+' conftest.er1 >conftest.err
5611  rm -f conftest.er1
5612  cat conftest.err >&5
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); } >/dev/null; then
5615  if test -s conftest.err; then
5616    ac_cpp_err=$ac_cxx_preproc_warn_flag
5617    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5618  else
5619    ac_cpp_err=
5620  fi
5621else
5622  ac_cpp_err=yes
5623fi
5624if test -z "$ac_cpp_err"; then
5625  :
5626else
5627  echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630  # Broken: fails on valid input.
5631continue
5632fi
5633rm -f conftest.err conftest.$ac_ext
5634
5635  # OK, works on sane cases.  Now check whether non-existent headers
5636  # can be detected and how.
5637  cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h.  */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h.  */
5643#include <ac_nonexistent.h>
5644_ACEOF
5645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5646  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5647  ac_status=$?
5648  grep -v '^ *+' conftest.er1 >conftest.err
5649  rm -f conftest.er1
5650  cat conftest.err >&5
5651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652  (exit $ac_status); } >/dev/null; then
5653  if test -s conftest.err; then
5654    ac_cpp_err=$ac_cxx_preproc_warn_flag
5655    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5656  else
5657    ac_cpp_err=
5658  fi
5659else
5660  ac_cpp_err=yes
5661fi
5662if test -z "$ac_cpp_err"; then
5663  # Broken: success on invalid input.
5664continue
5665else
5666  echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
5669  # Passes both tests.
5670ac_preproc_ok=:
5671break
5672fi
5673rm -f conftest.err conftest.$ac_ext
5674
5675done
5676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5677rm -f conftest.err conftest.$ac_ext
5678if $ac_preproc_ok; then
5679  break
5680fi
5681
5682    done
5683    ac_cv_prog_CXXCPP=$CXXCPP
5684
5685fi
5686  CXXCPP=$ac_cv_prog_CXXCPP
5687else
5688  ac_cv_prog_CXXCPP=$CXXCPP
5689fi
5690echo "$as_me:$LINENO: result: $CXXCPP" >&5
5691echo "${ECHO_T}$CXXCPP" >&6
5692ac_preproc_ok=false
5693for ac_cxx_preproc_warn_flag in '' yes
5694do
5695  # Use a header file that comes with gcc, so configuring glibc
5696  # with a fresh cross-compiler works.
5697  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5698  # <limits.h> exists even on freestanding compilers.
5699  # On the NeXT, cc -E runs the code through the compiler's parser,
5700  # not just through cpp. "Syntax error" is here to catch this case.
5701  cat >conftest.$ac_ext <<_ACEOF
5702/* confdefs.h.  */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h.  */
5707#ifdef __STDC__
5708# include <limits.h>
5709#else
5710# include <assert.h>
5711#endif
5712                     Syntax error
5713_ACEOF
5714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5715  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5716  ac_status=$?
5717  grep -v '^ *+' conftest.er1 >conftest.err
5718  rm -f conftest.er1
5719  cat conftest.err >&5
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); } >/dev/null; then
5722  if test -s conftest.err; then
5723    ac_cpp_err=$ac_cxx_preproc_warn_flag
5724    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5725  else
5726    ac_cpp_err=
5727  fi
5728else
5729  ac_cpp_err=yes
5730fi
5731if test -z "$ac_cpp_err"; then
5732  :
5733else
5734  echo "$as_me: failed program was:" >&5
5735sed 's/^/| /' conftest.$ac_ext >&5
5736
5737  # Broken: fails on valid input.
5738continue
5739fi
5740rm -f conftest.err conftest.$ac_ext
5741
5742  # OK, works on sane cases.  Now check whether non-existent headers
5743  # can be detected and how.
5744  cat >conftest.$ac_ext <<_ACEOF
5745/* confdefs.h.  */
5746_ACEOF
5747cat confdefs.h >>conftest.$ac_ext
5748cat >>conftest.$ac_ext <<_ACEOF
5749/* end confdefs.h.  */
5750#include <ac_nonexistent.h>
5751_ACEOF
5752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5753  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5754  ac_status=$?
5755  grep -v '^ *+' conftest.er1 >conftest.err
5756  rm -f conftest.er1
5757  cat conftest.err >&5
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); } >/dev/null; then
5760  if test -s conftest.err; then
5761    ac_cpp_err=$ac_cxx_preproc_warn_flag
5762    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5763  else
5764    ac_cpp_err=
5765  fi
5766else
5767  ac_cpp_err=yes
5768fi
5769if test -z "$ac_cpp_err"; then
5770  # Broken: success on invalid input.
5771continue
5772else
5773  echo "$as_me: failed program was:" >&5
5774sed 's/^/| /' conftest.$ac_ext >&5
5775
5776  # Passes both tests.
5777ac_preproc_ok=:
5778break
5779fi
5780rm -f conftest.err conftest.$ac_ext
5781
5782done
5783# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784rm -f conftest.err conftest.$ac_ext
5785if $ac_preproc_ok; then
5786  :
5787else
5788  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5789See \`config.log' for more details." >&5
5790echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5791See \`config.log' for more details." >&2;}
5792   { (exit 1); exit 1; }; }
5793fi
5794
5795ac_ext=cc
5796ac_cpp='$CXXCPP $CPPFLAGS'
5797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5800
5801fi
5802
5803ac_ext=f
5804ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5805ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5807if test -n "$ac_tool_prefix"; then
5808  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5809  do
5810    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5812echo "$as_me:$LINENO: checking for $ac_word" >&5
5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814if test "${ac_cv_prog_F77+set}" = set; then
5815  echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817  if test -n "$F77"; then
5818  ac_cv_prog_F77="$F77" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  test -z "$as_dir" && as_dir=.
5825  for ac_exec_ext in '' $ac_executable_extensions; do
5826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829    break 2
5830  fi
5831done
5832done
5833
5834fi
5835fi
5836F77=$ac_cv_prog_F77
5837if test -n "$F77"; then
5838  echo "$as_me:$LINENO: result: $F77" >&5
5839echo "${ECHO_T}$F77" >&6
5840else
5841  echo "$as_me:$LINENO: result: no" >&5
5842echo "${ECHO_T}no" >&6
5843fi
5844
5845    test -n "$F77" && break
5846  done
5847fi
5848if test -z "$F77"; then
5849  ac_ct_F77=$F77
5850  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5851do
5852  # Extract the first word of "$ac_prog", so it can be a program name with args.
5853set dummy $ac_prog; ac_word=$2
5854echo "$as_me:$LINENO: checking for $ac_word" >&5
5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5857  echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859  if test -n "$ac_ct_F77"; then
5860  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865  IFS=$as_save_IFS
5866  test -z "$as_dir" && as_dir=.
5867  for ac_exec_ext in '' $ac_executable_extensions; do
5868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869    ac_cv_prog_ac_ct_F77="$ac_prog"
5870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871    break 2
5872  fi
5873done
5874done
5875
5876fi
5877fi
5878ac_ct_F77=$ac_cv_prog_ac_ct_F77
5879if test -n "$ac_ct_F77"; then
5880  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5881echo "${ECHO_T}$ac_ct_F77" >&6
5882else
5883  echo "$as_me:$LINENO: result: no" >&5
5884echo "${ECHO_T}no" >&6
5885fi
5886
5887  test -n "$ac_ct_F77" && break
5888done
5889
5890  F77=$ac_ct_F77
5891fi
5892
5893
5894# Provide some information about the compiler.
5895echo "$as_me:5895:" \
5896     "checking for Fortran 77 compiler version" >&5
5897ac_compiler=`set X $ac_compile; echo $2`
5898{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5899  (eval $ac_compiler --version </dev/null >&5) 2>&5
5900  ac_status=$?
5901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902  (exit $ac_status); }
5903{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5904  (eval $ac_compiler -v </dev/null >&5) 2>&5
5905  ac_status=$?
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); }
5908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5909  (eval $ac_compiler -V </dev/null >&5) 2>&5
5910  ac_status=$?
5911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); }
5913rm -f a.out
5914
5915# If we don't use `.F' as extension, the preprocessor is not run on the
5916# input file.  (Note that this only needs to work for GNU compilers.)
5917ac_save_ext=$ac_ext
5918ac_ext=F
5919echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5920echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5921if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5922  echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
5924  cat >conftest.$ac_ext <<_ACEOF
5925      program main
5926#ifndef __GNUC__
5927       choke me
5928#endif
5929
5930      end
5931_ACEOF
5932rm -f conftest.$ac_objext
5933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934  (eval $ac_compile) 2>conftest.er1
5935  ac_status=$?
5936  grep -v '^ *+' conftest.er1 >conftest.err
5937  rm -f conftest.er1
5938  cat conftest.err >&5
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); } &&
5941         { ac_try='test -z "$ac_f77_werror_flag"
5942                         || test ! -s conftest.err'
5943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944  (eval $ac_try) 2>&5
5945  ac_status=$?
5946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); }; } &&
5948         { ac_try='test -s conftest.$ac_objext'
5949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950  (eval $ac_try) 2>&5
5951  ac_status=$?
5952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953  (exit $ac_status); }; }; then
5954  ac_compiler_gnu=yes
5955else
5956  echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959ac_compiler_gnu=no
5960fi
5961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5963
5964fi
5965echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5966echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5967ac_ext=$ac_save_ext
5968ac_test_FFLAGS=${FFLAGS+set}
5969ac_save_FFLAGS=$FFLAGS
5970FFLAGS=
5971echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5972echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5973if test "${ac_cv_prog_f77_g+set}" = set; then
5974  echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976  FFLAGS=-g
5977cat >conftest.$ac_ext <<_ACEOF
5978      program main
5979
5980      end
5981_ACEOF
5982rm -f conftest.$ac_objext
5983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984  (eval $ac_compile) 2>conftest.er1
5985  ac_status=$?
5986  grep -v '^ *+' conftest.er1 >conftest.err
5987  rm -f conftest.er1
5988  cat conftest.err >&5
5989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990  (exit $ac_status); } &&
5991         { ac_try='test -z "$ac_f77_werror_flag"
5992                         || test ! -s conftest.err'
5993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994  (eval $ac_try) 2>&5
5995  ac_status=$?
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); }; } &&
5998         { ac_try='test -s conftest.$ac_objext'
5999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000  (eval $ac_try) 2>&5
6001  ac_status=$?
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); }; }; then
6004  ac_cv_prog_f77_g=yes
6005else
6006  echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009ac_cv_prog_f77_g=no
6010fi
6011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6012
6013fi
6014echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6015echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6016if test "$ac_test_FFLAGS" = set; then
6017  FFLAGS=$ac_save_FFLAGS
6018elif test $ac_cv_prog_f77_g = yes; then
6019  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6020    FFLAGS="-g -O2"
6021  else
6022    FFLAGS="-g"
6023  fi
6024else
6025  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6026    FFLAGS="-O2"
6027  else
6028    FFLAGS=
6029  fi
6030fi
6031
6032G77=`test $ac_compiler_gnu = yes && echo yes`
6033ac_ext=c
6034ac_cpp='$CPP $CPPFLAGS'
6035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038
6039
6040
6041# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6042
6043# find the maximum length of command line arguments
6044echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6045echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6046if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6047  echo $ECHO_N "(cached) $ECHO_C" >&6
6048else
6049    i=0
6050  teststring="ABCD"
6051
6052  case $build_os in
6053  msdosdjgpp*)
6054    # On DJGPP, this test can blow up pretty badly due to problems in libc
6055    # (any single argument exceeding 2000 bytes causes a buffer overrun
6056    # during glob expansion).  Even if it were fixed, the result of this
6057    # check would be larger than it should be.
6058    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6059    ;;
6060
6061  gnu*)
6062    # Under GNU Hurd, this test is not required because there is
6063    # no limit to the length of command line arguments.
6064    # Libtool will interpret -1 as no limit whatsoever
6065    lt_cv_sys_max_cmd_len=-1;
6066    ;;
6067
6068  cygwin* | mingw*)
6069    # On Win9x/ME, this test blows up -- it succeeds, but takes
6070    # about 5 minutes as the teststring grows exponentially.
6071    # Worse, since 9x/ME are not pre-emptively multitasking,
6072    # you end up with a "frozen" computer, even though with patience
6073    # the test eventually succeeds (with a max line length of 256k).
6074    # Instead, let's just punt: use the minimum linelength reported by
6075    # all of the supported platforms: 8192 (on NT/2K/XP).
6076    lt_cv_sys_max_cmd_len=8192;
6077    ;;
6078
6079  amigaos*)
6080    # On AmigaOS with pdksh, this test takes hours, literally.
6081    # So we just punt and use a minimum line length of 8192.
6082    lt_cv_sys_max_cmd_len=8192;
6083    ;;
6084
6085  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6086    # This has been around since 386BSD, at least.  Likely further.
6087    if test -x /sbin/sysctl; then
6088      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6089    elif test -x /usr/sbin/sysctl; then
6090      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6091    else
6092      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6093    fi
6094    # And add a safety zone
6095    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6096    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6097    ;;
6098
6099  interix*)
6100    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6101    lt_cv_sys_max_cmd_len=196608
6102    ;;
6103
6104  osf*)
6105    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6106    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6107    # nice to cause kernel panics so lets avoid the loop below.
6108    # First set a reasonable default.
6109    lt_cv_sys_max_cmd_len=16384
6110    #
6111    if test -x /sbin/sysconfig; then
6112      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6113        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6114      esac
6115    fi
6116    ;;
6117  sco3.2v5*)
6118    lt_cv_sys_max_cmd_len=102400
6119    ;;
6120  sysv5* | sco5v6* | sysv4.2uw2*)
6121    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6122    if test -n "$kargmax"; then
6123      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6124    else
6125      lt_cv_sys_max_cmd_len=32768
6126    fi
6127    ;;
6128  *)
6129    # If test is not a shell built-in, we'll probably end up computing a
6130    # maximum length that is only half of the actual maximum length, but
6131    # we can't tell.
6132    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6133    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6134               = "XX$teststring") >/dev/null 2>&1 &&
6135            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6136            lt_cv_sys_max_cmd_len=$new_result &&
6137            test $i != 17 # 1/2 MB should be enough
6138    do
6139      i=`expr $i + 1`
6140      teststring=$teststring$teststring
6141    done
6142    teststring=
6143    # Add a significant safety factor because C++ compilers can tack on massive
6144    # amounts of additional arguments before passing them to the linker.
6145    # It appears as though 1/2 is a usable value.
6146    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6147    ;;
6148  esac
6149
6150fi
6151
6152if test -n $lt_cv_sys_max_cmd_len ; then
6153  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6154echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6155else
6156  echo "$as_me:$LINENO: result: none" >&5
6157echo "${ECHO_T}none" >&6
6158fi
6159
6160
6161
6162
6163# Check for command to grab the raw symbol name followed by C symbol from nm.
6164echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6165echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6166if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6167  echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169
6170# These are sane defaults that work on at least a few old systems.
6171# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6172
6173# Character class describing NM global symbol codes.
6174symcode='[BCDEGRST]'
6175
6176# Regexp to match symbols that can be accessed directly from C.
6177sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6178
6179# Transform an extracted symbol line into a proper C declaration
6180lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6181
6182# Transform an extracted symbol line into symbol name and symbol address
6183lt_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'"
6184
6185# Define system-specific variables.
6186case $host_os in
6187aix*)
6188  symcode='[BCDT]'
6189  ;;
6190cygwin* | mingw* | pw32*)
6191  symcode='[ABCDGISTW]'
6192  ;;
6193hpux*) # Its linker distinguishes data from code symbols
6194  if test "$host_cpu" = ia64; then
6195    symcode='[ABCDEGRST]'
6196  fi
6197  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6198  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'"
6199  ;;
6200linux*)
6201  if test "$host_cpu" = ia64; then
6202    symcode='[ABCDGIRSTW]'
6203    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6204    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'"
6205  fi
6206  ;;
6207irix* | nonstopux*)
6208  symcode='[BCDEGRST]'
6209  ;;
6210osf*)
6211  symcode='[BCDEGQRST]'
6212  ;;
6213solaris*)
6214  symcode='[BDRT]'
6215  ;;
6216sco3.2v5*)
6217  symcode='[DT]'
6218  ;;
6219sysv4.2uw2*)
6220  symcode='[DT]'
6221  ;;
6222sysv5* | sco5v6* | unixware* | OpenUNIX*)
6223  symcode='[ABDT]'
6224  ;;
6225sysv4)
6226  symcode='[DFNSTU]'
6227  ;;
6228esac
6229
6230# Handle CRLF in mingw tool chain
6231opt_cr=
6232case $build_os in
6233mingw*)
6234  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6235  ;;
6236esac
6237
6238# If we're using GNU nm, then use its standard symbol codes.
6239case `$NM -V 2>&1` in
6240*GNU* | *'with BFD'*)
6241  symcode='[ABCDGIRSTW]' ;;
6242esac
6243
6244# Try without a prefix undercore, then with it.
6245for ac_symprfx in "" "_"; do
6246
6247  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6248  symxfrm="\\1 $ac_symprfx\\2 \\2"
6249
6250  # Write the raw and C identifiers.
6251  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6252
6253  # Check to see that the pipe works correctly.
6254  pipe_works=no
6255
6256  rm -f conftest*
6257  cat > conftest.$ac_ext <<EOF
6258#ifdef __cplusplus
6259extern "C" {
6260#endif
6261char nm_test_var;
6262void nm_test_func(){}
6263#ifdef __cplusplus
6264}
6265#endif
6266int main(){nm_test_var='a';nm_test_func();return(0);}
6267EOF
6268
6269  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270  (eval $ac_compile) 2>&5
6271  ac_status=$?
6272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273  (exit $ac_status); }; then
6274    # Now try to grab the symbols.
6275    nlist=conftest.nm
6276    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6277  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6278  ac_status=$?
6279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); } && test -s "$nlist"; then
6281      # Try sorting and uniquifying the output.
6282      if sort "$nlist" | uniq > "$nlist"T; then
6283        mv -f "$nlist"T "$nlist"
6284      else
6285        rm -f "$nlist"T
6286      fi
6287
6288      # Make sure that we snagged all the symbols we need.
6289      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6290        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6291          cat <<EOF > conftest.$ac_ext
6292#ifdef __cplusplus
6293extern "C" {
6294#endif
6295
6296EOF
6297          # Now generate the symbol file.
6298          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6299
6300          cat <<EOF >> conftest.$ac_ext
6301#if defined (__STDC__) && __STDC__
6302# define lt_ptr_t void *
6303#else
6304# define lt_ptr_t char *
6305# define const
6306#endif
6307
6308/* The mapping between symbol names and symbols. */
6309const struct {
6310  const char *name;
6311  lt_ptr_t address;
6312}
6313lt_preloaded_symbols[] =
6314{
6315EOF
6316          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6317          cat <<\EOF >> conftest.$ac_ext
6318  {0, (lt_ptr_t) 0}
6319};
6320
6321#ifdef __cplusplus
6322}
6323#endif
6324EOF
6325          # Now try linking the two files.
6326          mv conftest.$ac_objext conftstm.$ac_objext
6327          lt_save_LIBS="$LIBS"
6328          lt_save_CFLAGS="$CFLAGS"
6329          LIBS="conftstm.$ac_objext"
6330          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6331          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332  (eval $ac_link) 2>&5
6333  ac_status=$?
6334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6336            pipe_works=yes
6337          fi
6338          LIBS="$lt_save_LIBS"
6339          CFLAGS="$lt_save_CFLAGS"
6340        else
6341          echo "cannot find nm_test_func in $nlist" >&5
6342        fi
6343      else
6344        echo "cannot find nm_test_var in $nlist" >&5
6345      fi
6346    else
6347      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6348    fi
6349  else
6350    echo "$progname: failed program was:" >&5
6351    cat conftest.$ac_ext >&5
6352  fi
6353  rm -f conftest* conftst*
6354
6355  # Do not use the global_symbol_pipe unless it works.
6356  if test "$pipe_works" = yes; then
6357    break
6358  else
6359    lt_cv_sys_global_symbol_pipe=
6360  fi
6361done
6362
6363fi
6364
6365if test -z "$lt_cv_sys_global_symbol_pipe"; then
6366  lt_cv_sys_global_symbol_to_cdecl=
6367fi
6368if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6369  echo "$as_me:$LINENO: result: failed" >&5
6370echo "${ECHO_T}failed" >&6
6371else
6372  echo "$as_me:$LINENO: result: ok" >&5
6373echo "${ECHO_T}ok" >&6
6374fi
6375
6376echo "$as_me:$LINENO: checking for objdir" >&5
6377echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6378if test "${lt_cv_objdir+set}" = set; then
6379  echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381  rm -f .libs 2>/dev/null
6382mkdir .libs 2>/dev/null
6383if test -d .libs; then
6384  lt_cv_objdir=.libs
6385else
6386  # MS-DOS does not allow filenames that begin with a dot.
6387  lt_cv_objdir=_libs
6388fi
6389rmdir .libs 2>/dev/null
6390fi
6391echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6392echo "${ECHO_T}$lt_cv_objdir" >&6
6393objdir=$lt_cv_objdir
6394
6395
6396
6397
6398
6399case $host_os in
6400aix3*)
6401  # AIX sometimes has problems with the GCC collect2 program.  For some
6402  # reason, if we set the COLLECT_NAMES environment variable, the problems
6403  # vanish in a puff of smoke.
6404  if test "X${COLLECT_NAMES+set}" != Xset; then
6405    COLLECT_NAMES=
6406    export COLLECT_NAMES
6407  fi
6408  ;;
6409esac
6410
6411# Sed substitution that helps us do robust quoting.  It backslashifies
6412# metacharacters that are still active within double-quoted strings.
6413Xsed='sed -e 1s/^X//'
6414sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6415
6416# Same as above, but do not quote variable references.
6417double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6418
6419# Sed substitution to delay expansion of an escaped shell variable in a
6420# double_quote_subst'ed string.
6421delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6422
6423# Sed substitution to avoid accidental globbing in evaled expressions
6424no_glob_subst='s/\*/\\\*/g'
6425
6426# Constants:
6427rm="rm -f"
6428
6429# Global variables:
6430default_ofile=libtool
6431can_build_shared=yes
6432
6433# All known linkers require a `.a' archive for static linking (except MSVC,
6434# which needs '.lib').
6435libext=a
6436ltmain="$ac_aux_dir/ltmain.sh"
6437ofile="$default_ofile"
6438with_gnu_ld="$lt_cv_prog_gnu_ld"
6439
6440if test -n "$ac_tool_prefix"; then
6441  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6442set dummy ${ac_tool_prefix}ar; ac_word=$2
6443echo "$as_me:$LINENO: checking for $ac_word" >&5
6444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6445if test "${ac_cv_prog_AR+set}" = set; then
6446  echo $ECHO_N "(cached) $ECHO_C" >&6
6447else
6448  if test -n "$AR"; then
6449  ac_cv_prog_AR="$AR" # Let the user override the test.
6450else
6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452for as_dir in $PATH
6453do
6454  IFS=$as_save_IFS
6455  test -z "$as_dir" && as_dir=.
6456  for ac_exec_ext in '' $ac_executable_extensions; do
6457  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458    ac_cv_prog_AR="${ac_tool_prefix}ar"
6459    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460    break 2
6461  fi
6462done
6463done
6464
6465fi
6466fi
6467AR=$ac_cv_prog_AR
6468if test -n "$AR"; then
6469  echo "$as_me:$LINENO: result: $AR" >&5
6470echo "${ECHO_T}$AR" >&6
6471else
6472  echo "$as_me:$LINENO: result: no" >&5
6473echo "${ECHO_T}no" >&6
6474fi
6475
6476fi
6477if test -z "$ac_cv_prog_AR"; then
6478  ac_ct_AR=$AR
6479  # Extract the first word of "ar", so it can be a program name with args.
6480set dummy ar; ac_word=$2
6481echo "$as_me:$LINENO: checking for $ac_word" >&5
6482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6483if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6484  echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486  if test -n "$ac_ct_AR"; then
6487  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6488else
6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492  IFS=$as_save_IFS
6493  test -z "$as_dir" && as_dir=.
6494  for ac_exec_ext in '' $ac_executable_extensions; do
6495  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496    ac_cv_prog_ac_ct_AR="ar"
6497    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498    break 2
6499  fi
6500done
6501done
6502
6503  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6504fi
6505fi
6506ac_ct_AR=$ac_cv_prog_ac_ct_AR
6507if test -n "$ac_ct_AR"; then
6508  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6509echo "${ECHO_T}$ac_ct_AR" >&6
6510else
6511  echo "$as_me:$LINENO: result: no" >&5
6512echo "${ECHO_T}no" >&6
6513fi
6514
6515  AR=$ac_ct_AR
6516else
6517  AR="$ac_cv_prog_AR"
6518fi
6519
6520if test -n "$ac_tool_prefix"; then
6521  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6522set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6523echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6525if test "${ac_cv_prog_RANLIB+set}" = set; then
6526  echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528  if test -n "$RANLIB"; then
6529  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  test -z "$as_dir" && as_dir=.
6536  for ac_exec_ext in '' $ac_executable_extensions; do
6537  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6539    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540    break 2
6541  fi
6542done
6543done
6544
6545fi
6546fi
6547RANLIB=$ac_cv_prog_RANLIB
6548if test -n "$RANLIB"; then
6549  echo "$as_me:$LINENO: result: $RANLIB" >&5
6550echo "${ECHO_T}$RANLIB" >&6
6551else
6552  echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
6554fi
6555
6556fi
6557if test -z "$ac_cv_prog_RANLIB"; then
6558  ac_ct_RANLIB=$RANLIB
6559  # Extract the first word of "ranlib", so it can be a program name with args.
6560set dummy ranlib; ac_word=$2
6561echo "$as_me:$LINENO: checking for $ac_word" >&5
6562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6563if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6564  echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566  if test -n "$ac_ct_RANLIB"; then
6567  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6568else
6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572  IFS=$as_save_IFS
6573  test -z "$as_dir" && as_dir=.
6574  for ac_exec_ext in '' $ac_executable_extensions; do
6575  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576    ac_cv_prog_ac_ct_RANLIB="ranlib"
6577    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578    break 2
6579  fi
6580done
6581done
6582
6583  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6584fi
6585fi
6586ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6587if test -n "$ac_ct_RANLIB"; then
6588  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6589echo "${ECHO_T}$ac_ct_RANLIB" >&6
6590else
6591  echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
6593fi
6594
6595  RANLIB=$ac_ct_RANLIB
6596else
6597  RANLIB="$ac_cv_prog_RANLIB"
6598fi
6599
6600if test -n "$ac_tool_prefix"; then
6601  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6602set dummy ${ac_tool_prefix}strip; ac_word=$2
6603echo "$as_me:$LINENO: checking for $ac_word" >&5
6604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6605if test "${ac_cv_prog_STRIP+set}" = set; then
6606  echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608  if test -n "$STRIP"; then
6609  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  test -z "$as_dir" && as_dir=.
6616  for ac_exec_ext in '' $ac_executable_extensions; do
6617  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623done
6624
6625fi
6626fi
6627STRIP=$ac_cv_prog_STRIP
6628if test -n "$STRIP"; then
6629  echo "$as_me:$LINENO: result: $STRIP" >&5
6630echo "${ECHO_T}$STRIP" >&6
6631else
6632  echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6
6634fi
6635
6636fi
6637if test -z "$ac_cv_prog_STRIP"; then
6638  ac_ct_STRIP=$STRIP
6639  # Extract the first word of "strip", so it can be a program name with args.
6640set dummy strip; ac_word=$2
6641echo "$as_me:$LINENO: checking for $ac_word" >&5
6642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6643if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6644  echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646  if test -n "$ac_ct_STRIP"; then
6647  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652  IFS=$as_save_IFS
6653  test -z "$as_dir" && as_dir=.
6654  for ac_exec_ext in '' $ac_executable_extensions; do
6655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656    ac_cv_prog_ac_ct_STRIP="strip"
6657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658    break 2
6659  fi
6660done
6661done
6662
6663  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6664fi
6665fi
6666ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6667if test -n "$ac_ct_STRIP"; then
6668  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6669echo "${ECHO_T}$ac_ct_STRIP" >&6
6670else
6671  echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6
6673fi
6674
6675  STRIP=$ac_ct_STRIP
6676else
6677  STRIP="$ac_cv_prog_STRIP"
6678fi
6679
6680
6681old_CC="$CC"
6682old_CFLAGS="$CFLAGS"
6683
6684# Set sane defaults for various variables
6685test -z "$AR" && AR=ar
6686test -z "$AR_FLAGS" && AR_FLAGS=cru
6687test -z "$AS" && AS=as
6688test -z "$CC" && CC=cc
6689test -z "$LTCC" && LTCC=$CC
6690test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6691test -z "$DLLTOOL" && DLLTOOL=dlltool
6692test -z "$LD" && LD=ld
6693test -z "$LN_S" && LN_S="ln -s"
6694test -z "$MAGIC_CMD" && MAGIC_CMD=file
6695test -z "$NM" && NM=nm
6696test -z "$SED" && SED=sed
6697test -z "$OBJDUMP" && OBJDUMP=objdump
6698test -z "$RANLIB" && RANLIB=:
6699test -z "$STRIP" && STRIP=:
6700test -z "$ac_objext" && ac_objext=o
6701
6702# Determine commands to create old-style static archives.
6703old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6704old_postinstall_cmds='chmod 644 $oldlib'
6705old_postuninstall_cmds=
6706
6707if test -n "$RANLIB"; then
6708  case $host_os in
6709  openbsd*)
6710    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6711    ;;
6712  *)
6713    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6714    ;;
6715  esac
6716  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6717fi
6718
6719for cc_temp in $compiler""; do
6720  case $cc_temp in
6721    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6722    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6723    \-*) ;;
6724    *) break;;
6725  esac
6726done
6727cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6728
6729
6730# Only perform the check for file, if the check method requires it
6731case $deplibs_check_method in
6732file_magic*)
6733  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6734    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6735echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6736if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6737  echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739  case $MAGIC_CMD in
6740[\\/*] |  ?:[\\/]*)
6741  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6742  ;;
6743*)
6744  lt_save_MAGIC_CMD="$MAGIC_CMD"
6745  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6746  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6747  for ac_dir in $ac_dummy; do
6748    IFS="$lt_save_ifs"
6749    test -z "$ac_dir" && ac_dir=.
6750    if test -f $ac_dir/${ac_tool_prefix}file; then
6751      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6752      if test -n "$file_magic_test_file"; then
6753        case $deplibs_check_method in
6754        "file_magic "*)
6755          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6756          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6757          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6758            $EGREP "$file_magic_regex" > /dev/null; then
6759            :
6760          else
6761            cat <<EOF 1>&2
6762
6763*** Warning: the command libtool uses to detect shared libraries,
6764*** $file_magic_cmd, produces output that libtool cannot recognize.
6765*** The result is that libtool may fail to recognize shared libraries
6766*** as such.  This will affect the creation of libtool libraries that
6767*** depend on shared libraries, but programs linked with such libtool
6768*** libraries will work regardless of this problem.  Nevertheless, you
6769*** may want to report the problem to your system manager and/or to
6770*** bug-libtool@gnu.org
6771
6772EOF
6773          fi ;;
6774        esac
6775      fi
6776      break
6777    fi
6778  done
6779  IFS="$lt_save_ifs"
6780  MAGIC_CMD="$lt_save_MAGIC_CMD"
6781  ;;
6782esac
6783fi
6784
6785MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6786if test -n "$MAGIC_CMD"; then
6787  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6788echo "${ECHO_T}$MAGIC_CMD" >&6
6789else
6790  echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6
6792fi
6793
6794if test -z "$lt_cv_path_MAGIC_CMD"; then
6795  if test -n "$ac_tool_prefix"; then
6796    echo "$as_me:$LINENO: checking for file" >&5
6797echo $ECHO_N "checking for file... $ECHO_C" >&6
6798if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6799  echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801  case $MAGIC_CMD in
6802[\\/*] |  ?:[\\/]*)
6803  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6804  ;;
6805*)
6806  lt_save_MAGIC_CMD="$MAGIC_CMD"
6807  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6808  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6809  for ac_dir in $ac_dummy; do
6810    IFS="$lt_save_ifs"
6811    test -z "$ac_dir" && ac_dir=.
6812    if test -f $ac_dir/file; then
6813      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6814      if test -n "$file_magic_test_file"; then
6815        case $deplibs_check_method in
6816        "file_magic "*)
6817          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6818          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6819          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6820            $EGREP "$file_magic_regex" > /dev/null; then
6821            :
6822          else
6823            cat <<EOF 1>&2
6824
6825*** Warning: the command libtool uses to detect shared libraries,
6826*** $file_magic_cmd, produces output that libtool cannot recognize.
6827*** The result is that libtool may fail to recognize shared libraries
6828*** as such.  This will affect the creation of libtool libraries that
6829*** depend on shared libraries, but programs linked with such libtool
6830*** libraries will work regardless of this problem.  Nevertheless, you
6831*** may want to report the problem to your system manager and/or to
6832*** bug-libtool@gnu.org
6833
6834EOF
6835          fi ;;
6836        esac
6837      fi
6838      break
6839    fi
6840  done
6841  IFS="$lt_save_ifs"
6842  MAGIC_CMD="$lt_save_MAGIC_CMD"
6843  ;;
6844esac
6845fi
6846
6847MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6848if test -n "$MAGIC_CMD"; then
6849  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6850echo "${ECHO_T}$MAGIC_CMD" >&6
6851else
6852  echo "$as_me:$LINENO: result: no" >&5
6853echo "${ECHO_T}no" >&6
6854fi
6855
6856  else
6857    MAGIC_CMD=:
6858  fi
6859fi
6860
6861  fi
6862  ;;
6863esac
6864
6865enable_dlopen=no
6866enable_win32_dll=no
6867
6868# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6869if test "${enable_libtool_lock+set}" = set; then
6870  enableval="$enable_libtool_lock"
6871
6872fi;
6873test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6874
6875
6876# Check whether --with-pic or --without-pic was given.
6877if test "${with_pic+set}" = set; then
6878  withval="$with_pic"
6879  pic_mode="$withval"
6880else
6881  pic_mode=default
6882fi;
6883test -z "$pic_mode" && pic_mode=default
6884
6885# Use C for the default configuration in the libtool script
6886tagname=
6887lt_save_CC="$CC"
6888ac_ext=c
6889ac_cpp='$CPP $CPPFLAGS'
6890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893
6894
6895# Source file extension for C test sources.
6896ac_ext=c
6897
6898# Object file extension for compiled C test sources.
6899objext=o
6900objext=$objext
6901
6902# Code to be used in simple compile tests
6903lt_simple_compile_test_code="int some_variable = 0;\n"
6904
6905# Code to be used in simple link tests
6906lt_simple_link_test_code='int main(){return(0);}\n'
6907
6908
6909# If no C compiler was specified, use CC.
6910LTCC=${LTCC-"$CC"}
6911
6912# If no C compiler flags were specified, use CFLAGS.
6913LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6914
6915# Allow CC to be a program name with arguments.
6916compiler=$CC
6917
6918
6919# save warnings/boilerplate of simple test code
6920ac_outfile=conftest.$ac_objext
6921printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6922eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6923_lt_compiler_boilerplate=`cat conftest.err`
6924$rm conftest*
6925
6926ac_outfile=conftest.$ac_objext
6927printf "$lt_simple_link_test_code" >conftest.$ac_ext
6928eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6929_lt_linker_boilerplate=`cat conftest.err`
6930$rm conftest*
6931
6932
6933## CAVEAT EMPTOR:
6934## There is no encapsulation within the following macros, do not change
6935## the running order or otherwise move them around unless you know exactly
6936## what you are doing...
6937
6938lt_prog_compiler_no_builtin_flag=
6939
6940if test "$GCC" = yes; then
6941  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6942
6943
6944echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6945echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6946if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6947  echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949  lt_cv_prog_compiler_rtti_exceptions=no
6950  ac_outfile=conftest.$ac_objext
6951   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6952   lt_compiler_flag="-fno-rtti -fno-exceptions"
6953   # Insert the option either (1) after the last *FLAGS variable, or
6954   # (2) before a word containing "conftest.", or (3) at the end.
6955   # Note that $ac_compile itself does not contain backslashes and begins
6956   # with a dollar sign (not a hyphen), so the echo should work correctly.
6957   # The option is referenced via a variable to avoid confusing sed.
6958   lt_compile=`echo "$ac_compile" | $SED \
6959   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6960   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6961   -e 's:$: $lt_compiler_flag:'`
6962   (eval echo "\"\$as_me:6962: $lt_compile\"" >&5)
6963   (eval "$lt_compile" 2>conftest.err)
6964   ac_status=$?
6965   cat conftest.err >&5
6966   echo "$as_me:6966: \$? = $ac_status" >&5
6967   if (exit $ac_status) && test -s "$ac_outfile"; then
6968     # The compiler can only warn and ignore the option if not recognized
6969     # So say no if there are warnings other than the usual output.
6970     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6971     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6972     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6973       lt_cv_prog_compiler_rtti_exceptions=yes
6974     fi
6975   fi
6976   $rm conftest*
6977
6978fi
6979echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6980echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6981
6982if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6983    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6984else
6985    :
6986fi
6987
6988fi
6989
6990lt_prog_compiler_wl=
6991lt_prog_compiler_pic=
6992lt_prog_compiler_static=
6993
6994echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6995echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6996
6997  if test "$GCC" = yes; then
6998    lt_prog_compiler_wl='-Wl,'
6999    lt_prog_compiler_static='-static'
7000
7001    case $host_os in
7002      aix*)
7003      # All AIX code is PIC.
7004      if test "$host_cpu" = ia64; then
7005        # AIX 5 now supports IA64 processor
7006        lt_prog_compiler_static='-Bstatic'
7007      fi
7008      ;;
7009
7010    amigaos*)
7011      # FIXME: we need at least 68020 code to build shared libraries, but
7012      # adding the `-m68020' flag to GCC prevents building anything better,
7013      # like `-m68040'.
7014      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7015      ;;
7016
7017    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7018      # PIC is the default for these OSes.
7019      ;;
7020
7021    mingw* | pw32* | os2*)
7022      # This hack is so that the source file can tell whether it is being
7023      # built for inclusion in a dll (and should export symbols for example).
7024      lt_prog_compiler_pic='-DDLL_EXPORT'
7025      ;;
7026
7027    darwin* | rhapsody*)
7028      # PIC is the default on this platform
7029      # Common symbols not allowed in MH_DYLIB files
7030      lt_prog_compiler_pic='-fno-common'
7031      ;;
7032
7033    interix3*)
7034      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7035      # Instead, we relocate shared libraries at runtime.
7036      ;;
7037
7038    msdosdjgpp*)
7039      # Just because we use GCC doesn't mean we suddenly get shared libraries
7040      # on systems that don't support them.
7041      lt_prog_compiler_can_build_shared=no
7042      enable_shared=no
7043      ;;
7044
7045    sysv4*MP*)
7046      if test -d /usr/nec; then
7047        lt_prog_compiler_pic=-Kconform_pic
7048      fi
7049      ;;
7050
7051    hpux*)
7052      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7053      # not for PA HP-UX.
7054      case $host_cpu in
7055      hppa*64*|ia64*)
7056        # +Z the default
7057        ;;
7058      *)
7059        lt_prog_compiler_pic='-fPIC'
7060        ;;
7061      esac
7062      ;;
7063
7064    *)
7065      lt_prog_compiler_pic='-fPIC'
7066      ;;
7067    esac
7068  else
7069    # PORTME Check for flag to pass linker flags through the system compiler.
7070    case $host_os in
7071    aix*)
7072      lt_prog_compiler_wl='-Wl,'
7073      if test "$host_cpu" = ia64; then
7074        # AIX 5 now supports IA64 processor
7075        lt_prog_compiler_static='-Bstatic'
7076      else
7077        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7078      fi
7079      ;;
7080      darwin*)
7081        # PIC is the default on this platform
7082        # Common symbols not allowed in MH_DYLIB files
7083       case $cc_basename in
7084         xlc*)
7085         lt_prog_compiler_pic='-qnocommon'
7086         lt_prog_compiler_wl='-Wl,'
7087         ;;
7088       esac
7089       ;;
7090
7091    mingw* | pw32* | os2*)
7092      # This hack is so that the source file can tell whether it is being
7093      # built for inclusion in a dll (and should export symbols for example).
7094      lt_prog_compiler_pic='-DDLL_EXPORT'
7095      ;;
7096
7097    hpux9* | hpux10* | hpux11*)
7098      lt_prog_compiler_wl='-Wl,'
7099      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7100      # not for PA HP-UX.
7101      case $host_cpu in
7102      hppa*64*|ia64*)
7103        # +Z the default
7104        ;;
7105      *)
7106        lt_prog_compiler_pic='+Z'
7107        ;;
7108      esac
7109      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7110      lt_prog_compiler_static='${wl}-a ${wl}archive'
7111      ;;
7112
7113    irix5* | irix6* | nonstopux*)
7114      lt_prog_compiler_wl='-Wl,'
7115      # PIC (with -KPIC) is the default.
7116      lt_prog_compiler_static='-non_shared'
7117      ;;
7118
7119    newsos6)
7120      lt_prog_compiler_pic='-KPIC'
7121      lt_prog_compiler_static='-Bstatic'
7122      ;;
7123
7124    linux*)
7125      case $cc_basename in
7126      icc* | ecc*)
7127        lt_prog_compiler_wl='-Wl,'
7128        lt_prog_compiler_pic='-KPIC'
7129        lt_prog_compiler_static='-static'
7130        ;;
7131      pgcc* | pgf77* | pgf90* | pgf95*)
7132        # Portland Group compilers (*not* the Pentium gcc compiler,
7133        # which looks to be a dead project)
7134        lt_prog_compiler_wl='-Wl,'
7135        lt_prog_compiler_pic='-fpic'
7136        lt_prog_compiler_static='-Bstatic'
7137        ;;
7138      ccc*)
7139        lt_prog_compiler_wl='-Wl,'
7140        # All Alpha code is PIC.
7141        lt_prog_compiler_static='-non_shared'
7142        ;;
7143      esac
7144      ;;
7145
7146    osf3* | osf4* | osf5*)
7147      lt_prog_compiler_wl='-Wl,'
7148      # All OSF/1 code is PIC.
7149      lt_prog_compiler_static='-non_shared'
7150      ;;
7151
7152    solaris*)
7153      lt_prog_compiler_pic='-KPIC'
7154      lt_prog_compiler_static='-Bstatic'
7155      case $cc_basename in
7156      f77* | f90* | f95*)
7157        lt_prog_compiler_wl='-Qoption ld ';;
7158      *)
7159        lt_prog_compiler_wl='-Wl,';;
7160      esac
7161      ;;
7162
7163    sunos4*)
7164      lt_prog_compiler_wl='-Qoption ld '
7165      lt_prog_compiler_pic='-PIC'
7166      lt_prog_compiler_static='-Bstatic'
7167      ;;
7168
7169    sysv4 | sysv4.2uw2* | sysv4.3*)
7170      lt_prog_compiler_wl='-Wl,'
7171      lt_prog_compiler_pic='-KPIC'
7172      lt_prog_compiler_static='-Bstatic'
7173      ;;
7174
7175    sysv4*MP*)
7176      if test -d /usr/nec ;then
7177        lt_prog_compiler_pic='-Kconform_pic'
7178        lt_prog_compiler_static='-Bstatic'
7179      fi
7180      ;;
7181
7182    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7183      lt_prog_compiler_wl='-Wl,'
7184      lt_prog_compiler_pic='-KPIC'
7185      lt_prog_compiler_static='-Bstatic'
7186      ;;
7187
7188    unicos*)
7189      lt_prog_compiler_wl='-Wl,'
7190      lt_prog_compiler_can_build_shared=no
7191      ;;
7192
7193    uts4*)
7194      lt_prog_compiler_pic='-pic'
7195      lt_prog_compiler_static='-Bstatic'
7196      ;;
7197
7198    *)
7199      lt_prog_compiler_can_build_shared=no
7200      ;;
7201    esac
7202  fi
7203
7204echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7205echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7206
7207#
7208# Check to make sure the PIC flag actually works.
7209#
7210if test -n "$lt_prog_compiler_pic"; then
7211
7212echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7213echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7214if test "${lt_prog_compiler_pic_works+set}" = set; then
7215  echo $ECHO_N "(cached) $ECHO_C" >&6
7216else
7217  lt_prog_compiler_pic_works=no
7218  ac_outfile=conftest.$ac_objext
7219   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7220   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7221   # Insert the option either (1) after the last *FLAGS variable, or
7222   # (2) before a word containing "conftest.", or (3) at the end.
7223   # Note that $ac_compile itself does not contain backslashes and begins
7224   # with a dollar sign (not a hyphen), so the echo should work correctly.
7225   # The option is referenced via a variable to avoid confusing sed.
7226   lt_compile=`echo "$ac_compile" | $SED \
7227   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7228   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7229   -e 's:$: $lt_compiler_flag:'`
7230   (eval echo "\"\$as_me:7230: $lt_compile\"" >&5)
7231   (eval "$lt_compile" 2>conftest.err)
7232   ac_status=$?
7233   cat conftest.err >&5
7234   echo "$as_me:7234: \$? = $ac_status" >&5
7235   if (exit $ac_status) && test -s "$ac_outfile"; then
7236     # The compiler can only warn and ignore the option if not recognized
7237     # So say no if there are warnings other than the usual output.
7238     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7239     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7240     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7241       lt_prog_compiler_pic_works=yes
7242     fi
7243   fi
7244   $rm conftest*
7245
7246fi
7247echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7248echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7249
7250if test x"$lt_prog_compiler_pic_works" = xyes; then
7251    case $lt_prog_compiler_pic in
7252     "" | " "*) ;;
7253     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7254     esac
7255else
7256    lt_prog_compiler_pic=
7257     lt_prog_compiler_can_build_shared=no
7258fi
7259
7260fi
7261case $host_os in
7262  # For platforms which do not support PIC, -DPIC is meaningless:
7263  *djgpp*)
7264    lt_prog_compiler_pic=
7265    ;;
7266  *)
7267    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7268    ;;
7269esac
7270
7271#
7272# Check to make sure the static flag actually works.
7273#
7274wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7275echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7276echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7277if test "${lt_prog_compiler_static_works+set}" = set; then
7278  echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280  lt_prog_compiler_static_works=no
7281   save_LDFLAGS="$LDFLAGS"
7282   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7283   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7284   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7285     # The linker can only warn and ignore the option if not recognized
7286     # So say no if there are warnings
7287     if test -s conftest.err; then
7288       # Append any errors to the config.log.
7289       cat conftest.err 1>&5
7290       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7291       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7292       if diff conftest.exp conftest.er2 >/dev/null; then
7293         lt_prog_compiler_static_works=yes
7294       fi
7295     else
7296       lt_prog_compiler_static_works=yes
7297     fi
7298   fi
7299   $rm conftest*
7300   LDFLAGS="$save_LDFLAGS"
7301
7302fi
7303echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7304echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7305
7306if test x"$lt_prog_compiler_static_works" = xyes; then
7307    :
7308else
7309    lt_prog_compiler_static=
7310fi
7311
7312
7313echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7314echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7315if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7316  echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318  lt_cv_prog_compiler_c_o=no
7319   $rm -r conftest 2>/dev/null
7320   mkdir conftest
7321   cd conftest
7322   mkdir out
7323   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7324
7325   lt_compiler_flag="-o out/conftest2.$ac_objext"
7326   # Insert the option either (1) after the last *FLAGS variable, or
7327   # (2) before a word containing "conftest.", or (3) at the end.
7328   # Note that $ac_compile itself does not contain backslashes and begins
7329   # with a dollar sign (not a hyphen), so the echo should work correctly.
7330   lt_compile=`echo "$ac_compile" | $SED \
7331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7333   -e 's:$: $lt_compiler_flag:'`
7334   (eval echo "\"\$as_me:7334: $lt_compile\"" >&5)
7335   (eval "$lt_compile" 2>out/conftest.err)
7336   ac_status=$?
7337   cat out/conftest.err >&5
7338   echo "$as_me:7338: \$? = $ac_status" >&5
7339   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7340   then
7341     # The compiler can only warn and ignore the option if not recognized
7342     # So say no if there are warnings
7343     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7344     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7345     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7346       lt_cv_prog_compiler_c_o=yes
7347     fi
7348   fi
7349   chmod u+w . 2>&5
7350   $rm conftest*
7351   # SGI C++ compiler will create directory out/ii_files/ for
7352   # template instantiation
7353   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7354   $rm out/* && rmdir out
7355   cd ..
7356   rmdir conftest
7357   $rm conftest*
7358
7359fi
7360echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7361echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7362
7363
7364hard_links="nottested"
7365if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7366  # do not overwrite the value of need_locks provided by the user
7367  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7368echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7369  hard_links=yes
7370  $rm conftest*
7371  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7372  touch conftest.a
7373  ln conftest.a conftest.b 2>&5 || hard_links=no
7374  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7375  echo "$as_me:$LINENO: result: $hard_links" >&5
7376echo "${ECHO_T}$hard_links" >&6
7377  if test "$hard_links" = no; then
7378    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7379echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7380    need_locks=warn
7381  fi
7382else
7383  need_locks=no
7384fi
7385
7386echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7387echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7388
7389  runpath_var=
7390  allow_undefined_flag=
7391  enable_shared_with_static_runtimes=no
7392  archive_cmds=
7393  archive_expsym_cmds=
7394  old_archive_From_new_cmds=
7395  old_archive_from_expsyms_cmds=
7396  export_dynamic_flag_spec=
7397  whole_archive_flag_spec=
7398  thread_safe_flag_spec=
7399  hardcode_libdir_flag_spec=
7400  hardcode_libdir_flag_spec_ld=
7401  hardcode_libdir_separator=
7402  hardcode_direct=no
7403  hardcode_minus_L=no
7404  hardcode_shlibpath_var=unsupported
7405  link_all_deplibs=unknown
7406  hardcode_automatic=no
7407  module_cmds=
7408  module_expsym_cmds=
7409  always_export_symbols=no
7410  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7411  # include_expsyms should be a list of space-separated symbols to be *always*
7412  # included in the symbol list
7413  include_expsyms=
7414  # exclude_expsyms can be an extended regexp of symbols to exclude
7415  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7416  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7417  # as well as any symbol that contains `d'.
7418  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7419  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7420  # platforms (ab)use it in PIC code, but their linkers get confused if
7421  # the symbol is explicitly referenced.  Since portable code cannot
7422  # rely on this symbol name, it's probably fine to never include it in
7423  # preloaded symbol tables.
7424  extract_expsyms_cmds=
7425  # Just being paranoid about ensuring that cc_basename is set.
7426  for cc_temp in $compiler""; do
7427  case $cc_temp in
7428    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7429    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7430    \-*) ;;
7431    *) break;;
7432  esac
7433done
7434cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7435
7436  case $host_os in
7437  cygwin* | mingw* | pw32*)
7438    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7439    # When not using gcc, we currently assume that we are using
7440    # Microsoft Visual C++.
7441    if test "$GCC" != yes; then
7442      with_gnu_ld=no
7443    fi
7444    ;;
7445  interix*)
7446    # we just hope/assume this is gcc and not c89 (= MSVC++)
7447    with_gnu_ld=yes
7448    ;;
7449  openbsd*)
7450    with_gnu_ld=no
7451    ;;
7452  esac
7453
7454  ld_shlibs=yes
7455  if test "$with_gnu_ld" = yes; then
7456    # If archive_cmds runs LD, not CC, wlarc should be empty
7457    wlarc='${wl}'
7458
7459    # Set some defaults for GNU ld with shared library support. These
7460    # are reset later if shared libraries are not supported. Putting them
7461    # here allows them to be overridden if necessary.
7462    runpath_var=LD_RUN_PATH
7463    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7464    export_dynamic_flag_spec='${wl}--export-dynamic'
7465    # ancient GNU ld didn't support --whole-archive et. al.
7466    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7467        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7468      else
7469        whole_archive_flag_spec=
7470    fi
7471    supports_anon_versioning=no
7472    case `$LD -v 2>/dev/null` in
7473      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7474      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7475      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7476      *\ 2.11.*) ;; # other 2.11 versions
7477      *) supports_anon_versioning=yes ;;
7478    esac
7479
7480    # See if GNU ld supports shared libraries.
7481    case $host_os in
7482    aix3* | aix4* | aix5*)
7483      # On AIX/PPC, the GNU linker is very broken
7484      if test "$host_cpu" != ia64; then
7485        ld_shlibs=no
7486        cat <<EOF 1>&2
7487
7488*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7489*** to be unable to reliably create shared libraries on AIX.
7490*** Therefore, libtool is disabling shared libraries support.  If you
7491*** really care for shared libraries, you may want to modify your PATH
7492*** so that a non-GNU linker is found, and then restart.
7493
7494EOF
7495      fi
7496      ;;
7497
7498    amigaos*)
7499      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)'
7500      hardcode_libdir_flag_spec='-L$libdir'
7501      hardcode_minus_L=yes
7502
7503      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7504      # that the semantics of dynamic libraries on AmigaOS, at least up
7505      # to version 4, is to share data among multiple programs linked
7506      # with the same dynamic library.  Since this doesn't match the
7507      # behavior of shared libraries on other platforms, we can't use
7508      # them.
7509      ld_shlibs=no
7510      ;;
7511
7512    beos*)
7513      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7514        allow_undefined_flag=unsupported
7515        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7516        # support --undefined.  This deserves some investigation.  FIXME
7517        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7518      else
7519        ld_shlibs=no
7520      fi
7521      ;;
7522
7523    cygwin* | mingw* | pw32*)
7524      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7525      # as there is no search path for DLLs.
7526      hardcode_libdir_flag_spec='-L$libdir'
7527      allow_undefined_flag=unsupported
7528      always_export_symbols=no
7529      enable_shared_with_static_runtimes=yes
7530      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7531
7532      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7533        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7534        # If the export-symbols file already is a .def file (1st line
7535        # is EXPORTS), use it as is; otherwise, prepend...
7536        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7537          cp $export_symbols $output_objdir/$soname.def;
7538        else
7539          echo EXPORTS > $output_objdir/$soname.def;
7540          cat $export_symbols >> $output_objdir/$soname.def;
7541        fi~
7542        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7543      else
7544        ld_shlibs=no
7545      fi
7546      ;;
7547
7548    interix3*)
7549      hardcode_direct=no
7550      hardcode_shlibpath_var=no
7551      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7552      export_dynamic_flag_spec='${wl}-E'
7553      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7554      # Instead, shared libraries are loaded at an image base (0x10000000 by
7555      # default) and relocated if they conflict, which is a slow very memory
7556      # consuming and fragmenting process.  To avoid this, we pick a random,
7557      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7558      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7559      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7560      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'
7561      ;;
7562
7563    linux*)
7564      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7565        tmp_addflag=
7566        case $cc_basename,$host_cpu in
7567        pgcc*)                          # Portland Group C compiler
7568          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'
7569          tmp_addflag=' $pic_flag'
7570          ;;
7571        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7572          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'
7573          tmp_addflag=' $pic_flag -Mnomain' ;;
7574        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7575          tmp_addflag=' -i_dynamic' ;;
7576        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7577          tmp_addflag=' -i_dynamic -nofor_main' ;;
7578        ifc* | ifort*)                  # Intel Fortran compiler
7579          tmp_addflag=' -nofor_main' ;;
7580        esac
7581        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7582
7583        if test $supports_anon_versioning = yes; then
7584          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7585  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7586  $echo "local: *; };" >> $output_objdir/$libname.ver~
7587          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7588        fi
7589      else
7590        ld_shlibs=no
7591      fi
7592      ;;
7593
7594    netbsd*)
7595      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7596        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7597        wlarc=
7598      else
7599        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7600        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7601      fi
7602      ;;
7603
7604    solaris*)
7605      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7606        ld_shlibs=no
7607        cat <<EOF 1>&2
7608
7609*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7610*** create shared libraries on Solaris systems.  Therefore, libtool
7611*** is disabling shared libraries support.  We urge you to upgrade GNU
7612*** binutils to release 2.9.1 or newer.  Another option is to modify
7613*** your PATH or compiler configuration so that the native linker is
7614*** used, and then restart.
7615
7616EOF
7617      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7618        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7619        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7620      else
7621        ld_shlibs=no
7622      fi
7623      ;;
7624
7625    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7626      case `$LD -v 2>&1` in
7627        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7628        ld_shlibs=no
7629        cat <<_LT_EOF 1>&2
7630
7631*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7632*** reliably create shared libraries on SCO systems.  Therefore, libtool
7633*** is disabling shared libraries support.  We urge you to upgrade GNU
7634*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7635*** your PATH or compiler configuration so that the native linker is
7636*** used, and then restart.
7637
7638_LT_EOF
7639        ;;
7640        *)
7641          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7642            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7643            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7644            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7645          else
7646            ld_shlibs=no
7647          fi
7648        ;;
7649      esac
7650      ;;
7651
7652    sunos4*)
7653      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7654      wlarc=
7655      hardcode_direct=yes
7656      hardcode_shlibpath_var=no
7657      ;;
7658
7659    *)
7660      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7661        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7662        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7663      else
7664        ld_shlibs=no
7665      fi
7666      ;;
7667    esac
7668
7669    if test "$ld_shlibs" = no; then
7670      runpath_var=
7671      hardcode_libdir_flag_spec=
7672      export_dynamic_flag_spec=
7673      whole_archive_flag_spec=
7674    fi
7675  else
7676    # PORTME fill in a description of your system's linker (not GNU ld)
7677    case $host_os in
7678    aix3*)
7679      allow_undefined_flag=unsupported
7680      always_export_symbols=yes
7681      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'
7682      # Note: this linker hardcodes the directories in LIBPATH if there
7683      # are no directories specified by -L.
7684      hardcode_minus_L=yes
7685      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7686        # Neither direct hardcoding nor static linking is supported with a
7687        # broken collect2.
7688        hardcode_direct=unsupported
7689      fi
7690      ;;
7691
7692    aix4* | aix5*)
7693      if test "$host_cpu" = ia64; then
7694        # On IA64, the linker does run time linking by default, so we don't
7695        # have to do anything special.
7696        aix_use_runtimelinking=no
7697        exp_sym_flag='-Bexport'
7698        no_entry_flag=""
7699      else
7700        # If we're using GNU nm, then we don't want the "-C" option.
7701        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7702        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7703          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'
7704        else
7705          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'
7706        fi
7707        aix_use_runtimelinking=no
7708
7709        # Test if we are trying to use run time linking or normal
7710        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7711        # need to do runtime linking.
7712        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7713          for ld_flag in $LDFLAGS; do
7714          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7715            aix_use_runtimelinking=yes
7716            break
7717          fi
7718          done
7719          ;;
7720        esac
7721
7722        exp_sym_flag='-bexport'
7723        no_entry_flag='-bnoentry'
7724      fi
7725
7726      # When large executables or shared objects are built, AIX ld can
7727      # have problems creating the table of contents.  If linking a library
7728      # or program results in "error TOC overflow" add -mminimal-toc to
7729      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7730      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7731
7732      archive_cmds=''
7733      hardcode_direct=yes
7734      hardcode_libdir_separator=':'
7735      link_all_deplibs=yes
7736
7737      if test "$GCC" = yes; then
7738        case $host_os in aix4.[012]|aix4.[012].*)
7739        # We only want to do this on AIX 4.2 and lower, the check
7740        # below for broken collect2 doesn't work under 4.3+
7741          collect2name=`${CC} -print-prog-name=collect2`
7742          if test -f "$collect2name" && \
7743           strings "$collect2name" | grep resolve_lib_name >/dev/null
7744          then
7745          # We have reworked collect2
7746          hardcode_direct=yes
7747          else
7748          # We have old collect2
7749          hardcode_direct=unsupported
7750          # It fails to find uninstalled libraries when the uninstalled
7751          # path is not listed in the libpath.  Setting hardcode_minus_L
7752          # to unsupported forces relinking
7753          hardcode_minus_L=yes
7754          hardcode_libdir_flag_spec='-L$libdir'
7755          hardcode_libdir_separator=
7756          fi
7757          ;;
7758        esac
7759        shared_flag='-shared'
7760        if test "$aix_use_runtimelinking" = yes; then
7761          shared_flag="$shared_flag "'${wl}-G'
7762        fi
7763      else
7764        # not using gcc
7765        if test "$host_cpu" = ia64; then
7766        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7767        # chokes on -Wl,-G. The following line is correct:
7768          shared_flag='-G'
7769        else
7770          if test "$aix_use_runtimelinking" = yes; then
7771            shared_flag='${wl}-G'
7772          else
7773            shared_flag='${wl}-bM:SRE'
7774          fi
7775        fi
7776      fi
7777
7778      # It seems that -bexpall does not export symbols beginning with
7779      # underscore (_), so it is better to generate a list of symbols to export.
7780      always_export_symbols=yes
7781      if test "$aix_use_runtimelinking" = yes; then
7782        # Warning - without using the other runtime loading flags (-brtl),
7783        # -berok will link without error, but may produce a broken library.
7784        allow_undefined_flag='-berok'
7785       # Determine the default libpath from the value encoded in an empty executable.
7786       cat >conftest.$ac_ext <<_ACEOF
7787/* confdefs.h.  */
7788_ACEOF
7789cat confdefs.h >>conftest.$ac_ext
7790cat >>conftest.$ac_ext <<_ACEOF
7791/* end confdefs.h.  */
7792
7793int
7794main ()
7795{
7796
7797  ;
7798  return 0;
7799}
7800_ACEOF
7801rm -f conftest.$ac_objext conftest$ac_exeext
7802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803  (eval $ac_link) 2>conftest.er1
7804  ac_status=$?
7805  grep -v '^ *+' conftest.er1 >conftest.err
7806  rm -f conftest.er1
7807  cat conftest.err >&5
7808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809  (exit $ac_status); } &&
7810         { ac_try='test -z "$ac_c_werror_flag"
7811                         || test ! -s conftest.err'
7812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813  (eval $ac_try) 2>&5
7814  ac_status=$?
7815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816  (exit $ac_status); }; } &&
7817         { ac_try='test -s conftest$ac_exeext'
7818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819  (eval $ac_try) 2>&5
7820  ac_status=$?
7821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822  (exit $ac_status); }; }; then
7823
7824aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7825}'`
7826# Check for a 64-bit object if we didn't find anything.
7827if 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; }
7828}'`; fi
7829else
7830  echo "$as_me: failed program was:" >&5
7831sed 's/^/| /' conftest.$ac_ext >&5
7832
7833fi
7834rm -f conftest.err conftest.$ac_objext \
7835      conftest$ac_exeext conftest.$ac_ext
7836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7837
7838       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7839        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"
7840       else
7841        if test "$host_cpu" = ia64; then
7842          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7843          allow_undefined_flag="-z nodefs"
7844          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"
7845        else
7846         # Determine the default libpath from the value encoded in an empty executable.
7847         cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h.  */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h.  */
7853
7854int
7855main ()
7856{
7857
7858  ;
7859  return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext conftest$ac_exeext
7863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864  (eval $ac_link) 2>conftest.er1
7865  ac_status=$?
7866  grep -v '^ *+' conftest.er1 >conftest.err
7867  rm -f conftest.er1
7868  cat conftest.err >&5
7869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870  (exit $ac_status); } &&
7871         { ac_try='test -z "$ac_c_werror_flag"
7872                         || test ! -s conftest.err'
7873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874  (eval $ac_try) 2>&5
7875  ac_status=$?
7876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877  (exit $ac_status); }; } &&
7878         { ac_try='test -s conftest$ac_exeext'
7879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880  (eval $ac_try) 2>&5
7881  ac_status=$?
7882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883  (exit $ac_status); }; }; then
7884
7885aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7886}'`
7887# Check for a 64-bit object if we didn't find anything.
7888if 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; }
7889}'`; fi
7890else
7891  echo "$as_me: failed program was:" >&5
7892sed 's/^/| /' conftest.$ac_ext >&5
7893
7894fi
7895rm -f conftest.err conftest.$ac_objext \
7896      conftest$ac_exeext conftest.$ac_ext
7897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7898
7899         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7900          # Warning - without using the other run time loading flags,
7901          # -berok will link without error, but may produce a broken library.
7902          no_undefined_flag=' ${wl}-bernotok'
7903          allow_undefined_flag=' ${wl}-berok'
7904          # Exported symbols can be pulled into shared objects from archives
7905          whole_archive_flag_spec='$convenience'
7906          archive_cmds_need_lc=yes
7907          # This is similar to how AIX traditionally builds its shared libraries.
7908          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'
7909        fi
7910      fi
7911      ;;
7912
7913    amigaos*)
7914      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)'
7915      hardcode_libdir_flag_spec='-L$libdir'
7916      hardcode_minus_L=yes
7917      # see comment about different semantics on the GNU ld section
7918      ld_shlibs=no
7919      ;;
7920
7921    bsdi[45]*)
7922      export_dynamic_flag_spec=-rdynamic
7923      ;;
7924
7925    cygwin* | mingw* | pw32*)
7926      # When not using gcc, we currently assume that we are using
7927      # Microsoft Visual C++.
7928      # hardcode_libdir_flag_spec is actually meaningless, as there is
7929      # no search path for DLLs.
7930      hardcode_libdir_flag_spec=' '
7931      allow_undefined_flag=unsupported
7932      # Tell ltmain to make .lib files, not .a files.
7933      libext=lib
7934      # Tell ltmain to make .dll files, not .so files.
7935      shrext_cmds=".dll"
7936      # FIXME: Setting linknames here is a bad hack.
7937      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7938      # The linker will automatically build a .lib file if we build a DLL.
7939      old_archive_From_new_cmds='true'
7940      # FIXME: Should let the user specify the lib program.
7941      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7942      fix_srcfile_path='`cygpath -w "$srcfile"`'
7943      enable_shared_with_static_runtimes=yes
7944      ;;
7945
7946    darwin* | rhapsody*)
7947      case $host_os in
7948        rhapsody* | darwin1.[012])
7949         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7950         ;;
7951       *) # Darwin 1.3 on
7952         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7953           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7954         else
7955           case ${MACOSX_DEPLOYMENT_TARGET} in
7956             10.[012])
7957               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7958               ;;
7959             10.*)
7960               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7961               ;;
7962           esac
7963         fi
7964         ;;
7965      esac
7966      archive_cmds_need_lc=no
7967      hardcode_direct=no
7968      hardcode_automatic=yes
7969      hardcode_shlibpath_var=unsupported
7970      whole_archive_flag_spec=''
7971      link_all_deplibs=yes
7972    if test "$GCC" = yes ; then
7973        output_verbose_link_cmd='echo'
7974        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7975      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7976      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7977      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}'
7978      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}'
7979    else
7980      case $cc_basename in
7981        xlc*)
7982         output_verbose_link_cmd='echo'
7983         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7984         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7985          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7986         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}'
7987          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}'
7988          ;;
7989       *)
7990         ld_shlibs=no
7991          ;;
7992      esac
7993    fi
7994      ;;
7995
7996    dgux*)
7997      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7998      hardcode_libdir_flag_spec='-L$libdir'
7999      hardcode_shlibpath_var=no
8000      ;;
8001
8002    freebsd1*)
8003      ld_shlibs=no
8004      ;;
8005
8006    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8007    # support.  Future versions do this automatically, but an explicit c++rt0.o
8008    # does not break anything, and helps significantly (at the cost of a little
8009    # extra space).
8010    freebsd2.2*)
8011      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8012      hardcode_libdir_flag_spec='-R$libdir'
8013      hardcode_direct=yes
8014      hardcode_shlibpath_var=no
8015      ;;
8016
8017    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8018    freebsd2*)
8019      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8020      hardcode_direct=yes
8021      hardcode_minus_L=yes
8022      hardcode_shlibpath_var=no
8023      ;;
8024
8025    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8026    freebsd* | kfreebsd*-gnu | dragonfly*)
8027      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8028      hardcode_libdir_flag_spec='-R$libdir'
8029      hardcode_direct=yes
8030      hardcode_shlibpath_var=no
8031      ;;
8032
8033    hpux9*)
8034      if test "$GCC" = yes; then
8035        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'
8036      else
8037        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'
8038      fi
8039      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8040      hardcode_libdir_separator=:
8041      hardcode_direct=yes
8042
8043      # hardcode_minus_L: Not really in the search PATH,
8044      # but as the default location of the library.
8045      hardcode_minus_L=yes
8046      export_dynamic_flag_spec='${wl}-E'
8047      ;;
8048
8049    hpux10*)
8050      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8051        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8052      else
8053        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8054      fi
8055      if test "$with_gnu_ld" = no; then
8056        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8057        hardcode_libdir_separator=:
8058
8059        hardcode_direct=yes
8060        export_dynamic_flag_spec='${wl}-E'
8061
8062        # hardcode_minus_L: Not really in the search PATH,
8063        # but as the default location of the library.
8064        hardcode_minus_L=yes
8065      fi
8066      ;;
8067
8068    hpux11*)
8069      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8070        case $host_cpu in
8071        hppa*64*)
8072          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8073          ;;
8074        ia64*)
8075          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8076          ;;
8077        *)
8078          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8079          ;;
8080        esac
8081      else
8082        case $host_cpu in
8083        hppa*64*)
8084          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8085          ;;
8086        ia64*)
8087          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8088          ;;
8089        *)
8090          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8091          ;;
8092        esac
8093      fi
8094      if test "$with_gnu_ld" = no; then
8095        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8096        hardcode_libdir_separator=:
8097
8098        case $host_cpu in
8099        hppa*64*|ia64*)
8100          hardcode_libdir_flag_spec_ld='+b $libdir'
8101          hardcode_direct=no
8102          hardcode_shlibpath_var=no
8103          ;;
8104        *)
8105          hardcode_direct=yes
8106          export_dynamic_flag_spec='${wl}-E'
8107
8108          # hardcode_minus_L: Not really in the search PATH,
8109          # but as the default location of the library.
8110          hardcode_minus_L=yes
8111          ;;
8112        esac
8113      fi
8114      ;;
8115
8116    irix5* | irix6* | nonstopux*)
8117      if test "$GCC" = yes; then
8118        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'
8119      else
8120        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'
8121        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8122      fi
8123      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8124      hardcode_libdir_separator=:
8125      link_all_deplibs=yes
8126      ;;
8127
8128    netbsd*)
8129      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8130        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8131      else
8132        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8133      fi
8134      hardcode_libdir_flag_spec='-R$libdir'
8135      hardcode_direct=yes
8136      hardcode_shlibpath_var=no
8137      ;;
8138
8139    newsos6)
8140      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141      hardcode_direct=yes
8142      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8143      hardcode_libdir_separator=:
8144      hardcode_shlibpath_var=no
8145      ;;
8146
8147    openbsd*)
8148      hardcode_direct=yes
8149      hardcode_shlibpath_var=no
8150      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8151        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8152        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8153        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8154        export_dynamic_flag_spec='${wl}-E'
8155      else
8156       case $host_os in
8157         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8158           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8159           hardcode_libdir_flag_spec='-R$libdir'
8160           ;;
8161         *)
8162           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8163           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8164           ;;
8165       esac
8166      fi
8167      ;;
8168
8169    os2*)
8170      hardcode_libdir_flag_spec='-L$libdir'
8171      hardcode_minus_L=yes
8172      allow_undefined_flag=unsupported
8173      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'
8174      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8175      ;;
8176
8177    osf3*)
8178      if test "$GCC" = yes; then
8179        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8180        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'
8181      else
8182        allow_undefined_flag=' -expect_unresolved \*'
8183        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'
8184      fi
8185      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8186      hardcode_libdir_separator=:
8187      ;;
8188
8189    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8190      if test "$GCC" = yes; then
8191        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8192        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'
8193        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8194      else
8195        allow_undefined_flag=' -expect_unresolved \*'
8196        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'
8197        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8198        $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'
8199
8200        # Both c and cxx compiler support -rpath directly
8201        hardcode_libdir_flag_spec='-rpath $libdir'
8202      fi
8203      hardcode_libdir_separator=:
8204      ;;
8205
8206    solaris*)
8207      no_undefined_flag=' -z text'
8208      if test "$GCC" = yes; then
8209        wlarc='${wl}'
8210        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8211        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8212          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8213      else
8214        wlarc=''
8215        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8217        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8218      fi
8219      hardcode_libdir_flag_spec='-R$libdir'
8220      hardcode_shlibpath_var=no
8221      case $host_os in
8222      solaris2.[0-5] | solaris2.[0-5].*) ;;
8223      *)
8224        # The compiler driver will combine linker options so we
8225        # cannot just pass the convience library names through
8226        # without $wl, iff we do not link with $LD.
8227        # Luckily, gcc supports the same syntax we need for Sun Studio.
8228        # Supported since Solaris 2.6 (maybe 2.5.1?)
8229        case $wlarc in
8230        '')
8231          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8232        *)
8233          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' ;;
8234        esac ;;
8235      esac
8236      link_all_deplibs=yes
8237      ;;
8238
8239    sunos4*)
8240      if test "x$host_vendor" = xsequent; then
8241        # Use $CC to link under sequent, because it throws in some extra .o
8242        # files that make .init and .fini sections work.
8243        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8244      else
8245        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8246      fi
8247      hardcode_libdir_flag_spec='-L$libdir'
8248      hardcode_direct=yes
8249      hardcode_minus_L=yes
8250      hardcode_shlibpath_var=no
8251      ;;
8252
8253    sysv4)
8254      case $host_vendor in
8255        sni)
8256          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8257          hardcode_direct=yes # is this really true???
8258        ;;
8259        siemens)
8260          ## LD is ld it makes a PLAMLIB
8261          ## CC just makes a GrossModule.
8262          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8263          reload_cmds='$CC -r -o $output$reload_objs'
8264          hardcode_direct=no
8265        ;;
8266        motorola)
8267          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8268          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8269        ;;
8270      esac
8271      runpath_var='LD_RUN_PATH'
8272      hardcode_shlibpath_var=no
8273      ;;
8274
8275    sysv4.3*)
8276      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8277      hardcode_shlibpath_var=no
8278      export_dynamic_flag_spec='-Bexport'
8279      ;;
8280
8281    sysv4*MP*)
8282      if test -d /usr/nec; then
8283        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8284        hardcode_shlibpath_var=no
8285        runpath_var=LD_RUN_PATH
8286        hardcode_runpath_var=yes
8287        ld_shlibs=yes
8288      fi
8289      ;;
8290
8291    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8292      no_undefined_flag='${wl}-z,text'
8293      archive_cmds_need_lc=no
8294      hardcode_shlibpath_var=no
8295      runpath_var='LD_RUN_PATH'
8296
8297      if test "$GCC" = yes; then
8298        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8299        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8300      else
8301        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8302        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8303      fi
8304      ;;
8305
8306    sysv5* | sco3.2v5* | sco5v6*)
8307      # Note: We can NOT use -z defs as we might desire, because we do not
8308      # link with -lc, and that would cause any symbols used from libc to
8309      # always be unresolved, which means just about no library would
8310      # ever link correctly.  If we're not using GNU ld we use -z text
8311      # though, which does catch some bad symbols but isn't as heavy-handed
8312      # as -z defs.
8313      no_undefined_flag='${wl}-z,text'
8314      allow_undefined_flag='${wl}-z,nodefs'
8315      archive_cmds_need_lc=no
8316      hardcode_shlibpath_var=no
8317      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8318      hardcode_libdir_separator=':'
8319      link_all_deplibs=yes
8320      export_dynamic_flag_spec='${wl}-Bexport'
8321      runpath_var='LD_RUN_PATH'
8322
8323      if test "$GCC" = yes; then
8324        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8325        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8326      else
8327        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8328        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8329      fi
8330      ;;
8331
8332    uts4*)
8333      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8334      hardcode_libdir_flag_spec='-L$libdir'
8335      hardcode_shlibpath_var=no
8336      ;;
8337
8338    *)
8339      ld_shlibs=no
8340      ;;
8341    esac
8342  fi
8343
8344echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8345echo "${ECHO_T}$ld_shlibs" >&6
8346test "$ld_shlibs" = no && can_build_shared=no
8347
8348#
8349# Do we need to explicitly link libc?
8350#
8351case "x$archive_cmds_need_lc" in
8352x|xyes)
8353  # Assume -lc should be added
8354  archive_cmds_need_lc=yes
8355
8356  if test "$enable_shared" = yes && test "$GCC" = yes; then
8357    case $archive_cmds in
8358    *'~'*)
8359      # FIXME: we may have to deal with multi-command sequences.
8360      ;;
8361    '$CC '*)
8362      # Test whether the compiler implicitly links with -lc since on some
8363      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8364      # to ld, don't add -lc before -lgcc.
8365      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8366echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8367      $rm conftest*
8368      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8369
8370      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8371  (eval $ac_compile) 2>&5
8372  ac_status=$?
8373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374  (exit $ac_status); } 2>conftest.err; then
8375        soname=conftest
8376        lib=conftest
8377        libobjs=conftest.$ac_objext
8378        deplibs=
8379        wl=$lt_prog_compiler_wl
8380        pic_flag=$lt_prog_compiler_pic
8381        compiler_flags=-v
8382        linker_flags=-v
8383        verstring=
8384        output_objdir=.
8385        libname=conftest
8386        lt_save_allow_undefined_flag=$allow_undefined_flag
8387        allow_undefined_flag=
8388        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8389  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8390  ac_status=$?
8391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392  (exit $ac_status); }
8393        then
8394          archive_cmds_need_lc=no
8395        else
8396          archive_cmds_need_lc=yes
8397        fi
8398        allow_undefined_flag=$lt_save_allow_undefined_flag
8399      else
8400        cat conftest.err 1>&5
8401      fi
8402      $rm conftest*
8403      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8404echo "${ECHO_T}$archive_cmds_need_lc" >&6
8405      ;;
8406    esac
8407  fi
8408  ;;
8409esac
8410
8411echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8412echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8413library_names_spec=
8414libname_spec='lib$name'
8415soname_spec=
8416shrext_cmds=".so"
8417postinstall_cmds=
8418postuninstall_cmds=
8419finish_cmds=
8420finish_eval=
8421shlibpath_var=
8422shlibpath_overrides_runpath=unknown
8423version_type=none
8424dynamic_linker="$host_os ld.so"
8425sys_lib_dlsearch_path_spec="/lib /usr/lib"
8426if test "$GCC" = yes; then
8427  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8428  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8429    # if the path contains ";" then we assume it to be the separator
8430    # otherwise default to the standard path separator (i.e. ":") - it is
8431    # assumed that no part of a normal pathname contains ";" but that should
8432    # okay in the real world where ";" in dirpaths is itself problematic.
8433    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8434  else
8435    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8436  fi
8437else
8438  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8439fi
8440need_lib_prefix=unknown
8441hardcode_into_libs=no
8442
8443# when you set need_version to no, make sure it does not cause -set_version
8444# flags to be left without arguments
8445need_version=unknown
8446
8447case $host_os in
8448aix3*)
8449  version_type=linux
8450  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8451  shlibpath_var=LIBPATH
8452
8453  # AIX 3 has no versioning support, so we append a major version to the name.
8454  soname_spec='${libname}${release}${shared_ext}$major'
8455  ;;
8456
8457aix4* | aix5*)
8458  version_type=linux
8459  need_lib_prefix=no
8460  need_version=no
8461  hardcode_into_libs=yes
8462  if test "$host_cpu" = ia64; then
8463    # AIX 5 supports IA64
8464    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8465    shlibpath_var=LD_LIBRARY_PATH
8466  else
8467    # With GCC up to 2.95.x, collect2 would create an import file
8468    # for dependence libraries.  The import file would start with
8469    # the line `#! .'.  This would cause the generated library to
8470    # depend on `.', always an invalid library.  This was fixed in
8471    # development snapshots of GCC prior to 3.0.
8472    case $host_os in
8473      aix4 | aix4.[01] | aix4.[01].*)
8474      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8475           echo ' yes '
8476           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8477        :
8478      else
8479        can_build_shared=no
8480      fi
8481      ;;
8482    esac
8483    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8484    # soname into executable. Probably we can add versioning support to
8485    # collect2, so additional links can be useful in future.
8486    if test "$aix_use_runtimelinking" = yes; then
8487      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8488      # instead of lib<name>.a to let people know that these are not
8489      # typical AIX shared libraries.
8490      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8491    else
8492      # We preserve .a as extension for shared libraries through AIX4.2
8493      # and later when we are not doing run time linking.
8494      library_names_spec='${libname}${release}.a $libname.a'
8495      soname_spec='${libname}${release}${shared_ext}$major'
8496    fi
8497    shlibpath_var=LIBPATH
8498  fi
8499  ;;
8500
8501amigaos*)
8502  library_names_spec='$libname.ixlibrary $libname.a'
8503  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8504  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'
8505  ;;
8506
8507beos*)
8508  library_names_spec='${libname}${shared_ext}'
8509  dynamic_linker="$host_os ld.so"
8510  shlibpath_var=LIBRARY_PATH
8511  ;;
8512
8513bsdi[45]*)
8514  version_type=linux
8515  need_version=no
8516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517  soname_spec='${libname}${release}${shared_ext}$major'
8518  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8519  shlibpath_var=LD_LIBRARY_PATH
8520  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8521  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8522  # the default ld.so.conf also contains /usr/contrib/lib and
8523  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8524  # libtool to hard-code these into programs
8525  ;;
8526
8527cygwin* | mingw* | pw32*)
8528  version_type=windows
8529  shrext_cmds=".dll"
8530  need_version=no
8531  need_lib_prefix=no
8532
8533  case $GCC,$host_os in
8534  yes,cygwin* | yes,mingw* | yes,pw32*)
8535    library_names_spec='$libname.dll.a'
8536    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8537    postinstall_cmds='base_file=`basename \${file}`~
8538      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8539      dldir=$destdir/`dirname \$dlpath`~
8540      test -d \$dldir || mkdir -p \$dldir~
8541      $install_prog $dir/$dlname \$dldir/$dlname~
8542      chmod a+x \$dldir/$dlname'
8543    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8544      dlpath=$dir/\$dldll~
8545       $rm \$dlpath'
8546    shlibpath_overrides_runpath=yes
8547
8548    case $host_os in
8549    cygwin*)
8550      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8551      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8552      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8553      ;;
8554    mingw*)
8555      # MinGW DLLs use traditional 'lib' prefix
8556      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8557      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8558      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8559        # It is most probably a Windows format PATH printed by
8560        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8561        # path with ; separators, and with drive letters. We can handle the
8562        # drive letters (cygwin fileutils understands them), so leave them,
8563        # especially as we might pass files found there to a mingw objdump,
8564        # which wouldn't understand a cygwinified path. Ahh.
8565        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8566      else
8567        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8568      fi
8569      ;;
8570    pw32*)
8571      # pw32 DLLs use 'pw' prefix rather than 'lib'
8572      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8573      ;;
8574    esac
8575    ;;
8576
8577  *)
8578    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8579    ;;
8580  esac
8581  dynamic_linker='Win32 ld.exe'
8582  # FIXME: first we should search . and the directory the executable is in
8583  shlibpath_var=PATH
8584  ;;
8585
8586darwin* | rhapsody*)
8587  dynamic_linker="$host_os dyld"
8588  version_type=darwin
8589  need_lib_prefix=no
8590  need_version=no
8591  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8592  soname_spec='${libname}${release}${major}$shared_ext'
8593  shlibpath_overrides_runpath=yes
8594  shlibpath_var=DYLD_LIBRARY_PATH
8595  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8596  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8597  if test "$GCC" = yes; then
8598    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"`
8599  else
8600    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8601  fi
8602  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8603  ;;
8604
8605dgux*)
8606  version_type=linux
8607  need_lib_prefix=no
8608  need_version=no
8609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8610  soname_spec='${libname}${release}${shared_ext}$major'
8611  shlibpath_var=LD_LIBRARY_PATH
8612  ;;
8613
8614freebsd1*)
8615  dynamic_linker=no
8616  ;;
8617
8618kfreebsd*-gnu)
8619  version_type=linux
8620  need_lib_prefix=no
8621  need_version=no
8622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8623  soname_spec='${libname}${release}${shared_ext}$major'
8624  shlibpath_var=LD_LIBRARY_PATH
8625  shlibpath_overrides_runpath=no
8626  hardcode_into_libs=yes
8627  dynamic_linker='GNU ld.so'
8628  ;;
8629
8630freebsd* | dragonfly*)
8631  # DragonFly does not have aout.  When/if they implement a new
8632  # versioning mechanism, adjust this.
8633  if test -x /usr/bin/objformat; then
8634    objformat=`/usr/bin/objformat`
8635  else
8636    case $host_os in
8637    freebsd[123]*) objformat=aout ;;
8638    *) objformat=elf ;;
8639    esac
8640  fi
8641  version_type=freebsd-$objformat
8642  case $version_type in
8643    freebsd-elf*)
8644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8645      need_version=no
8646      need_lib_prefix=no
8647      ;;
8648    freebsd-*)
8649      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8650      need_version=yes
8651      ;;
8652  esac
8653  shlibpath_var=LD_LIBRARY_PATH
8654  case $host_os in
8655  freebsd2*)
8656    shlibpath_overrides_runpath=yes
8657    ;;
8658  freebsd3.[01]* | freebsdelf3.[01]*)
8659    shlibpath_overrides_runpath=yes
8660    hardcode_into_libs=yes
8661    ;;
8662  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8663  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8664    shlibpath_overrides_runpath=no
8665    hardcode_into_libs=yes
8666    ;;
8667  freebsd*) # from 4.6 on
8668    shlibpath_overrides_runpath=yes
8669    hardcode_into_libs=yes
8670    ;;
8671  esac
8672  ;;
8673
8674gnu*)
8675  version_type=linux
8676  need_lib_prefix=no
8677  need_version=no
8678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8679  soname_spec='${libname}${release}${shared_ext}$major'
8680  shlibpath_var=LD_LIBRARY_PATH
8681  hardcode_into_libs=yes
8682  ;;
8683
8684hpux9* | hpux10* | hpux11*)
8685  # Give a soname corresponding to the major version so that dld.sl refuses to
8686  # link against other versions.
8687  version_type=sunos
8688  need_lib_prefix=no
8689  need_version=no
8690  case $host_cpu in
8691  ia64*)
8692    shrext_cmds='.so'
8693    hardcode_into_libs=yes
8694    dynamic_linker="$host_os dld.so"
8695    shlibpath_var=LD_LIBRARY_PATH
8696    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8697    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8698    soname_spec='${libname}${release}${shared_ext}$major'
8699    if test "X$HPUX_IA64_MODE" = X32; then
8700      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8701    else
8702      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8703    fi
8704    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8705    ;;
8706   hppa*64*)
8707     shrext_cmds='.sl'
8708     hardcode_into_libs=yes
8709     dynamic_linker="$host_os dld.sl"
8710     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8711     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8713     soname_spec='${libname}${release}${shared_ext}$major'
8714     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8715     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8716     ;;
8717   *)
8718    shrext_cmds='.sl'
8719    dynamic_linker="$host_os dld.sl"
8720    shlibpath_var=SHLIB_PATH
8721    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8722    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8723    soname_spec='${libname}${release}${shared_ext}$major'
8724    ;;
8725  esac
8726  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8727  postinstall_cmds='chmod 555 $lib'
8728  ;;
8729
8730interix3*)
8731  version_type=linux
8732  need_lib_prefix=no
8733  need_version=no
8734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8735  soname_spec='${libname}${release}${shared_ext}$major'
8736  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8737  shlibpath_var=LD_LIBRARY_PATH
8738  shlibpath_overrides_runpath=no
8739  hardcode_into_libs=yes
8740  ;;
8741
8742irix5* | irix6* | nonstopux*)
8743  case $host_os in
8744    nonstopux*) version_type=nonstopux ;;
8745    *)
8746        if test "$lt_cv_prog_gnu_ld" = yes; then
8747                version_type=linux
8748        else
8749                version_type=irix
8750        fi ;;
8751  esac
8752  need_lib_prefix=no
8753  need_version=no
8754  soname_spec='${libname}${release}${shared_ext}$major'
8755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8756  case $host_os in
8757  irix5* | nonstopux*)
8758    libsuff= shlibsuff=
8759    ;;
8760  *)
8761    case $LD in # libtool.m4 will add one of these switches to LD
8762    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8763      libsuff= shlibsuff= libmagic=32-bit;;
8764    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8765      libsuff=32 shlibsuff=N32 libmagic=N32;;
8766    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8767      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8768    *) libsuff= shlibsuff= libmagic=never-match;;
8769    esac
8770    ;;
8771  esac
8772  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8773  shlibpath_overrides_runpath=no
8774  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8775  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8776  hardcode_into_libs=yes
8777  ;;
8778
8779# No shared lib support for Linux oldld, aout, or coff.
8780linux*oldld* | linux*aout* | linux*coff*)
8781  dynamic_linker=no
8782  ;;
8783
8784# This must be Linux ELF.
8785linux*)
8786  version_type=linux
8787  need_lib_prefix=no
8788  need_version=no
8789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790  soname_spec='${libname}${release}${shared_ext}$major'
8791  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8792  shlibpath_var=LD_LIBRARY_PATH
8793  shlibpath_overrides_runpath=no
8794  # This implies no fast_install, which is unacceptable.
8795  # Some rework will be needed to allow for fast_install
8796  # before this can be enabled.
8797  hardcode_into_libs=yes
8798
8799  # Append ld.so.conf contents to the search path
8800  if test -f /etc/ld.so.conf; then
8801    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' ' '`
8802    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8803  fi
8804
8805  # We used to test for /lib/ld.so.1 and disable shared libraries on
8806  # powerpc, because MkLinux only supported shared libraries with the
8807  # GNU dynamic linker.  Since this was broken with cross compilers,
8808  # most powerpc-linux boxes support dynamic linking these days and
8809  # people can always --disable-shared, the test was removed, and we
8810  # assume the GNU/Linux dynamic linker is in use.
8811  dynamic_linker='GNU/Linux ld.so'
8812  ;;
8813
8814knetbsd*-gnu)
8815  version_type=linux
8816  need_lib_prefix=no
8817  need_version=no
8818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8819  soname_spec='${libname}${release}${shared_ext}$major'
8820  shlibpath_var=LD_LIBRARY_PATH
8821  shlibpath_overrides_runpath=no
8822  hardcode_into_libs=yes
8823  dynamic_linker='GNU ld.so'
8824  ;;
8825
8826netbsd*)
8827  version_type=sunos
8828  need_lib_prefix=no
8829  need_version=no
8830  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8831    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8832    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8833    dynamic_linker='NetBSD (a.out) ld.so'
8834  else
8835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8836    soname_spec='${libname}${release}${shared_ext}$major'
8837    dynamic_linker='NetBSD ld.elf_so'
8838  fi
8839  shlibpath_var=LD_LIBRARY_PATH
8840  shlibpath_overrides_runpath=yes
8841  hardcode_into_libs=yes
8842  ;;
8843
8844newsos6)
8845  version_type=linux
8846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847  shlibpath_var=LD_LIBRARY_PATH
8848  shlibpath_overrides_runpath=yes
8849  ;;
8850
8851nto-qnx*)
8852  version_type=linux
8853  need_lib_prefix=no
8854  need_version=no
8855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856  soname_spec='${libname}${release}${shared_ext}$major'
8857  shlibpath_var=LD_LIBRARY_PATH
8858  shlibpath_overrides_runpath=yes
8859  ;;
8860
8861openbsd*)
8862  version_type=sunos
8863  sys_lib_dlsearch_path_spec="/usr/lib"
8864  need_lib_prefix=no
8865  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8866  case $host_os in
8867    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8868    *)                         need_version=no  ;;
8869  esac
8870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8871  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8872  shlibpath_var=LD_LIBRARY_PATH
8873  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8874    case $host_os in
8875      openbsd2.[89] | openbsd2.[89].*)
8876        shlibpath_overrides_runpath=no
8877        ;;
8878      *)
8879        shlibpath_overrides_runpath=yes
8880        ;;
8881      esac
8882  else
8883    shlibpath_overrides_runpath=yes
8884  fi
8885  ;;
8886
8887os2*)
8888  libname_spec='$name'
8889  shrext_cmds=".dll"
8890  need_lib_prefix=no
8891  library_names_spec='$libname${shared_ext} $libname.a'
8892  dynamic_linker='OS/2 ld.exe'
8893  shlibpath_var=LIBPATH
8894  ;;
8895
8896osf3* | osf4* | osf5*)
8897  version_type=osf
8898  need_lib_prefix=no
8899  need_version=no
8900  soname_spec='${libname}${release}${shared_ext}$major'
8901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902  shlibpath_var=LD_LIBRARY_PATH
8903  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8904  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8905  ;;
8906
8907solaris*)
8908  version_type=linux
8909  need_lib_prefix=no
8910  need_version=no
8911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912  soname_spec='${libname}${release}${shared_ext}$major'
8913  shlibpath_var=LD_LIBRARY_PATH
8914  shlibpath_overrides_runpath=yes
8915  hardcode_into_libs=yes
8916  # ldd complains unless libraries are executable
8917  postinstall_cmds='chmod +x $lib'
8918  ;;
8919
8920sunos4*)
8921  version_type=sunos
8922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8923  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8924  shlibpath_var=LD_LIBRARY_PATH
8925  shlibpath_overrides_runpath=yes
8926  if test "$with_gnu_ld" = yes; then
8927    need_lib_prefix=no
8928  fi
8929  need_version=yes
8930  ;;
8931
8932sysv4 | sysv4.3*)
8933  version_type=linux
8934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935  soname_spec='${libname}${release}${shared_ext}$major'
8936  shlibpath_var=LD_LIBRARY_PATH
8937  case $host_vendor in
8938    sni)
8939      shlibpath_overrides_runpath=no
8940      need_lib_prefix=no
8941      export_dynamic_flag_spec='${wl}-Blargedynsym'
8942      runpath_var=LD_RUN_PATH
8943      ;;
8944    siemens)
8945      need_lib_prefix=no
8946      ;;
8947    motorola)
8948      need_lib_prefix=no
8949      need_version=no
8950      shlibpath_overrides_runpath=no
8951      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8952      ;;
8953  esac
8954  ;;
8955
8956sysv4*MP*)
8957  if test -d /usr/nec ;then
8958    version_type=linux
8959    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8960    soname_spec='$libname${shared_ext}.$major'
8961    shlibpath_var=LD_LIBRARY_PATH
8962  fi
8963  ;;
8964
8965sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8966  version_type=freebsd-elf
8967  need_lib_prefix=no
8968  need_version=no
8969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8970  soname_spec='${libname}${release}${shared_ext}$major'
8971  shlibpath_var=LD_LIBRARY_PATH
8972  hardcode_into_libs=yes
8973  if test "$with_gnu_ld" = yes; then
8974    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8975    shlibpath_overrides_runpath=no
8976  else
8977    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8978    shlibpath_overrides_runpath=yes
8979    case $host_os in
8980      sco3.2v5*)
8981        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8982        ;;
8983    esac
8984  fi
8985  sys_lib_dlsearch_path_spec='/usr/lib'
8986  ;;
8987
8988uts4*)
8989  version_type=linux
8990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991  soname_spec='${libname}${release}${shared_ext}$major'
8992  shlibpath_var=LD_LIBRARY_PATH
8993  ;;
8994
8995*)
8996  dynamic_linker=no
8997  ;;
8998esac
8999echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9000echo "${ECHO_T}$dynamic_linker" >&6
9001test "$dynamic_linker" = no && can_build_shared=no
9002
9003variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9004if test "$GCC" = yes; then
9005  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9006fi
9007
9008echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9009echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9010hardcode_action=
9011if test -n "$hardcode_libdir_flag_spec" || \
9012   test -n "$runpath_var" || \
9013   test "X$hardcode_automatic" = "Xyes" ; then
9014
9015  # We can hardcode non-existant directories.
9016  if test "$hardcode_direct" != no &&
9017     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9018     # have to relink, otherwise we might link with an installed library
9019     # when we should be linking with a yet-to-be-installed one
9020     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9021     test "$hardcode_minus_L" != no; then
9022    # Linking always hardcodes the temporary library directory.
9023    hardcode_action=relink
9024  else
9025    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9026    hardcode_action=immediate
9027  fi
9028else
9029  # We cannot hardcode anything, or else we can only hardcode existing
9030  # directories.
9031  hardcode_action=unsupported
9032fi
9033echo "$as_me:$LINENO: result: $hardcode_action" >&5
9034echo "${ECHO_T}$hardcode_action" >&6
9035
9036if test "$hardcode_action" = relink; then
9037  # Fast installation is not supported
9038  enable_fast_install=no
9039elif test "$shlibpath_overrides_runpath" = yes ||
9040     test "$enable_shared" = no; then
9041  # Fast installation is not necessary
9042  enable_fast_install=needless
9043fi
9044
9045striplib=
9046old_striplib=
9047echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9048echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9049if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9050  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9051  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9052  echo "$as_me:$LINENO: result: yes" >&5
9053echo "${ECHO_T}yes" >&6
9054else
9055# FIXME - insert some real tests, host_os isn't really good enough
9056  case $host_os in
9057   darwin*)
9058       if test -n "$STRIP" ; then
9059         striplib="$STRIP -x"
9060         echo "$as_me:$LINENO: result: yes" >&5
9061echo "${ECHO_T}yes" >&6
9062       else
9063  echo "$as_me:$LINENO: result: no" >&5
9064echo "${ECHO_T}no" >&6
9065fi
9066       ;;
9067   *)
9068  echo "$as_me:$LINENO: result: no" >&5
9069echo "${ECHO_T}no" >&6
9070    ;;
9071  esac
9072fi
9073
9074if test "x$enable_dlopen" != xyes; then
9075  enable_dlopen=unknown
9076  enable_dlopen_self=unknown
9077  enable_dlopen_self_static=unknown
9078else
9079  lt_cv_dlopen=no
9080  lt_cv_dlopen_libs=
9081
9082  case $host_os in
9083  beos*)
9084    lt_cv_dlopen="load_add_on"
9085    lt_cv_dlopen_libs=
9086    lt_cv_dlopen_self=yes
9087    ;;
9088
9089  mingw* | pw32*)
9090    lt_cv_dlopen="LoadLibrary"
9091    lt_cv_dlopen_libs=
9092   ;;
9093
9094  cygwin*)
9095    lt_cv_dlopen="dlopen"
9096    lt_cv_dlopen_libs=
9097   ;;
9098
9099  darwin*)
9100  # if libdl is installed we need to link against it
9101    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9102echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9103if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9104  echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106  ac_check_lib_save_LIBS=$LIBS
9107LIBS="-ldl  $LIBS"
9108cat >conftest.$ac_ext <<_ACEOF
9109/* confdefs.h.  */
9110_ACEOF
9111cat confdefs.h >>conftest.$ac_ext
9112cat >>conftest.$ac_ext <<_ACEOF
9113/* end confdefs.h.  */
9114
9115/* Override any gcc2 internal prototype to avoid an error.  */
9116#ifdef __cplusplus
9117extern "C"
9118#endif
9119/* We use char because int might match the return type of a gcc2
9120   builtin and then its argument prototype would still apply.  */
9121char dlopen ();
9122int
9123main ()
9124{
9125dlopen ();
9126  ;
9127  return 0;
9128}
9129_ACEOF
9130rm -f conftest.$ac_objext conftest$ac_exeext
9131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132  (eval $ac_link) 2>conftest.er1
9133  ac_status=$?
9134  grep -v '^ *+' conftest.er1 >conftest.err
9135  rm -f conftest.er1
9136  cat conftest.err >&5
9137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138  (exit $ac_status); } &&
9139         { ac_try='test -z "$ac_c_werror_flag"
9140                         || test ! -s conftest.err'
9141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142  (eval $ac_try) 2>&5
9143  ac_status=$?
9144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145  (exit $ac_status); }; } &&
9146         { ac_try='test -s conftest$ac_exeext'
9147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148  (eval $ac_try) 2>&5
9149  ac_status=$?
9150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151  (exit $ac_status); }; }; then
9152  ac_cv_lib_dl_dlopen=yes
9153else
9154  echo "$as_me: failed program was:" >&5
9155sed 's/^/| /' conftest.$ac_ext >&5
9156
9157ac_cv_lib_dl_dlopen=no
9158fi
9159rm -f conftest.err conftest.$ac_objext \
9160      conftest$ac_exeext conftest.$ac_ext
9161LIBS=$ac_check_lib_save_LIBS
9162fi
9163echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9164echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9165if test $ac_cv_lib_dl_dlopen = yes; then
9166  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9167else
9168
9169    lt_cv_dlopen="dyld"
9170    lt_cv_dlopen_libs=
9171    lt_cv_dlopen_self=yes
9172
9173fi
9174
9175   ;;
9176
9177  *)
9178    echo "$as_me:$LINENO: checking for shl_load" >&5
9179echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9180if test "${ac_cv_func_shl_load+set}" = set; then
9181  echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183  cat >conftest.$ac_ext <<_ACEOF
9184/* confdefs.h.  */
9185_ACEOF
9186cat confdefs.h >>conftest.$ac_ext
9187cat >>conftest.$ac_ext <<_ACEOF
9188/* end confdefs.h.  */
9189/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9190   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9191#define shl_load innocuous_shl_load
9192
9193/* System header to define __stub macros and hopefully few prototypes,
9194    which can conflict with char shl_load (); below.
9195    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9196    <limits.h> exists even on freestanding compilers.  */
9197
9198#ifdef __STDC__
9199# include <limits.h>
9200#else
9201# include <assert.h>
9202#endif
9203
9204#undef shl_load
9205
9206/* Override any gcc2 internal prototype to avoid an error.  */
9207#ifdef __cplusplus
9208extern "C"
9209{
9210#endif
9211/* We use char because int might match the return type of a gcc2
9212   builtin and then its argument prototype would still apply.  */
9213char shl_load ();
9214/* The GNU C library defines this for functions which it implements
9215    to always fail with ENOSYS.  Some functions are actually named
9216    something starting with __ and the normal name is an alias.  */
9217#if defined (__stub_shl_load) || defined (__stub___shl_load)
9218choke me
9219#else
9220char (*f) () = shl_load;
9221#endif
9222#ifdef __cplusplus
9223}
9224#endif
9225
9226int
9227main ()
9228{
9229return f != shl_load;
9230  ;
9231  return 0;
9232}
9233_ACEOF
9234rm -f conftest.$ac_objext conftest$ac_exeext
9235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236  (eval $ac_link) 2>conftest.er1
9237  ac_status=$?
9238  grep -v '^ *+' conftest.er1 >conftest.err
9239  rm -f conftest.er1
9240  cat conftest.err >&5
9241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242  (exit $ac_status); } &&
9243         { ac_try='test -z "$ac_c_werror_flag"
9244                         || test ! -s conftest.err'
9245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246  (eval $ac_try) 2>&5
9247  ac_status=$?
9248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249  (exit $ac_status); }; } &&
9250         { ac_try='test -s conftest$ac_exeext'
9251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252  (eval $ac_try) 2>&5
9253  ac_status=$?
9254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255  (exit $ac_status); }; }; then
9256  ac_cv_func_shl_load=yes
9257else
9258  echo "$as_me: failed program was:" >&5
9259sed 's/^/| /' conftest.$ac_ext >&5
9260
9261ac_cv_func_shl_load=no
9262fi
9263rm -f conftest.err conftest.$ac_objext \
9264      conftest$ac_exeext conftest.$ac_ext
9265fi
9266echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9267echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9268if test $ac_cv_func_shl_load = yes; then
9269  lt_cv_dlopen="shl_load"
9270else
9271  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9272echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9273if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9274  echo $ECHO_N "(cached) $ECHO_C" >&6
9275else
9276  ac_check_lib_save_LIBS=$LIBS
9277LIBS="-ldld  $LIBS"
9278cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h.  */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h.  */
9284
9285/* Override any gcc2 internal prototype to avoid an error.  */
9286#ifdef __cplusplus
9287extern "C"
9288#endif
9289/* We use char because int might match the return type of a gcc2
9290   builtin and then its argument prototype would still apply.  */
9291char shl_load ();
9292int
9293main ()
9294{
9295shl_load ();
9296  ;
9297  return 0;
9298}
9299_ACEOF
9300rm -f conftest.$ac_objext conftest$ac_exeext
9301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302  (eval $ac_link) 2>conftest.er1
9303  ac_status=$?
9304  grep -v '^ *+' conftest.er1 >conftest.err
9305  rm -f conftest.er1
9306  cat conftest.err >&5
9307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308  (exit $ac_status); } &&
9309         { ac_try='test -z "$ac_c_werror_flag"
9310                         || test ! -s conftest.err'
9311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312  (eval $ac_try) 2>&5
9313  ac_status=$?
9314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315  (exit $ac_status); }; } &&
9316         { ac_try='test -s conftest$ac_exeext'
9317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318  (eval $ac_try) 2>&5
9319  ac_status=$?
9320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321  (exit $ac_status); }; }; then
9322  ac_cv_lib_dld_shl_load=yes
9323else
9324  echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
9327ac_cv_lib_dld_shl_load=no
9328fi
9329rm -f conftest.err conftest.$ac_objext \
9330      conftest$ac_exeext conftest.$ac_ext
9331LIBS=$ac_check_lib_save_LIBS
9332fi
9333echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9334echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9335if test $ac_cv_lib_dld_shl_load = yes; then
9336  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9337else
9338  echo "$as_me:$LINENO: checking for dlopen" >&5
9339echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9340if test "${ac_cv_func_dlopen+set}" = set; then
9341  echo $ECHO_N "(cached) $ECHO_C" >&6
9342else
9343  cat >conftest.$ac_ext <<_ACEOF
9344/* confdefs.h.  */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h.  */
9349/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9350   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9351#define dlopen innocuous_dlopen
9352
9353/* System header to define __stub macros and hopefully few prototypes,
9354    which can conflict with char dlopen (); below.
9355    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9356    <limits.h> exists even on freestanding compilers.  */
9357
9358#ifdef __STDC__
9359# include <limits.h>
9360#else
9361# include <assert.h>
9362#endif
9363
9364#undef dlopen
9365
9366/* Override any gcc2 internal prototype to avoid an error.  */
9367#ifdef __cplusplus
9368extern "C"
9369{
9370#endif
9371/* We use char because int might match the return type of a gcc2
9372   builtin and then its argument prototype would still apply.  */
9373char dlopen ();
9374/* The GNU C library defines this for functions which it implements
9375    to always fail with ENOSYS.  Some functions are actually named
9376    something starting with __ and the normal name is an alias.  */
9377#if defined (__stub_dlopen) || defined (__stub___dlopen)
9378choke me
9379#else
9380char (*f) () = dlopen;
9381#endif
9382#ifdef __cplusplus
9383}
9384#endif
9385
9386int
9387main ()
9388{
9389return f != dlopen;
9390  ;
9391  return 0;
9392}
9393_ACEOF
9394rm -f conftest.$ac_objext conftest$ac_exeext
9395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9396  (eval $ac_link) 2>conftest.er1
9397  ac_status=$?
9398  grep -v '^ *+' conftest.er1 >conftest.err
9399  rm -f conftest.er1
9400  cat conftest.err >&5
9401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402  (exit $ac_status); } &&
9403         { ac_try='test -z "$ac_c_werror_flag"
9404                         || test ! -s conftest.err'
9405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406  (eval $ac_try) 2>&5
9407  ac_status=$?
9408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409  (exit $ac_status); }; } &&
9410         { ac_try='test -s conftest$ac_exeext'
9411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412  (eval $ac_try) 2>&5
9413  ac_status=$?
9414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415  (exit $ac_status); }; }; then
9416  ac_cv_func_dlopen=yes
9417else
9418  echo "$as_me: failed program was:" >&5
9419sed 's/^/| /' conftest.$ac_ext >&5
9420
9421ac_cv_func_dlopen=no
9422fi
9423rm -f conftest.err conftest.$ac_objext \
9424      conftest$ac_exeext conftest.$ac_ext
9425fi
9426echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9427echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9428if test $ac_cv_func_dlopen = yes; then
9429  lt_cv_dlopen="dlopen"
9430else
9431  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9432echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9433if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9434  echo $ECHO_N "(cached) $ECHO_C" >&6
9435else
9436  ac_check_lib_save_LIBS=$LIBS
9437LIBS="-ldl  $LIBS"
9438cat >conftest.$ac_ext <<_ACEOF
9439/* confdefs.h.  */
9440_ACEOF
9441cat confdefs.h >>conftest.$ac_ext
9442cat >>conftest.$ac_ext <<_ACEOF
9443/* end confdefs.h.  */
9444
9445/* Override any gcc2 internal prototype to avoid an error.  */
9446#ifdef __cplusplus
9447extern "C"
9448#endif
9449/* We use char because int might match the return type of a gcc2
9450   builtin and then its argument prototype would still apply.  */
9451char dlopen ();
9452int
9453main ()
9454{
9455dlopen ();
9456  ;
9457  return 0;
9458}
9459_ACEOF
9460rm -f conftest.$ac_objext conftest$ac_exeext
9461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462  (eval $ac_link) 2>conftest.er1
9463  ac_status=$?
9464  grep -v '^ *+' conftest.er1 >conftest.err
9465  rm -f conftest.er1
9466  cat conftest.err >&5
9467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468  (exit $ac_status); } &&
9469         { ac_try='test -z "$ac_c_werror_flag"
9470                         || test ! -s conftest.err'
9471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472  (eval $ac_try) 2>&5
9473  ac_status=$?
9474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475  (exit $ac_status); }; } &&
9476         { ac_try='test -s conftest$ac_exeext'
9477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478  (eval $ac_try) 2>&5
9479  ac_status=$?
9480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481  (exit $ac_status); }; }; then
9482  ac_cv_lib_dl_dlopen=yes
9483else
9484  echo "$as_me: failed program was:" >&5
9485sed 's/^/| /' conftest.$ac_ext >&5
9486
9487ac_cv_lib_dl_dlopen=no
9488fi
9489rm -f conftest.err conftest.$ac_objext \
9490      conftest$ac_exeext conftest.$ac_ext
9491LIBS=$ac_check_lib_save_LIBS
9492fi
9493echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9494echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9495if test $ac_cv_lib_dl_dlopen = yes; then
9496  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9497else
9498  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9499echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9500if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9501  echo $ECHO_N "(cached) $ECHO_C" >&6
9502else
9503  ac_check_lib_save_LIBS=$LIBS
9504LIBS="-lsvld  $LIBS"
9505cat >conftest.$ac_ext <<_ACEOF
9506/* confdefs.h.  */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h.  */
9511
9512/* Override any gcc2 internal prototype to avoid an error.  */
9513#ifdef __cplusplus
9514extern "C"
9515#endif
9516/* We use char because int might match the return type of a gcc2
9517   builtin and then its argument prototype would still apply.  */
9518char dlopen ();
9519int
9520main ()
9521{
9522dlopen ();
9523  ;
9524  return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext conftest$ac_exeext
9528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529  (eval $ac_link) 2>conftest.er1
9530  ac_status=$?
9531  grep -v '^ *+' conftest.er1 >conftest.err
9532  rm -f conftest.er1
9533  cat conftest.err >&5
9534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535  (exit $ac_status); } &&
9536         { ac_try='test -z "$ac_c_werror_flag"
9537                         || test ! -s conftest.err'
9538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539  (eval $ac_try) 2>&5
9540  ac_status=$?
9541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542  (exit $ac_status); }; } &&
9543         { ac_try='test -s conftest$ac_exeext'
9544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545  (eval $ac_try) 2>&5
9546  ac_status=$?
9547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548  (exit $ac_status); }; }; then
9549  ac_cv_lib_svld_dlopen=yes
9550else
9551  echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554ac_cv_lib_svld_dlopen=no
9555fi
9556rm -f conftest.err conftest.$ac_objext \
9557      conftest$ac_exeext conftest.$ac_ext
9558LIBS=$ac_check_lib_save_LIBS
9559fi
9560echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9561echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9562if test $ac_cv_lib_svld_dlopen = yes; then
9563  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9564else
9565  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9566echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9567if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9568  echo $ECHO_N "(cached) $ECHO_C" >&6
9569else
9570  ac_check_lib_save_LIBS=$LIBS
9571LIBS="-ldld  $LIBS"
9572cat >conftest.$ac_ext <<_ACEOF
9573/* confdefs.h.  */
9574_ACEOF
9575cat confdefs.h >>conftest.$ac_ext
9576cat >>conftest.$ac_ext <<_ACEOF
9577/* end confdefs.h.  */
9578
9579/* Override any gcc2 internal prototype to avoid an error.  */
9580#ifdef __cplusplus
9581extern "C"
9582#endif
9583/* We use char because int might match the return type of a gcc2
9584   builtin and then its argument prototype would still apply.  */
9585char dld_link ();
9586int
9587main ()
9588{
9589dld_link ();
9590  ;
9591  return 0;
9592}
9593_ACEOF
9594rm -f conftest.$ac_objext conftest$ac_exeext
9595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596  (eval $ac_link) 2>conftest.er1
9597  ac_status=$?
9598  grep -v '^ *+' conftest.er1 >conftest.err
9599  rm -f conftest.er1
9600  cat conftest.err >&5
9601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602  (exit $ac_status); } &&
9603         { ac_try='test -z "$ac_c_werror_flag"
9604                         || test ! -s conftest.err'
9605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606  (eval $ac_try) 2>&5
9607  ac_status=$?
9608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609  (exit $ac_status); }; } &&
9610         { ac_try='test -s conftest$ac_exeext'
9611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612  (eval $ac_try) 2>&5
9613  ac_status=$?
9614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615  (exit $ac_status); }; }; then
9616  ac_cv_lib_dld_dld_link=yes
9617else
9618  echo "$as_me: failed program was:" >&5
9619sed 's/^/| /' conftest.$ac_ext >&5
9620
9621ac_cv_lib_dld_dld_link=no
9622fi
9623rm -f conftest.err conftest.$ac_objext \
9624      conftest$ac_exeext conftest.$ac_ext
9625LIBS=$ac_check_lib_save_LIBS
9626fi
9627echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9628echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9629if test $ac_cv_lib_dld_dld_link = yes; then
9630  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9631fi
9632
9633
9634fi
9635
9636
9637fi
9638
9639
9640fi
9641
9642
9643fi
9644
9645
9646fi
9647
9648    ;;
9649  esac
9650
9651  if test "x$lt_cv_dlopen" != xno; then
9652    enable_dlopen=yes
9653  else
9654    enable_dlopen=no
9655  fi
9656
9657  case $lt_cv_dlopen in
9658  dlopen)
9659    save_CPPFLAGS="$CPPFLAGS"
9660    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9661
9662    save_LDFLAGS="$LDFLAGS"
9663    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9664
9665    save_LIBS="$LIBS"
9666    LIBS="$lt_cv_dlopen_libs $LIBS"
9667
9668    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9669echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9670if test "${lt_cv_dlopen_self+set}" = set; then
9671  echo $ECHO_N "(cached) $ECHO_C" >&6
9672else
9673          if test "$cross_compiling" = yes; then :
9674  lt_cv_dlopen_self=cross
9675else
9676  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9677  lt_status=$lt_dlunknown
9678  cat > conftest.$ac_ext <<EOF
9679#line 9679 "configure"
9680#include "confdefs.h"
9681
9682#if HAVE_DLFCN_H
9683#include <dlfcn.h>
9684#endif
9685
9686#include <stdio.h>
9687
9688#ifdef RTLD_GLOBAL
9689#  define LT_DLGLOBAL           RTLD_GLOBAL
9690#else
9691#  ifdef DL_GLOBAL
9692#    define LT_DLGLOBAL         DL_GLOBAL
9693#  else
9694#    define LT_DLGLOBAL         0
9695#  endif
9696#endif
9697
9698/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9699   find out it does not work in some platform. */
9700#ifndef LT_DLLAZY_OR_NOW
9701#  ifdef RTLD_LAZY
9702#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9703#  else
9704#    ifdef DL_LAZY
9705#      define LT_DLLAZY_OR_NOW          DL_LAZY
9706#    else
9707#      ifdef RTLD_NOW
9708#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9709#      else
9710#        ifdef DL_NOW
9711#          define LT_DLLAZY_OR_NOW      DL_NOW
9712#        else
9713#          define LT_DLLAZY_OR_NOW      0
9714#        endif
9715#      endif
9716#    endif
9717#  endif
9718#endif
9719
9720#ifdef __cplusplus
9721extern "C" void exit (int);
9722#endif
9723
9724void fnord() { int i=42;}
9725int main ()
9726{
9727  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9728  int status = $lt_dlunknown;
9729
9730  if (self)
9731    {
9732      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9733      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9734      /* dlclose (self); */
9735    }
9736  else
9737    puts (dlerror ());
9738
9739    exit (status);
9740}
9741EOF
9742  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743  (eval $ac_link) 2>&5
9744  ac_status=$?
9745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9747    (./conftest; exit; ) >&5 2>/dev/null
9748    lt_status=$?
9749    case x$lt_status in
9750      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9751      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9752      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9753    esac
9754  else :
9755    # compilation failed
9756    lt_cv_dlopen_self=no
9757  fi
9758fi
9759rm -fr conftest*
9760
9761
9762fi
9763echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9764echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9765
9766    if test "x$lt_cv_dlopen_self" = xyes; then
9767      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9768      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9769echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9770if test "${lt_cv_dlopen_self_static+set}" = set; then
9771  echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773          if test "$cross_compiling" = yes; then :
9774  lt_cv_dlopen_self_static=cross
9775else
9776  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9777  lt_status=$lt_dlunknown
9778  cat > conftest.$ac_ext <<EOF
9779#line 9779 "configure"
9780#include "confdefs.h"
9781
9782#if HAVE_DLFCN_H
9783#include <dlfcn.h>
9784#endif
9785
9786#include <stdio.h>
9787
9788#ifdef RTLD_GLOBAL
9789#  define LT_DLGLOBAL           RTLD_GLOBAL
9790#else
9791#  ifdef DL_GLOBAL
9792#    define LT_DLGLOBAL         DL_GLOBAL
9793#  else
9794#    define LT_DLGLOBAL         0
9795#  endif
9796#endif
9797
9798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9799   find out it does not work in some platform. */
9800#ifndef LT_DLLAZY_OR_NOW
9801#  ifdef RTLD_LAZY
9802#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9803#  else
9804#    ifdef DL_LAZY
9805#      define LT_DLLAZY_OR_NOW          DL_LAZY
9806#    else
9807#      ifdef RTLD_NOW
9808#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9809#      else
9810#        ifdef DL_NOW
9811#          define LT_DLLAZY_OR_NOW      DL_NOW
9812#        else
9813#          define LT_DLLAZY_OR_NOW      0
9814#        endif
9815#      endif
9816#    endif
9817#  endif
9818#endif
9819
9820#ifdef __cplusplus
9821extern "C" void exit (int);
9822#endif
9823
9824void fnord() { int i=42;}
9825int main ()
9826{
9827  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9828  int status = $lt_dlunknown;
9829
9830  if (self)
9831    {
9832      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9833      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9834      /* dlclose (self); */
9835    }
9836  else
9837    puts (dlerror ());
9838
9839    exit (status);
9840}
9841EOF
9842  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843  (eval $ac_link) 2>&5
9844  ac_status=$?
9845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9847    (./conftest; exit; ) >&5 2>/dev/null
9848    lt_status=$?
9849    case x$lt_status in
9850      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9851      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9852      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9853    esac
9854  else :
9855    # compilation failed
9856    lt_cv_dlopen_self_static=no
9857  fi
9858fi
9859rm -fr conftest*
9860
9861
9862fi
9863echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9864echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9865    fi
9866
9867    CPPFLAGS="$save_CPPFLAGS"
9868    LDFLAGS="$save_LDFLAGS"
9869    LIBS="$save_LIBS"
9870    ;;
9871  esac
9872
9873  case $lt_cv_dlopen_self in
9874  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9875  *) enable_dlopen_self=unknown ;;
9876  esac
9877
9878  case $lt_cv_dlopen_self_static in
9879  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9880  *) enable_dlopen_self_static=unknown ;;
9881  esac
9882fi
9883
9884
9885# Report which library types will actually be built
9886echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9887echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9888echo "$as_me:$LINENO: result: $can_build_shared" >&5
9889echo "${ECHO_T}$can_build_shared" >&6
9890
9891echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9892echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9893test "$can_build_shared" = "no" && enable_shared=no
9894
9895# On AIX, shared libraries and static libraries use the same namespace, and
9896# are all built from PIC.
9897case $host_os in
9898aix3*)
9899  test "$enable_shared" = yes && enable_static=no
9900  if test -n "$RANLIB"; then
9901    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9902    postinstall_cmds='$RANLIB $lib'
9903  fi
9904  ;;
9905
9906aix4* | aix5*)
9907  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9908    test "$enable_shared" = yes && enable_static=no
9909  fi
9910    ;;
9911esac
9912echo "$as_me:$LINENO: result: $enable_shared" >&5
9913echo "${ECHO_T}$enable_shared" >&6
9914
9915echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9916echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9917# Make sure either enable_shared or enable_static is yes.
9918test "$enable_shared" = yes || enable_static=yes
9919echo "$as_me:$LINENO: result: $enable_static" >&5
9920echo "${ECHO_T}$enable_static" >&6
9921
9922# The else clause should only fire when bootstrapping the
9923# libtool distribution, otherwise you forgot to ship ltmain.sh
9924# with your package, and you will get complaints that there are
9925# no rules to generate ltmain.sh.
9926if test -f "$ltmain"; then
9927  # See if we are running on zsh, and set the options which allow our commands through
9928  # without removal of \ escapes.
9929  if test -n "${ZSH_VERSION+set}" ; then
9930    setopt NO_GLOB_SUBST
9931  fi
9932  # Now quote all the things that may contain metacharacters while being
9933  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9934  # variables and quote the copies for generation of the libtool script.
9935  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9936    SED SHELL STRIP \
9937    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9938    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9939    deplibs_check_method reload_flag reload_cmds need_locks \
9940    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9941    lt_cv_sys_global_symbol_to_c_name_address \
9942    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9943    old_postinstall_cmds old_postuninstall_cmds \
9944    compiler \
9945    CC \
9946    LD \
9947    lt_prog_compiler_wl \
9948    lt_prog_compiler_pic \
9949    lt_prog_compiler_static \
9950    lt_prog_compiler_no_builtin_flag \
9951    export_dynamic_flag_spec \
9952    thread_safe_flag_spec \
9953    whole_archive_flag_spec \
9954    enable_shared_with_static_runtimes \
9955    old_archive_cmds \
9956    old_archive_from_new_cmds \
9957    predep_objects \
9958    postdep_objects \
9959    predeps \
9960    postdeps \
9961    compiler_lib_search_path \
9962    archive_cmds \
9963    archive_expsym_cmds \
9964    postinstall_cmds \
9965    postuninstall_cmds \
9966    old_archive_from_expsyms_cmds \
9967    allow_undefined_flag \
9968    no_undefined_flag \
9969    export_symbols_cmds \
9970    hardcode_libdir_flag_spec \
9971    hardcode_libdir_flag_spec_ld \
9972    hardcode_libdir_separator \
9973    hardcode_automatic \
9974    module_cmds \
9975    module_expsym_cmds \
9976    lt_cv_prog_compiler_c_o \
9977    exclude_expsyms \
9978    include_expsyms; do
9979
9980    case $var in
9981    old_archive_cmds | \
9982    old_archive_from_new_cmds | \
9983    archive_cmds | \
9984    archive_expsym_cmds | \
9985    module_cmds | \
9986    module_expsym_cmds | \
9987    old_archive_from_expsyms_cmds | \
9988    export_symbols_cmds | \
9989    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9990    postinstall_cmds | postuninstall_cmds | \
9991    old_postinstall_cmds | old_postuninstall_cmds | \
9992    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9993      # Double-quote double-evaled strings.
9994      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9995      ;;
9996    *)
9997      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9998      ;;
9999    esac
10000  done
10001
10002  case $lt_echo in
10003  *'\$0 --fallback-echo"')
10004    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10005    ;;
10006  esac
10007
10008cfgfile="${ofile}T"
10009  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10010  $rm -f "$cfgfile"
10011  { echo "$as_me:$LINENO: creating $ofile" >&5
10012echo "$as_me: creating $ofile" >&6;}
10013
10014  cat <<__EOF__ >> "$cfgfile"
10015#! $SHELL
10016
10017# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10018# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10019# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10020#
10021# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10022# Free Software Foundation, Inc.
10023#
10024# This file is part of GNU Libtool:
10025# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10026#
10027# This program is free software; you can redistribute it and/or modify
10028# it under the terms of the GNU General Public License as published by
10029# the Free Software Foundation; either version 2 of the License, or
10030# (at your option) any later version.
10031#
10032# This program is distributed in the hope that it will be useful, but
10033# WITHOUT ANY WARRANTY; without even the implied warranty of
10034# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10035# General Public License for more details.
10036#
10037# You should have received a copy of the GNU General Public License
10038# along with this program; if not, write to the Free Software
10039# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10040#
10041# As a special exception to the GNU General Public License, if you
10042# distribute this file as part of a program that contains a
10043# configuration script generated by Autoconf, you may include it under
10044# the same distribution terms that you use for the rest of that program.
10045
10046# A sed program that does not truncate output.
10047SED=$lt_SED
10048
10049# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10050Xsed="$SED -e 1s/^X//"
10051
10052# The HP-UX ksh and POSIX shell print the target directory to stdout
10053# if CDPATH is set.
10054(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10055
10056# The names of the tagged configurations supported by this script.
10057available_tags=
10058
10059# ### BEGIN LIBTOOL CONFIG
10060
10061# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10062
10063# Shell to use when invoking shell scripts.
10064SHELL=$lt_SHELL
10065
10066# Whether or not to build shared libraries.
10067build_libtool_libs=$enable_shared
10068
10069# Whether or not to build static libraries.
10070build_old_libs=$enable_static
10071
10072# Whether or not to add -lc for building shared libraries.
10073build_libtool_need_lc=$archive_cmds_need_lc
10074
10075# Whether or not to disallow shared libs when runtime libs are static
10076allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10077
10078# Whether or not to optimize for fast installation.
10079fast_install=$enable_fast_install
10080
10081# The host system.
10082host_alias=$host_alias
10083host=$host
10084host_os=$host_os
10085
10086# The build system.
10087build_alias=$build_alias
10088build=$build
10089build_os=$build_os
10090
10091# An echo program that does not interpret backslashes.
10092echo=$lt_echo
10093
10094# The archiver.
10095AR=$lt_AR
10096AR_FLAGS=$lt_AR_FLAGS
10097
10098# A C compiler.
10099LTCC=$lt_LTCC
10100
10101# LTCC compiler flags.
10102LTCFLAGS=$lt_LTCFLAGS
10103
10104# A language-specific compiler.
10105CC=$lt_compiler
10106
10107# Is the compiler the GNU C compiler?
10108with_gcc=$GCC
10109
10110# An ERE matcher.
10111EGREP=$lt_EGREP
10112
10113# The linker used to build libraries.
10114LD=$lt_LD
10115
10116# Whether we need hard or soft links.
10117LN_S=$lt_LN_S
10118
10119# A BSD-compatible nm program.
10120NM=$lt_NM
10121
10122# A symbol stripping program
10123STRIP=$lt_STRIP
10124
10125# Used to examine libraries when file_magic_cmd begins "file"
10126MAGIC_CMD=$MAGIC_CMD
10127
10128# Used on cygwin: DLL creation program.
10129DLLTOOL="$DLLTOOL"
10130
10131# Used on cygwin: object dumper.
10132OBJDUMP="$OBJDUMP"
10133
10134# Used on cygwin: assembler.
10135AS="$AS"
10136
10137# The name of the directory that contains temporary libtool files.
10138objdir=$objdir
10139
10140# How to create reloadable object files.
10141reload_flag=$lt_reload_flag
10142reload_cmds=$lt_reload_cmds
10143
10144# How to pass a linker flag through the compiler.
10145wl=$lt_lt_prog_compiler_wl
10146
10147# Object file suffix (normally "o").
10148objext="$ac_objext"
10149
10150# Old archive suffix (normally "a").
10151libext="$libext"
10152
10153# Shared library suffix (normally ".so").
10154shrext_cmds='$shrext_cmds'
10155
10156# Executable file suffix (normally "").
10157exeext="$exeext"
10158
10159# Additional compiler flags for building library objects.
10160pic_flag=$lt_lt_prog_compiler_pic
10161pic_mode=$pic_mode
10162
10163# What is the maximum length of a command?
10164max_cmd_len=$lt_cv_sys_max_cmd_len
10165
10166# Does compiler simultaneously support -c and -o options?
10167compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10168
10169# Must we lock files when doing compilation?
10170need_locks=$lt_need_locks
10171
10172# Do we need the lib prefix for modules?
10173need_lib_prefix=$need_lib_prefix
10174
10175# Do we need a version for libraries?
10176need_version=$need_version
10177
10178# Whether dlopen is supported.
10179dlopen_support=$enable_dlopen
10180
10181# Whether dlopen of programs is supported.
10182dlopen_self=$enable_dlopen_self
10183
10184# Whether dlopen of statically linked programs is supported.
10185dlopen_self_static=$enable_dlopen_self_static
10186
10187# Compiler flag to prevent dynamic linking.
10188link_static_flag=$lt_lt_prog_compiler_static
10189
10190# Compiler flag to turn off builtin functions.
10191no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10192
10193# Compiler flag to allow reflexive dlopens.
10194export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10195
10196# Compiler flag to generate shared objects directly from archives.
10197whole_archive_flag_spec=$lt_whole_archive_flag_spec
10198
10199# Compiler flag to generate thread-safe objects.
10200thread_safe_flag_spec=$lt_thread_safe_flag_spec
10201
10202# Library versioning type.
10203version_type=$version_type
10204
10205# Format of library name prefix.
10206libname_spec=$lt_libname_spec
10207
10208# List of archive names.  First name is the real one, the rest are links.
10209# The last name is the one that the linker finds with -lNAME.
10210library_names_spec=$lt_library_names_spec
10211
10212# The coded name of the library, if different from the real name.
10213soname_spec=$lt_soname_spec
10214
10215# Commands used to build and install an old-style archive.
10216RANLIB=$lt_RANLIB
10217old_archive_cmds=$lt_old_archive_cmds
10218old_postinstall_cmds=$lt_old_postinstall_cmds
10219old_postuninstall_cmds=$lt_old_postuninstall_cmds
10220
10221# Create an old-style archive from a shared archive.
10222old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10223
10224# Create a temporary old-style archive to link instead of a shared archive.
10225old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10226
10227# Commands used to build and install a shared archive.
10228archive_cmds=$lt_archive_cmds
10229archive_expsym_cmds=$lt_archive_expsym_cmds
10230postinstall_cmds=$lt_postinstall_cmds
10231postuninstall_cmds=$lt_postuninstall_cmds
10232
10233# Commands used to build a loadable module (assumed same as above if empty)
10234module_cmds=$lt_module_cmds
10235module_expsym_cmds=$lt_module_expsym_cmds
10236
10237# Commands to strip libraries.
10238old_striplib=$lt_old_striplib
10239striplib=$lt_striplib
10240
10241# Dependencies to place before the objects being linked to create a
10242# shared library.
10243predep_objects=$lt_predep_objects
10244
10245# Dependencies to place after the objects being linked to create a
10246# shared library.
10247postdep_objects=$lt_postdep_objects
10248
10249# Dependencies to place before the objects being linked to create a
10250# shared library.
10251predeps=$lt_predeps
10252
10253# Dependencies to place after the objects being linked to create a
10254# shared library.
10255postdeps=$lt_postdeps
10256
10257# The library search path used internally by the compiler when linking
10258# a shared library.
10259compiler_lib_search_path=$lt_compiler_lib_search_path
10260
10261# Method to check whether dependent libraries are shared objects.
10262deplibs_check_method=$lt_deplibs_check_method
10263
10264# Command to use when deplibs_check_method == file_magic.
10265file_magic_cmd=$lt_file_magic_cmd
10266
10267# Flag that allows shared libraries with undefined symbols to be built.
10268allow_undefined_flag=$lt_allow_undefined_flag
10269
10270# Flag that forces no undefined symbols.
10271no_undefined_flag=$lt_no_undefined_flag
10272
10273# Commands used to finish a libtool library installation in a directory.
10274finish_cmds=$lt_finish_cmds
10275
10276# Same as above, but a single script fragment to be evaled but not shown.
10277finish_eval=$lt_finish_eval
10278
10279# Take the output of nm and produce a listing of raw symbols and C names.
10280global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10281
10282# Transform the output of nm in a proper C declaration
10283global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10284
10285# Transform the output of nm in a C name address pair
10286global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10287
10288# This is the shared library runtime path variable.
10289runpath_var=$runpath_var
10290
10291# This is the shared library path variable.
10292shlibpath_var=$shlibpath_var
10293
10294# Is shlibpath searched before the hard-coded library search path?
10295shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10296
10297# How to hardcode a shared library path into an executable.
10298hardcode_action=$hardcode_action
10299
10300# Whether we should hardcode library paths into libraries.
10301hardcode_into_libs=$hardcode_into_libs
10302
10303# Flag to hardcode \$libdir into a binary during linking.
10304# This must work even if \$libdir does not exist.
10305hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10306
10307# If ld is used when linking, flag to hardcode \$libdir into
10308# a binary during linking. This must work even if \$libdir does
10309# not exist.
10310hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10311
10312# Whether we need a single -rpath flag with a separated argument.
10313hardcode_libdir_separator=$lt_hardcode_libdir_separator
10314
10315# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10316# resulting binary.
10317hardcode_direct=$hardcode_direct
10318
10319# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10320# resulting binary.
10321hardcode_minus_L=$hardcode_minus_L
10322
10323# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10324# the resulting binary.
10325hardcode_shlibpath_var=$hardcode_shlibpath_var
10326
10327# Set to yes if building a shared library automatically hardcodes DIR into the library
10328# and all subsequent libraries and executables linked against it.
10329hardcode_automatic=$hardcode_automatic
10330
10331# Variables whose values should be saved in libtool wrapper scripts and
10332# restored at relink time.
10333variables_saved_for_relink="$variables_saved_for_relink"
10334
10335# Whether libtool must link a program against all its dependency libraries.
10336link_all_deplibs=$link_all_deplibs
10337
10338# Compile-time system search path for libraries
10339sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10340
10341# Run-time system search path for libraries
10342sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10343
10344# Fix the shell variable \$srcfile for the compiler.
10345fix_srcfile_path="$fix_srcfile_path"
10346
10347# Set to yes if exported symbols are required.
10348always_export_symbols=$always_export_symbols
10349
10350# The commands to list exported symbols.
10351export_symbols_cmds=$lt_export_symbols_cmds
10352
10353# The commands to extract the exported symbol list from a shared archive.
10354extract_expsyms_cmds=$lt_extract_expsyms_cmds
10355
10356# Symbols that should not be listed in the preloaded symbols.
10357exclude_expsyms=$lt_exclude_expsyms
10358
10359# Symbols that must always be exported.
10360include_expsyms=$lt_include_expsyms
10361
10362# ### END LIBTOOL CONFIG
10363
10364__EOF__
10365
10366
10367  case $host_os in
10368  aix3*)
10369    cat <<\EOF >> "$cfgfile"
10370
10371# AIX sometimes has problems with the GCC collect2 program.  For some
10372# reason, if we set the COLLECT_NAMES environment variable, the problems
10373# vanish in a puff of smoke.
10374if test "X${COLLECT_NAMES+set}" != Xset; then
10375  COLLECT_NAMES=
10376  export COLLECT_NAMES
10377fi
10378EOF
10379    ;;
10380  esac
10381
10382  # We use sed instead of cat because bash on DJGPP gets confused if
10383  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10384  # text mode, it properly converts lines to CR/LF.  This bash problem
10385  # is reportedly fixed, but why not run on old versions too?
10386  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10387
10388  mv -f "$cfgfile" "$ofile" || \
10389    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10390  chmod +x "$ofile"
10391
10392else
10393  # If there is no Makefile yet, we rely on a make rule to execute
10394  # `config.status --recheck' to rerun these tests and create the
10395  # libtool script then.
10396  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10397  if test -f "$ltmain_in"; then
10398    test -f Makefile && make "$ltmain"
10399  fi
10400fi
10401
10402
10403ac_ext=c
10404ac_cpp='$CPP $CPPFLAGS'
10405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10407ac_compiler_gnu=$ac_cv_c_compiler_gnu
10408
10409CC="$lt_save_CC"
10410
10411
10412# Check whether --with-tags or --without-tags was given.
10413if test "${with_tags+set}" = set; then
10414  withval="$with_tags"
10415  tagnames="$withval"
10416fi;
10417
10418if test -f "$ltmain" && test -n "$tagnames"; then
10419  if test ! -f "${ofile}"; then
10420    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10421echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10422  fi
10423
10424  if test -z "$LTCC"; then
10425    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10426    if test -z "$LTCC"; then
10427      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10428echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10429    else
10430      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10431echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10432    fi
10433  fi
10434  if test -z "$LTCFLAGS"; then
10435    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10436  fi
10437
10438  # Extract list of available tagged configurations in $ofile.
10439  # Note that this assumes the entire list is on one line.
10440  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10441
10442  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10443  for tagname in $tagnames; do
10444    IFS="$lt_save_ifs"
10445    # Check whether tagname contains only valid characters
10446    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10447    "") ;;
10448    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10449echo "$as_me: error: invalid tag name: $tagname" >&2;}
10450   { (exit 1); exit 1; }; }
10451        ;;
10452    esac
10453
10454    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10455    then
10456      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10457echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10458   { (exit 1); exit 1; }; }
10459    fi
10460
10461    # Update the list of available tags.
10462    if test -n "$tagname"; then
10463      echo appending configuration tag \"$tagname\" to $ofile
10464
10465      case $tagname in
10466      CXX)
10467        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10468            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10469            (test "X$CXX" != "Xg++"))) ; then
10470          ac_ext=cc
10471ac_cpp='$CXXCPP $CPPFLAGS'
10472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10475
10476
10477
10478
10479archive_cmds_need_lc_CXX=no
10480allow_undefined_flag_CXX=
10481always_export_symbols_CXX=no
10482archive_expsym_cmds_CXX=
10483export_dynamic_flag_spec_CXX=
10484hardcode_direct_CXX=no
10485hardcode_libdir_flag_spec_CXX=
10486hardcode_libdir_flag_spec_ld_CXX=
10487hardcode_libdir_separator_CXX=
10488hardcode_minus_L_CXX=no
10489hardcode_shlibpath_var_CXX=unsupported
10490hardcode_automatic_CXX=no
10491module_cmds_CXX=
10492module_expsym_cmds_CXX=
10493link_all_deplibs_CXX=unknown
10494old_archive_cmds_CXX=$old_archive_cmds
10495no_undefined_flag_CXX=
10496whole_archive_flag_spec_CXX=
10497enable_shared_with_static_runtimes_CXX=no
10498
10499# Dependencies to place before and after the object being linked:
10500predep_objects_CXX=
10501postdep_objects_CXX=
10502predeps_CXX=
10503postdeps_CXX=
10504compiler_lib_search_path_CXX=
10505
10506# Source file extension for C++ test sources.
10507ac_ext=cpp
10508
10509# Object file extension for compiled C++ test sources.
10510objext=o
10511objext_CXX=$objext
10512
10513# Code to be used in simple compile tests
10514lt_simple_compile_test_code="int some_variable = 0;\n"
10515
10516# Code to be used in simple link tests
10517lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10518
10519# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10520
10521# If no C compiler was specified, use CC.
10522LTCC=${LTCC-"$CC"}
10523
10524# If no C compiler flags were specified, use CFLAGS.
10525LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10526
10527# Allow CC to be a program name with arguments.
10528compiler=$CC
10529
10530
10531# save warnings/boilerplate of simple test code
10532ac_outfile=conftest.$ac_objext
10533printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10535_lt_compiler_boilerplate=`cat conftest.err`
10536$rm conftest*
10537
10538ac_outfile=conftest.$ac_objext
10539printf "$lt_simple_link_test_code" >conftest.$ac_ext
10540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10541_lt_linker_boilerplate=`cat conftest.err`
10542$rm conftest*
10543
10544
10545# Allow CC to be a program name with arguments.
10546lt_save_CC=$CC
10547lt_save_LD=$LD
10548lt_save_GCC=$GCC
10549GCC=$GXX
10550lt_save_with_gnu_ld=$with_gnu_ld
10551lt_save_path_LD=$lt_cv_path_LD
10552if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10553  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10554else
10555  $as_unset lt_cv_prog_gnu_ld
10556fi
10557if test -n "${lt_cv_path_LDCXX+set}"; then
10558  lt_cv_path_LD=$lt_cv_path_LDCXX
10559else
10560  $as_unset lt_cv_path_LD
10561fi
10562test -z "${LDCXX+set}" || LD=$LDCXX
10563CC=${CXX-"c++"}
10564compiler=$CC
10565compiler_CXX=$CC
10566for cc_temp in $compiler""; do
10567  case $cc_temp in
10568    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10569    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10570    \-*) ;;
10571    *) break;;
10572  esac
10573done
10574cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10575
10576
10577# We don't want -fno-exception wen compiling C++ code, so set the
10578# no_builtin_flag separately
10579if test "$GXX" = yes; then
10580  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10581else
10582  lt_prog_compiler_no_builtin_flag_CXX=
10583fi
10584
10585if test "$GXX" = yes; then
10586  # Set up default GNU C++ configuration
10587
10588
10589# Check whether --with-gnu-ld or --without-gnu-ld was given.
10590if test "${with_gnu_ld+set}" = set; then
10591  withval="$with_gnu_ld"
10592  test "$withval" = no || with_gnu_ld=yes
10593else
10594  with_gnu_ld=no
10595fi;
10596ac_prog=ld
10597if test "$GCC" = yes; then
10598  # Check if gcc -print-prog-name=ld gives a path.
10599  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10600echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10601  case $host in
10602  *-*-mingw*)
10603    # gcc leaves a trailing carriage return which upsets mingw
10604    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10605  *)
10606    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10607  esac
10608  case $ac_prog in
10609    # Accept absolute paths.
10610    [\\/]* | ?:[\\/]*)
10611      re_direlt='/[^/][^/]*/\.\./'
10612      # Canonicalize the pathname of ld
10613      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10614      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10615        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10616      done
10617      test -z "$LD" && LD="$ac_prog"
10618      ;;
10619  "")
10620    # If it fails, then pretend we aren't using GCC.
10621    ac_prog=ld
10622    ;;
10623  *)
10624    # If it is relative, then search for the first ld in PATH.
10625    with_gnu_ld=unknown
10626    ;;
10627  esac
10628elif test "$with_gnu_ld" = yes; then
10629  echo "$as_me:$LINENO: checking for GNU ld" >&5
10630echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10631else
10632  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10633echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10634fi
10635if test "${lt_cv_path_LD+set}" = set; then
10636  echo $ECHO_N "(cached) $ECHO_C" >&6
10637else
10638  if test -z "$LD"; then
10639  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10640  for ac_dir in $PATH; do
10641    IFS="$lt_save_ifs"
10642    test -z "$ac_dir" && ac_dir=.
10643    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10644      lt_cv_path_LD="$ac_dir/$ac_prog"
10645      # Check to see if the program is GNU ld.  I'd rather use --version,
10646      # but apparently some variants of GNU ld only accept -v.
10647      # Break only if it was the GNU/non-GNU ld that we prefer.
10648      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10649      *GNU* | *'with BFD'*)
10650        test "$with_gnu_ld" != no && break
10651        ;;
10652      *)
10653        test "$with_gnu_ld" != yes && break
10654        ;;
10655      esac
10656    fi
10657  done
10658  IFS="$lt_save_ifs"
10659else
10660  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10661fi
10662fi
10663
10664LD="$lt_cv_path_LD"
10665if test -n "$LD"; then
10666  echo "$as_me:$LINENO: result: $LD" >&5
10667echo "${ECHO_T}$LD" >&6
10668else
10669  echo "$as_me:$LINENO: result: no" >&5
10670echo "${ECHO_T}no" >&6
10671fi
10672test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10673echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10674   { (exit 1); exit 1; }; }
10675echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10676echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10677if test "${lt_cv_prog_gnu_ld+set}" = set; then
10678  echo $ECHO_N "(cached) $ECHO_C" >&6
10679else
10680  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10681case `$LD -v 2>&1 </dev/null` in
10682*GNU* | *'with BFD'*)
10683  lt_cv_prog_gnu_ld=yes
10684  ;;
10685*)
10686  lt_cv_prog_gnu_ld=no
10687  ;;
10688esac
10689fi
10690echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10691echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10692with_gnu_ld=$lt_cv_prog_gnu_ld
10693
10694
10695
10696  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10697  # archiving commands below assume that GNU ld is being used.
10698  if test "$with_gnu_ld" = yes; then
10699    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10700    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10701
10702    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10703    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10704
10705    # If archive_cmds runs LD, not CC, wlarc should be empty
10706    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10707    #     investigate it a little bit more. (MM)
10708    wlarc='${wl}'
10709
10710    # ancient GNU ld didn't support --whole-archive et. al.
10711    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10712        grep 'no-whole-archive' > /dev/null; then
10713      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10714    else
10715      whole_archive_flag_spec_CXX=
10716    fi
10717  else
10718    with_gnu_ld=no
10719    wlarc=
10720
10721    # A generic and very simple default shared library creation
10722    # command for GNU C++ for the case where it uses the native
10723    # linker, instead of GNU ld.  If possible, this setting should
10724    # overridden to take advantage of the native linker features on
10725    # the platform it is being used on.
10726    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10727  fi
10728
10729  # Commands to make compiler produce verbose output that lists
10730  # what "hidden" libraries, object files and flags are used when
10731  # linking a shared library.
10732  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10733
10734else
10735  GXX=no
10736  with_gnu_ld=no
10737  wlarc=
10738fi
10739
10740# PORTME: fill in a description of your system's C++ link characteristics
10741echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10742echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10743ld_shlibs_CXX=yes
10744case $host_os in
10745  aix3*)
10746    # FIXME: insert proper C++ library support
10747    ld_shlibs_CXX=no
10748    ;;
10749  aix4* | aix5*)
10750    if test "$host_cpu" = ia64; then
10751      # On IA64, the linker does run time linking by default, so we don't
10752      # have to do anything special.
10753      aix_use_runtimelinking=no
10754      exp_sym_flag='-Bexport'
10755      no_entry_flag=""
10756    else
10757      aix_use_runtimelinking=no
10758
10759      # Test if we are trying to use run time linking or normal
10760      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10761      # need to do runtime linking.
10762      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10763        for ld_flag in $LDFLAGS; do
10764          case $ld_flag in
10765          *-brtl*)
10766            aix_use_runtimelinking=yes
10767            break
10768            ;;
10769          esac
10770        done
10771        ;;
10772      esac
10773
10774      exp_sym_flag='-bexport'
10775      no_entry_flag='-bnoentry'
10776    fi
10777
10778    # When large executables or shared objects are built, AIX ld can
10779    # have problems creating the table of contents.  If linking a library
10780    # or program results in "error TOC overflow" add -mminimal-toc to
10781    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10782    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10783
10784    archive_cmds_CXX=''
10785    hardcode_direct_CXX=yes
10786    hardcode_libdir_separator_CXX=':'
10787    link_all_deplibs_CXX=yes
10788
10789    if test "$GXX" = yes; then
10790      case $host_os in aix4.[012]|aix4.[012].*)
10791      # We only want to do this on AIX 4.2 and lower, the check
10792      # below for broken collect2 doesn't work under 4.3+
10793        collect2name=`${CC} -print-prog-name=collect2`
10794        if test -f "$collect2name" && \
10795           strings "$collect2name" | grep resolve_lib_name >/dev/null
10796        then
10797          # We have reworked collect2
10798          hardcode_direct_CXX=yes
10799        else
10800          # We have old collect2
10801          hardcode_direct_CXX=unsupported
10802          # It fails to find uninstalled libraries when the uninstalled
10803          # path is not listed in the libpath.  Setting hardcode_minus_L
10804          # to unsupported forces relinking
10805          hardcode_minus_L_CXX=yes
10806          hardcode_libdir_flag_spec_CXX='-L$libdir'
10807          hardcode_libdir_separator_CXX=
10808        fi
10809        ;;
10810      esac
10811      shared_flag='-shared'
10812      if test "$aix_use_runtimelinking" = yes; then
10813        shared_flag="$shared_flag "'${wl}-G'
10814      fi
10815    else
10816      # not using gcc
10817      if test "$host_cpu" = ia64; then
10818        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release