source: ThirdParty/FilterSQP/stable/1.1/configure @ 1986

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

sync with trunk rev1984

File size: 767.2 KB
<
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 1.1.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='1.1'
433PACKAGE_STRING='ThirdPartyFilterSQP 1.1'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FILTERSQP_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS FILTERSQP_PCLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
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 ThirdPartyFilterSQP 1.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 ThirdPartyFilterSQP 1.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-filtersqp
1079                          compile this project (FilterSQP) with debug options
1080  --enable-doscompile     Under Cygwin, compile so that executables run under
1081                          DOS. Set to mingw to use gcc/g++/ld with
1082                          -mno-cygwin. Set to msvc to use cl/link (or
1083                          icl/link). Default when mentioned: mingw. Default
1084                          when not mentioned: disabled.
1085  --enable-pkg-config     use pkg-config if available (default is yes)
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-static[=PKGS]
1091                          build static libraries [default=no]
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097
1098Optional Packages:
1099  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1100  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1101  --with-filtersqp-verbosity
1102                          specify the debug verbosity level for project
1103                          FilterSQP
1104  --with-filtersqp-checklevel
1105                          specify the sanity check level for project FilterSQP
1106  --with-coin-instdir     prefix of installation directory for precompiled
1107                          COIN packages
1108  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1109  --with-pic              try to use only PIC/non-PIC objects [default=use
1110                          both]
1111  --with-tags[=TAGS]
1112                          include additional configurations [automatic]
1113
1114Some influential environment variables:
1115  CDEFS       Additional -D flags to be used when compiling C code.
1116  ADD_CFLAGS  Additional C compiler options
1117  DBG_CFLAGS  Debug C compiler options
1118  OPT_CFLAGS  Optimize C compiler options
1119  CC          C compiler command
1120  CFLAGS      C compiler flags
1121  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1122              nonstandard directory <lib dir>
1123  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124              headers in a nonstandard directory <include dir>
1125  MPICC       C MPI Compiler
1126  ADD_FFLAGS  Additional Fortran compiler options
1127  DBG_FFLAGS  Debug Fortran compiler options
1128  OPT_FFLAGS  Optimize Fortran compiler options
1129  F77         Fortran 77 compiler command
1130  FFLAGS      Fortran 77 compiler flags
1131  MPIF77      Fortran MPI Compiler
1132  PKG_CONFIG  path to pkg-config utility
1133  CPP         C preprocessor
1134  CXX         C++ compiler command
1135  CXXFLAGS    C++ compiler flags
1136  CXXCPP      C++ preprocessor
1137
1138Use these variables to override the choices made by `configure' or to help
1139it to find libraries and programs with nonstandard names/locations.
1140
1141Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1142_ACEOF
1143fi
1144
1145if test "$ac_init_help" = "recursive"; then
1146  # If there are subdirs, report their specific --help.
1147  ac_popdir=`pwd`
1148  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1149    test -d $ac_dir || continue
1150    ac_builddir=.
1151
1152if test "$ac_dir" != .; then
1153  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1154  # A "../" for each directory in $ac_dir_suffix.
1155  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1156else
1157  ac_dir_suffix= ac_top_builddir=
1158fi
1159
1160case $srcdir in
1161  .)  # No --srcdir option.  We are building in place.
1162    ac_srcdir=.
1163    if test -z "$ac_top_builddir"; then
1164       ac_top_srcdir=.
1165    else
1166       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1167    fi ;;
1168  [\\/]* | ?:[\\/]* )  # Absolute path.
1169    ac_srcdir=$srcdir$ac_dir_suffix;
1170    ac_top_srcdir=$srcdir ;;
1171  *) # Relative path.
1172    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1173    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1174esac
1175
1176# Do not use `cd foo && pwd` to compute absolute paths, because
1177# the directories may not exist.
1178case `pwd` in
1179.) ac_abs_builddir="$ac_dir";;
1180*)
1181  case "$ac_dir" in
1182  .) ac_abs_builddir=`pwd`;;
1183  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1184  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1185  esac;;
1186esac
1187case $ac_abs_builddir in
1188.) ac_abs_top_builddir=${ac_top_builddir}.;;
1189*)
1190  case ${ac_top_builddir}. in
1191  .) ac_abs_top_builddir=$ac_abs_builddir;;
1192  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1193  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1194  esac;;
1195esac
1196case $ac_abs_builddir in
1197.) ac_abs_srcdir=$ac_srcdir;;
1198*)
1199  case $ac_srcdir in
1200  .) ac_abs_srcdir=$ac_abs_builddir;;
1201  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1202  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1203  esac;;
1204esac
1205case $ac_abs_builddir in
1206.) ac_abs_top_srcdir=$ac_top_srcdir;;
1207*)
1208  case $ac_top_srcdir in
1209  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1210  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1211  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1212  esac;;
1213esac
1214
1215    cd $ac_dir
1216    # Check for guested configure; otherwise get Cygnus style configure.
1217    if test -f $ac_srcdir/configure.gnu; then
1218      echo
1219      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1220    elif test -f $ac_srcdir/configure; then
1221      echo
1222      $SHELL $ac_srcdir/configure  --help=recursive
1223    elif test -f $ac_srcdir/configure.ac ||
1224           test -f $ac_srcdir/configure.in; then
1225      echo
1226      $ac_configure --help
1227    else
1228      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1229    fi
1230    cd $ac_popdir
1231  done
1232fi
1233
1234test -n "$ac_init_help" && exit 0
1235if $ac_init_version; then
1236  cat <<\_ACEOF
1237ThirdPartyFilterSQP configure 1.1
1238generated by GNU Autoconf 2.59
1239
1240Copyright (C) 2003 Free Software Foundation, Inc.
1241This configure script is free software; the Free Software Foundation
1242gives unlimited permission to copy, distribute and modify it.
1243
1244
1245Copyright 2006 International Business Machines and others.
1246All Rights Reserved.
1247This file is part of the open source package Coin which is distributed
1248under the Eclipse Public License.
1249_ACEOF
1250  exit 0
1251fi
1252exec 5>config.log
1253cat >&5 <<_ACEOF
1254This file contains any messages produced by compilers while
1255running configure, to aid debugging if configure makes a mistake.
1256
1257It was created by ThirdPartyFilterSQP $as_me 1.1, which was
1258generated by GNU Autoconf 2.59.  Invocation command line was
1259
1260  $ $0 $@
1261
1262_ACEOF
1263{
1264cat <<_ASUNAME
1265## --------- ##
1266## Platform. ##
1267## --------- ##
1268
1269hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1270uname -m = `(uname -m) 2>/dev/null || echo unknown`
1271uname -r = `(uname -r) 2>/dev/null || echo unknown`
1272uname -s = `(uname -s) 2>/dev/null || echo unknown`
1273uname -v = `(uname -v) 2>/dev/null || echo unknown`
1274
1275/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1276/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1277
1278/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1279/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1280/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1281hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1282/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1283/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1284/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1285
1286_ASUNAME
1287
1288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1289for as_dir in $PATH
1290do
1291  IFS=$as_save_IFS
1292  test -z "$as_dir" && as_dir=.
1293  echo "PATH: $as_dir"
1294done
1295
1296} >&5
1297
1298cat >&5 <<_ACEOF
1299
1300
1301## ----------- ##
1302## Core tests. ##
1303## ----------- ##
1304
1305_ACEOF
1306
1307
1308# Keep a trace of the command line.
1309# Strip out --no-create and --no-recursion so they do not pile up.
1310# Strip out --silent because we don't want to record it for future runs.
1311# Also quote any args containing shell meta-characters.
1312# Make two passes to allow for proper duplicate-argument suppression.
1313ac_configure_args=
1314ac_configure_args0=
1315ac_configure_args1=
1316ac_sep=
1317ac_must_keep_next=false
1318for ac_pass in 1 2
1319do
1320  for ac_arg
1321  do
1322    case $ac_arg in
1323    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1324    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325    | -silent | --silent | --silen | --sile | --sil)
1326      continue ;;
1327    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1328      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1329    esac
1330    case $ac_pass in
1331    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1332    2)
1333      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1334      if test $ac_must_keep_next = true; then
1335        ac_must_keep_next=false # Got value, back to normal.
1336      else
1337        case $ac_arg in
1338          *=* | --config-cache | -C | -disable-* | --disable-* \
1339          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1340          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1341          | -with-* | --with-* | -without-* | --without-* | --x)
1342            case "$ac_configure_args0 " in
1343              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1344            esac
1345            ;;
1346          -* ) ac_must_keep_next=true ;;
1347        esac
1348      fi
1349      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1350      # Get rid of the leading space.
1351      ac_sep=" "
1352      ;;
1353    esac
1354  done
1355done
1356$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1357$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1358
1359# When interrupted or exit'd, cleanup temporary files, and complete
1360# config.log.  We remove comments because anyway the quotes in there
1361# would cause problems or look ugly.
1362# WARNING: Be sure not to use single quotes in there, as some shells,
1363# such as our DU 5.0 friend, will then `close' the trap.
1364trap 'exit_status=$?
1365  # Save into config.log some information that might help in debugging.
1366  {
1367    echo
1368
1369    cat <<\_ASBOX
1370## ---------------- ##
1371## Cache variables. ##
1372## ---------------- ##
1373_ASBOX
1374    echo
1375    # The following way of writing the cache mishandles newlines in values,
1376{
1377  (set) 2>&1 |
1378    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1379    *ac_space=\ *)
1380      sed -n \
1381        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1382          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1383      ;;
1384    *)
1385      sed -n \
1386        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1387      ;;
1388    esac;
1389}
1390    echo
1391
1392    cat <<\_ASBOX
1393## ----------------- ##
1394## Output variables. ##
1395## ----------------- ##
1396_ASBOX
1397    echo
1398    for ac_var in $ac_subst_vars
1399    do
1400      eval ac_val=$`echo $ac_var`
1401      echo "$ac_var='"'"'$ac_val'"'"'"
1402    done | sort
1403    echo
1404
1405    if test -n "$ac_subst_files"; then
1406      cat <<\_ASBOX
1407## ------------- ##
1408## Output files. ##
1409## ------------- ##
1410_ASBOX
1411      echo
1412      for ac_var in $ac_subst_files
1413      do
1414        eval ac_val=$`echo $ac_var`
1415        echo "$ac_var='"'"'$ac_val'"'"'"
1416      done | sort
1417      echo
1418    fi
1419
1420    if test -s confdefs.h; then
1421      cat <<\_ASBOX
1422## ----------- ##
1423## confdefs.h. ##
1424## ----------- ##
1425_ASBOX
1426      echo
1427      sed "/^$/d" confdefs.h | sort
1428      echo
1429    fi
1430    test "$ac_signal" != 0 &&
1431      echo "$as_me: caught signal $ac_signal"
1432    echo "$as_me: exit $exit_status"
1433  } >&5
1434  rm -f core *.core &&
1435  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1436    exit $exit_status
1437     ' 0
1438for ac_signal in 1 2 13 15; do
1439  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1440done
1441ac_signal=0
1442
1443# confdefs.h avoids OS command line length limits that DEFS can exceed.
1444rm -rf conftest* confdefs.h
1445# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1446echo >confdefs.h
1447
1448# Predefined preprocessor variables.
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_NAME "$PACKAGE_NAME"
1452_ACEOF
1453
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1457_ACEOF
1458
1459
1460cat >>confdefs.h <<_ACEOF
1461#define PACKAGE_VERSION "$PACKAGE_VERSION"
1462_ACEOF
1463
1464
1465cat >>confdefs.h <<_ACEOF
1466#define PACKAGE_STRING "$PACKAGE_STRING"
1467_ACEOF
1468
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1472_ACEOF
1473
1474
1475# Let the site file select an alternate cache file if it wants to.
1476# Prefer explicitly selected file to automatically selected ones.
1477if test -z "$CONFIG_SITE"; then
1478  if test "x$prefix" != xNONE; then
1479    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1480  else
1481    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1482  fi
1483fi
1484for ac_site_file in $CONFIG_SITE; do
1485  if test -r "$ac_site_file"; then
1486    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1487echo "$as_me: loading site script $ac_site_file" >&6;}
1488    sed 's/^/| /' "$ac_site_file" >&5
1489    . "$ac_site_file"
1490  fi
1491done
1492
1493if test -r "$cache_file"; then
1494  # Some versions of bash will fail to source /dev/null (special
1495  # files actually), so we avoid doing that.
1496  if test -f "$cache_file"; then
1497    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1498echo "$as_me: loading cache $cache_file" >&6;}
1499    case $cache_file in
1500      [\\/]* | ?:[\\/]* ) . $cache_file;;
1501      *)                      . ./$cache_file;;
1502    esac
1503  fi
1504else
1505  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1506echo "$as_me: creating cache $cache_file" >&6;}
1507  >$cache_file
1508fi
1509
1510# Check that the precious variables saved in the cache have kept the same
1511# value.
1512ac_cache_corrupted=false
1513for ac_var in `(set) 2>&1 |
1514               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1515  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1516  eval ac_new_set=\$ac_env_${ac_var}_set
1517  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1518  eval ac_new_val="\$ac_env_${ac_var}_value"
1519  case $ac_old_set,$ac_new_set in
1520    set,)
1521      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1522echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1523      ac_cache_corrupted=: ;;
1524    ,set)
1525      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1526echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1527      ac_cache_corrupted=: ;;
1528    ,);;
1529    *)
1530      if test "x$ac_old_val" != "x$ac_new_val"; then
1531        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1532echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1533        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1534echo "$as_me:   former value:  $ac_old_val" >&2;}
1535        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1536echo "$as_me:   current value: $ac_new_val" >&2;}
1537        ac_cache_corrupted=:
1538      fi;;
1539  esac
1540  # Pass precious variables to config.status.
1541  if test "$ac_new_set" = set; then
1542    case $ac_new_val in
1543    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1544      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1545    *) ac_arg=$ac_var=$ac_new_val ;;
1546    esac
1547    case " $ac_configure_args " in
1548      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1549      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1550    esac
1551  fi
1552done
1553if $ac_cache_corrupted; then
1554  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1555echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1556  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1557echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1558   { (exit 1); exit 1; }; }
1559fi
1560
1561ac_ext=c
1562ac_cpp='$CPP $CPPFLAGS'
1563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1591
1592
1593
1594
1595
1596# List one file in the package so that the configure script can test
1597# whether the package is actually there
1598
1599
1600# Where should everything be installed by default?  Here, we want it
1601# to be installed directly in 'bin', 'lib', 'include' subdirectories
1602# of the directory where configure is run.  The default would be
1603# /usr/local.
1604
1605
1606# Initialize the ADDLIBS variable
1607ADDLIBS="-lm $LIBS"
1608
1609
1610# Initialize the PCADDLIBS variable.
1611# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1612# In certain cases, it may contain more flags than the ADDLIBS variable.
1613PCADDLIBS=""
1614
1615
1616# As backup, we make sure we don't loose an FLIBS if it has been set
1617# by the user
1618save_FLIBS="$FLIBS"
1619
1620# Initialize the FADDLIBS variable (which is to be used with a fortran
1621# compiler and will not include FLIBS)
1622FADDLIBS="$LIBS"
1623
1624
1625# A useful makefile conditional that is always false
1626
1627
1628if false; then
1629  ALWAYS_FALSE_TRUE=
1630  ALWAYS_FALSE_FALSE='#'
1631else
1632  ALWAYS_FALSE_TRUE='#'
1633  ALWAYS_FALSE_FALSE=
1634fi
1635
1636
1637# We set the following variable so that we know later in AC_COIN_FINALIZE
1638# that we are in a project main directory
1639coin_projectdir=yes
1640
1641# Set the project's version number
1642if test "xFilterSQP" != x; then
1643
1644cat >>confdefs.h <<_ACEOF
1645#define FILTERSQP_VERSION "$PACKAGE_VERSION"
1646_ACEOF
1647
1648fi
1649
1650# Set the project's SVN revision number. The complicated sed expression
1651# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1652# as a single number.
1653# Extract the first word of "svnversion", so it can be a program name with args.
1654set dummy svnversion; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_have_svnversion+set}" = set; then
1658  echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660  if test -n "$have_svnversion"; then
1661  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666  IFS=$as_save_IFS
1667  test -z "$as_dir" && as_dir=.
1668  for ac_exec_ext in '' $ac_executable_extensions; do
1669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670    ac_cv_prog_have_svnversion="yes"
1671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672    break 2
1673  fi
1674done
1675done
1676
1677  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1678fi
1679fi
1680have_svnversion=$ac_cv_prog_have_svnversion
1681if test -n "$have_svnversion"; then
1682  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1683echo "${ECHO_T}$have_svnversion" >&6
1684else
1685  echo "$as_me:$LINENO: result: no" >&5
1686echo "${ECHO_T}no" >&6
1687fi
1688
1689if test "x$have_svnversion" = xyes && test "xFilterSQP" != x; then
1690
1691  svn_rev_tmp=`cd $srcdir/$coin_has_filtersqp ; svnversion`
1692  FILTERSQP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1693  if test $FILTERSQP_SVN_REV != exported; then
1694
1695cat >>confdefs.h <<_ACEOF
1696#define FILTERSQP_SVN_REV $FILTERSQP_SVN_REV
1697_ACEOF
1698
1699  fi
1700fi
1701
1702# Capture libtool library version, if given.
1703
1704
1705
1706#############################################################################
1707#                         Standard build tool stuff                         #
1708#############################################################################
1709
1710# Get the system type
1711ac_aux_dir=
1712for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1713  if test -f $ac_dir/install-sh; then
1714    ac_aux_dir=$ac_dir
1715    ac_install_sh="$ac_aux_dir/install-sh -c"
1716    break
1717  elif test -f $ac_dir/install.sh; then
1718    ac_aux_dir=$ac_dir
1719    ac_install_sh="$ac_aux_dir/install.sh -c"
1720    break
1721  elif test -f $ac_dir/shtool; then
1722    ac_aux_dir=$ac_dir
1723    ac_install_sh="$ac_aux_dir/shtool install -c"
1724    break
1725  fi
1726done
1727if test -z "$ac_aux_dir"; then
1728  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1729echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1730   { (exit 1); exit 1; }; }
1731fi
1732ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1733ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1734ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1735
1736# Make sure we can run config.sub.
1737$ac_config_sub sun4 >/dev/null 2>&1 ||
1738  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1739echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1740   { (exit 1); exit 1; }; }
1741
1742echo "$as_me:$LINENO: checking build system type" >&5
1743echo $ECHO_N "checking build system type... $ECHO_C" >&6
1744if test "${ac_cv_build+set}" = set; then
1745  echo $ECHO_N "(cached) $ECHO_C" >&6
1746else
1747  ac_cv_build_alias=$build_alias
1748test -z "$ac_cv_build_alias" &&
1749  ac_cv_build_alias=`$ac_config_guess`
1750test -z "$ac_cv_build_alias" &&
1751  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1752echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1753   { (exit 1); exit 1; }; }
1754ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1755  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1756echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1757   { (exit 1); exit 1; }; }
1758
1759fi
1760echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1761echo "${ECHO_T}$ac_cv_build" >&6
1762build=$ac_cv_build
1763build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1764build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1765build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1766
1767
1768
1769# Check if user wants to produce debugging code
1770
1771echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1772echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1773
1774# Check whether --enable-debug or --disable-debug was given.
1775if test "${enable_debug+set}" = set; then
1776  enableval="$enable_debug"
1777  case "${enableval}" in
1778   yes) coin_debug_compile=true
1779        if test "${enable_shared+set}" = set; then :; else
1780          enable_shared=no
1781        fi
1782        ;;
1783   no)  coin_debug_compile=false
1784        ;;
1785   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1786echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1787   { (exit 1); exit 1; }; }
1788        ;;
1789esac
1790else
1791  coin_debug_compile=false
1792fi;
1793
1794# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1795if test "${enable_debug_filtersqp+set}" = set; then
1796  enableval="$enable_debug_filtersqp"
1797  case "${enableval}" in
1798    yes) coin_debug_compile=true
1799         enable_shared=no
1800         ;;
1801    no)  coin_debug_compile=false
1802         ;;
1803    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1804echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1805   { (exit 1); exit 1; }; }
1806         ;;
1807 esac
1808else
1809  :
1810fi;
1811
1812 # m4_ifvaln([FilterSQP],
1813
1814if test $coin_debug_compile = true; then
1815  echo "$as_me:$LINENO: result: yes" >&5
1816echo "${ECHO_T}yes" >&6
1817else
1818  echo "$as_me:$LINENO: result: no" >&5
1819echo "${ECHO_T}no" >&6
1820fi
1821
1822
1823# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1824if test "${with_filtersqp_verbosity+set}" = set; then
1825  withval="$with_filtersqp_verbosity"
1826  if test "$withval" = yes; then
1827                withval=1
1828              fi
1829              coin_filtersqp_verbosity=$withval
1830else
1831  coin_filtersqp_verbosity=0
1832fi;
1833
1834cat >>confdefs.h <<_ACEOF
1835#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1836_ACEOF
1837
1838
1839
1840# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1841if test "${with_filtersqp_checklevel+set}" = set; then
1842  withval="$with_filtersqp_checklevel"
1843  if test "$withval" = yes; then
1844                withval=1
1845              fi
1846              coin_filtersqp_checklevel=$withval
1847else
1848  coin_filtersqp_checklevel=0
1849fi;
1850
1851cat >>confdefs.h <<_ACEOF
1852#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1853_ACEOF
1854
1855
1856# We use the following variable to have a string with the upper case
1857# version of the project name
1858COIN_PRJCT=FILTERSQP
1859
1860
1861 # m4_ifvaln([FilterSQP],
1862
1863
1864
1865# Get the name of the Fortran compiler and appropriate compiler options
1866case $build in
1867  *-mingw*)
1868    if test "${LD+set}" = set; then :; else
1869      LD=link
1870    fi
1871    ;;
1872 esac
1873 case $enable_doscompile in
1874   msvc)
1875     if test "x${LD+set}" = xset; then :; else
1876       LD=link
1877     fi
1878     ;;
1879 esac
1880
1881
1882 # Check whether --enable-doscompile or --disable-doscompile was given.
1883if test "${enable_doscompile+set}" = set; then
1884  enableval="$enable_doscompile"
1885  if test "$enable_doscompile" != no; then
1886     case $build in
1887       *-cygwin* | *-mingw*) ;;
1888       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1889echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1890   { (exit 1); exit 1; }; } ;;
1891     esac
1892   fi
1893else
1894  enable_doscompile=no
1895fi;
1896 case "$enable_doscompile" in
1897   mingw)
1898     case $build in
1899       *-mingw*) enable_doscompile=no ;;
1900     esac
1901     ;;
1902   msvc|no) ;;
1903   yes) enable_doscompile=mingw ;;
1904   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1905                    Try configure --help=recursive." >&5
1906echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1907                    Try configure --help=recursive." >&2;}
1908   { (exit 1); exit 1; }; }
1909      ;;
1910  esac
1911  if test "$enable_doscompile" != no ; then
1912    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1913echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1914  fi
1915
1916
1917
1918
1919ac_ext=c
1920ac_cpp='$CPP $CPPFLAGS'
1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924
1925
1926# For consistency, we set the C compiler to the same value of the C++
1927# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1928if test x"$CXX" != x; then
1929  case "$CXX" in
1930    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1931      if test x"$CC" = x; then
1932        CC="$CXX"
1933        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1934echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1935      fi
1936      ;;
1937  esac
1938fi
1939
1940# add automake conditional so we can recognize cl compiler in makefile
1941coin_cc_is_cl=false
1942if test x"$CXX" != x; then
1943  case "$CXX" in
1944    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1945      coin_cc_is_cl=true
1946      ;;
1947  esac
1948fi
1949
1950
1951if test $coin_cc_is_cl = true; then
1952  COIN_CC_IS_CL_TRUE=
1953  COIN_CC_IS_CL_FALSE='#'
1954else
1955  COIN_CC_IS_CL_TRUE='#'
1956  COIN_CC_IS_CL_FALSE=
1957fi
1958
1959
1960
1961
1962
1963
1964
1965coin_has_cc=yes
1966
1967save_cflags="$CFLAGS"
1968
1969# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1970# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1971# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1972# compiler. In this case, put cc after gcc.
1973
1974case $build in
1975  *-cygwin* | *-mingw*)
1976             if test "$enable_doscompile" = msvc ; then
1977               comps="icl cl"
1978             else
1979               comps="gcc cl"
1980             fi ;;
1981  *-*-solaris*)
1982             # Extract the first word of "cc", so it can be a program name with args.
1983set dummy cc; ac_word=$2
1984echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1987  echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989  if test -n "$sol_cc_compiler"; then
1990  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1991else
1992  ac_prog_rejected=no
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001       ac_prog_rejected=yes
2002       continue
2003     fi
2004    ac_cv_prog_sol_cc_compiler="cc"
2005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006    break 2
2007  fi
2008done
2009done
2010
2011if test $ac_prog_rejected = yes; then
2012  # We found a bogon in the path, so make sure we never use it.
2013  set dummy $ac_cv_prog_sol_cc_compiler
2014  shift
2015  if test $# != 0; then
2016    # We chose a different compiler from the bogus one.
2017    # However, it has the same basename, so the bogon will be chosen
2018    # first if we set sol_cc_compiler to just the basename; use the full file name.
2019    shift
2020    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2021  fi
2022fi
2023fi
2024fi
2025sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2026if test -n "$sol_cc_compiler"; then
2027  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2028echo "${ECHO_T}$sol_cc_compiler" >&6
2029else
2030  echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6
2032fi
2033
2034             if test "$sol_cc_compiler" = "cc" ; then
2035               comps="cc xlc gcc pgcc icc"
2036             else
2037               comps="xlc gcc pgcc icc cc"
2038             fi
2039             ;;
2040  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2041  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2042esac
2043
2044# We delete the cached value, since the test might not have been
2045# performed with our choice of compilers earlier
2046$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2047# AC_MSG_NOTICE([C compiler candidates: $comps])
2048ac_ext=c
2049ac_cpp='$CPP $CPPFLAGS'
2050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053if test -n "$ac_tool_prefix"; then
2054  for ac_prog in $comps
2055  do
2056    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2058echo "$as_me:$LINENO: checking for $ac_word" >&5
2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060if test "${ac_cv_prog_CC+set}" = set; then
2061  echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063  if test -n "$CC"; then
2064  ac_cv_prog_CC="$CC" # Let the user override the test.
2065else
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069  IFS=$as_save_IFS
2070  test -z "$as_dir" && as_dir=.
2071  for ac_exec_ext in '' $ac_executable_extensions; do
2072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075    break 2
2076  fi
2077done
2078done
2079
2080fi
2081fi
2082CC=$ac_cv_prog_CC
2083if test -n "$CC"; then
2084  echo "$as_me:$LINENO: result: $CC" >&5
2085echo "${ECHO_T}$CC" >&6
2086else
2087  echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091    test -n "$CC" && break
2092  done
2093fi
2094if test -z "$CC"; then
2095  ac_ct_CC=$CC
2096  for ac_prog in $comps
2097do
2098  # Extract the first word of "$ac_prog", so it can be a program name with args.
2099set dummy $ac_prog; ac_word=$2
2100echo "$as_me:$LINENO: checking for $ac_word" >&5
2101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2103  echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105  if test -n "$ac_ct_CC"; then
2106  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2107else
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111  IFS=$as_save_IFS
2112  test -z "$as_dir" && as_dir=.
2113  for ac_exec_ext in '' $ac_executable_extensions; do
2114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115    ac_cv_prog_ac_ct_CC="$ac_prog"
2116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117    break 2
2118  fi
2119done
2120done
2121
2122fi
2123fi
2124ac_ct_CC=$ac_cv_prog_ac_ct_CC
2125if test -n "$ac_ct_CC"; then
2126  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2127echo "${ECHO_T}$ac_ct_CC" >&6
2128else
2129  echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6
2131fi
2132
2133  test -n "$ac_ct_CC" && break
2134done
2135
2136  CC=$ac_ct_CC
2137fi
2138
2139
2140test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2141See \`config.log' for more details." >&5
2142echo "$as_me: error: no acceptable C compiler found in \$PATH
2143See \`config.log' for more details." >&2;}
2144   { (exit 1); exit 1; }; }
2145
2146# Provide some information about the compiler.
2147echo "$as_me:$LINENO:" \
2148     "checking for C compiler version" >&5
2149ac_compiler=`set X $ac_compile; echo $2`
2150{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2151  (eval $ac_compiler --version </dev/null >&5) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }
2155{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2156  (eval $ac_compiler -v </dev/null >&5) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }
2160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2161  (eval $ac_compiler -V </dev/null >&5) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165
2166cat >conftest.$ac_ext <<_ACEOF
2167/* confdefs.h.  */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h.  */
2172
2173int
2174main ()
2175{
2176
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181ac_clean_files_save=$ac_clean_files
2182ac_clean_files="$ac_clean_files a.out a.exe b.out"
2183# Try to create an executable without -o first, disregard a.out.
2184# It will help us diagnose broken compilers, and finding out an intuition
2185# of exeext.
2186echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2187echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2188ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2189if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2190  (eval $ac_link_default) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); }; then
2194  # Find the output, starting from the most likely.  This scheme is
2195# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2196# resort.
2197
2198# Be careful to initialize this variable, since it used to be cached.
2199# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2200ac_cv_exeext=
2201# b.out is created by i960 compilers.
2202for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2203do
2204  test -f "$ac_file" || continue
2205  case $ac_file in
2206    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2207        ;;
2208    conftest.$ac_ext )
2209        # This is the source file.
2210        ;;
2211    [ab].out )
2212        # We found the default executable, but exeext='' is most
2213        # certainly right.
2214        break;;
2215    *.* )
2216        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217        # FIXME: I believe we export ac_cv_exeext for Libtool,
2218        # but it would be cool to find out if it's true.  Does anybody
2219        # maintain Libtool? --akim.
2220        export ac_cv_exeext
2221        break;;
2222    * )
2223        break;;
2224  esac
2225done
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2231See \`config.log' for more details." >&5
2232echo "$as_me: error: C compiler cannot create executables
2233See \`config.log' for more details." >&2;}
2234   { (exit 77); exit 77; }; }
2235fi
2236
2237ac_exeext=$ac_cv_exeext
2238echo "$as_me:$LINENO: result: $ac_file" >&5
2239echo "${ECHO_T}$ac_file" >&6
2240
2241# Check the compiler produces executables we can run.  If not, either
2242# the compiler is broken, or we cross compile.
2243echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2244echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2245# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2246# If not cross compiling, check that we can run a simple program.
2247if test "$cross_compiling" != yes; then
2248  if { ac_try='./$ac_file'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; }; then
2254    cross_compiling=no
2255  else
2256    if test "$cross_compiling" = maybe; then
2257        cross_compiling=yes
2258    else
2259        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2260If you meant to cross compile, use \`--host'.
2261See \`config.log' for more details." >&5
2262echo "$as_me: error: cannot run C compiled programs.
2263If you meant to cross compile, use \`--host'.
2264See \`config.log' for more details." >&2;}
2265   { (exit 1); exit 1; }; }
2266    fi
2267  fi
2268fi
2269echo "$as_me:$LINENO: result: yes" >&5
2270echo "${ECHO_T}yes" >&6
2271
2272rm -f a.out a.exe conftest$ac_cv_exeext b.out
2273ac_clean_files=$ac_clean_files_save
2274# Check the compiler produces executables we can run.  If not, either
2275# the compiler is broken, or we cross compile.
2276echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2277echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2278echo "$as_me:$LINENO: result: $cross_compiling" >&5
2279echo "${ECHO_T}$cross_compiling" >&6
2280
2281echo "$as_me:$LINENO: checking for suffix of executables" >&5
2282echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2284  (eval $ac_link) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; then
2288  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2290# work properly (i.e., refer to `conftest.exe'), while it won't with
2291# `rm'.
2292for ac_file in conftest.exe conftest conftest.*; do
2293  test -f "$ac_file" || continue
2294  case $ac_file in
2295    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2296    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297          export ac_cv_exeext
2298          break;;
2299    * ) break;;
2300  esac
2301done
2302else
2303  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304See \`config.log' for more details." >&5
2305echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306See \`config.log' for more details." >&2;}
2307   { (exit 1); exit 1; }; }
2308fi
2309
2310rm -f conftest$ac_cv_exeext
2311echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312echo "${ECHO_T}$ac_cv_exeext" >&6
2313
2314rm -f conftest.$ac_ext
2315EXEEXT=$ac_cv_exeext
2316ac_exeext=$EXEEXT
2317echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2319if test "${ac_cv_objext+set}" = set; then
2320  echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322  cat >conftest.$ac_ext <<_ACEOF
2323/* confdefs.h.  */
2324_ACEOF
2325cat confdefs.h >>conftest.$ac_ext
2326cat >>conftest.$ac_ext <<_ACEOF
2327/* end confdefs.h.  */
2328
2329int
2330main ()
2331{
2332
2333  ;
2334  return 0;
2335}
2336_ACEOF
2337rm -f conftest.o conftest.obj
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339  (eval $ac_compile) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; then
2343  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2344  case $ac_file in
2345    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2346    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347       break;;
2348  esac
2349done
2350else
2351  echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&5
2356echo "$as_me: error: cannot compute suffix of object files: cannot compile
2357See \`config.log' for more details." >&2;}
2358   { (exit 1); exit 1; }; }
2359fi
2360
2361rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362fi
2363echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2364echo "${ECHO_T}$ac_cv_objext" >&6
2365OBJEXT=$ac_cv_objext
2366ac_objext=$OBJEXT
2367echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2368echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2369if test "${ac_cv_c_compiler_gnu+set}" = set; then
2370  echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372  cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h.  */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h.  */
2378
2379int
2380main ()
2381{
2382#ifndef __GNUC__
2383       choke me
2384#endif
2385
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390rm -f conftest.$ac_objext
2391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392  (eval $ac_compile) 2>conftest.er1
2393  ac_status=$?
2394  grep -v '^ *+' conftest.er1 >conftest.err
2395  rm -f conftest.er1
2396  cat conftest.err >&5
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); } &&
2399         { ac_try='test -z "$ac_c_werror_flag"
2400                         || test ! -s conftest.err'
2401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402  (eval $ac_try) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; } &&
2406         { ac_try='test -s conftest.$ac_objext'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  ac_compiler_gnu=yes
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417ac_compiler_gnu=no
2418fi
2419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421
2422fi
2423echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2424echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2425GCC=`test $ac_compiler_gnu = yes && echo yes`
2426ac_test_CFLAGS=${CFLAGS+set}
2427ac_save_CFLAGS=$CFLAGS
2428CFLAGS="-g"
2429echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451  (eval $ac_compile) 2>conftest.er1
2452  ac_status=$?
2453  grep -v '^ *+' conftest.er1 >conftest.err
2454  rm -f conftest.er1
2455  cat conftest.err >&5
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); } &&
2458         { ac_try='test -z "$ac_c_werror_flag"
2459                         || test ! -s conftest.err'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; } &&
2465         { ac_try='test -s conftest.$ac_objext'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471  ac_cv_prog_cc_g=yes
2472else
2473  echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476ac_cv_prog_cc_g=no
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479fi
2480echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2481echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2482if test "$ac_test_CFLAGS" = set; then
2483  CFLAGS=$ac_save_CFLAGS
2484elif test $ac_cv_prog_cc_g = yes; then
2485  if test "$GCC" = yes; then
2486    CFLAGS="-g -O2"
2487  else
2488    CFLAGS="-g"
2489  fi
2490else
2491  if test "$GCC" = yes; then
2492    CFLAGS="-O2"
2493  else
2494    CFLAGS=
2495  fi
2496fi
2497echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2498echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2499if test "${ac_cv_prog_cc_stdc+set}" = set; then
2500  echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502  ac_cv_prog_cc_stdc=no
2503ac_save_CC=$CC
2504cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h.  */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h.  */
2510#include <stdarg.h>
2511#include <stdio.h>
2512#include <sys/types.h>
2513#include <sys/stat.h>
2514/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2515struct buf { int x; };
2516FILE * (*rcsopen) (struct buf *, struct stat *, int);
2517static char *e (p, i)
2518     char **p;
2519     int i;
2520{
2521  return p[i];
2522}
2523static char *f (char * (*g) (char **, int), char **p, ...)
2524{
2525  char *s;
2526  va_list v;
2527  va_start (v,p);
2528  s = g (p, va_arg (v,int));
2529  va_end (v);
2530  return s;
2531}
2532
2533/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2534   function prototypes and stuff, but not '\xHH' hex character constants.
2535   These don't provoke an error unfortunately, instead are silently treated
2536   as 'x'.  The following induces an error, until -std1 is added to get
2537   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2538   array size at least.  It's necessary to write '\x00'==0 to get something
2539   that's true only with -std1.  */
2540int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2541
2542int test (int i, double x);
2543struct s1 {int (*f) (int a);};
2544struct s2 {int (*f) (double a);};
2545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2546int argc;
2547char **argv;
2548int
2549main ()
2550{
2551return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2552  ;
2553  return 0;
2554}
2555_ACEOF
2556# Don't try gcc -ansi; that turns off useful extensions and
2557# breaks some systems' header files.
2558# AIX                   -qlanglvl=ansi
2559# Ultrix and OSF/1      -std1
2560# HP-UX 10.20 and later -Ae
2561# HP-UX older versions  -Aa -D_HPUX_SOURCE
2562# SVR4                  -Xc -D__EXTENSIONS__
2563for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2564do
2565  CC="$ac_save_CC $ac_arg"
2566  rm -f conftest.$ac_objext
2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568  (eval $ac_compile) 2>conftest.er1
2569  ac_status=$?
2570  grep -v '^ *+' conftest.er1 >conftest.err
2571  rm -f conftest.er1
2572  cat conftest.err >&5
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); } &&
2575         { ac_try='test -z "$ac_c_werror_flag"
2576                         || test ! -s conftest.err'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582         { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  ac_cv_prog_cc_stdc=$ac_arg
2589break
2590else
2591  echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594fi
2595rm -f conftest.err conftest.$ac_objext
2596done
2597rm -f conftest.$ac_ext conftest.$ac_objext
2598CC=$ac_save_CC
2599
2600fi
2601
2602case "x$ac_cv_prog_cc_stdc" in
2603  x|xno)
2604    echo "$as_me:$LINENO: result: none needed" >&5
2605echo "${ECHO_T}none needed" >&6 ;;
2606  *)
2607    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2608echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2609    CC="$CC $ac_cv_prog_cc_stdc" ;;
2610esac
2611
2612# Some people use a C++ compiler to compile C.  Since we use `exit',
2613# in C++ we need to declare it.  In case someone uses the same compiler
2614# for both compiling C and C++ we need to have the C++ compiler decide
2615# the declaration of exit, since it's the most demanding environment.
2616cat >conftest.$ac_ext <<_ACEOF
2617#ifndef __cplusplus
2618  choke me
2619#endif
2620_ACEOF
2621rm -f conftest.$ac_objext
2622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623  (eval $ac_compile) 2>conftest.er1
2624  ac_status=$?
2625  grep -v '^ *+' conftest.er1 >conftest.err
2626  rm -f conftest.er1
2627  cat conftest.err >&5
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); } &&
2630         { ac_try='test -z "$ac_c_werror_flag"
2631                         || test ! -s conftest.err'
2632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633  (eval $ac_try) 2>&5
2634  ac_status=$?
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); }; } &&
2637         { ac_try='test -s conftest.$ac_objext'
2638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639  (eval $ac_try) 2>&5
2640  ac_status=$?
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); }; }; then
2643  for ac_declaration in \
2644   '' \
2645   'extern "C" void std::exit (int) throw (); using std::exit;' \
2646   'extern "C" void std::exit (int); using std::exit;' \
2647   'extern "C" void exit (int) throw ();' \
2648   'extern "C" void exit (int);' \
2649   'void exit (int);'
2650do
2651  cat >conftest.$ac_ext <<_ACEOF
2652/* confdefs.h.  */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h.  */
2657$ac_declaration
2658#include <stdlib.h>
2659int
2660main ()
2661{
2662exit (42);
2663  ;
2664  return 0;
2665}
2666_ACEOF
2667rm -f conftest.$ac_objext
2668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669  (eval $ac_compile) 2>conftest.er1
2670  ac_status=$?
2671  grep -v '^ *+' conftest.er1 >conftest.err
2672  rm -f conftest.er1
2673  cat conftest.err >&5
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); } &&
2676         { ac_try='test -z "$ac_c_werror_flag"
2677                         || test ! -s conftest.err'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; } &&
2683         { ac_try='test -s conftest.$ac_objext'
2684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685  (eval $ac_try) 2>&5
2686  ac_status=$?
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); }; }; then
2689  :
2690else
2691  echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694continue
2695fi
2696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697  cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h.  */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h.  */
2703$ac_declaration
2704int
2705main ()
2706{
2707exit (42);
2708  ;
2709  return 0;
2710}
2711_ACEOF
2712rm -f conftest.$ac_objext
2713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714  (eval $ac_compile) 2>conftest.er1
2715  ac_status=$?
2716  grep -v '^ *+' conftest.er1 >conftest.err
2717  rm -f conftest.er1
2718  cat conftest.err >&5
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); } &&
2721         { ac_try='test -z "$ac_c_werror_flag"
2722                         || test ! -s conftest.err'
2723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724  (eval $ac_try) 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; } &&
2728         { ac_try='test -s conftest.$ac_objext'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; }; then
2734  break
2735else
2736  echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739fi
2740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741done
2742rm -f conftest*
2743if test -n "$ac_declaration"; then
2744  echo '#ifdef __cplusplus' >>confdefs.h
2745  echo $ac_declaration      >>confdefs.h
2746  echo '#endif'             >>confdefs.h
2747fi
2748
2749else
2750  echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753fi
2754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760
2761if test -z "$CC" ; then
2762  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2763echo "$as_me: error: Failed to find a C compiler!" >&2;}
2764   { (exit 1); exit 1; }; }
2765fi
2766# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2767case "$CC" in
2768  cl* | */cl* | CL* | */CL* )
2769    if test "$ac_cv_prog_cc_g" = yes ; then
2770      ac_cv_prog_cc_g=no
2771      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2772echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2773    fi ;;
2774esac
2775CFLAGS="$save_cflags"
2776
2777# Check if a project specific CFLAGS variable has been set
2778if test x$COIN_PRJCT != x; then
2779  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2780  if test x$coin_tmp = xset; then
2781    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2782  fi
2783fi
2784
2785if test x"$CFLAGS" = x; then
2786
2787  coin_add_cflags=
2788  coin_opt_cflags=
2789  coin_dbg_cflags=
2790  coin_warn_cflags=
2791
2792  if test "$GCC" = "yes"; then
2793    case "$CC" in
2794      icc* | */icc*)
2795        ;;
2796      *)
2797        coin_opt_cflags="-O3"
2798        coin_add_cflags="-pipe"
2799        coin_dbg_cflags="-g"
2800        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2801        case $build in
2802          *-darwin*)
2803            ;;
2804          *)
2805            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2806            ;;
2807        esac
2808        case $enable_doscompile in
2809          mingw)
2810            CFLAGS="-mno-cygwin"
2811            cat >conftest.$ac_ext <<_ACEOF
2812/* confdefs.h.  */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h.  */
2817
2818int
2819main ()
2820{
2821int i=0; i++;
2822  ;
2823  return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext conftest$ac_exeext
2827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2828  (eval $ac_link) 2>conftest.er1
2829  ac_status=$?
2830  grep -v '^ *+' conftest.er1 >conftest.err
2831  rm -f conftest.er1
2832  cat conftest.err >&5
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); } &&
2835         { ac_try='test -z "$ac_c_werror_flag"
2836                         || test ! -s conftest.err'
2837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838  (eval $ac_try) 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }; } &&
2842         { ac_try='test -s conftest$ac_exeext'
2843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844  (eval $ac_try) 2>&5
2845  ac_status=$?
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); }; }; then
2848  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2849else
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853fi
2854rm -f conftest.err conftest.$ac_objext \
2855      conftest$ac_exeext conftest.$ac_ext
2856            CFLAGS=
2857          ;;
2858        esac
2859    esac
2860  fi
2861  if test -z "$coin_opt_cflags"; then
2862    case $build in
2863      *-cygwin* | *-mingw*)
2864        case "$CC" in
2865          cl* | */cl* | CL* | */CL*)
2866            coin_opt_cflags='-MT -O2'
2867            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2868            coin_dbg_cflags='-MTd'
2869            ;;
2870          icl* | */icl* | ICL* | */ICL*)
2871            coin_opt_cflags='-MT -Ox'
2872            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2873            coin_dbg_cflags='-MTd -debug'
2874            ;;
2875        esac
2876        ;;
2877      *-linux-*)
2878        case "$CC" in
2879          icc* | */icc*)
2880            coin_opt_cflags="-O3 -ip -mp1"
2881            coin_add_cflags=""
2882            coin_dbg_cflags="-g"
2883            # Check if -i_dynamic is necessary (for new glibc library)
2884            CFLAGS=
2885            cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h.  */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h.  */
2891
2892int
2893main ()
2894{
2895int i=0; i++;
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext conftest$ac_exeext
2901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2902  (eval $ac_link) 2>conftest.er1
2903  ac_status=$?
2904  grep -v '^ *+' conftest.er1 >conftest.err
2905  rm -f conftest.er1
2906  cat conftest.err >&5
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); } &&
2909         { ac_try='test -z "$ac_c_werror_flag"
2910                         || test ! -s conftest.err'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; } &&
2916         { ac_try='test -s conftest$ac_exeext'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; }; then
2922  :
2923else
2924  echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927coin_add_cflags="-i_dynamic $coin_add_cflags"
2928fi
2929rm -f conftest.err conftest.$ac_objext \
2930      conftest$ac_exeext conftest.$ac_ext
2931            ;;
2932          pgcc* | */pgcc*)
2933            coin_opt_cflags="-fast"
2934            coin_add_cflags="-Kieee -pc 64"
2935            coin_dbg_cflags="-g"
2936            ;;
2937        esac
2938        ;;
2939      *-ibm-*)
2940        case "$CC" in
2941          xlc* | */xlc* | mpxlc* | */mpxlc*)
2942            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2943            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2944            coin_dbg_cflags="-g"
2945          ;;
2946        esac
2947        ;;
2948      *-hp-*)
2949        coin_opt_cflags="-O"
2950        coin_add_cflags="-Ae"
2951        coin_dbg_cflags="-g"
2952        ;;
2953      *-*-solaris*)
2954        coin_opt_cflags="-xO4"
2955        coin_dbg_cflags="-g"
2956        ;;
2957      *-sgi-*)
2958        coin_opt_cflags="-O -OPT:Olimit=0"
2959        coin_dbg_cflags="-g"
2960        ;;
2961    esac
2962  fi
2963
2964  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2965    coin_dbg_cflags="-g"
2966  fi
2967
2968  if test -z "$coin_opt_cflags"; then
2969    # Try if -O option works if nothing else is set
2970    CFLAGS="-O"
2971    cat >conftest.$ac_ext <<_ACEOF
2972/* confdefs.h.  */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h.  */
2977
2978int
2979main ()
2980{
2981int i=0; i++;
2982  ;
2983  return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext conftest$ac_exeext
2987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988  (eval $ac_link) 2>conftest.er1
2989  ac_status=$?
2990  grep -v '^ *+' conftest.er1 >conftest.err
2991  rm -f conftest.er1
2992  cat conftest.err >&5
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); } &&
2995         { ac_try='test -z "$ac_c_werror_flag"
2996                         || test ! -s conftest.err'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; } &&
3002         { ac_try='test -s conftest$ac_exeext'
3003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004  (eval $ac_try) 2>&5
3005  ac_status=$?
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); }; }; then
3008  coin_opt_cflags="-O"
3009else
3010  echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013fi
3014rm -f conftest.err conftest.$ac_objext \
3015      conftest$ac_exeext conftest.$ac_ext
3016  fi
3017
3018  # if PM doesn't want the warning messages, take them out
3019  if test x"$coin_skip_warn_cflags" = xyes; then
3020    coin_warn_cflags=
3021  fi
3022
3023  if test x${DBG_CFLAGS+set} != xset; then
3024    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3025  fi
3026  if test x${OPT_CFLAGS+set} != xset; then
3027    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3028  fi
3029
3030  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3031  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3032
3033  if test "$coin_debug_compile" = "true"; then
3034    CFLAGS="$DBG_CFLAGS"
3035  else
3036    CFLAGS="$OPT_CFLAGS"
3037  fi
3038else
3039  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3040  if test x${DBG_CFLAGS+set} != xset; then
3041    DBG_CFLAGS="$CFLAGS"
3042  fi
3043  if test x${OPT_CFLAGS+set} != xset; then
3044    OPT_CFLAGS="$CFLAGS"
3045  fi
3046fi
3047
3048# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3049
3050case "$CFLAGS" in
3051  *-mno-cygwin*)
3052    if test x${CPPFLAGS+set} != xset ; then
3053      CPPFLAGS="-mno-cygwin"
3054    else
3055      case "$CPPFLAGS" in
3056        *-mno-cygwin*)
3057          ;;
3058        *)
3059          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3060          ;;
3061      esac
3062    fi ;;
3063esac
3064
3065# Try if CFLAGS works
3066save_CFLAGS="$CFLAGS"
3067cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h.  */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h.  */
3073
3074int
3075main ()
3076{
3077int i=0; i++;
3078  ;
3079  return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext conftest$ac_exeext
3083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3084  (eval $ac_link) 2>conftest.er1
3085  ac_status=$?
3086  grep -v '^ *+' conftest.er1 >conftest.err
3087  rm -f conftest.er1
3088  cat conftest.err >&5
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); } &&
3091         { ac_try='test -z "$ac_c_werror_flag"
3092                         || test ! -s conftest.err'
3093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094  (eval $ac_try) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; } &&
3098         { ac_try='test -s conftest$ac_exeext'
3099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100  (eval $ac_try) 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; }; then
3104  :
3105else
3106  echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109CFLAGS=
3110fi
3111rm -f conftest.err conftest.$ac_objext \
3112      conftest$ac_exeext conftest.$ac_ext
3113if test -z "$CFLAGS"; then
3114  { 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
3115echo "$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;}
3116  CFLAGS='-O'
3117  cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127int i=0; i++;
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext conftest$ac_exeext
3133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3134  (eval $ac_link) 2>conftest.er1
3135  ac_status=$?
3136  grep -v '^ *+' conftest.er1 >conftest.err
3137  rm -f conftest.er1
3138  cat conftest.err >&5
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); } &&
3141         { ac_try='test -z "$ac_c_werror_flag"
3142                         || test ! -s conftest.err'
3143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144  (eval $ac_try) 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; } &&
3148         { ac_try='test -s conftest$ac_exeext'
3149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150  (eval $ac_try) 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; }; then
3154  :
3155else
3156  echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159CFLAGS=
3160fi
3161rm -f conftest.err conftest.$ac_objext \
3162      conftest$ac_exeext conftest.$ac_ext
3163  if test -z "$CFLAGS"; then
3164    { 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
3165echo "$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;}
3166  fi
3167fi
3168
3169{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3170echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3171
3172
3173if test x"$MPICC" = x; then :; else
3174  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3175echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3176  CC="$MPICC"
3177fi
3178
3179# Correct ADDLIBS initialization if we are using the MS compiler
3180case "$CC" in
3181  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3182    ADDLIBS=
3183    case $build in
3184  *-mingw*)
3185    if test "${LD+set}" = set; then :; else
3186      LD=link
3187    fi
3188    ;;
3189 esac
3190 case $enable_doscompile in
3191   msvc)
3192     if test "x${LD+set}" = xset; then :; else
3193       LD=link
3194     fi
3195     ;;
3196 esac
3197
3198    ;;
3199esac
3200
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207
3208case $build in
3209  *-cygwin* | *-mingw*)
3210     if test "$enable_doscompile" = msvc ; then
3211       coin_f77_comps="ifort fl32 compile_f2c"
3212     else
3213       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3214     fi ;;
3215  *-*-solaris*)
3216     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3217  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3218 esac
3219
3220
3221
3222
3223
3224
3225ac_ext=f
3226ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3227ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3229
3230
3231
3232
3233
3234
3235coin_has_f77=yes
3236
3237save_fflags="$FFLAGS"
3238
3239# We delete the cached value, since the test might not have been
3240# performed with our choice of compilers earlier
3241$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3242
3243# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3244# coin_f77_comps to see if there's a program that matches one of the names.
3245# If there's no such program, F77 = unavailable. If we match the name,
3246# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3247# compiler.
3248# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3249
3250
3251{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3252echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3253for ac_prog in $coin_f77_comps
3254do
3255  # Extract the first word of "$ac_prog", so it can be a program name with args.
3256set dummy $ac_prog; ac_word=$2
3257echo "$as_me:$LINENO: checking for $ac_word" >&5
3258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259if test "${ac_cv_prog_F77+set}" = set; then
3260  echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262  if test -n "$F77"; then
3263  ac_cv_prog_F77="$F77" # Let the user override the test.
3264else
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270  for ac_exec_ext in '' $ac_executable_extensions; do
3271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272    ac_cv_prog_F77="$ac_prog"
3273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274    break 2
3275  fi
3276done
3277done
3278
3279fi
3280fi
3281F77=$ac_cv_prog_F77
3282if test -n "$F77"; then
3283  echo "$as_me:$LINENO: result: $F77" >&5
3284echo "${ECHO_T}$F77" >&6
3285else
3286  echo "$as_me:$LINENO: result: no" >&5
3287echo "${ECHO_T}no" >&6
3288fi
3289
3290  test -n "$F77" && break
3291done
3292test -n "$F77" || F77="unavailable"
3293
3294
3295if test "$F77" != "unavailable" ; then
3296  ac_ext=f
3297ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3298ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3300if test -n "$ac_tool_prefix"; then
3301  for ac_prog in $coin_f77_comps
3302  do
3303    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3305echo "$as_me:$LINENO: checking for $ac_word" >&5
3306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307if test "${ac_cv_prog_F77+set}" = set; then
3308  echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310  if test -n "$F77"; then
3311  ac_cv_prog_F77="$F77" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318  for ac_exec_ext in '' $ac_executable_extensions; do
3319  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325done
3326
3327fi
3328fi
3329F77=$ac_cv_prog_F77
3330if test -n "$F77"; then
3331  echo "$as_me:$LINENO: result: $F77" >&5
3332echo "${ECHO_T}$F77" >&6
3333else
3334  echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
3336fi
3337
3338    test -n "$F77" && break
3339  done
3340fi
3341if test -z "$F77"; then
3342  ac_ct_F77=$F77
3343  for ac_prog in $coin_f77_comps
3344do
3345  # Extract the first word of "$ac_prog", so it can be a program name with args.
3346set dummy $ac_prog; ac_word=$2
3347echo "$as_me:$LINENO: checking for $ac_word" >&5
3348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3350  echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352  if test -n "$ac_ct_F77"; then
3353  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360  for ac_exec_ext in '' $ac_executable_extensions; do
3361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362    ac_cv_prog_ac_ct_F77="$ac_prog"
3363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367done
3368
3369fi
3370fi
3371ac_ct_F77=$ac_cv_prog_ac_ct_F77
3372if test -n "$ac_ct_F77"; then
3373  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3374echo "${ECHO_T}$ac_ct_F77" >&6
3375else
3376  echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
3378fi
3379
3380  test -n "$ac_ct_F77" && break
3381done
3382
3383  F77=$ac_ct_F77
3384fi
3385
3386
3387# Provide some information about the compiler.
3388echo "$as_me:3388:" \
3389     "checking for Fortran 77 compiler version" >&5
3390ac_compiler=`set X $ac_compile; echo $2`
3391{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3392  (eval $ac_compiler --version </dev/null >&5) 2>&5
3393  ac_status=$?
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); }
3396{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3397  (eval $ac_compiler -v </dev/null >&5) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }
3401{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3402  (eval $ac_compiler -V </dev/null >&5) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); }
3406rm -f a.out
3407
3408# If we don't use `.F' as extension, the preprocessor is not run on the
3409# input file.  (Note that this only needs to work for GNU compilers.)
3410ac_save_ext=$ac_ext
3411ac_ext=F
3412echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3413echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3414if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3415  echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417  cat >conftest.$ac_ext <<_ACEOF
3418      program main
3419#ifndef __GNUC__
3420       choke me
3421#endif
3422
3423      end
3424_ACEOF
3425rm -f conftest.$ac_objext
3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427  (eval $ac_compile) 2>conftest.er1
3428  ac_status=$?
3429  grep -v '^ *+' conftest.er1 >conftest.err
3430  rm -f conftest.er1
3431  cat conftest.err >&5
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); } &&
3434         { ac_try='test -z "$ac_f77_werror_flag"
3435                         || test ! -s conftest.err'
3436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437  (eval $ac_try) 2>&5
3438  ac_status=$?
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); }; } &&
3441         { ac_try='test -s conftest.$ac_objext'
3442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443  (eval $ac_try) 2>&5
3444  ac_status=$?
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); }; }; then
3447  ac_compiler_gnu=yes
3448else
3449  echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452ac_compiler_gnu=no
3453fi
3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3456
3457fi
3458echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3459echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3460ac_ext=$ac_save_ext
3461ac_test_FFLAGS=${FFLAGS+set}
3462ac_save_FFLAGS=$FFLAGS
3463FFLAGS=
3464echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3465echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3466if test "${ac_cv_prog_f77_g+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469  FFLAGS=-g
3470cat >conftest.$ac_ext <<_ACEOF
3471      program main
3472
3473      end
3474_ACEOF
3475rm -f conftest.$ac_objext
3476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477  (eval $ac_compile) 2>conftest.er1
3478  ac_status=$?
3479  grep -v '^ *+' conftest.er1 >conftest.err
3480  rm -f conftest.er1
3481  cat conftest.err >&5
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); } &&
3484         { ac_try='test -z "$ac_f77_werror_flag"
3485                         || test ! -s conftest.err'
3486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487  (eval $ac_try) 2>&5
3488  ac_status=$?
3489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490  (exit $ac_status); }; } &&
3491         { ac_try='test -s conftest.$ac_objext'
3492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493  (eval $ac_try) 2>&5
3494  ac_status=$?
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); }; }; then
3497  ac_cv_prog_f77_g=yes
3498else
3499  echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502ac_cv_prog_f77_g=no
3503fi
3504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3505
3506fi
3507echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3508echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3509if test "$ac_test_FFLAGS" = set; then
3510  FFLAGS=$ac_save_FFLAGS
3511elif test $ac_cv_prog_f77_g = yes; then
3512  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3513    FFLAGS="-g -O2"
3514  else
3515    FFLAGS="-g"
3516  fi
3517else
3518  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3519    FFLAGS="-O2"
3520  else
3521    FFLAGS=
3522  fi
3523fi
3524
3525G77=`test $ac_compiler_gnu = yes && echo yes`
3526ac_ext=f
3527ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3528ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3530
3531else
3532  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3533echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3534fi
3535
3536FFLAGS="$save_fflags"
3537
3538# Check if a project specific FFLAGS variable has been set
3539if test x$COIN_PRJCT != x; then
3540  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3541  if test x$coin_tmp = xset; then
3542    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3543  fi
3544fi
3545
3546if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3547
3548  coin_add_fflags=
3549  coin_opt_fflags=
3550  coin_dbg_fflags=
3551  coin_warn_fflags=
3552
3553  if test "$G77" = "yes"; then
3554    coin_opt_fflags="-O3"
3555    coin_add_fflags="-pipe"
3556    coin_dbg_fflags="-g"
3557    case $enable_doscompile in
3558      mingw)
3559        FFLAGS="-mno-cygwin"
3560        cat >conftest.$ac_ext <<_ACEOF
3561      program main
3562      write(*,*) 'Hello world'
3563      end
3564_ACEOF
3565rm -f conftest.$ac_objext conftest$ac_exeext
3566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3567  (eval $ac_link) 2>conftest.er1
3568  ac_status=$?
3569  grep -v '^ *+' conftest.er1 >conftest.err
3570  rm -f conftest.er1
3571  cat conftest.err >&5
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); } &&
3574         { ac_try='test -z "$ac_f77_werror_flag"
3575                         || test ! -s conftest.err'
3576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577  (eval $ac_try) 2>&5
3578  ac_status=$?
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); }; } &&
3581         { ac_try='test -s conftest$ac_exeext'
3582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583  (eval $ac_try) 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; }; then
3587  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3588else
3589  echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592fi
3593rm -f conftest.err conftest.$ac_objext \
3594      conftest$ac_exeext conftest.$ac_ext
3595        FFLAGS=
3596      ;;
3597    esac
3598  else
3599    case $build in
3600      *-cygwin* | *-mingw*)
3601        case $F77 in
3602          ifort* | */ifort* | IFORT* | */IFORT* )
3603            coin_opt_fflags='-MT -O3'
3604            coin_add_fflags='-fpp -nologo'
3605            coin_dbg_fflags='-MTd -debug'
3606          ;;
3607          compile_f2c*)
3608            coin_opt_fflags='-MT -O2'
3609            coin_add_fflags='-nologo -wd4996'
3610            coin_dbg_fflags='-MTd'
3611          ;;
3612        esac
3613        ;;
3614      *-linux-*)
3615        case $F77 in
3616          ifc* | */ifc* | ifort* | */ifort*)
3617            coin_opt_fflags="-O3 -ip"
3618            coin_add_fflags="-cm -w90 -w95"
3619            coin_dbg_fflags="-g -CA -CB -CS"
3620            # Check if -i_dynamic is necessary (for new glibc library)
3621            FFLAGS=
3622            cat >conftest.$ac_ext <<_ACEOF
3623      program main
3624      write(*,*) 'Hello world'
3625      end
3626_ACEOF
3627rm -f conftest.$ac_objext conftest$ac_exeext
3628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629  (eval $ac_link) 2>conftest.er1
3630  ac_status=$?
3631  grep -v '^ *+' conftest.er1 >conftest.err
3632  rm -f conftest.er1
3633  cat conftest.err >&5
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); } &&
3636         { ac_try='test -z "$ac_f77_werror_flag"
3637                         || test ! -s conftest.err'
3638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639  (eval $ac_try) 2>&5
3640  ac_status=$?
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); }; } &&
3643         { ac_try='test -s conftest$ac_exeext'
3644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645  (eval $ac_try) 2>&5
3646  ac_status=$?
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); }; }; then
3649  :
3650else
3651  echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654coin_add_fflags="-i_dynamic $coin_add_fflags"
3655fi
3656rm -f conftest.err conftest.$ac_objext \
3657      conftest$ac_exeext conftest.$ac_ext
3658            ;;
3659          pgf77* | */pgf77* | pgf90* | */pgf90*)
3660            coin_opt_fflags="-fast"
3661            coin_add_fflags="-Kieee -pc 64"
3662            coin_dbg_fflags="-g"
3663          ;;
3664        esac
3665        ;;
3666      *-ibm-*)
3667        case "$F77" in
3668          xlf* | */xlf* | mpxlf* | */mpxlf* )
3669            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3670            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3671            coin_dbg_fflags="-g -C"
3672            ;;
3673        esac
3674        ;;
3675      *-hp-*)
3676        coin_opt_fflags="+O3"
3677        coin_add_fflags="+U77"
3678        coin_dbg_fflags="-C -g"
3679        ;;
3680      *-*-solaris*)
3681        coin_opt_fflags="-O4"
3682        coin_dbg_fflags="-g"
3683        ;;
3684      *-sgi-*)
3685        coin_opt_fflags="-O5 -OPT:Olimit=0"
3686        coin_dbg_fflags="-g"
3687        ;;
3688    esac
3689  fi
3690
3691  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3692    coin_dbg_fflags="-g"
3693  fi
3694
3695  if test -z "$coin_opt_fflags"; then
3696    # Try if -O option works if nothing else is set
3697    FFLAGS=-O
3698    cat >conftest.$ac_ext <<_ACEOF
3699      program main
3700      integer i
3701      end
3702_ACEOF
3703rm -f conftest.$ac_objext conftest$ac_exeext
3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705  (eval $ac_link) 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } &&
3712         { ac_try='test -z "$ac_f77_werror_flag"
3713                         || test ! -s conftest.err'
3714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715  (eval $ac_try) 2>&5
3716  ac_status=$?
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); }; } &&
3719         { ac_try='test -s conftest$ac_exeext'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; }; then
3725  coin_opt_fflags="-O"
3726else
3727  echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730fi
3731rm -f conftest.err conftest.$ac_objext \
3732      conftest$ac_exeext conftest.$ac_ext
3733  fi
3734
3735  # if PM doesn't want the warning messages, take them out
3736  if test x"$coin_skip_warn_fflags" = xyes; then
3737    coin_warn_fflags=
3738  fi
3739
3740  if test x${DBG_FFLAGS+set} != xset; then
3741    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3742  fi
3743  if test x${OPT_FFLAGS+set} != xset; then
3744    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3745  fi
3746
3747  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3748  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3749
3750  if test "$coin_debug_compile" = "true"; then
3751    FFLAGS="$DBG_FFLAGS"
3752  else
3753    FFLAGS="$OPT_FFLAGS"
3754  fi
3755else
3756  FFLAGS="$FFLAGS $ADD_FFLAGS"
3757  if test x${DBG_FFLAGS+set} != xset; then
3758    DBG_FFLAGS="$FFLAGS"
3759  fi
3760  if test x${OPT_FFLAGS+set} != xset; then
3761    OPT_FFLAGS="$FFLAGS"
3762  fi
3763fi
3764
3765# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3766case "$FFLAGS" in
3767  *-mno-cygwin*)
3768    if test x${CPPFLAGS+set} != xset ; then
3769      CPPFLAGS="-mno-cygwin"
3770    else
3771      case "$CPPFLAGS" in
3772        *-mno-cygwin*)
3773          ;;
3774        *)
3775          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3776          ;;
3777      esac
3778    fi ;;
3779esac
3780
3781# Try if FFLAGS works
3782if test "$F77" != "unavailable" ; then
3783  cat >conftest.$ac_ext <<_ACEOF
3784      program main
3785      integer i
3786      end
3787_ACEOF
3788rm -f conftest.$ac_objext conftest$ac_exeext
3789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790  (eval $ac_link) 2>conftest.er1
3791  ac_status=$?
3792  grep -v '^ *+' conftest.er1 >conftest.err
3793  rm -f conftest.er1
3794  cat conftest.err >&5
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); } &&
3797         { ac_try='test -z "$ac_f77_werror_flag"
3798                         || test ! -s conftest.err'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; } &&
3804         { ac_try='test -s conftest$ac_exeext'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; }; then
3810  :
3811else
3812  echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815FFLAGS=
3816fi
3817rm -f conftest.err conftest.$ac_objext \
3818      conftest$ac_exeext conftest.$ac_ext
3819  if test -z "$FFLAGS"; then
3820    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
3821echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
3822    FFLAGS='-O'
3823    cat >conftest.$ac_ext <<_ACEOF
3824      program main
3825      integer i
3826      end
3827_ACEOF
3828rm -f conftest.$ac_objext conftest$ac_exeext
3829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830  (eval $ac_link) 2>conftest.er1
3831  ac_status=$?
3832  grep -v '^ *+' conftest.er1 >conftest.err
3833  rm -f conftest.er1
3834  cat conftest.err >&5
3835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836  (exit $ac_status); } &&
3837         { ac_try='test -z "$ac_f77_werror_flag"
3838                         || test ! -s conftest.err'
3839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840  (eval $ac_try) 2>&5
3841  ac_status=$?
3842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843  (exit $ac_status); }; } &&
3844         { ac_try='test -s conftest$ac_exeext'
3845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846  (eval $ac_try) 2>&5
3847  ac_status=$?
3848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849  (exit $ac_status); }; }; then
3850  :
3851else
3852  echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855FFLAGS=
3856fi
3857rm -f conftest.err conftest.$ac_objext \
3858      conftest$ac_exeext conftest.$ac_ext
3859    if test -z "$FFLAGS"; then
3860      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
3861echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
3862    fi
3863  fi
3864fi
3865
3866{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3867echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3868
3869
3870if test x"$MPIF77" = x; then :; else
3871  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3872echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3873  F77="$MPIF77"
3874fi
3875
3876case "$F77" in
3877  ifort* | */ifort* | IFORT* | */IFORT*)
3878    case $build in
3879  *-mingw*)
3880    if test "${LD+set}" = set; then :; else
3881      LD=link
3882    fi
3883    ;;
3884 esac
3885 case $enable_doscompile in
3886   msvc)
3887     if test "x${LD+set}" = xset; then :; else
3888       LD=link
3889     fi
3890     ;;
3891 esac
3892
3893    ;;
3894esac
3895
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902
3903
3904# Get the linker flags (FLIBS) that are required for linking against this blas library
3905ac_ext=f
3906ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3907ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3909echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3910echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3911if test "${ac_cv_prog_f77_v+set}" = set; then
3912  echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914  cat >conftest.$ac_ext <<_ACEOF
3915      program main
3916
3917      end
3918_ACEOF
3919rm -f conftest.$ac_objext
3920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921  (eval $ac_compile) 2>conftest.er1
3922  ac_status=$?
3923  grep -v '^ *+' conftest.er1 >conftest.err
3924  rm -f conftest.er1
3925  cat conftest.err >&5
3926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927  (exit $ac_status); } &&
3928         { ac_try='test -z "$ac_f77_werror_flag"
3929                         || test ! -s conftest.err'
3930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931  (eval $ac_try) 2>&5
3932  ac_status=$?
3933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934  (exit $ac_status); }; } &&
3935         { ac_try='test -s conftest.$ac_objext'
3936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937  (eval $ac_try) 2>&5
3938  ac_status=$?
3939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940  (exit $ac_status); }; }; then
3941  ac_cv_prog_f77_v=
3942# Try some options frequently used verbose output
3943for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3944  cat >conftest.$ac_ext <<_ACEOF
3945      program main
3946
3947      end
3948_ACEOF
3949
3950# Compile and link our simple test program by passing a flag (argument
3951# 1 to this macro) to the Fortran compiler in order to get
3952# "verbose" output that we can then parse for the Fortran linker
3953# flags.
3954ac_save_FFLAGS=$FFLAGS
3955FFLAGS="$FFLAGS $ac_verb"
3956(eval echo $as_me:3956: \"$ac_link\") >&5
3957ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3958echo "$ac_f77_v_output" >&5
3959FFLAGS=$ac_save_FFLAGS
3960
3961rm -f conftest*
3962
3963# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3964# /foo, /bar, and /baz are search directories for the Fortran linker.
3965# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3966ac_f77_v_output="`echo $ac_f77_v_output |
3967        grep 'LPATH is:' |
3968        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3969
3970case $ac_f77_v_output in
3971  # If we are using xlf then replace all the commas with spaces.
3972  *xlfentry*)
3973    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3974
3975  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3976  # $LIBS confuse us, and the libraries appear later in the output anyway).
3977  *mGLOB_options_string*)
3978    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3979
3980  # If we are using Cray Fortran then delete quotes.
3981  # Use "\"" instead of '"' for font-lock-mode.
3982  # FIXME: a more general fix for quoted arguments with spaces?
3983  *cft90*)
3984    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3985esac
3986
3987
3988  # look for -l* and *.a constructs in the output
3989  for ac_arg in $ac_f77_v_output; do
3990     case $ac_arg in
3991        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3992          ac_cv_prog_f77_v=$ac_verb
3993          break 2 ;;
3994     esac
3995  done
3996done
3997if test -z "$ac_cv_prog_f77_v"; then
3998   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3999echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4000fi
4001else
4002  echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4006echo "$as_me: WARNING: compilation failed" >&2;}
4007fi
4008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4012echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4013echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4014echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4015if test "${ac_cv_f77_libs+set}" = set; then
4016  echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018  if test "x$FLIBS" != "x"; then
4019  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4020else
4021
4022cat >conftest.$ac_ext <<_ACEOF
4023      program main
4024
4025      end
4026_ACEOF
4027
4028# Compile and link our simple test program by passing a flag (argument
4029# 1 to this macro) to the Fortran compiler in order to get
4030# "verbose" output that we can then parse for the Fortran linker
4031# flags.
4032ac_save_FFLAGS=$FFLAGS
4033FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4034(eval echo $as_me:4034: \"$ac_link\") >&5
4035ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4036echo "$ac_f77_v_output" >&5
4037FFLAGS=$ac_save_FFLAGS
4038
4039rm -f conftest*
4040
4041# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4042# /foo, /bar, and /baz are search directories for the Fortran linker.
4043# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4044ac_f77_v_output="`echo $ac_f77_v_output |
4045        grep 'LPATH is:' |
4046        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4047
4048case $ac_f77_v_output in
4049  # If we are using xlf then replace all the commas with spaces.
4050  *xlfentry*)
4051    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4052
4053  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4054  # $LIBS confuse us, and the libraries appear later in the output anyway).
4055  *mGLOB_options_string*)
4056    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4057
4058  # If we are using Cray Fortran then delete quotes.
4059  # Use "\"" instead of '"' for font-lock-mode.
4060  # FIXME: a more general fix for quoted arguments with spaces?
4061  *cft90*)
4062    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4063esac
4064
4065
4066
4067ac_cv_f77_libs=
4068
4069# Save positional arguments (if any)
4070ac_save_positional="$@"
4071
4072set X $ac_f77_v_output
4073while test $# != 1; do
4074  shift
4075  ac_arg=$1
4076  case $ac_arg in
4077        [\\/]*.a | ?:[\\/]*.a)
4078            ac_exists=false
4079  for ac_i in $ac_cv_f77_libs; do
4080    if test x"$ac_arg" = x"$ac_i"; then
4081      ac_exists=true
4082      break
4083    fi
4084  done
4085
4086  if test x"$ac_exists" = xtrue; then
4087  :
4088else
4089  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4090fi
4091
4092          ;;
4093        -bI:*)
4094            ac_exists=false
4095  for ac_i in $ac_cv_f77_libs; do
4096    if test x"$ac_arg" = x"$ac_i"; then
4097      ac_exists=true
4098      break
4099    fi
4100  done
4101
4102  if test x"$ac_exists" = xtrue; then
4103  :
4104else
4105  if test "$ac_compiler_gnu" = yes; then
4106  for ac_link_opt in $ac_arg; do
4107    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4108  done
4109else
4110  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4111fi
4112fi
4113
4114          ;;
4115          # Ignore these flags.
4116        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4117          ;;
4118        -lkernel32)
4119          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4120          ;;
4121        -[LRuY])
4122          # These flags, when seen by themselves, take an argument.
4123          # We remove the space between option and argument and re-iterate
4124          # unless we find an empty arg or a new option (starting with -)
4125          case $2 in
4126             "" | -*);;
4127             *)
4128                ac_arg="$ac_arg$2"
4129                shift; shift
4130                set X $ac_arg "$@"
4131                ;;
4132          esac
4133          ;;
4134        -YP,*)
4135          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4136              ac_exists=false
4137  for ac_i in $ac_cv_f77_libs; do
4138    if test x"$ac_j" = x"$ac_i"; then
4139      ac_exists=true
4140      break
4141    fi
4142  done
4143
4144  if test x"$ac_exists" = xtrue; then
4145  :
4146else
4147  ac_arg="$ac_arg $ac_j"
4148                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4149fi
4150
4151          done
4152          ;;
4153        -[lLR]*)
4154            ac_exists=false
4155  for ac_i in $ac_cv_f77_libs; do
4156    if test x"$ac_arg" = x"$ac_i"; then
4157      ac_exists=true
4158      break
4159    fi
4160  done
4161
4162  if test x"$ac_exists" = xtrue; then
4163  :
4164else
4165  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4166fi
4167
4168          ;;
4169          # Ignore everything else.
4170  esac
4171done
4172# restore positional arguments
4173set X $ac_save_positional; shift
4174
4175# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4176# then we insist that the "run path" must be an absolute path (i.e. it
4177# must begin with a "/").
4178case `(uname -sr) 2>/dev/null` in
4179   "SunOS 5"*)
4180      ac_ld_run_path=`echo $ac_f77_v_output |
4181                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4182      test "x$ac_ld_run_path" != x &&
4183        if test "$ac_compiler_gnu" = yes; then
4184  for ac_link_opt in $ac_ld_run_path; do
4185    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4186  done
4187else
4188  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4189fi
4190      ;;
4191esac
4192fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4193
4194fi
4195echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4196echo "${ECHO_T}$ac_cv_f77_libs" >&6
4197FLIBS="$ac_cv_f77_libs"
4198
4199
4200ac_ext=f
4201ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4202ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4204
4205ac_ext=f
4206ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4207ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4209
4210echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4211echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4212if test "${ac_cv_f77_dummy_main+set}" = set; then
4213  echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215  ac_f77_dm_save_LIBS=$LIBS
4216 LIBS="$LIBS $FLIBS"
4217 ac_fortran_dm_var=F77_DUMMY_MAIN
4218 ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224 # First, try linking without a dummy main:
4225 cat >conftest.$ac_ext <<_ACEOF
4226/* confdefs.h.  */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h.  */
4231
4232#ifdef F77_DUMMY_MAIN
4233
4234#  ifdef __cplusplus
4235     extern "C"
4236#  endif
4237   int F77_DUMMY_MAIN() { return 1; }
4238
4239#endif
4240int
4241main ()
4242{
4243
4244  ;
4245  return 0;
4246}
4247_ACEOF
4248rm -f conftest.$ac_objext conftest$ac_exeext
4249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250  (eval $ac_link) 2>conftest.er1
4251  ac_status=$?
4252  grep -v '^ *+' conftest.er1 >conftest.err
4253  rm -f conftest.er1
4254  cat conftest.err >&5
4255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256  (exit $ac_status); } &&
4257         { ac_try='test -z "$ac_c_werror_flag"
4258                         || test ! -s conftest.err'
4259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260  (eval $ac_try) 2>&5
4261  ac_status=$?
4262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263  (exit $ac_status); }; } &&
4264         { ac_try='test -s conftest$ac_exeext'
4265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266  (eval $ac_try) 2>&5
4267  ac_status=$?
4268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269  (exit $ac_status); }; }; then
4270  ac_cv_fortran_dummy_main=none
4271else
4272  echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275ac_cv_fortran_dummy_main=unknown
4276fi
4277rm -f conftest.err conftest.$ac_objext \
4278      conftest$ac_exeext conftest.$ac_ext
4279
4280 if test $ac_cv_fortran_dummy_main = unknown; then
4281   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4282     cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h.  */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h.  */
4288#define $ac_fortran_dm_var $ac_func
4289#ifdef F77_DUMMY_MAIN
4290
4291#  ifdef __cplusplus
4292     extern "C"
4293#  endif
4294   int F77_DUMMY_MAIN() { return 1; }
4295
4296#endif
4297int
4298main ()
4299{
4300
4301  ;
4302  return 0;
4303}
4304_ACEOF
4305rm -f conftest.$ac_objext conftest$ac_exeext
4306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307  (eval $ac_link) 2>conftest.er1
4308  ac_status=$?
4309  grep -v '^ *+' conftest.er1 >conftest.err
4310  rm -f conftest.er1
4311  cat conftest.err >&5
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); } &&
4314         { ac_try='test -z "$ac_c_werror_flag"
4315                         || test ! -s conftest.err'
4316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317  (eval $ac_try) 2>&5
4318  ac_status=$?
4319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320  (exit $ac_status); }; } &&
4321         { ac_try='test -s conftest$ac_exeext'
4322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323  (eval $ac_try) 2>&5
4324  ac_status=$?
4325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326  (exit $ac_status); }; }; then
4327  ac_cv_fortran_dummy_main=$ac_func; break
4328else
4329  echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332fi
4333rm -f conftest.err conftest.$ac_objext \
4334      conftest$ac_exeext conftest.$ac_ext
4335   done
4336 fi
4337 ac_ext=f
4338ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4339ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4341 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4342 rm -f conftest*
4343 LIBS=$ac_f77_dm_save_LIBS
4344
4345fi
4346echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4347echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4348F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4349if test "$F77_DUMMY_MAIN" != unknown; then
4350  if test $F77_DUMMY_MAIN != none; then
4351
4352cat >>confdefs.h <<_ACEOF
4353#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4354_ACEOF
4355
4356  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4357
4358cat >>confdefs.h <<\_ACEOF
4359#define FC_DUMMY_MAIN_EQ_F77 1
4360_ACEOF
4361
4362  fi
4363fi
4364else
4365  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4366See \`config.log' for more details." >&5
4367echo "$as_me: error: linking to Fortran libraries from C fails
4368See \`config.log' for more details." >&2;}
4369   { (exit 1); exit 1; }; }
4370fi
4371
4372
4373ac_ext=f
4374ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4375ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4377
4378ac_ext=f
4379ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4380ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4382echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4383echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4384if test "${ac_cv_f77_mangling+set}" = set; then
4385  echo $ECHO_N "(cached) $ECHO_C" >&6
4386else
4387  cat >conftest.$ac_ext <<_ACEOF
4388      subroutine foobar()
4389      return
4390      end
4391      subroutine foo_bar()
4392      return
4393      end
4394_ACEOF
4395rm -f conftest.$ac_objext
4396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397  (eval $ac_compile) 2>conftest.er1
4398  ac_status=$?
4399  grep -v '^ *+' conftest.er1 >conftest.err
4400  rm -f conftest.er1
4401  cat conftest.err >&5
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); } &&
4404         { ac_try='test -z "$ac_f77_werror_flag"
4405                         || test ! -s conftest.err'
4406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407  (eval $ac_try) 2>&5
4408  ac_status=$?
4409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410  (exit $ac_status); }; } &&
4411         { ac_try='test -s conftest.$ac_objext'
4412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413  (eval $ac_try) 2>&5
4414  ac_status=$?
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); }; }; then
4417  mv conftest.$ac_objext cfortran_test.$ac_objext
4418
4419  ac_save_LIBS=$LIBS
4420  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4421
4422  ac_ext=c
4423ac_cpp='$CPP $CPPFLAGS'
4424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427  ac_success=no
4428  for ac_foobar in foobar FOOBAR; do
4429    for ac_underscore in "" "_"; do
4430      ac_func="$ac_foobar$ac_underscore"
4431      cat >conftest.$ac_ext <<_ACEOF
4432/* confdefs.h.  */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h.  */
4437
4438/* Override any gcc2 internal prototype to avoid an error.  */
4439#ifdef __cplusplus
4440extern "C"
4441#endif
4442/* We use char because int might match the return type of a gcc2
4443   builtin and then its argument prototype would still apply.  */
4444char $ac_func ();
4445#ifdef F77_DUMMY_MAIN
4446
4447#  ifdef __cplusplus
4448     extern "C"
4449#  endif
4450   int F77_DUMMY_MAIN() { return 1; }
4451
4452#endif
4453int
4454main ()
4455{
4456$ac_func ();
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461rm -f conftest.$ac_objext conftest$ac_exeext
4462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463  (eval $ac_link) 2>conftest.er1
4464  ac_status=$?
4465  grep -v '^ *+' conftest.er1 >conftest.err
4466  rm -f conftest.er1
4467  cat conftest.err >&5
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); } &&
4470         { ac_try='test -z "$ac_c_werror_flag"
4471                         || test ! -s conftest.err'
4472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473  (eval $ac_try) 2>&5
4474  ac_status=$?
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); }; } &&
4477         { ac_try='test -s conftest$ac_exeext'
4478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479  (eval $ac_try) 2>&5
4480  ac_status=$?
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); }; }; then
4483  ac_success=yes; break 2
4484else
4485  echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488fi
4489rm -f conftest.err conftest.$ac_objext \
4490      conftest$ac_exeext conftest.$ac_ext
4491    done
4492  done
4493  ac_ext=f
4494ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4495ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4497
4498  if test "$ac_success" = "yes"; then
4499     case $ac_foobar in
4500        foobar)
4501           ac_case=lower
4502           ac_foo_bar=foo_bar
4503           ;;
4504        FOOBAR)
4505           ac_case=upper
4506           ac_foo_bar=FOO_BAR
4507           ;;
4508     esac
4509
4510     ac_ext=c
4511ac_cpp='$CPP $CPPFLAGS'
4512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515     ac_success_extra=no
4516     for ac_extra in "" "_"; do
4517        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4518        cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h.  */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h.  */
4524
4525/* Override any gcc2 internal prototype to avoid an error.  */
4526#ifdef __cplusplus
4527extern "C"
4528#endif
4529/* We use char because int might match the return type of a gcc2
4530   builtin and then its argument prototype would still apply.  */
4531char $ac_func ();
4532#ifdef F77_DUMMY_MAIN
4533
4534#  ifdef __cplusplus
4535     extern "C"
4536#  endif
4537   int F77_DUMMY_MAIN() { return 1; }
4538
4539#endif
4540int
4541main ()
4542{
4543$ac_func ();
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548rm -f conftest.$ac_objext conftest$ac_exeext
4549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550  (eval $ac_link) 2>conftest.er1
4551  ac_status=$?
4552  grep -v '^ *+' conftest.er1 >conftest.err
4553  rm -f conftest.er1
4554  cat conftest.err >&5
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } &&
4557         { ac_try='test -z "$ac_c_werror_flag"
4558                         || test ! -s conftest.err'
4559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560  (eval $ac_try) 2>&5
4561  ac_status=$?
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); }; } &&
4564         { ac_try='test -s conftest$ac_exeext'
4565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566  (eval $ac_try) 2>&5
4567  ac_status=$?
4568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569  (exit $ac_status); }; }; then
4570  ac_success_extra=yes; break
4571else
4572  echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575fi
4576rm -f conftest.err conftest.$ac_objext \
4577      conftest$ac_exeext conftest.$ac_ext
4578     done
4579     ac_ext=f
4580ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4581ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4583
4584     if test "$ac_success_extra" = "yes"; then
4585        ac_cv_f77_mangling="$ac_case case"
4586        if test -z "$ac_underscore"; then
4587           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4588        else
4589           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4590        fi
4591        if test -z "$ac_extra"; then
4592           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4593        else
4594           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4595        fi
4596      else
4597        ac_cv_f77_mangling="unknown"
4598      fi
4599  else
4600     ac_cv_f77_mangling="unknown"
4601  fi
4602
4603  LIBS=$ac_save_LIBS
4604  rm -f cfortran_test* conftest*
4605else
4606  echo "$as_me: failed program was:" >&5
4607sed 's/^/| /' conftest.$ac_ext >&5
4608
4609{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4610See \`config.log' for more details." >&5
4611echo "$as_me: error: cannot compile a simple Fortran program
4612See \`config.log' for more details." >&2;}
4613   { (exit 1); exit 1; }; }
4614fi
4615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616
4617fi
4618echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4619echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4620
4621ac_ext=f
4622ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4623ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4625
4626
4627ac_ext=f
4628ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4629ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4631
4632
4633ac_ext=f
4634ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4635ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4637
4638
4639case $ac_cv_f77_mangling in
4640  "lower case, no underscore, no extra underscore")
4641          cat >>confdefs.h <<\_ACEOF
4642#define F77_FUNC(name,NAME) name
4643_ACEOF
4644
4645          cat >>confdefs.h <<\_ACEOF
4646#define F77_FUNC_(name,NAME) name
4647_ACEOF
4648 ;;
4649  "lower case, no underscore, extra underscore")
4650          cat >>confdefs.h <<\_ACEOF
4651#define F77_FUNC(name,NAME) name
4652_ACEOF
4653
4654          cat >>confdefs.h <<\_ACEOF
4655#define F77_FUNC_(name,NAME) name ## _
4656_ACEOF
4657 ;;
4658  "lower case, underscore, no extra underscore")
4659          cat >>confdefs.h <<\_ACEOF
4660#define F77_FUNC(name,NAME) name ## _
4661_ACEOF
4662
4663          cat >>confdefs.h <<\_ACEOF
4664#define F77_FUNC_(name,NAME) name ## _
4665_ACEOF
4666 ;;
4667  "lower case, underscore, extra underscore")
4668          cat >>confdefs.h <<\_ACEOF
4669#define F77_FUNC(name,NAME) name ## _
4670_ACEOF
4671
4672          cat >>confdefs.h <<\_ACEOF
4673#define F77_FUNC_(name,NAME) name ## __
4674_ACEOF
4675 ;;
4676  "upper case, no underscore, no extra underscore")
4677          cat >>confdefs.h <<\_ACEOF
4678#define F77_FUNC(name,NAME) NAME
4679_ACEOF
4680
4681          cat >>confdefs.h <<\_ACEOF
4682#define F77_FUNC_(name,NAME) NAME
4683_ACEOF
4684 ;;
4685  "upper case, no underscore, extra underscore")
4686          cat >>confdefs.h <<\_ACEOF
4687#define F77_FUNC(name,NAME) NAME
4688_ACEOF
4689
4690          cat >>confdefs.h <<\_ACEOF
4691#define F77_FUNC_(name,NAME) NAME ## _
4692_ACEOF
4693 ;;
4694  "upper case, underscore, no extra underscore")
4695          cat >>confdefs.h <<\_ACEOF
4696#define F77_FUNC(name,NAME) NAME ## _
4697_ACEOF
4698
4699          cat >>confdefs.h <<\_ACEOF
4700#define F77_FUNC_(name,NAME) NAME ## _
4701_ACEOF
4702 ;;
4703  "upper case, underscore, extra underscore")
4704          cat >>confdefs.h <<\_ACEOF
4705#define F77_FUNC(name,NAME) NAME ## _
4706_ACEOF
4707
4708          cat >>confdefs.h <<\_ACEOF
4709#define F77_FUNC_(name,NAME) NAME ## __
4710_ACEOF
4711 ;;
4712  *)
4713          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4714echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4715          ;;
4716esac
4717
4718ac_ext=f
4719ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4720ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4722
4723
4724# If FLIBS has been set by the user, we just restore its value here
4725if test x"$save_FLIBS" != x; then
4726  FLIBS="$save_FLIBS"
4727else
4728  # This is to correct a missing exclusion in autoconf 2.59
4729  if test x"$FLIBS" != x; then
4730    my_flibs=
4731    for flag in $FLIBS; do
4732      case $flag in
4733        -lcrt*.o) ;;
4734        -lcygwin) ;;
4735               *) my_flibs="$my_flibs $flag" ;;
4736      esac
4737    done
4738    FLIBS="$my_flibs"
4739  fi
4740
4741  case $build in
4742  # The following is a fix to define FLIBS for ifort on Windows
4743  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4744  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4745  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4746  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4747  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
4748     *-cygwin* | *-mingw*)
4749       case "$F77" in
4750#         ifort* | */ifort* | IFORT* | */IFORT*)
4751#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4752#           if "$coin_debug_compile" = true ; then
4753#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4754#           else
4755#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4756#           fi
4757#           ;;
4758         compile_f2c*)
4759           FLIBS=`$F77 -FLIBS` ;;
4760       esac;;
4761     *-hp-*)
4762         FLIBS="$FLIBS -lm";;
4763     *-ibm-*)
4764         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4765     *-linux-*)
4766       case "$F77" in
4767         pgf77* | */pgf77* | pgf90* | */pgf90*)
4768# ask linker to go through the archives multiple times
4769# (the Fortran compiler seems to do that automatically...)
4770           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4771       esac
4772  esac
4773  ac_cv_f77_libs="$FLIBS"
4774fi
4775
4776ac_ext=c
4777ac_cpp='$CPP $CPPFLAGS'
4778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781
4782
4783
4784
4785# Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files
4786FILTERSQP_PCLIBS="$FLIBS"
4787
4788
4789# Check if pkg-config is available (to setup addlibs file)
4790
4791
4792# Check whether --enable-pkg-config or --disable-pkg-config was given.
4793if test "${enable_pkg_config+set}" = set; then
4794  enableval="$enable_pkg_config"
4795  use_pkgconfig="$enableval"
4796else
4797  use_pkgconfig=yes
4798fi;
4799
4800if test $use_pkgconfig = yes ; then
4801  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4802    if test -n "$ac_tool_prefix"; then
4803  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4804set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4805echo "$as_me:$LINENO: checking for $ac_word" >&5
4806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4807if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  case $PKG_CONFIG in
4811  [\\/]* | ?:[\\/]*)
4812  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4813  ;;
4814  *)
4815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818  IFS=$as_save_IFS
4819  test -z "$as_dir" && as_dir=.
4820  for ac_exec_ext in '' $ac_executable_extensions; do
4821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824    break 2
4825  fi
4826done
4827done
4828
4829  ;;
4830esac
4831fi
4832PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4833
4834if test -n "$PKG_CONFIG"; then
4835  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4836echo "${ECHO_T}$PKG_CONFIG" >&6
4837else
4838  echo "$as_me:$LINENO: result: no" >&5
4839echo "${ECHO_T}no" >&6
4840fi
4841
4842fi
4843if test -z "$ac_cv_path_PKG_CONFIG"; then
4844  ac_pt_PKG_CONFIG=$PKG_CONFIG
4845  # Extract the first word of "pkg-config", so it can be a program name with args.
4846set dummy pkg-config; ac_word=$2
4847echo "$as_me:$LINENO: checking for $ac_word" >&5
4848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4850  echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852  case $ac_pt_PKG_CONFIG in
4853  [\\/]* | ?:[\\/]*)
4854  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4855  ;;
4856  *)
4857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860  IFS=$as_save_IFS
4861  test -z "$as_dir" && as_dir=.
4862  for ac_exec_ext in '' $ac_executable_extensions; do
4863  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866    break 2
4867  fi
4868done
4869done
4870
4871  ;;
4872esac
4873fi
4874ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4875
4876if test -n "$ac_pt_PKG_CONFIG"; then
4877  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4878echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4879else
4880  echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882fi
4883
4884  PKG_CONFIG=$ac_pt_PKG_CONFIG
4885else
4886  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4887fi
4888
4889  fi
4890  if test -n "$PKG_CONFIG"; then
4891    _pkg_min_version=0.9.0
4892    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4893echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4894    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4895      echo "$as_me:$LINENO: result: yes" >&5
4896echo "${ECHO_T}yes" >&6
4897    else
4898      echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900      PKG_CONFIG=""
4901    fi
4902  fi
4903
4904  # check if pkg-config supports the short-errors flag
4905  if test -n "$PKG_CONFIG" && \
4906    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4907    pkg_short_errors=" --short-errors "
4908  else
4909    pkg_short_errors=""
4910  fi
4911fi
4912
4913
4914
4915if test -n "$PKG_CONFIG"; then
4916  COIN_HAS_PKGCONFIG_TRUE=
4917  COIN_HAS_PKGCONFIG_FALSE='#'
4918else
4919  COIN_HAS_PKGCONFIG_TRUE='#'
4920  COIN_HAS_PKGCONFIG_FALSE=
4921fi
4922
4923
4924
4925# assemble pkg-config search path for installed projects
4926COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4927
4928# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
4929# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4930# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4931if test "x${prefix}" = xNONE ; then
4932  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4933else
4934  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4935fi
4936
4937
4938# Check whether --with-coin-instdir or --without-coin-instdir was given.
4939if test "${with_coin_instdir+set}" = set; then
4940  withval="$with_coin_instdir"
4941  if test -d "$withval"; then : ; else
4942     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4943echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4944   { (exit 1); exit 1; }; }
4945   fi
4946   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4947
4948fi;
4949
4950
4951
4952# assemble additional pkg-config search paths for uninstalled projects
4953if test x$coin_projectdir = xyes ; then
4954  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4955  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4956  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4957  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
4958  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4959  if test -e ../coin_subdirs.txt ; then
4960    for i in `cat ../coin_subdirs.txt` ; do
4961      if test -d ../$i ; then
4962        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4963      fi
4964    done
4965  fi
4966
4967  if test -e ../../coin_subdirs.txt ; then
4968    for i in `cat ../../coin_subdirs.txt` ; do
4969      if test -d ../../$i ; then
4970        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4971      fi
4972    done
4973  fi
4974
4975
4976fi
4977
4978
4979
4980# Initialize automake
4981echo "$as_me:$LINENO: checking for egrep" >&5
4982echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4983if test "${ac_cv_prog_egrep+set}" = set; then
4984  echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4987    then ac_cv_prog_egrep='grep -E'
4988    else ac_cv_prog_egrep='egrep'
4989    fi
4990fi
4991echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4992echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4993 EGREP=$ac_cv_prog_egrep
4994
4995
4996am__api_version="1.9"
4997# Find a good install program.  We prefer a C program (faster),
4998# so one script is as good as another.  But avoid the broken or
4999# incompatible versions:
5000# SysV /etc/install, /usr/sbin/install
5001# SunOS /usr/etc/install
5002# IRIX /sbin/install
5003# AIX /bin/install
5004# AmigaOS /C/install, which installs bootblocks on floppy discs
5005# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5006# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5007# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5008# OS/2's system install, which has a completely different semantic
5009# ./install, which can be erroneously created by make from ./install.sh.
5010echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5011echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5012if test -z "$INSTALL"; then
5013if test "${ac_cv_path_install+set}" = set; then
5014  echo $ECHO_N "(cached) $ECHO_C" >&6
5015else
5016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019  IFS=$as_save_IFS
5020  test -z "$as_dir" && as_dir=.
5021  # Account for people who put trailing slashes in PATH elements.
5022case $as_dir/ in
5023  ./ | .// | /cC/* | \
5024  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5025  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5026  /usr/ucb/* ) ;;
5027  *)
5028    # OSF1 and SCO ODT 3.0 have their own names for install.
5029    # Don't use installbsd from OSF since it installs stuff as root
5030    # by default.
5031    for ac_prog in ginstall scoinst install; do
5032      for ac_exec_ext in '' $ac_executable_extensions; do
5033        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5034          if test $ac_prog = install &&
5035            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5036            # AIX install.  It has an incompatible calling convention.
5037            :
5038          elif test $ac_prog = install &&
5039            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5040            # program-specific install script used by HP pwplus--don't use.
5041            :
5042          else
5043            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5044            break 3
5045          fi
5046        fi
5047      done
5048    done
5049    ;;
5050esac
5051done
5052
5053
5054fi
5055  if test "${ac_cv_path_install+set}" = set; then
5056    INSTALL=$ac_cv_path_install
5057  else
5058    # As a last resort, use the slow shell script.  We don't cache a
5059    # path for INSTALL within a source directory, because that will
5060    # break other packages using the cache if that directory is
5061    # removed, or if the path is relative.
5062    INSTALL=$ac_install_sh
5063  fi
5064fi
5065echo "$as_me:$LINENO: result: $INSTALL" >&5
5066echo "${ECHO_T}$INSTALL" >&6
5067
5068# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5069# It thinks the first close brace ends the variable substitution.
5070test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5071
5072test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5073
5074test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5075
5076echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5077echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5078# Just in case
5079sleep 1
5080echo timestamp > conftest.file
5081# Do `set' in a subshell so we don't clobber the current shell's
5082# arguments.  Must try -L first in case configure is actually a
5083# symlink; some systems play weird games with the mod time of symlinks
5084# (eg FreeBSD returns the mod time of the symlink's containing
5085# directory).
5086if (
5087   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5088   if test "$*" = "X"; then
5089      # -L didn't work.
5090      set X `ls -t $srcdir/configure conftest.file`
5091   fi
5092   rm -f conftest.file
5093   if test "$*" != "X $srcdir/configure conftest.file" \
5094      && test "$*" != "X conftest.file $srcdir/configure"; then
5095
5096      # If neither matched, then we have a broken ls.  This can happen
5097      # if, for instance, CONFIG_SHELL is bash and it inherits a
5098      # broken ls alias from the environment.  This has actually
5099      # happened.  Such a system could not be considered "sane".
5100      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5101alias in your environment" >&5
5102echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5103alias in your environment" >&2;}
5104   { (exit 1); exit 1; }; }
5105   fi
5106
5107   test "$2" = conftest.file
5108   )
5109then
5110   # Ok.
5111   :
5112else
5113   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5114Check your system clock" >&5
5115echo "$as_me: error: newly created file is older than distributed files!
5116Check your system clock" >&2;}
5117   { (exit 1); exit 1; }; }
5118fi
5119echo "$as_me:$LINENO: result: yes" >&5
5120echo "${ECHO_T}yes" >&6
5121test "$program_prefix" != NONE &&
5122  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5123# Use a double $ so make ignores it.
5124test "$program_suffix" != NONE &&
5125  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5126# Double any \ or $.  echo might interpret backslashes.
5127# By default was `s,x,x', remove it if useless.
5128cat <<\_ACEOF >conftest.sed
5129s/[\\$]/&&/g;s/;s,x,x,$//
5130_ACEOF
5131program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5132rm conftest.sed
5133
5134# expand $ac_aux_dir to an absolute path
5135am_aux_dir=`cd $ac_aux_dir && pwd`
5136
5137test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5138# Use eval to expand $SHELL
5139if eval "$MISSING --run true"; then
5140  am_missing_run="$MISSING --run "
5141else
5142  am_missing_run=
5143  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5144echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5145fi
5146
5147if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5148  # We used to keeping the `.' as first argument, in order to
5149  # allow $(mkdir_p) to be used without argument.  As in
5150  #   $(mkdir_p) $(somedir)
5151  # where $(somedir) is conditionally defined.  However this is wrong
5152  # for two reasons:
5153  #  1. if the package is installed by a user who cannot write `.'
5154  #     make install will fail,
5155  #  2. the above comment should most certainly read
5156  #     $(mkdir_p) $(DESTDIR)$(somedir)
5157  #     so it does not work when $(somedir) is undefined and
5158  #     $(DESTDIR) is not.
5159  #  To support the latter case, we have to write
5160  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5161  #  so the `.' trick is pointless.
5162  mkdir_p='mkdir -p --'
5163else
5164  # On NextStep and OpenStep, the `mkdir' command does not
5165  # recognize any option.  It will interpret all options as
5166  # directories to create, and then abort because `.' already
5167  # exists.
5168  for d in ./-p ./--version;
5169  do
5170    test -d $d && rmdir $d
5171  done
5172  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5173  if test -f "$ac_aux_dir/mkinstalldirs"; then
5174    mkdir_p='$(mkinstalldirs)'
5175  else
5176    mkdir_p='$(install_sh) -d'
5177  fi
5178fi
5179
5180for ac_prog in gawk mawk nawk awk
5181do
5182  # Extract the first word of "$ac_prog", so it can be a program name with args.
5183set dummy $ac_prog; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_prog_AWK+set}" = set; then
5187  echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189  if test -n "$AWK"; then
5190  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195  IFS=$as_save_IFS
5196  test -z "$as_dir" && as_dir=.
5197  for ac_exec_ext in '' $ac_executable_extensions; do
5198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199    ac_cv_prog_AWK="$ac_prog"
5200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201    break 2
5202  fi
5203done
5204done
5205
5206fi
5207fi
5208AWK=$ac_cv_prog_AWK
5209if test -n "$AWK"; then
5210  echo "$as_me:$LINENO: result: $AWK" >&5
5211echo "${ECHO_T}$AWK" >&6
5212else
5213  echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215fi
5216
5217  test -n "$AWK" && break
5218done
5219
5220echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5221echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5222set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5223if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5224  echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226  cat >conftest.make <<\_ACEOF
5227all:
5228        @echo 'ac_maketemp="$(MAKE)"'
5229_ACEOF
5230# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5231eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5232if test -n "$ac_maketemp"; then
5233  eval ac_cv_prog_make_${ac_make}_set=yes
5234else
5235  eval ac_cv_prog_make_${ac_make}_set=no
5236fi
5237rm -f conftest.make
5238fi
5239if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5240  echo "$as_me:$LINENO: result: yes" >&5
5241echo "${ECHO_T}yes" >&6
5242  SET_MAKE=
5243else
5244  echo "$as_me:$LINENO: result: no" >&5
5245echo "${ECHO_T}no" >&6
5246  SET_MAKE="MAKE=${MAKE-make}"
5247fi
5248
5249rm -rf .tst 2>/dev/null
5250mkdir .tst 2>/dev/null
5251if test -d .tst; then
5252  am__leading_dot=.
5253else
5254  am__leading_dot=_
5255fi
5256rmdir .tst 2>/dev/null
5257
5258DEPDIR="${am__leading_dot}deps"
5259
5260          ac_config_commands="$ac_config_commands depfiles"
5261
5262
5263am_make=${MAKE-make}
5264cat > confinc << 'END'
5265am__doit:
5266        @echo done
5267.PHONY: am__doit
5268END
5269# If we don't find an include directive, just comment out the code.
5270echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5271echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5272am__include="#"
5273am__quote=
5274_am_result=none
5275# First try GNU make style include.
5276echo "include confinc" > confmf
5277# We grep out `Entering directory' and `Leaving directory'
5278# messages which can occur if `w' ends up in MAKEFLAGS.
5279# In particular we don't look at `^make:' because GNU make might
5280# be invoked under some other name (usually "gmake"), in which
5281# case it prints its new name instead of `make'.
5282if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5283   am__include=include
5284   am__quote=
5285   _am_result=GNU
5286fi
5287# Now try BSD make style include.
5288if test "$am__include" = "#"; then
5289   echo '.include "confinc"' > confmf
5290   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5291      am__include=.include
5292      am__quote="\""
5293      _am_result=BSD
5294   fi
5295fi
5296
5297
5298echo "$as_me:$LINENO: result: $_am_result" >&5
5299echo "${ECHO_T}$_am_result" >&6
5300rm -f confinc confmf
5301
5302# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5303if test "${enable_dependency_tracking+set}" = set; then
5304  enableval="$enable_dependency_tracking"
5305
5306fi;
5307if test "x$enable_dependency_tracking" != xno; then
5308  am_depcomp="$ac_aux_dir/depcomp"
5309  AMDEPBACKSLASH='\'
5310fi
5311
5312
5313if test "x$enable_dependency_tracking" != xno; then
5314  AMDEP_TRUE=
5315  AMDEP_FALSE='#'
5316else
5317  AMDEP_TRUE='#'
5318  AMDEP_FALSE=
5319fi
5320
5321
5322
5323
5324
5325# AC_MSG_NOTICE([Beginning automake initialisation.])
5326# Stuff for automake
5327# test to see if srcdir already configured
5328if test "`cd $srcdir && pwd`" != "`pwd`" &&
5329   test -f $srcdir/config.status; then
5330  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5331echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5332   { (exit 1); exit 1; }; }
5333fi
5334
5335# test whether we have cygpath
5336if test -z "$CYGPATH_W"; then
5337  if (cygpath --version) >/dev/null 2>/dev/null; then
5338    CYGPATH_W='cygpath -w'
5339  else
5340    CYGPATH_W=echo
5341  fi
5342fi
5343
5344
5345# Define the identity of the package.
5346 PACKAGE='thirdpartyfiltersqp'
5347 VERSION='1.1'
5348
5349
5350cat >>confdefs.h <<_ACEOF
5351#define PACKAGE "$PACKAGE"
5352_ACEOF
5353
5354
5355cat >>confdefs.h <<_ACEOF
5356#define VERSION "$VERSION"
5357_ACEOF
5358
5359# Some tools Automake needs.
5360
5361ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5362
5363
5364AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5365
5366
5367AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5368
5369
5370AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5371
5372
5373MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5374
5375install_sh=${install_sh-"$am_aux_dir/install-sh"}
5376
5377# Installed binaries are usually stripped using `strip' when the user
5378# run `make install-strip'.  However `strip' might not be the right
5379# tool to use in cross-compilation environments, therefore Automake
5380# will honor the `STRIP' environment variable to overrule this program.
5381if test "$cross_compiling" != no; then
5382  if test -n "$ac_tool_prefix"; then
5383  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5384set dummy ${ac_tool_prefix}strip; ac_word=$2
5385echo "$as_me:$LINENO: checking for $ac_word" >&5
5386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5387if test "${ac_cv_prog_STRIP+set}" = set; then
5388  echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390  if test -n "$STRIP"; then
5391  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5392else
5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH
5395do
5396  IFS=$as_save_IFS
5397  test -z "$as_dir" && as_dir=.
5398  for ac_exec_ext in '' $ac_executable_extensions; do
5399  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5401    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402    break 2
5403  fi
5404done
5405done
5406
5407fi
5408fi
5409STRIP=$ac_cv_prog_STRIP
5410if test -n "$STRIP"; then
5411  echo "$as_me:$LINENO: result: $STRIP" >&5
5412echo "${ECHO_T}$STRIP" >&6
5413else
5414  echo "$as_me:$LINENO: result: no" >&5
5415echo "${ECHO_T}no" >&6
5416fi
5417
5418fi
5419if test -z "$ac_cv_prog_STRIP"; then
5420  ac_ct_STRIP=$STRIP
5421  # Extract the first word of "strip", so it can be a program name with args.
5422set dummy strip; ac_word=$2
5423echo "$as_me:$LINENO: checking for $ac_word" >&5
5424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5426  echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428  if test -n "$ac_ct_STRIP"; then
5429  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5430else
5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434  IFS=$as_save_IFS
5435  test -z "$as_dir" && as_dir=.
5436  for ac_exec_ext in '' $ac_executable_extensions; do
5437  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438    ac_cv_prog_ac_ct_STRIP="strip"
5439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440    break 2
5441  fi
5442done
5443done
5444
5445  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5446fi
5447fi
5448ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5449if test -n "$ac_ct_STRIP"; then
5450  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5451echo "${ECHO_T}$ac_ct_STRIP" >&6
5452else
5453  echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6
5455fi
5456
5457  STRIP=$ac_ct_STRIP
5458else
5459  STRIP="$ac_cv_prog_STRIP"
5460fi
5461
5462fi
5463INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5464
5465# We need awk for the "check" target.  The system "awk" is bad on
5466# some platforms.
5467# Always define AMTAR for backward compatibility.
5468
5469AMTAR=${AMTAR-"${am_missing_run}tar"}
5470
5471am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5472
5473
5474
5475
5476depcc="$CC"   am_compiler_list=
5477
5478echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5479echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5480if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5481  echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5484  # We make a subdir and do the tests there.  Otherwise we can end up
5485  # making bogus files that we don't know about and never remove.  For
5486  # instance it was reported that on HP-UX the gcc test will end up
5487  # making a dummy file named `D' -- because `-MD' means `put the output
5488  # in D'.
5489  mkdir conftest.dir
5490  # Copy depcomp to subdir because otherwise we won't find it if we're
5491  # using a relative directory.
5492  cp "$am_depcomp" conftest.dir
5493  cd conftest.dir
5494  # We will build objects and dependencies in a subdirectory because
5495  # it helps to detect inapplicable dependency modes.  For instance
5496  # both Tru64's cc and ICC support -MD to output dependencies as a
5497  # side effect of compilation, but ICC will put the dependencies in
5498  # the current directory while Tru64 will put them in the object
5499  # directory.
5500  mkdir sub
5501
5502  am_cv_CC_dependencies_compiler_type=none
5503  if test "$am_compiler_list" = ""; then
5504     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5505  fi
5506  for depmode in $am_compiler_list; do
5507    # Setup a source with many dependencies, because some compilers
5508    # like to wrap large dependency lists on column 80 (with \), and
5509    # we should not choose a depcomp mode which is confused by this.
5510    #
5511    # We need to recreate these files for each test, as the compiler may
5512    # overwrite some of them when testing with obscure command lines.
5513    # This happens at least with the AIX C compiler.
5514    : > sub/conftest.c
5515    for i in 1 2 3 4 5 6; do
5516      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5517      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5518      # Solaris 8's {/usr,}/bin/sh.
5519      touch sub/conftst$i.h
5520    done
5521    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5522
5523    case $depmode in
5524    nosideeffect)
5525      # after this tag, mechanisms are not by side-effect, so they'll
5526      # only be used when explicitly requested
5527      if test "x$enable_dependency_tracking" = xyes; then
5528        continue
5529      else
5530        break
5531      fi
5532      ;;
5533    none) break ;;
5534    esac
5535    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5536    # mode.  It turns out that the SunPro C++ compiler does not properly
5537    # handle `-M -o', and we need to detect this.
5538    if depmode=$depmode \
5539       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5540       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5541       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5542         >/dev/null 2>conftest.err &&
5543       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5544       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5545       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5546      # icc doesn't choke on unknown options, it will just issue warnings
5547      # or remarks (even with -Werror).  So we grep stderr for any message
5548      # that says an option was ignored or not supported.
5549      # When given -MP, icc 7.0 and 7.1 complain thusly:
5550      #   icc: Command line warning: ignoring option '-M'; no argument required
5551      # The diagnosis changed in icc 8.0:
5552      #   icc: Command line remark: option '-MP' not supported
5553      if (grep 'ignoring option' conftest.err ||
5554          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5555        am_cv_CC_dependencies_compiler_type=$depmode
5556        break
5557      fi
5558    fi
5559  done
5560
5561  cd ..
5562  rm -rf conftest.dir
5563else
5564  am_cv_CC_dependencies_compiler_type=none
5565fi
5566
5567fi
5568echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5569echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5570CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5571
5572
5573
5574if
5575  test "x$enable_dependency_tracking" != xno \
5576  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5577  am__fastdepCC_TRUE=
5578  am__fastdepCC_FALSE='#'
5579else
5580  am__fastdepCC_TRUE='#'
5581  am__fastdepCC_FALSE=
5582fi
5583
5584
5585
5586echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5587echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5588    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5589if test "${enable_maintainer_mode+set}" = set; then
5590  enableval="$enable_maintainer_mode"
5591  USE_MAINTAINER_MODE=$enableval
5592else
5593  USE_MAINTAINER_MODE=no
5594fi;
5595  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5596echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5597
5598
5599if test $USE_MAINTAINER_MODE = yes; then
5600  MAINTAINER_MODE_TRUE=
5601  MAINTAINER_MODE_FALSE='#'
5602else
5603  MAINTAINER_MODE_TRUE='#'
5604  MAINTAINER_MODE_FALSE=
5605fi
5606
5607  MAINT=$MAINTAINER_MODE_TRUE
5608
5609
5610
5611coin_have_externals=no
5612if test "$enable_maintainer_mode" = yes; then
5613
5614  # If maintainer mode is chosen, we make sure that the correct versions
5615  # of the tools are used, and that we know where libtool.m4 is (to
5616  # recreate acinclude.m4)
5617
5618
5619  LIBTOOLM4=
5620  # Normally, $HOME
5621  AUTOTOOLS_DFLT=$HOME
5622
5623  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5624echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5625if test "${ac_cv_use_correct_autotools+set}" = set; then
5626  echo $ECHO_N "(cached) $ECHO_C" >&6
5627else
5628  ac_cv_use_correct_autotools=check
5629fi
5630echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5631echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5632
5633  if test $ac_cv_use_correct_autotools = check; then
5634    ac_cv_use_correct_autotools=yes
5635    # Check if we have autoconf
5636    # Extract the first word of "autoconf", so it can be a program name with args.
5637set dummy autoconf; ac_word=$2
5638echo "$as_me:$LINENO: checking for $ac_word" >&5
5639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640if test "${ac_cv_prog_have_autoconf+set}" = set; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643  if test -n "$have_autoconf"; then
5644  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649  IFS=$as_save_IFS
5650  test -z "$as_dir" && as_dir=.
5651  for ac_exec_ext in '' $ac_executable_extensions; do
5652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653    ac_cv_prog_have_autoconf="yes"
5654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655    break 2
5656  fi
5657done
5658done
5659
5660  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5661fi
5662fi
5663have_autoconf=$ac_cv_prog_have_autoconf
5664if test -n "$have_autoconf"; then
5665  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5666echo "${ECHO_T}$have_autoconf" >&6
5667else
5668  echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6
5670fi
5671
5672    if test $have_autoconf = no; then
5673      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5674echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5675   { (exit 1); exit 1; }; }
5676    fi
5677
5678    # Check whether autoconf is the correct version
5679    correct_version='2.59'
5680    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5681    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5682echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5683    autoconf --version > confauto.out 2>&1
5684    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5685      echo "$as_me:$LINENO: result: yes" >&5
5686echo "${ECHO_T}yes" >&6
5687    else
5688      rm -f confauto.out
5689      echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5692echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5693   { (exit 1); exit 1; }; }
5694    fi
5695    rm -f confauto.out
5696
5697    # Check if the executable autoconf is picked up from the correct location
5698    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5699echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5700    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5701    autoconf_dir=`cd $autoconf_dir; pwd`
5702    if test x$AUTOTOOLS_DIR = x; then
5703      want_dir=$AUTOTOOLS_DFLT/bin
5704    else
5705      want_dir=$AUTOTOOLS_DIR/bin
5706    fi
5707    if test $autoconf_dir = `cd $want_dir; pwd`; then
5708      echo "$as_me:$LINENO: result: yes" >&5
5709echo "${ECHO_T}yes" >&6
5710    else
5711      rm -f confauto.out
5712      echo "$as_me:$LINENO: result: no" >&5
5713echo "${ECHO_T}no" >&6
5714      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5715echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5716   { (exit 1); exit 1; }; }
5717    fi
5718
5719    # Check if we have automake
5720    # Extract the first word of "automake", so it can be a program name with args.
5721set dummy automake; ac_word=$2
5722echo "$as_me:$LINENO: checking for $ac_word" >&5
5723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5724if test "${ac_cv_prog_have_automake+set}" = set; then
5725  echo $ECHO_N "(cached) $ECHO_C" >&6
5726else
5727  if test -n "$have_automake"; then
5728  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5729else
5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH
5732do
5733  IFS=$as_save_IFS
5734  test -z "$as_dir" && as_dir=.
5735  for ac_exec_ext in '' $ac_executable_extensions; do
5736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737    ac_cv_prog_have_automake="yes"
5738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5739    break 2
5740  fi
5741done
5742done
5743
5744  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5745fi
5746fi
5747have_automake=$ac_cv_prog_have_automake
5748if test -n "$have_automake"; then
5749  echo "$as_me:$LINENO: result: $have_automake" >&5
5750echo "${ECHO_T}$have_automake" >&6
5751else
5752  echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754fi
5755
5756    if test $have_automake = no; then
5757      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5758echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5759   { (exit 1); exit 1; }; }
5760    fi
5761
5762    # Check whether automake is the correct version
5763    correct_version='1.9.6'
5764    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5765    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5766echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5767    automake --version > confauto.out 2>&1
5768    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5769      echo "$as_me:$LINENO: result: yes" >&5
5770echo "${ECHO_T}yes" >&6
5771    else
5772      rm -f confauto.out
5773      echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6
5775      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5776echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5777   { (exit 1); exit 1; }; }
5778    fi
5779    rm -f confauto.out
5780
5781    # Check if the executable automake is picked up from the correct location
5782    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5783echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5784    automake_dir=`which automake | sed -e 's=/automake=='`
5785    automake_dir=`cd $automake_dir; pwd`
5786    if test x$AUTOTOOLS_DIR = x; then
5787      want_dir=$AUTOTOOLS_DFLT/bin
5788    else
5789      want_dir=$AUTOTOOLS_DIR/bin
5790    fi
5791    if test $automake_dir = `cd $want_dir; pwd`; then
5792      echo "$as_me:$LINENO: result: yes" >&5
5793echo "${ECHO_T}yes" >&6
5794    else
5795      rm -f confauto.out
5796      echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5799echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5800   { (exit 1); exit 1; }; }
5801    fi
5802
5803    # Check if this is the correct version of libtool (with escaped dots)
5804    if test x$AUTOTOOLS_DIR = x; then
5805      want_dir=$AUTOTOOLS_DFLT/share
5806    else
5807      want_dir=$AUTOTOOLS_DIR/share
5808    fi
5809    correct_version='1.5.22'
5810    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5811    if test -r $want_dir/libtool/ltmain.sh; then
5812  have_ltmain=yes
5813  :
5814else
5815  have_ltmain=no
5816  :
5817fi
5818
5819    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5820echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5821    if test $have_ltmain = yes; then
5822    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5823        echo "$as_me:$LINENO: result: yes" >&5
5824echo "${ECHO_T}yes" >&6
5825      else
5826        echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5829echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5830   { (exit 1); exit 1; }; }
5831      fi
5832    else
5833      echo "$as_me:$LINENO: result: no" >&5
5834echo "${ECHO_T}no" >&6
5835      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5836echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5837   { (exit 1); exit 1; }; }
5838    fi
5839  fi
5840
5841  # Check if we can find the libtool file
5842  if test x$AUTOTOOLS_DIR = x; then
5843    want_dir=$AUTOTOOLS_DFLT/share
5844  else
5845    want_dir=$AUTOTOOLS_DIR/share
5846  fi
5847  if test -r $want_dir/aclocal/libtool.m4; then
5848  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5849  :
5850else
5851  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5852echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5853   { (exit 1); exit 1; }; }
5854  :
5855fi
5856
5857
5858  # Check if we have an Externals file
5859  if test -r $srcdir/Externals; then
5860    coin_have_externals=yes
5861  fi
5862  # Check if subversion is installed and understands https
5863  # Extract the first word of "svn", so it can be a program name with args.
5864set dummy svn; ac_word=$2
5865echo "$as_me:$LINENO: checking for $ac_word" >&5
5866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867if test "${ac_cv_prog_have_svn+set}" = set; then
5868  echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870  if test -n "$have_svn"; then
5871  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878  for ac_exec_ext in '' $ac_executable_extensions; do
5879  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880    ac_cv_prog_have_svn="yes"
5881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882    break 2
5883  fi
5884done
5885done
5886
5887  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5888fi
5889fi
5890have_svn=$ac_cv_prog_have_svn
5891if test -n "$have_svn"; then
5892  echo "$as_me:$LINENO: result: $have_svn" >&5
5893echo "${ECHO_T}$have_svn" >&6
5894else
5895  echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6
5897fi
5898
5899  if test x$have_svn = xyes; then
5900    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5901echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5902if test "${ac_cv_svn_understands_https+set}" = set; then
5903  echo $ECHO_N "(cached) $ECHO_C" >&6
5904else
5905  svn --version > confauto.out 2>&1
5906                    if $EGREP https confauto.out >/dev/null 2>&1; then
5907                      ac_cv_svn_understands_https=yes
5908                    else
5909                      ac_cv_svn_understands_https=no
5910                      have_svn=no
5911                      ac_cv_prog_have_svn=no
5912                    fi
5913                    rm -f confauto.out
5914fi
5915echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5916echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5917  fi
5918
5919  # Find the location of the BuildTools directory
5920  BUILDTOOLSDIR=
5921  if test -r $srcdir/BuildTools/coin.m4; then
5922    BUILDTOOLSDIR=$srcdir/BuildTools
5923  else
5924    if test -r $srcdir/../BuildTools/coin.m4; then
5925      BUILDTOOLSDIR=$srcdir/../BuildTools
5926    else
5927      if test -r $srcdir/../../BuildTools/coin.m4; then
5928        BUILDTOOLSDIR=$srcdir/../../BuildTools
5929      else
5930        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5931echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5932   { (exit 1); exit 1; }; }
5933      fi
5934    fi
5935  fi
5936
5937
5938  # The following variable is set to the name of the directory where
5939  # the autotool scripts are located
5940
5941  AUX_DIR=$ac_aux_dir
5942fi
5943
5944# helpful variable for the base directory of this package
5945abs_source_dir=`cd $srcdir; pwd`
5946
5947
5948# Stuff for example Makefiles
5949if test x$prefix = xNONE; then
5950  full_prefix=$ac_default_prefix
5951else
5952  full_prefix=$prefix
5953fi
5954full_prefix=`cd $full_prefix ; pwd`
5955
5956abs_lib_dir=$full_prefix/lib/coin
5957
5958abs_include_dir=$full_prefix/include
5959
5960abs_bin_dir=$full_prefix/bin
5961
5962
5963
5964if test $coin_have_externals = yes && test x$have_svn = xyes; then
5965  HAVE_EXTERNALS_TRUE=
5966  HAVE_EXTERNALS_FALSE='#'
5967else
5968  HAVE_EXTERNALS_TRUE='#'
5969  HAVE_EXTERNALS_FALSE=
5970fi
5971
5972
5973# AC_MSG_NOTICE([End automake initialisation.])
5974
5975
5976
5977# Initialize automake
5978{
5979
5980
5981
5982# START
5983
5984# Test if force_shared has been set
5985if test "x" = xforce_shared; then
5986  if test x$enable_shared = xno; then
5987    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5988echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5989   { (exit 1); exit 1; }; }
5990  fi
5991  enable_shared=yes;
5992else
5993  # On Cygwin and AIX, building DLLs doesn't work
5994  case $build in
5995    *-cygwin*)
5996      coin_disable_shared=yes
5997      platform=Cygwin
5998    ;;
5999    *-aix*)
6000      coin_disable_shared=yes
6001      platform=AIX
6002    ;;
6003    *-mingw*)
6004      coin_disable_shared=yes
6005      platform="Msys"
6006#      case "$CXX" in
6007#        cl*)
6008#          coin_disable_shared=yes
6009#          platform="Msys with cl"
6010#      ;;
6011#      esac
6012    ;;
6013  esac
6014fi
6015if test x"$coin_disable_shared" = xyes; then
6016  if test x"$enable_shared" = xyes; then
6017    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
6018echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
6019  fi
6020  enable_shared=no
6021fi
6022# By default, we only want the shared objects to be compiled
6023# Check whether --enable-static or --disable-static was given.
6024if test "${enable_static+set}" = set; then
6025  enableval="$enable_static"
6026  p=${PACKAGE-default}
6027    case $enableval in
6028    yes) enable_static=yes ;;
6029    no) enable_static=no ;;
6030    *)
6031     enable_static=no
6032      # Look at the argument we got.  We use all the common list separators.
6033      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6034      for pkg in $enableval; do
6035        IFS="$lt_save_ifs"
6036        if test "X$pkg" = "X$p"; then
6037          enable_static=yes
6038        fi
6039      done
6040      IFS="$lt_save_ifs"
6041      ;;
6042    esac
6043else
6044  enable_static=no
6045fi;
6046
6047
6048
6049
6050# Initialize automake
6051
6052
6053# AC_MSG_NOTICE([Beginning automake initialisation.])
6054# Stuff for automake
6055# test to see if srcdir already configured
6056if test "`cd $srcdir && pwd`" != "`pwd`" &&
6057   test -f $srcdir/config.status; then
6058  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6059echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6060   { (exit 1); exit 1; }; }
6061fi
6062
6063# test whether we have cygpath
6064if test -z "$CYGPATH_W"; then
6065  if (cygpath --version) >/dev/null 2>/dev/null; then
6066    CYGPATH_W='cygpath -w'
6067  else
6068    CYGPATH_W=echo
6069  fi
6070fi
6071
6072
6073# Define the identity of the package.
6074 PACKAGE='thirdpartyfiltersqp'
6075 VERSION='1.1'
6076
6077
6078cat >>confdefs.h <<_ACEOF
6079#define PACKAGE "$PACKAGE"
6080_ACEOF
6081
6082
6083cat >>confdefs.h <<_ACEOF
6084#define VERSION "$VERSION"
6085_ACEOF
6086
6087# Some tools Automake needs.
6088
6089ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6090
6091
6092AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6093
6094
6095AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6096
6097
6098AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6099
6100
6101MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6102
6103install_sh=${install_sh-"$am_aux_dir/install-sh"}
6104
6105# Installed binaries are usually stripped using `strip' when the user
6106# run `make install-strip'.  However `strip' might not be the right
6107# tool to use in cross-compilation environments, therefore Automake
6108# will honor the `STRIP' environment variable to overrule this program.
6109if test "$cross_compiling" != no; then
6110  if test -n "$ac_tool_prefix"; then
6111  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6112set dummy ${ac_tool_prefix}strip; ac_word=$2
6113echo "$as_me:$LINENO: checking for $ac_word" >&5
6114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6115if test "${ac_cv_prog_STRIP+set}" = set; then
6116  echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118  if test -n "$STRIP"; then
6119  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124  IFS=$as_save_IFS
6125  test -z "$as_dir" && as_dir=.
6126  for ac_exec_ext in '' $ac_executable_extensions; do
6127  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6129    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130    break 2
6131  fi
6132done
6133done
6134
6135fi
6136fi
6137STRIP=$ac_cv_prog_STRIP
6138if test -n "$STRIP"; then
6139  echo "$as_me:$LINENO: result: $STRIP" >&5
6140echo "${ECHO_T}$STRIP" >&6
6141else
6142  echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6
6144fi
6145
6146fi
6147if test -z "$ac_cv_prog_STRIP"; then
6148  ac_ct_STRIP=$STRIP
6149  # Extract the first word of "strip", so it can be a program name with args.
6150set dummy strip; ac_word=$2
6151echo "$as_me:$LINENO: checking for $ac_word" >&5
6152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6154  echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156  if test -n "$ac_ct_STRIP"; then
6157  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162  IFS=$as_save_IFS
6163  test -z "$as_dir" && as_dir=.
6164  for ac_exec_ext in '' $ac_executable_extensions; do
6165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166    ac_cv_prog_ac_ct_STRIP="strip"
6167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168    break 2
6169  fi
6170done
6171done
6172
6173  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6174fi
6175fi
6176ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6177if test -n "$ac_ct_STRIP"; then
6178  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6179echo "${ECHO_T}$ac_ct_STRIP" >&6
6180else
6181  echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6
6183fi
6184
6185  STRIP=$ac_ct_STRIP
6186else
6187  STRIP="$ac_cv_prog_STRIP"
6188fi
6189
6190fi
6191INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6192
6193# We need awk for the "check" target.  The system "awk" is bad on
6194# some platforms.
6195# Always define AMTAR for backward compatibility.
6196
6197AMTAR=${AMTAR-"${am_missing_run}tar"}
6198
6199am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6200
6201
6202
6203
6204depcc="$CC"   am_compiler_list=
6205
6206echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6207echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6208if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6209  echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6212  # We make a subdir and do the tests there.  Otherwise we can end up
6213  # making bogus files that we don't know about and never remove.  For
6214  # instance it was reported that on HP-UX the gcc test will end up
6215  # making a dummy file named `D' -- because `-MD' means `put the output
6216  # in D'.
6217  mkdir conftest.dir
6218  # Copy depcomp to subdir because otherwise we won't find it if we're
6219  # using a relative directory.
6220  cp "$am_depcomp" conftest.dir
6221  cd conftest.dir
6222  # We will build objects and dependencies in a subdirectory because
6223  # it helps to detect inapplicable dependency modes.  For instance
6224  # both Tru64's cc and ICC support -MD to output dependencies as a
6225  # side effect of compilation, but ICC will put the dependencies in
6226  # the current directory while Tru64 will put them in the object
6227  # directory.
6228  mkdir sub
6229
6230  am_cv_CC_dependencies_compiler_type=none
6231  if test "$am_compiler_list" = ""; then
6232     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6233  fi
6234  for depmode in $am_compiler_list; do
6235    # Setup a source with many dependencies, because some compilers
6236    # like to wrap large dependency lists on column 80 (with \), and
6237    # we should not choose a depcomp mode which is confused by this.
6238    #
6239    # We need to recreate these files for each test, as the compiler may
6240    # overwrite some of them when testing with obscure command lines.
6241    # This happens at least with the AIX C compiler.
6242    : > sub/conftest.c
6243    for i in 1 2 3 4 5 6; do
6244      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6245      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6246      # Solaris 8's {/usr,}/bin/sh.
6247      touch sub/conftst$i.h
6248    done
6249    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6250
6251    case $depmode in
6252    nosideeffect)
6253      # after this tag, mechanisms are not by side-effect, so they'll
6254      # only be used when explicitly requested
6255      if test "x$enable_dependency_tracking" = xyes; then
6256        continue
6257      else
6258        break
6259      fi
6260      ;;
6261    none) break ;;
6262    esac
6263    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6264    # mode.  It turns out that the SunPro C++ compiler does not properly
6265    # handle `-M -o', and we need to detect this.
6266    if depmode=$depmode \
6267       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6268       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6269       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6270         >/dev/null 2>conftest.err &&
6271       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6272       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6273       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6274      # icc doesn't choke on unknown options, it will just issue warnings
6275      # or remarks (even with -Werror).  So we grep stderr for any message
6276      # that says an option was ignored or not supported.
6277      # When given -MP, icc 7.0 and 7.1 complain thusly:
6278      #   icc: Command line warning: ignoring option '-M'; no argument required
6279      # The diagnosis changed in icc 8.0:
6280      #   icc: Command line remark: option '-MP' not supported
6281      if (grep 'ignoring option' conftest.err ||
6282          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6283        am_cv_CC_dependencies_compiler_type=$depmode
6284        break
6285      fi
6286    fi
6287  done
6288
6289  cd ..
6290  rm -rf conftest.dir
6291else
6292  am_cv_CC_dependencies_compiler_type=none
6293fi
6294
6295fi
6296echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6297echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6298CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6299
6300
6301
6302if
6303  test "x$enable_dependency_tracking" != xno \
6304  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6305  am__fastdepCC_TRUE=
6306  am__fastdepCC_FALSE='#'
6307else
6308  am__fastdepCC_TRUE='#'
6309  am__fastdepCC_FALSE=
6310fi
6311
6312
6313
6314echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6315echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6316    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6317if test "${enable_maintainer_mode+set}" = set; then
6318  enableval="$enable_maintainer_mode"
6319  USE_MAINTAINER_MODE=$enableval
6320else
6321  USE_MAINTAINER_MODE=no
6322fi;
6323  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6324echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6325
6326
6327if test $USE_MAINTAINER_MODE = yes; then
6328  MAINTAINER_MODE_TRUE=
6329  MAINTAINER_MODE_FALSE='#'
6330else
6331  MAINTAINER_MODE_TRUE='#'
6332  MAINTAINER_MODE_FALSE=
6333fi
6334
6335  MAINT=$MAINTAINER_MODE_TRUE
6336
6337
6338
6339coin_have_externals=no
6340if test "$enable_maintainer_mode" = yes; then
6341
6342  # If maintainer mode is chosen, we make sure that the correct versions
6343  # of the tools are used, and that we know where libtool.m4 is (to
6344  # recreate acinclude.m4)
6345
6346
6347  LIBTOOLM4=
6348  # Normally, $HOME
6349  AUTOTOOLS_DFLT=$HOME
6350
6351  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6352echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6353if test "${ac_cv_use_correct_autotools+set}" = set; then
6354  echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356  ac_cv_use_correct_autotools=check
6357fi
6358echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6359echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6360
6361  if test $ac_cv_use_correct_autotools = check; then
6362    ac_cv_use_correct_autotools=yes
6363    # Check if we have autoconf
6364    # Extract the first word of "autoconf", so it can be a program name with args.
6365set dummy autoconf; ac_word=$2
6366echo "$as_me:$LINENO: checking for $ac_word" >&5
6367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6368if test "${ac_cv_prog_have_autoconf+set}" = set; then
6369  echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371  if test -n "$have_autoconf"; then
6372  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6373else
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377  IFS=$as_save_IFS
6378  test -z "$as_dir" && as_dir=.
6379  for ac_exec_ext in '' $ac_executable_extensions; do
6380  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381    ac_cv_prog_have_autoconf="yes"
6382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383    break 2
6384  fi
6385done
6386done
6387
6388  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6389fi
6390fi
6391have_autoconf=$ac_cv_prog_have_autoconf
6392if test -n "$have_autoconf"; then
6393  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6394echo "${ECHO_T}$have_autoconf" >&6
6395else
6396  echo "$as_me:$LINENO: result: no" >&5
6397echo "${ECHO_T}no" >&6
6398fi
6399
6400    if test $have_autoconf = no; then
6401      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6402echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6403   { (exit 1); exit 1; }; }
6404    fi
6405
6406    # Check whether autoconf is the correct version
6407    correct_version='2.59'
6408    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6409    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6410echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6411    autoconf --version > confauto.out 2>&1
6412    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6413      echo "$as_me:$LINENO: result: yes" >&5
6414echo "${ECHO_T}yes" >&6
6415    else
6416      rm -f confauto.out
6417      echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6
6419      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6420echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6421   { (exit 1); exit 1; }; }
6422    fi
6423    rm -f confauto.out
6424
6425    # Check if the executable autoconf is picked up from the correct location
6426    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6427echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6428    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6429    autoconf_dir=`cd $autoconf_dir; pwd`
6430    if test x$AUTOTOOLS_DIR = x; then
6431      want_dir=$AUTOTOOLS_DFLT/bin
6432    else
6433      want_dir=$AUTOTOOLS_DIR/bin
6434    fi
6435    if test $autoconf_dir = `cd $want_dir; pwd`; then
6436      echo "$as_me:$LINENO: result: yes" >&5
6437echo "${ECHO_T}yes" >&6
6438    else
6439      rm -f confauto.out
6440      echo "$as_me:$LINENO: result: no" >&5
6441echo "${ECHO_T}no" >&6
6442      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6443echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6444   { (exit 1); exit 1; }; }
6445    fi
6446
6447    # Check if we have automake
6448    # Extract the first word of "automake", so it can be a program name with args.
6449set dummy automake; ac_word=$2
6450echo "$as_me:$LINENO: checking for $ac_word" >&5
6451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6452if test "${ac_cv_prog_have_automake+set}" = set; then
6453  echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455  if test -n "$have_automake"; then
6456  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6457else
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461  IFS=$as_save_IFS
6462  test -z "$as_dir" && as_dir=.
6463  for ac_exec_ext in '' $ac_executable_extensions; do
6464  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465    ac_cv_prog_have_automake="yes"
6466    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467    break 2
6468  fi
6469done
6470done
6471
6472  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6473fi
6474fi
6475have_automake=$ac_cv_prog_have_automake
6476if test -n "$have_automake"; then
6477  echo "$as_me:$LINENO: result: $have_automake" >&5
6478echo "${ECHO_T}$have_automake" >&6
6479else
6480  echo "$as_me:$LINENO: result: no" >&5
6481echo "${ECHO_T}no" >&6
6482fi
6483
6484    if test $have_automake = no; then
6485      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6486echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6487   { (exit 1); exit 1; }; }
6488    fi
6489
6490    # Check whether automake is the correct version
6491    correct_version='1.9.6'
6492    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6493    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6494echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6495    automake --version > confauto.out 2>&1
6496    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6497      echo "$as_me:$LINENO: result: yes" >&5
6498echo "${ECHO_T}yes" >&6
6499    else
6500      rm -f confauto.out
6501      echo "$as_me:$LINENO: result: no" >&5
6502echo "${ECHO_T}no" >&6
6503      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6504echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6505   { (exit 1); exit 1; }; }
6506    fi
6507    rm -f confauto.out
6508
6509    # Check if the executable automake is picked up from the correct location
6510    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6511echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6512    automake_dir=`which automake | sed -e 's=/automake=='`
6513    automake_dir=`cd $automake_dir; pwd`
6514    if test x$AUTOTOOLS_DIR = x; then
6515      want_dir=$AUTOTOOLS_DFLT/bin
6516    else
6517      want_dir=$AUTOTOOLS_DIR/bin
6518    fi
6519    if test $automake_dir = `cd $want_dir; pwd`; then
6520      echo "$as_me:$LINENO: result: yes" >&5
6521echo "${ECHO_T}yes" >&6
6522    else
6523      rm -f confauto.out
6524      echo "$as_me:$LINENO: result: no" >&5
6525echo "${ECHO_T}no" >&6
6526      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6527echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6528   { (exit 1); exit 1; }; }
6529    fi
6530
6531    # Check if this is the correct version of libtool (with escaped dots)
6532    if test x$AUTOTOOLS_DIR = x; then
6533      want_dir=$AUTOTOOLS_DFLT/share
6534    else
6535      want_dir=$AUTOTOOLS_DIR/share
6536    fi
6537    correct_version='1.5.22'
6538    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6539    if test -r $want_dir/libtool/ltmain.sh; then
6540  have_ltmain=yes
6541  :
6542else
6543  have_ltmain=no
6544  :
6545fi
6546
6547    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6548echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6549    if test $have_ltmain = yes; then
6550    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6551        echo "$as_me:$LINENO: result: yes" >&5
6552echo "${ECHO_T}yes" >&6
6553      else
6554        echo "$as_me:$LINENO: result: no" >&5
6555echo "${ECHO_T}no" >&6
6556        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6557echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6558   { (exit 1); exit 1; }; }
6559      fi
6560    else
6561      echo "$as_me:$LINENO: result: no" >&5
6562echo "${ECHO_T}no" >&6
6563      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6564echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6565   { (exit 1); exit 1; }; }
6566    fi
6567  fi
6568
6569  # Check if we can find the libtool file
6570  if test x$AUTOTOOLS_DIR = x; then
6571    want_dir=$AUTOTOOLS_DFLT/share
6572  else
6573    want_dir=$AUTOTOOLS_DIR/share
6574  fi
6575  if test -r $want_dir/aclocal/libtool.m4; then
6576  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6577  :
6578else
6579  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6580echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6581   { (exit 1); exit 1; }; }
6582  :
6583fi
6584
6585
6586  # Check if we have an Externals file
6587  if test -r $srcdir/Externals; then
6588    coin_have_externals=yes
6589  fi
6590  # Check if subversion is installed and understands https
6591  # Extract the first word of "svn", so it can be a program name with args.
6592set dummy svn; ac_word=$2
6593echo "$as_me:$LINENO: checking for $ac_word" >&5
6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595if test "${ac_cv_prog_have_svn+set}" = set; then
6596  echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598  if test -n "$have_svn"; then
6599  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6600else
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604  IFS=$as_save_IFS
6605  test -z "$as_dir" && as_dir=.
6606  for ac_exec_ext in '' $ac_executable_extensions; do
6607  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608    ac_cv_prog_have_svn="yes"
6609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610    break 2
6611  fi
6612done
6613done
6614
6615  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6616fi
6617fi
6618have_svn=$ac_cv_prog_have_svn
6619if test -n "$have_svn"; then
6620  echo "$as_me:$LINENO: result: $have_svn" >&5
6621echo "${ECHO_T}$have_svn" >&6
6622else
6623  echo "$as_me:$LINENO: result: no" >&5
6624echo "${ECHO_T}no" >&6
6625fi
6626
6627  if test x$have_svn = xyes; then
6628    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6629echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6630if test "${ac_cv_svn_understands_https+set}" = set; then
6631  echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633  svn --version > confauto.out 2>&1
6634                    if $EGREP https confauto.out >/dev/null 2>&1; then
6635                      ac_cv_svn_understands_https=yes
6636                    else
6637                      ac_cv_svn_understands_https=no
6638                      have_svn=no
6639                      ac_cv_prog_have_svn=no
6640                    fi
6641                    rm -f confauto.out
6642fi
6643echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6644echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6645  fi
6646
6647  # Find the location of the BuildTools directory
6648  BUILDTOOLSDIR=
6649  if test -r $srcdir/BuildTools/coin.m4; then
6650    BUILDTOOLSDIR=$srcdir/BuildTools
6651  else
6652    if test -r $srcdir/../BuildTools/coin.m4; then
6653      BUILDTOOLSDIR=$srcdir/../BuildTools
6654    else
6655      if test -r $srcdir/../../BuildTools/coin.m4; then
6656        BUILDTOOLSDIR=$srcdir/../../BuildTools
6657      else
6658        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6659echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6660   { (exit 1); exit 1; }; }
6661      fi
6662    fi
6663  fi
6664
6665
6666  # The following variable is set to the name of the directory where
6667  # the autotool scripts are located
6668
6669  AUX_DIR=$ac_aux_dir
6670fi
6671
6672# helpful variable for the base directory of this package
6673abs_source_dir=`cd $srcdir; pwd`
6674
6675
6676# Stuff for example Makefiles
6677if test x$prefix = xNONE; then
6678  full_prefix=$ac_default_prefix
6679else
6680  full_prefix=$prefix
6681fi
6682full_prefix=`cd $full_prefix ; pwd`
6683
6684abs_lib_dir=$full_prefix/lib/coin
6685
6686abs_include_dir=$full_prefix/include
6687
6688abs_bin_dir=$full_prefix/bin
6689
6690
6691
6692if test $coin_have_externals = yes && test x$have_svn = xyes; then
6693  HAVE_EXTERNALS_TRUE=
6694  HAVE_EXTERNALS_FALSE='#'
6695else
6696  HAVE_EXTERNALS_TRUE='#'
6697  HAVE_EXTERNALS_FALSE=
6698fi
6699
6700
6701# AC_MSG_NOTICE([End automake initialisation.])
6702
6703
6704
6705LIBTOOL=
6706if test -r ../libtool; then
6707  coin_config_dir=..
6708  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6709fi
6710if test "x$LIBTOOL" = x; then
6711  if test -r ../../libtool; then
6712    coin_config_dir=../..
6713    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6714  fi
6715fi
6716
6717if test "x$LIBTOOL" = x; then
6718# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6719  # Stuff for libtool
6720  # Check whether --enable-shared or --disable-shared was given.
6721if test "${enable_shared+set}" = set; then
6722  enableval="$enable_shared"
6723  p=${PACKAGE-default}
6724    case $enableval in
6725    yes) enable_shared=yes ;;
6726    no) enable_shared=no ;;
6727    *)
6728      enable_shared=no
6729      # Look at the argument we got.  We use all the common list separators.
6730      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6731      for pkg in $enableval; do
6732        IFS="$lt_save_ifs"
6733        if test "X$pkg" = "X$p"; then
6734          enable_shared=yes
6735        fi
6736      done
6737      IFS="$lt_save_ifs"
6738      ;;
6739    esac
6740else
6741  enable_shared=yes
6742fi;
6743
6744# Check whether --enable-fast-install or --disable-fast-install was given.
6745if test "${enable_fast_install+set}" = set; then
6746  enableval="$enable_fast_install"
6747  p=${PACKAGE-default}
6748    case $enableval in
6749    yes) enable_fast_install=yes ;;
6750    no) enable_fast_install=no ;;
6751    *)
6752      enable_fast_install=no
6753      # Look at the argument we got.  We use all the common list separators.
6754      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6755      for pkg in $enableval; do
6756        IFS="$lt_save_ifs"
6757        if test "X$pkg" = "X$p"; then
6758          enable_fast_install=yes
6759        fi
6760      done
6761      IFS="$lt_save_ifs"
6762      ;;
6763    esac
6764else
6765  enable_fast_install=yes
6766fi;
6767
6768echo "$as_me:$LINENO: checking host system type" >&5
6769echo $ECHO_N "checking host system type... $ECHO_C" >&6
6770if test "${ac_cv_host+set}" = set; then
6771  echo $ECHO_N "(cached) $ECHO_C" >&6
6772else
6773  ac_cv_host_alias=$host_alias
6774test -z "$ac_cv_host_alias" &&
6775  ac_cv_host_alias=$ac_cv_build_alias
6776ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6777  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6778echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6779   { (exit 1); exit 1; }; }
6780
6781fi
6782echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6783echo "${ECHO_T}$ac_cv_host" >&6
6784host=$ac_cv_host
6785host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6786host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6787host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6788
6789
6790echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6791echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6792if test "${lt_cv_path_SED+set}" = set; then
6793  echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795  # Loop through the user's path and test for sed and gsed.
6796# Then use that list of sed's as ones to test for truncation.
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800  IFS=$as_save_IFS
6801  test -z "$as_dir" && as_dir=.
6802  for lt_ac_prog in sed gsed; do
6803    for ac_exec_ext in '' $ac_executable_extensions; do
6804      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6805        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6806      fi
6807    done
6808  done
6809done
6810lt_ac_max=0
6811lt_ac_count=0
6812# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6813# along with /bin/sed that truncates output.
6814for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6815  test ! -f $lt_ac_sed && continue
6816  cat /dev/null > conftest.in
6817  lt_ac_count=0
6818  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6819  # Check for GNU sed and select it if it is found.
6820  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6821    lt_cv_path_SED=$lt_ac_sed
6822    break
6823  fi
6824  while true; do
6825    cat conftest.in conftest.in >conftest.tmp
6826    mv conftest.tmp conftest.in
6827    cp conftest.in conftest.nl
6828    echo >>conftest.nl
6829    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6830    cmp -s conftest.out conftest.nl || break
6831    # 10000 chars as input seems more than enough
6832    test $lt_ac_count -gt 10 && break
6833    lt_ac_count=`expr $lt_ac_count + 1`
6834    if test $lt_ac_count -gt $lt_ac_max; then
6835      lt_ac_max=$lt_ac_count
6836      lt_cv_path_SED=$lt_ac_sed
6837    fi
6838  done
6839done
6840
6841fi
6842
6843SED=$lt_cv_path_SED
6844echo "$as_me:$LINENO: result: $SED" >&5
6845echo "${ECHO_T}$SED" >&6
6846
6847
6848# Check whether --with-gnu-ld or --without-gnu-ld was given.
6849if test "${with_gnu_ld+set}" = set; then
6850  withval="$with_gnu_ld"
6851  test "$withval" = no || with_gnu_ld=yes
6852else
6853  with_gnu_ld=no
6854fi;
6855ac_prog=ld
6856if test "$GCC" = yes; then
6857  # Check if gcc -print-prog-name=ld gives a path.
6858  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6859echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6860  case $host in
6861  *-*-mingw*)
6862    # gcc leaves a trailing carriage return which upsets mingw
6863    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6864  *)
6865    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6866  esac
6867  case $ac_prog in
6868    # Accept absolute paths.
6869    [\\/]* | ?:[\\/]*)
6870      re_direlt='/[^/][^/]*/\.\./'
6871      # Canonicalize the pathname of ld
6872      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6873      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6874        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6875      done
6876      test -z "$LD" && LD="$ac_prog"
6877      ;;
6878  "")
6879    # If it fails, then pretend we aren't using GCC.
6880    ac_prog=ld
6881    ;;
6882  *)
6883    # If it is relative, then search for the first ld in PATH.
6884    with_gnu_ld=unknown
6885    ;;
6886  esac
6887elif test "$with_gnu_ld" = yes; then
6888  echo "$as_me:$LINENO: checking for GNU ld" >&5
6889echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6890else
6891  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6892echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6893fi
6894if test "${lt_cv_path_LD+set}" = set; then
6895  echo $ECHO_N "(cached) $ECHO_C" >&6
6896else
6897  if test -z "$LD"; then
6898  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6899  for ac_dir in $PATH; do
6900    IFS="$lt_save_ifs"
6901    test -z "$ac_dir" && ac_dir=.
6902    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6903      lt_cv_path_LD="$ac_dir/$ac_prog"
6904      # Check to see if the program is GNU ld.  I'd rather use --version,
6905      # but apparently some variants of GNU ld only accept -v.
6906      # Break only if it was the GNU/non-GNU ld that we prefer.
6907      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6908      *GNU* | *'with BFD'*)
6909        test "$with_gnu_ld" != no && break
6910        ;;
6911      *)
6912        test "$with_gnu_ld" != yes && break
6913        ;;
6914      esac
6915    fi
6916  done
6917  IFS="$lt_save_ifs"
6918else
6919  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6920fi
6921fi
6922
6923LD="$lt_cv_path_LD"
6924if test -n "$LD"; then
6925  echo "$as_me:$LINENO: result: $LD" >&5
6926echo "${ECHO_T}$LD" >&6
6927else
6928  echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6
6930fi
6931test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6932echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6933   { (exit 1); exit 1; }; }
6934echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6935echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6936if test "${lt_cv_prog_gnu_ld+set}" = set; then
6937  echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6940case `$LD -v 2>&1 </dev/null` in
6941*GNU* | *'with BFD'*)
6942  lt_cv_prog_gnu_ld=yes
6943  ;;
6944*)
6945  lt_cv_prog_gnu_ld=no
6946  ;;
6947esac
6948fi
6949echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6950echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6951with_gnu_ld=$lt_cv_prog_gnu_ld
6952
6953
6954echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6955echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6956if test "${lt_cv_ld_reload_flag+set}" = set; then
6957  echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959  lt_cv_ld_reload_flag='-r'
6960fi
6961echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6962echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6963reload_flag=$lt_cv_ld_reload_flag
6964case $reload_flag in
6965"" | " "*) ;;
6966*) reload_flag=" $reload_flag" ;;
6967esac
6968reload_cmds='$LD$reload_flag -o $output$reload_objs'
6969case $host_os in
6970  darwin*)
6971    if test "$GCC" = yes; then
6972      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6973    else
6974      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6975    fi
6976    ;;
6977esac
6978
6979echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6980echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6981if test "${lt_cv_path_NM+set}" = set; then
6982  echo $ECHO_N "(cached) $ECHO_C" >&6
6983else
6984  if test -n "$NM"; then
6985  # Let the user override the test.
6986  lt_cv_path_NM="$NM"
6987else
6988  lt_nm_to_check="${ac_tool_prefix}nm"
6989  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6990    lt_nm_to_check="$lt_nm_to_check nm"
6991  fi
6992  for lt_tmp_nm in $lt_nm_to_check; do
6993    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6994    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6995      IFS="$lt_save_ifs"
6996      test -z "$ac_dir" && ac_dir=.
6997      tmp_nm="$ac_dir/$lt_tmp_nm"
6998      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6999        # Check to see if the nm accepts a BSD-compat flag.
7000        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7001        #   nm: unknown option "B" ignored
7002        # Tru64's nm complains that /dev/null is an invalid object file
7003        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7004        */dev/null* | *'Invalid file or object type'*)
7005          lt_cv_path_NM="$tmp_nm -B"
7006          break
7007          ;;
7008        *)
7009          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7010          */dev/null*)
7011            lt_cv_path_NM="$tmp_nm -p"
7012            break
7013            ;;
7014          *)
7015            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7016            continue # so that we can try to find one that supports BSD flags
7017            ;;
7018          esac
7019          ;;
7020        esac
7021      fi
7022    done
7023    IFS="$lt_save_ifs"
7024  done
7025  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7026fi
7027fi
7028echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7029echo "${ECHO_T}$lt_cv_path_NM" >&6
7030NM="$lt_cv_path_NM"
7031
7032echo "$as_me:$LINENO: checking whether ln -s works" >&5
7033echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7034LN_S=$as_ln_s
7035if test "$LN_S" = "ln -s"; then
7036  echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
7038else
7039  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7040echo "${ECHO_T}no, using $LN_S" >&6
7041fi
7042
7043echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7044echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7045if test "${lt_cv_deplibs_check_method+set}" = set; then
7046  echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048  lt_cv_file_magic_cmd='$MAGIC_CMD'
7049lt_cv_file_magic_test_file=
7050lt_cv_deplibs_check_method='unknown'
7051# Need to set the preceding variable on all platforms that support
7052# interlibrary dependencies.
7053# 'none' -- dependencies not supported.
7054# `unknown' -- same as none, but documents that we really don't know.
7055# 'pass_all' -- all dependencies passed with no checks.
7056# 'test_compile' -- check by making test program.
7057# 'file_magic [[regex]]' -- check by looking for files in library path
7058# which responds to the $file_magic_cmd with a given extended regex.
7059# If you have `file' or equivalent on your system and you're not sure
7060# whether `pass_all' will *always* work, you probably want this one.
7061
7062case $host_os in
7063aix4* | aix5*)
7064  lt_cv_deplibs_check_method=pass_all
7065  ;;
7066
7067beos*)
7068  lt_cv_deplibs_check_method=pass_all
7069  ;;
7070
7071bsdi[45]*)
7072  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7073  lt_cv_file_magic_cmd='/usr/bin/file -L'
7074  lt_cv_file_magic_test_file=/shlib/libc.so
7075  ;;
7076
7077cygwin*)
7078  # func_win32_libid is a shell function defined in ltmain.sh
7079  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7080  lt_cv_file_magic_cmd='func_win32_libid'
7081  ;;
7082
7083mingw* | pw32*)
7084  # Base MSYS/MinGW do not provide the 'file' command needed by
7085  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7086  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7087  lt_cv_file_magic_cmd='$OBJDUMP -f'
7088  ;;
7089
7090darwin* | rhapsody*)
7091  lt_cv_deplibs_check_method=pass_all
7092  ;;
7093
7094freebsd* | kfreebsd*-gnu | dragonfly*)
7095  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7096    case $host_cpu in
7097    i*86 )
7098      # Not sure whether the presence of OpenBSD here was a mistake.
7099      # Let's accept both of them until this is cleared up.
7100      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7101      lt_cv_file_magic_cmd=/usr/bin/file
7102      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7103      ;;
7104    esac
7105  else
7106    lt_cv_deplibs_check_method=pass_all
7107  fi
7108  ;;
7109
7110gnu*)
7111  lt_cv_deplibs_check_method=pass_all
7112  ;;
7113
7114hpux10.20* | hpux11*)
7115  lt_cv_file_magic_cmd=/usr/bin/file
7116  case $host_cpu in
7117  ia64*)
7118    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7119    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7120    ;;
7121  hppa*64*)
7122    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]'
7123    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7124    ;;
7125  *)
7126    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7127    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7128    ;;
7129  esac
7130  ;;
7131
7132interix3*)
7133  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7134  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7135  ;;
7136
7137irix5* | irix6* | nonstopux*)
7138  case $LD in
7139  *-32|*"-32 ") libmagic=32-bit;;
7140  *-n32|*"-n32 ") libmagic=N32;;
7141  *-64|*"-64 ") libmagic=64-bit;;
7142  *) libmagic=never-match;;
7143  esac
7144  lt_cv_deplibs_check_method=pass_all
7145  ;;
7146
7147# This must be Linux ELF.
7148linux*)
7149  lt_cv_deplibs_check_method=pass_all
7150  ;;
7151
7152netbsd*)
7153  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7154    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7155  else
7156    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7157  fi
7158  ;;
7159
7160newos6*)
7161  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7162  lt_cv_file_magic_cmd=/usr/bin/file
7163  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7164  ;;
7165
7166nto-qnx*)
7167  lt_cv_deplibs_check_method=unknown
7168  ;;
7169
7170openbsd*)
7171  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7172    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7173  else
7174    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7175  fi
7176  ;;
7177
7178osf3* | osf4* | osf5*)
7179  lt_cv_deplibs_check_method=pass_all
7180  ;;
7181
7182solaris*)
7183  lt_cv_deplibs_check_method=pass_all
7184  ;;
7185
7186sysv4 | sysv4.3*)
7187  case $host_vendor in
7188  motorola)
7189    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]'
7190    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7191    ;;
7192  ncr)
7193    lt_cv_deplibs_check_method=pass_all
7194    ;;
7195  sequent)
7196    lt_cv_file_magic_cmd='/bin/file'
7197    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7198    ;;
7199  sni)
7200    lt_cv_file_magic_cmd='/bin/file'
7201    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7202    lt_cv_file_magic_test_file=/lib/libc.so
7203    ;;
7204  siemens)
7205    lt_cv_deplibs_check_method=pass_all
7206    ;;
7207  pc)
7208    lt_cv_deplibs_check_method=pass_all
7209    ;;
7210  esac
7211  ;;
7212
7213sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7214  lt_cv_deplibs_check_method=pass_all
7215  ;;
7216esac
7217
7218fi
7219echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7220echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7221file_magic_cmd=$lt_cv_file_magic_cmd
7222deplibs_check_method=$lt_cv_deplibs_check_method
7223test -z "$deplibs_check_method" && deplibs_check_method=unknown
7224
7225
7226
7227
7228# If no C compiler was specified, use CC.
7229LTCC=${LTCC-"$CC"}
7230
7231# If no C compiler flags were specified, use CFLAGS.
7232LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7233
7234# Allow CC to be a program name with arguments.
7235compiler=$CC
7236
7237# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7238if test "${enable_libtool_lock+set}" = set; then
7239  enableval="$enable_libtool_lock"
7240
7241fi;
7242test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7243
7244# Some flags need to be propagated to the compiler or linker for good
7245# libtool support.
7246case $host in
7247ia64-*-hpux*)
7248  # Find out which ABI we are using.
7249  echo 'int i;' > conftest.$ac_ext
7250  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7251  (eval $ac_compile) 2>&5
7252  ac_status=$?
7253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254  (exit $ac_status); }; then
7255    case `/usr/bin/file conftest.$ac_objext` in
7256    *ELF-32*)
7257      HPUX_IA64_MODE="32"
7258      ;;
7259    *ELF-64*)
7260      HPUX_IA64_MODE="64"
7261      ;;
7262    esac
7263  fi
7264  rm -rf conftest*
7265  ;;
7266*-*-irix6*)
7267  # Find out which ABI we are using.
7268  echo '#line 7268 "configure"' > conftest.$ac_ext
7269  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270  (eval $ac_compile) 2>&5
7271  ac_status=$?
7272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273  (exit $ac_status); }; then
7274   if test "$lt_cv_prog_gnu_ld" = yes; then
7275    case `/usr/bin/file conftest.$ac_objext` in
7276    *32-bit*)
7277      LD="${LD-ld} -melf32bsmip"
7278      ;;
7279    *N32*)
7280      LD="${LD-ld} -melf32bmipn32"
7281      ;;
7282    *64-bit*)
7283      LD="${LD-ld} -melf64bmip"
7284      ;;
7285    esac
7286   else
7287    case `/usr/bin/file conftest.$ac_objext` in
7288    *32-bit*)
7289      LD="${LD-ld} -32"
7290      ;;
7291    *N32*)
7292      LD="${LD-ld} -n32"
7293      ;;
7294    *64-bit*)
7295      LD="${LD-ld} -64"
7296      ;;
7297    esac
7298   fi
7299  fi
7300  rm -rf conftest*
7301  ;;
7302
7303x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7304  # Find out which ABI we are using.
7305  echo 'int i;' > conftest.$ac_ext
7306  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7307  (eval $ac_compile) 2>&5
7308  ac_status=$?
7309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310  (exit $ac_status); }; then
7311    case `/usr/bin/file conftest.o` in
7312    *32-bit*)
7313      case $host in
7314        x86_64-*linux*)
7315          LD="${LD-ld} -m elf_i386"
7316          ;;
7317        ppc64-*linux*|powerpc64-*linux*)
7318          LD="${LD-ld} -m elf32ppclinux"
7319          ;;
7320        s390x-*linux*)
7321          LD="${LD-ld} -m elf_s390"
7322          ;;
7323        sparc64-*linux*)
7324          LD="${LD-ld} -m elf32_sparc"
7325          ;;
7326      esac
7327      ;;
7328    *64-bit*)
7329      case $host in
7330        x86_64-*linux*)
7331          LD="${LD-ld} -m elf_x86_64"
7332          ;;
7333        ppc*-*linux*|powerpc*-*linux*)
7334          LD="${LD-ld} -m elf64ppc"
7335          ;;
7336        s390*-*linux*)
7337          LD="${LD-ld} -m elf64_s390"
7338          ;;
7339        sparc*-*linux*)
7340          LD="${LD-ld} -m elf64_sparc"
7341          ;;
7342      esac
7343      ;;
7344    esac
7345  fi
7346  rm -rf conftest*
7347  ;;
7348
7349*-*-sco3.2v5*)
7350  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7351  SAVE_CFLAGS="$CFLAGS"
7352  CFLAGS="$CFLAGS -belf"
7353  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7354echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7355if test "${lt_cv_cc_needs_belf+set}" = set; then
7356  echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358  ac_ext=c
7359ac_cpp='$CPP $CPPFLAGS'
7360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364     cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h.  */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h.  */
7370
7371#ifdef F77_DUMMY_MAIN
7372
7373#  ifdef __cplusplus
7374     extern "C"
7375#  endif
7376   int F77_DUMMY_MAIN() { return 1; }
7377
7378#endif
7379int
7380main ()
7381{
7382
7383  ;
7384  return 0;
7385}
7386_ACEOF
7387rm -f conftest.$ac_objext conftest$ac_exeext
7388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7389  (eval $ac_link) 2>conftest.er1
7390  ac_status=$?
7391  grep -v '^ *+' conftest.er1 >conftest.err
7392  rm -f conftest.er1
7393  cat conftest.err >&5
7394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395  (exit $ac_status); } &&
7396         { ac_try='test -z "$ac_c_werror_flag"
7397                         || test ! -s conftest.err'
7398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399  (eval $ac_try) 2>&5
7400  ac_status=$?
7401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402  (exit $ac_status); }; } &&
7403         { ac_try='test -s conftest$ac_exeext'
7404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405  (eval $ac_try) 2>&5
7406  ac_status=$?
7407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408  (exit $ac_status); }; }; then
7409  lt_cv_cc_needs_belf=yes
7410else
7411  echo "$as_me: failed program was:" >&5
7412sed 's/^/| /' conftest.$ac_ext >&5
7413
7414lt_cv_cc_needs_belf=no
7415fi
7416rm -f conftest.err conftest.$ac_objext \
7417      conftest$ac_exeext conftest.$ac_ext
7418     ac_ext=c
7419ac_cpp='$CPP $CPPFLAGS'
7420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423
7424fi
7425echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7426echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7427  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7428    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7429    CFLAGS="$SAVE_CFLAGS"
7430  fi
7431  ;;
7432sparc*-*solaris*)
7433  # Find out which ABI we are using.
7434  echo 'int i;' > conftest.$ac_ext
7435  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436  (eval $ac_compile) 2>&5
7437  ac_status=$?
7438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439  (exit $ac_status); }; then
7440    case `/usr/bin/file conftest.o` in
7441    *64-bit*)
7442      case $lt_cv_prog_gnu_ld in
7443      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7444      *)    LD="${LD-ld} -64" ;;
7445      esac
7446      ;;
7447    esac
7448  fi
7449  rm -rf conftest*
7450  ;;
7451
7452
7453esac
7454
7455need_locks="$enable_libtool_lock"
7456
7457
7458ac_ext=c
7459ac_cpp='$CPP $CPPFLAGS'
7460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7464echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7465# On Suns, sometimes $CPP names a directory.
7466if test -n "$CPP" && test -d "$CPP"; then
7467  CPP=
7468fi
7469if test -z "$CPP"; then
7470  if test "${ac_cv_prog_CPP+set}" = set; then
7471  echo $ECHO_N "(cached) $ECHO_C" >&6
7472else
7473      # Double quotes because CPP needs to be expanded
7474    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7475    do
7476      ac_preproc_ok=false
7477for ac_c_preproc_warn_flag in '' yes
7478do
7479  # Use a header file that comes with gcc, so configuring glibc
7480  # with a fresh cross-compiler works.
7481  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7482  # <limits.h> exists even on freestanding compilers.
7483  # On the NeXT, cc -E runs the code through the compiler's parser,
7484  # not just through cpp. "Syntax error" is here to catch this case.
7485  cat >conftest.$ac_ext <<_ACEOF
7486/* confdefs.h.  */
7487_ACEOF
7488cat confdefs.h >>conftest.$ac_ext
7489cat >>conftest.$ac_ext <<_ACEOF
7490/* end confdefs.h.  */
7491#ifdef __STDC__
7492# include <limits.h>
7493#else
7494# include <assert.h>
7495#endif
7496                     Syntax error
7497_ACEOF
7498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7499  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7500  ac_status=$?
7501  grep -v '^ *+' conftest.er1 >conftest.err
7502  rm -f conftest.er1
7503  cat conftest.err >&5
7504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505  (exit $ac_status); } >/dev/null; then
7506  if test -s conftest.err; then
7507    ac_cpp_err=$ac_c_preproc_warn_flag
7508    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7509  else
7510    ac_cpp_err=
7511  fi
7512else
7513  ac_cpp_err=yes
7514fi
7515if test -z "$ac_cpp_err"; then
7516  :
7517else
7518  echo "$as_me: failed program was:" >&5
7519sed 's/^/| /' conftest.$ac_ext >&5
7520
7521  # Broken: fails on valid input.
7522continue
7523fi
7524rm -f conftest.err conftest.$ac_ext
7525
7526  # OK, works on sane cases.  Now check whether non-existent headers
7527  # can be detected and how.
7528  cat >conftest.$ac_ext <<_ACEOF
7529/* confdefs.h.  */
7530_ACEOF
7531cat confdefs.h >>conftest.$ac_ext
7532cat >>conftest.$ac_ext <<_ACEOF
7533/* end confdefs.h.  */
7534#include <ac_nonexistent.h>
7535_ACEOF
7536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7537  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7538  ac_status=$?
7539  grep -v '^ *+' conftest.er1 >conftest.err
7540  rm -f conftest.er1
7541  cat conftest.err >&5
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); } >/dev/null; then
7544  if test -s conftest.err; then
7545    ac_cpp_err=$ac_c_preproc_warn_flag
7546    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7547  else
7548    ac_cpp_err=
7549  fi
7550else
7551  ac_cpp_err=yes
7552fi
7553if test -z "$ac_cpp_err"; then
7554  # Broken: success on invalid input.
7555continue
7556else
7557  echo "$as_me: failed program was:" >&5
7558sed 's/^/| /' conftest.$ac_ext >&5
7559
7560  # Passes both tests.
7561ac_preproc_ok=:
7562break
7563fi
7564rm -f conftest.err conftest.$ac_ext
7565
7566done
7567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7568rm -f conftest.err conftest.$ac_ext
7569if $ac_preproc_ok; then
7570  break
7571fi
7572
7573    done
7574    ac_cv_prog_CPP=$CPP
7575
7576fi
7577  CPP=$ac_cv_prog_CPP
7578else
7579  ac_cv_prog_CPP=$CPP
7580fi
7581echo "$as_me:$LINENO: result: $CPP" >&5
7582echo "${ECHO_T}$CPP" >&6
7583ac_preproc_ok=false
7584for ac_c_preproc_warn_flag in '' yes
7585do
7586  # Use a header file that comes with gcc, so configuring glibc
7587  # with a fresh cross-compiler works.
7588  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7589  # <limits.h> exists even on freestanding compilers.
7590  # On the NeXT, cc -E runs the code through the compiler's parser,
7591  # not just through cpp. "Syntax error" is here to catch this case.
7592  cat >conftest.$ac_ext <<_ACEOF
7593/* confdefs.h.  */
7594_ACEOF
7595cat confdefs.h >>conftest.$ac_ext
7596cat >>conftest.$ac_ext <<_ACEOF
7597/* end confdefs.h.  */
7598#ifdef __STDC__
7599# include <limits.h>
7600#else
7601# include <assert.h>
7602#endif
7603                     Syntax error
7604_ACEOF
7605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7606  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7607  ac_status=$?
7608  grep -v '^ *+' conftest.er1 >conftest.err
7609  rm -f conftest.er1
7610  cat conftest.err >&5
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); } >/dev/null; then
7613  if test -s conftest.err; then
7614    ac_cpp_err=$ac_c_preproc_warn_flag
7615    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7616  else
7617    ac_cpp_err=
7618  fi
7619else
7620  ac_cpp_err=yes
7621fi
7622if test -z "$ac_cpp_err"; then
7623  :
7624else
7625  echo "$as_me: failed program was:" >&5
7626sed 's/^/| /' conftest.$ac_ext >&5
7627
7628  # Broken: fails on valid input.
7629continue
7630fi
7631rm -f conftest.err conftest.$ac_ext
7632
7633  # OK, works on sane cases.  Now check whether non-existent headers
7634  # can be detected and how.
7635  cat >conftest.$ac_ext <<_ACEOF
7636/* confdefs.h.  */
7637_ACEOF
7638cat confdefs.h >>conftest.$ac_ext
7639cat >>conftest.$ac_ext <<_ACEOF
7640/* end confdefs.h.  */
7641#include <ac_nonexistent.h>
7642_ACEOF
7643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7644  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7645  ac_status=$?
7646  grep -v '^ *+' conftest.er1 >conftest.err
7647  rm -f conftest.er1
7648  cat conftest.err >&5
7649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650  (exit $ac_status); } >/dev/null; then
7651  if test -s conftest.err; then
7652    ac_cpp_err=$ac_c_preproc_warn_flag
7653    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7654  else
7655    ac_cpp_err=
7656  fi
7657else
7658  ac_cpp_err=yes
7659fi
7660if test -z "$ac_cpp_err"; then
7661  # Broken: success on invalid input.
7662continue
7663else
7664  echo "$as_me: failed program was:" >&5
7665sed 's/^/| /' conftest.$ac_ext >&5
7666
7667  # Passes both tests.
7668ac_preproc_ok=:
7669break
7670fi
7671rm -f conftest.err conftest.$ac_ext
7672
7673done
7674# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7675rm -f conftest.err conftest.$ac_ext
7676if $ac_preproc_ok; then
7677  :
7678else
7679  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7680See \`config.log' for more details." >&5
7681echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7682See \`config.log' for more details." >&2;}
7683   { (exit 1); exit 1; }; }
7684fi
7685
7686ac_ext=c
7687ac_cpp='$CPP $CPPFLAGS'
7688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7690ac_compiler_gnu=$ac_cv_c_compiler_gnu
7691
7692
7693echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7694echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7695if test "${ac_cv_header_stdc+set}" = set; then
7696  echo $ECHO_N "(cached) $ECHO_C" >&6
7697else
7698  cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h.  */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h.  */
7704#include <stdlib.h>
7705#include <stdarg.h>
7706#include <string.h>
7707#include <float.h>
7708
7709#ifdef F77_DUMMY_MAIN
7710
7711#  ifdef __cplusplus
7712     extern "C"
7713#  endif
7714   int F77_DUMMY_MAIN() { return 1; }
7715
7716#endif
7717int
7718main ()
7719{
7720
7721  ;
7722  return 0;
7723}
7724_ACEOF
7725rm -f conftest.$ac_objext
7726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727  (eval $ac_compile) 2>conftest.er1
7728  ac_status=$?
7729  grep -v '^ *+' conftest.er1 >conftest.err
7730  rm -f conftest.er1
7731  cat conftest.err >&5
7732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733  (exit $ac_status); } &&
7734         { ac_try='test -z "$ac_c_werror_flag"
7735                         || test ! -s conftest.err'
7736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737  (eval $ac_try) 2>&5
7738  ac_status=$?
7739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740  (exit $ac_status); }; } &&
7741         { ac_try='test -s conftest.$ac_objext'
7742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743  (eval $ac_try) 2>&5
7744  ac_status=$?
7745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746  (exit $ac_status); }; }; then
7747  ac_cv_header_stdc=yes
7748else
7749  echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752ac_cv_header_stdc=no
7753fi
7754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7755
7756if test $ac_cv_header_stdc = yes; then
7757  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7758  cat >conftest.$ac_ext <<_ACEOF
7759/* confdefs.h.  */
7760_ACEOF
7761cat confdefs.h >>conftest.$ac_ext
7762cat >>conftest.$ac_ext <<_ACEOF
7763/* end confdefs.h.  */
7764#include <string.h>
7765
7766_ACEOF
7767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7768  $EGREP "memchr" >/dev/null 2>&1; then
7769  :
7770else
7771  ac_cv_header_stdc=no
7772fi
7773rm -f conftest*
7774
7775fi
7776
7777if test $ac_cv_header_stdc = yes; then
7778  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7779  cat >conftest.$ac_ext <<_ACEOF
7780/* confdefs.h.  */
7781_ACEOF
7782cat confdefs.h >>conftest.$ac_ext
7783cat >>conftest.$ac_ext <<_ACEOF
7784/* end confdefs.h.  */
7785#include <stdlib.h>
7786
7787_ACEOF
7788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7789  $EGREP "free" >/dev/null 2>&1; then
7790  :
7791else
7792  ac_cv_header_stdc=no
7793fi
7794rm -f conftest*
7795
7796fi
7797
7798if test $ac_cv_header_stdc = yes; then
7799  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7800  if test "$cross_compiling" = yes; then
7801  :
7802else
7803  cat >conftest.$ac_ext <<_ACEOF
7804/* confdefs.h.  */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h.  */
7809#include <ctype.h>
7810#if ((' ' & 0x0FF) == 0x020)
7811# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7812# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7813#else
7814# define ISLOWER(c) \
7815                   (('a' <= (c) && (c) <= 'i') \
7816                     || ('j' <= (c) && (c) <= 'r') \
7817                     || ('s' <= (c) && (c) <= 'z'))
7818# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7819#endif
7820
7821#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7822int
7823main ()
7824{
7825  int i;
7826  for (i = 0; i < 256; i++)
7827    if (XOR (islower (i), ISLOWER (i))
7828        || toupper (i) != TOUPPER (i))
7829      exit(2);
7830  exit (0);
7831}
7832_ACEOF
7833rm -f conftest$ac_exeext
7834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835  (eval $ac_link) 2>&5
7836  ac_status=$?
7837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840  (eval $ac_try) 2>&5
7841  ac_status=$?
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); }; }; then
7844  :
7845else
7846  echo "$as_me: program exited with status $ac_status" >&5
7847echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850( exit $ac_status )
7851ac_cv_header_stdc=no
7852fi
7853rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7854fi
7855fi
7856fi
7857echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7858echo "${ECHO_T}$ac_cv_header_stdc" >&6
7859if test $ac_cv_header_stdc = yes; then
7860
7861cat >>confdefs.h <<\_ACEOF
7862#define STDC_HEADERS 1
7863_ACEOF
7864
7865fi
7866
7867# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7878                  inttypes.h stdint.h unistd.h
7879do
7880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7881echo "$as_me:$LINENO: checking for $ac_header" >&5
7882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7883if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884  echo $ECHO_N "(cached) $ECHO_C" >&6
7885else
7886  cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h.  */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h.  */
7892$ac_includes_default
7893
7894#include <$ac_header>
7895_ACEOF
7896rm -f conftest.$ac_objext
7897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898  (eval $ac_compile) 2>conftest.er1
7899  ac_status=$?
7900  grep -v '^ *+' conftest.er1 >conftest.err
7901  rm -f conftest.er1
7902  cat conftest.err >&5
7903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904  (exit $ac_status); } &&
7905         { ac_try='test -z "$ac_c_werror_flag"
7906                         || test ! -s conftest.err'
7907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908  (eval $ac_try) 2>&5
7909  ac_status=$?
7910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911  (exit $ac_status); }; } &&
7912         { ac_try='test -s conftest.$ac_objext'
7913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914  (eval $ac_try) 2>&5
7915  ac_status=$?
7916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917  (exit $ac_status); }; }; then
7918  eval "$as_ac_Header=yes"
7919else
7920  echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923eval "$as_ac_Header=no"
7924fi
7925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7926fi
7927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929if test `eval echo '${'$as_ac_Header'}'` = yes; then
7930  cat >>confdefs.h <<_ACEOF
7931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932_ACEOF
7933
7934fi
7935
7936done
7937
7938
7939
7940for ac_header in dlfcn.h
7941do
7942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7943if eval "test \"\${$as_ac_Header+set}\" = set"; then
7944  echo "$as_me:$LINENO: checking for $ac_header" >&5
7945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7946if eval "test \"\${$as_ac_Header+set}\" = set"; then
7947  echo $ECHO_N "(cached) $ECHO_C" >&6
7948fi
7949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7951else
7952  # Is the header compilable?
7953echo "$as_me:$LINENO: checking $ac_header usability" >&5
7954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7955cat >conftest.$ac_ext <<_ACEOF
7956/* confdefs.h.  */
7957_ACEOF
7958cat confdefs.h >>conftest.$ac_ext
7959cat >>conftest.$ac_ext <<_ACEOF
7960/* end confdefs.h.  */
7961$ac_includes_default
7962#include <$ac_header>
7963_ACEOF
7964rm -f conftest.$ac_objext
7965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7966  (eval $ac_compile) 2>conftest.er1
7967  ac_status=$?
7968  grep -v '^ *+' conftest.er1 >conftest.err
7969  rm -f conftest.er1
7970  cat conftest.err >&5
7971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972  (exit $ac_status); } &&
7973         { ac_try='test -z "$ac_c_werror_flag"
7974                         || test ! -s conftest.err'
7975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976  (eval $ac_try) 2>&5
7977  ac_status=$?
7978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); }; } &&
7980         { ac_try='test -s conftest.$ac_objext'
7981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982  (eval $ac_try) 2>&5
7983  ac_status=$?
7984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985  (exit $ac_status); }; }; then
7986  ac_header_compiler=yes
7987else
7988  echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
7991ac_header_compiler=no
7992fi
7993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7995echo "${ECHO_T}$ac_header_compiler" >&6
7996
7997# Is the header present?
7998echo "$as_me:$LINENO: checking $ac_header presence" >&5
7999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8000cat >conftest.$ac_ext <<_ACEOF
8001/* confdefs.h.  */
8002_ACEOF
8003cat confdefs.h >>conftest.$ac_ext
8004cat >>conftest.$ac_ext <<_ACEOF
8005/* end confdefs.h.  */
8006#include <$ac_header>
8007_ACEOF
8008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8009  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8010  ac_status=$?
8011  grep -v '^ *+' conftest.er1 >conftest.err
8012  rm -f conftest.er1
8013  cat conftest.err >&5
8014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015  (exit $ac_status); } >/dev/null; then
8016  if test -s conftest.err; then
8017    ac_cpp_err=$ac_c_preproc_warn_flag
8018    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8019  else
8020    ac_cpp_err=
8021  fi
8022else
8023  ac_cpp_err=yes
8024fi
8025if test -z "$ac_cpp_err"; then
8026  ac_header_preproc=yes
8027else
8028  echo "$as_me: failed program was:" >&5
8029sed 's/^/| /' conftest.$ac_ext >&5
8030
8031  ac_header_preproc=no
8032fi
8033rm -f conftest.err conftest.$ac_ext
8034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8035echo "${ECHO_T}$ac_header_preproc" >&6
8036
8037# So?  What about this header?
8038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8039  yes:no: )
8040    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8044    ac_header_preproc=yes
8045    ;;
8046  no:yes:* )
8047    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8049    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8050echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8051    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8053    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8054echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8055    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8057    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8059    (
8060      cat <<\_ASBOX
8061## --------------------------------------------------------------- ##
8062## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8063## --------------------------------------------------------------- ##
8064_ASBOX
8065    ) |
8066      sed "s/^/$as_me: WARNING:     /" >&2
8067    ;;
8068esac
8069echo "$as_me:$LINENO: checking for $ac_header" >&5
8070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8071if eval "test \"\${$as_ac_Header+set}\" = set"; then
8072  echo $ECHO_N "(cached) $ECHO_C" >&6
8073else
8074  eval "$as_ac_Header=\$ac_header_preproc"
8075fi
8076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8078
8079fi
8080if test `eval echo '${'$as_ac_Header'}'` = yes; then
8081  cat >>confdefs.h <<_ACEOF
8082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8083_ACEOF
8084
8085fi
8086
8087done
8088
8089ac_ext=cc
8090ac_cpp='$CXXCPP $CPPFLAGS'
8091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8094if test -n "$ac_tool_prefix"; then
8095  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8096  do
8097    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8099echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101if test "${ac_cv_prog_CXX+set}" = set; then
8102  echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104  if test -n "$CXX"; then
8105  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110  IFS=$as_save_IFS
8111  test -z "$as_dir" && as_dir=.
8112  for ac_exec_ext in '' $ac_executable_extensions; do
8113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116    break 2
8117  fi
8118done
8119done
8120
8121fi
8122fi
8123CXX=$ac_cv_prog_CXX
8124if test -n "$CXX"; then
8125  echo "$as_me:$LINENO: result: $CXX" >&5
8126echo "${ECHO_T}$CXX" >&6
8127else
8128  echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130fi
8131
8132    test -n "$CXX" && break
8133  done
8134fi
8135if test -z "$CXX"; then
8136  ac_ct_CXX=$CXX
8137  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8138do
8139  # Extract the first word of "$ac_prog", so it can be a program name with args.
8140set dummy $ac_prog; ac_word=$2
8141echo "$as_me:$LINENO: checking for $ac_word" >&5
8142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8143if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8144  echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146  if test -n "$ac_ct_CXX"; then
8147  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8148else
8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152  IFS=$as_save_IFS
8153  test -z "$as_dir" && as_dir=.
8154  for ac_exec_ext in '' $ac_executable_extensions; do
8155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156    ac_cv_prog_ac_ct_CXX="$ac_prog"
8157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158    break 2
8159  fi
8160done
8161done
8162
8163fi
8164fi
8165ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8166if test -n "$ac_ct_CXX"; then
8167  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8168echo "${ECHO_T}$ac_ct_CXX" >&6
8169else
8170  echo "$as_me:$LINENO: result: no" >&5
8171echo "${ECHO_T}no" >&6
8172fi
8173
8174  test -n "$ac_ct_CXX" && break
8175done
8176test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8177
8178  CXX=$ac_ct_CXX
8179fi
8180
8181
8182# Provide some information about the compiler.
8183echo "$as_me:$LINENO:" \
8184     "checking for C++ compiler version" >&5
8185ac_compiler=`set X $ac_compile; echo $2`
8186{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8187  (eval $ac_compiler --version </dev/null >&5) 2>&5
8188  ac_status=$?
8189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190  (exit $ac_status); }
8191{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8192  (eval $ac_compiler -v </dev/null >&5) 2>&5
8193  ac_status=$?
8194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195  (exit $ac_status); }
8196{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8197  (eval $ac_compiler -V </dev/null >&5) 2>&5
8198  ac_status=$?
8199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200  (exit $ac_status); }
8201
8202echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8203echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8204if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8205  echo $ECHO_N "(cached) $ECHO_C" >&6
8206else
8207  cat >conftest.$ac_ext <<_ACEOF
8208/* confdefs.h.  */
8209_ACEOF
8210cat confdefs.h >>conftest.$ac_ext
8211cat >>conftest.$ac_ext <<_ACEOF
8212/* end confdefs.h.  */
8213
8214#ifdef F77_DUMMY_MAIN
8215
8216#  ifdef __cplusplus
8217     extern "C"
8218#  endif
8219   int F77_DUMMY_MAIN() { return 1; }
8220
8221#endif
8222int
8223main ()
8224{
8225#ifndef __GNUC__
8226       choke me
8227#endif
8228
8229  ;
8230  return 0;
8231}
8232_ACEOF
8233rm -f conftest.$ac_objext
8234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8235  (eval $ac_compile) 2>conftest.er1
8236  ac_status=$?
8237  grep -v '^ *+' conftest.er1 >conftest.err
8238  rm -f conftest.er1
8239  cat conftest.err >&5
8240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241  (exit $ac_status); } &&
8242         { ac_try='test -z "$ac_cxx_werror_flag"
8243                         || test ! -s conftest.err'
8244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245  (eval $ac_try) 2>&5
8246  ac_status=$?
8247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248  (exit $ac_status); }; } &&
8249         { ac_try='test -s conftest.$ac_objext'
8250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251  (eval $ac_try) 2>&5
8252  ac_status=$?
8253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254  (exit $ac_status); }; }; then
8255  ac_compiler_gnu=yes
8256else
8257  echo "$as_me: failed program was:" >&5
8258sed 's/^/| /' conftest.$ac_ext >&5
8259
8260ac_compiler_gnu=no
8261fi
8262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8263ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8264
8265fi
8266echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8267echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8268GXX=`test $ac_compiler_gnu = yes && echo yes`
8269ac_test_CXXFLAGS=${CXXFLAGS+set}
8270ac_save_CXXFLAGS=$CXXFLAGS
8271CXXFLAGS="-g"
8272echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8273echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8274if test "${ac_cv_prog_cxx_g+set}" = set; then
8275  echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277  cat >conftest.$ac_ext <<_ACEOF
8278/* confdefs.h.  */
8279_ACEOF
8280cat confdefs.h >>conftest.$ac_ext
8281cat >>conftest.$ac_ext <<_ACEOF
8282/* end confdefs.h.  */
8283
8284#ifdef F77_DUMMY_MAIN
8285
8286#  ifdef __cplusplus
8287     extern "C"
8288#  endif
8289   int F77_DUMMY_MAIN() { return 1; }
8290
8291#endif
8292int
8293main ()
8294{
8295
8296  ;
8297  return 0;
8298}
8299_ACEOF
8300rm -f conftest.$ac_objext
8301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8302  (eval $ac_compile) 2>conftest.er1
8303  ac_status=$?
8304  grep -v '^ *+' conftest.er1 >conftest.err
8305  rm -f conftest.er1
8306  cat conftest.err >&5
8307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308  (exit $ac_status); } &&
8309         { ac_try='test -z "$ac_cxx_werror_flag"
8310                         || test ! -s conftest.err'
8311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312  (eval $ac_try) 2>&5
8313  ac_status=$?
8314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315  (exit $ac_status); }; } &&
8316         { ac_try='test -s conftest.$ac_objext'
8317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318  (eval $ac_try) 2>&5
8319  ac_status=$?
8320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321  (exit $ac_status); }; }; then
8322  ac_cv_prog_cxx_g=yes
8323else
8324  echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327ac_cv_prog_cxx_g=no
8328fi
8329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8330fi
8331echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8332echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8333if test "$ac_test_CXXFLAGS" = set; then
8334  CXXFLAGS=$ac_save_CXXFLAGS
8335elif test $ac_cv_prog_cxx_g = yes; then
8336  if test "$GXX" = yes; then
8337    CXXFLAGS="-g -O2"
8338  else
8339    CXXFLAGS="-g"
8340  fi
8341else
8342  if test "$GXX" = yes; then
8343    CXXFLAGS="-O2"
8344  else
8345    CXXFLAGS=
8346  fi
8347fi
8348for ac_declaration in \
8349   '' \
8350   'extern "C" void std::exit (int) throw (); using std::exit;' \
8351   'extern "C" void std::exit (int); using std::exit;' \
8352   'extern "C" void exit (int) throw ();' \
8353   'extern "C" void exit (int);' \
8354   'void exit (int);'
8355do
8356  cat >conftest.$ac_ext <<_ACEOF
8357/* confdefs.h.  */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h.  */
8362$ac_declaration
8363#include <stdlib.h>
8364#ifdef F77_DUMMY_MAIN
8365
8366#  ifdef __cplusplus
8367     extern "C"
8368#  endif
8369   int F77_DUMMY_MAIN() { return 1; }
8370
8371#endif
8372int
8373main ()
8374{
8375exit (42);
8376  ;
8377  return 0;
8378}
8379_ACEOF
8380rm -f conftest.$ac_objext
8381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8382  (eval $ac_compile) 2>conftest.er1
8383  ac_status=$?
8384  grep -v '^ *+' conftest.er1 >conftest.err
8385  rm -f conftest.er1
8386  cat conftest.err >&5
8387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388  (exit $ac_status); } &&
8389         { ac_try='test -z "$ac_cxx_werror_flag"
8390                         || test ! -s conftest.err'
8391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392  (eval $ac_try) 2>&5
8393  ac_status=$?
8394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395  (exit $ac_status); }; } &&
8396         { ac_try='test -s conftest.$ac_objext'
8397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398  (eval $ac_try) 2>&5
8399  ac_status=$?
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); }; }; then
8402  :
8403else
8404  echo "$as_me: failed program was:" >&5
8405sed 's/^/| /' conftest.$ac_ext >&5
8406
8407continue
8408fi
8409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8410  cat >conftest.$ac_ext <<_ACEOF
8411/* confdefs.h.  */
8412_ACEOF
8413cat confdefs.h >>conftest.$ac_ext
8414cat >>conftest.$ac_ext <<_ACEOF
8415/* end confdefs.h.  */
8416$ac_declaration
8417#ifdef F77_DUMMY_MAIN
8418
8419#  ifdef __cplusplus
8420     extern "C"
8421#  endif
8422   int F77_DUMMY_MAIN() { return 1; }
8423
8424#endif
8425int
8426main ()
8427{
8428exit (42);
8429  ;
8430  return 0;
8431}
8432_ACEOF
8433rm -f conftest.$ac_objext
8434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8435  (eval $ac_compile) 2>conftest.er1
8436  ac_status=$?
8437  grep -v '^ *+' conftest.er1 >conftest.err
8438  rm -f conftest.er1
8439  cat conftest.err >&5
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); } &&
8442         { ac_try='test -z "$ac_cxx_werror_flag"
8443                         || test ! -s conftest.err'
8444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445  (eval $ac_try) 2>&5
8446  ac_status=$?
8447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448  (exit $ac_status); }; } &&
8449         { ac_try='test -s conftest.$ac_objext'
8450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451  (eval $ac_try) 2>&5
8452  ac_status=$?
8453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454  (exit $ac_status); }; }; then
8455  break
8456else
8457  echo "$as_me: failed program was:" >&5
8458sed 's/^/| /' conftest.$ac_ext >&5
8459
8460fi
8461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8462done
8463rm -f conftest*
8464if test -n "$ac_declaration"; then
8465  echo '#ifdef __cplusplus' >>confdefs.h
8466  echo $ac_declaration      >>confdefs.h
8467  echo '#endif'             >>confdefs.h
8468fi
8469
8470ac_ext=cc
8471ac_cpp='$CXXCPP $CPPFLAGS'
8472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8475
8476depcc="$CXX"  am_compiler_list=
8477
8478echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8479echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8480if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8481  echo $ECHO_N "(cached) $ECHO_C" >&6
8482else
8483  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8484  # We make a subdir and do the tests there.  Otherwise we can end up
8485  # making bogus files that we don't know about and never remove.  For
8486  # instance it was reported that on HP-UX the gcc test will end up
8487  # making a dummy file named `D' -- because `-MD' means `put the output
8488  # in D'.
8489  mkdir conftest.dir
8490  # Copy depcomp to subdir because otherwise we won't find it if we're
8491  # using a relative directory.
8492  cp "$am_depcomp" conftest.dir
8493  cd conftest.dir
8494  # We will build objects and dependencies in a subdirectory because
8495  # it helps to detect inapplicable dependency modes.  For instance
8496  # both Tru64's cc and ICC support -MD to output dependencies as a
8497  # side effect of compilation, but ICC will put the dependencies in
8498  # the current directory while Tru64 will put them in the object
8499  # directory.
8500  mkdir sub
8501
8502  am_cv_CXX_dependencies_compiler_type=none
8503  if test "$am_compiler_list" = ""; then
8504     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8505  fi
8506  for depmode in $am_compiler_list; do
8507    # Setup a source with many dependencies, because some compilers
8508    # like to wrap large dependency lists on column 80 (with \), and
8509    # we should not choose a depcomp mode which is confused by this.
8510    #
8511    # We need to recreate these files for each test, as the compiler may
8512    # overwrite some of them when testing with obscure command lines.
8513    # This happens at least with the AIX C compiler.
8514    : > sub/conftest.c
8515    for i in 1 2 3 4 5 6; do
8516      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8517      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8518      # Solaris 8's {/usr,}/bin/sh.
8519      touch sub/conftst$i.h
8520    done
8521    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8522
8523    case $depmode in
8524    nosideeffect)
8525      # after this tag, mechanisms are not by side-effect, so they'll
8526      # only be used when explicitly requested
8527      if test "x$enable_dependency_tracking" = xyes; then
8528        continue
8529      else
8530        break
8531      fi
8532      ;;
8533    none) break ;;
8534    esac
8535    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8536    # mode.  It turns out that the SunPro C++ compiler does not properly
8537    # handle `-M -o', and we need to detect this.
8538    if depmode=$depmode \
8539       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8540       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8541       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8542         >/dev/null 2>conftest.err &&
8543       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8544       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8545       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8546      # icc doesn't choke on unknown options, it will just issue warnings
8547      # or remarks (even with -Werror).  So we grep stderr for any message
8548      # that says an option was ignored or not supported.
8549      # When given -MP, icc 7.0 and 7.1 complain thusly:
8550      #   icc: Command line warning: ignoring option '-M'; no argument required
8551      # The diagnosis changed in icc 8.0:
8552      #   icc: Command line remark: option '-MP' not supported
8553      if (grep 'ignoring option' conftest.err ||
8554          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8555        am_cv_CXX_dependencies_compiler_type=$depmode
8556        break
8557      fi
8558    fi
8559  done
8560
8561  cd ..
8562  rm -rf conftest.dir
8563else
8564  am_cv_CXX_dependencies_compiler_type=none
8565fi
8566
8567fi
8568echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8569echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8570CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8571
8572
8573
8574if
8575  test "x$enable_dependency_tracking" != xno \
8576  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8577  am__fastdepCXX_TRUE=
8578  am__fastdepCXX_FALSE='#'
8579else
8580  am__fastdepCXX_TRUE='#'
8581  am__fastdepCXX_FALSE=
8582fi
8583
8584
8585depcc="$CXX"  am_compiler_list=
8586
8587echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8588echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8589if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8590  echo $ECHO_N "(cached) $ECHO_C" >&6
8591else
8592  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8593  # We make a subdir and do the tests there.  Otherwise we can end up
8594  # making bogus files that we don't know about and never remove.  For
8595  # instance it was reported that on HP-UX the gcc test will end up
8596  # making a dummy file named `D' -- because `-MD' means `put the output
8597  # in D'.
8598  mkdir conftest.dir
8599  # Copy depcomp to subdir because otherwise we won't find it if we're
8600  # using a relative directory.
8601  cp "$am_depcomp" conftest.dir
8602  cd conftest.dir
8603  # We will build objects and dependencies in a subdirectory because
8604  # it helps to detect inapplicable dependency modes.  For instance
8605  # both Tru64's cc and ICC support -MD to output dependencies as a
8606  # side effect of compilation, but ICC will put the dependencies in
8607  # the current directory while Tru64 will put them in the object
8608  # directory.
8609  mkdir sub
8610
8611  am_cv_CXX_dependencies_compiler_type=none
8612  if test "$am_compiler_list" = ""; then
8613     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8614  fi
8615  for depmode in $am_compiler_list; do
8616    # Setup a source with many dependencies, because some compilers
8617    # like to wrap large dependency lists on column 80 (with \), and
8618    # we should not choose a depcomp mode which is confused by this.
8619    #
8620    # We need to recreate these files for each test, as the compiler may
8621    # overwrite some of them when testing with obscure command lines.
8622    # This happens at least with the AIX C compiler.
8623    : > sub/conftest.c
8624    for i in 1 2 3 4 5 6; do
8625      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8626      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8627      # Solaris 8's {/usr,}/bin/sh.
8628      touch sub/conftst$i.h
8629    done
8630    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8631
8632    case $depmode in
8633    nosideeffect)
8634      # after this tag, mechanisms are not by side-effect, so they'll
8635      # only be used when explicitly requested
8636      if test "x$enable_dependency_tracking" = xyes; then
8637        continue
8638      else
8639        break
8640      fi
8641      ;;
8642    none) break ;;
8643    esac
8644    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8645    # mode.  It turns out that the SunPro C++ compiler does not properly
8646    # handle `-M -o', and we need to detect this.
8647    if depmode=$depmode \
8648       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8649       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8650       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8651         >/dev/null 2>conftest.err &&
8652       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8653       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8654       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8655      # icc doesn't choke on unknown options, it will just issue warnings
8656      # or remarks (even with -Werror).  So we grep stderr for any message
8657      # that says an option was ignored or not supported.
8658      # When given -MP, icc 7.0 and 7.1 complain thusly:
8659      #   icc: Command line warning: ignoring option '-M'; no argument required
8660      # The diagnosis changed in icc 8.0:
8661      #   icc: Command line remark: option '-MP' not supported
8662      if (grep 'ignoring option' conftest.err ||
8663          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8664        am_cv_CXX_dependencies_compiler_type=$depmode
8665        break
8666      fi
8667    fi
8668  done
8669
8670  cd ..
8671  rm -rf conftest.dir
8672else
8673  am_cv_CXX_dependencies_compiler_type=none
8674fi
8675
8676fi
8677echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8678echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8679CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8680
8681
8682
8683if
8684  test "x$enable_dependency_tracking" != xno \
8685  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8686  am__fastdepCXX_TRUE=
8687  am__fastdepCXX_FALSE='#'
8688else
8689  am__fastdepCXX_TRUE='#'
8690  am__fastdepCXX_FALSE=
8691fi
8692
8693
8694
8695
8696if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8697    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8698    (test "X$CXX" != "Xg++"))) ; then
8699  ac_ext=cc
8700ac_cpp='$CXXCPP $CPPFLAGS'
8701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8704echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8705echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8706if test -z "$CXXCPP"; then
8707  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8708  echo $ECHO_N "(cached) $ECHO_C" >&6
8709else
8710      # Double quotes because CXXCPP needs to be expanded
8711    for CXXCPP in "$CXX -E" "/lib/cpp"
8712    do
8713      ac_preproc_ok=false
8714for ac_cxx_preproc_warn_flag in '' yes
8715do
8716  # Use a header file that comes with gcc, so configuring glibc
8717  # with a fresh cross-compiler works.
8718  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719  # <limits.h> exists even on freestanding compilers.
8720  # On the NeXT, cc -E runs the code through the compiler's parser,
8721  # not just through cpp. "Syntax error" is here to catch this case.
8722  cat >conftest.$ac_ext <<_ACEOF
8723/* confdefs.h.  */
8724_ACEOF
8725cat confdefs.h >>conftest.$ac_ext
8726cat >>conftest.$ac_ext <<_ACEOF
8727/* end confdefs.h.  */
8728#ifdef __STDC__
8729# include <limits.h>
8730#else
8731# include <assert.h>
8732#endif
8733                     Syntax error
8734_ACEOF
8735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8736  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8737  ac_status=$?
8738  grep -v '^ *+' conftest.er1 >conftest.err
8739  rm -f conftest.er1
8740  cat conftest.err >&5
8741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742  (exit $ac_status); } >/dev/null; then
8743  if test -s conftest.err; then
8744    ac_cpp_err=$ac_cxx_preproc_warn_flag
8745    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8746  else
8747    ac_cpp_err=
8748  fi
8749else
8750  ac_cpp_err=yes
8751fi
8752if test -z "$ac_cpp_err"; then
8753  :
8754else
8755  echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
8758  # Broken: fails on valid input.
8759continue
8760fi
8761rm -f conftest.err conftest.$ac_ext
8762
8763  # OK, works on sane cases.  Now check whether non-existent headers
8764  # can be detected and how.
8765  cat >conftest.$ac_ext <<_ACEOF
8766/* confdefs.h.  */
8767_ACEOF
8768cat confdefs.h >>conftest.$ac_ext
8769cat >>conftest.$ac_ext <<_ACEOF
8770/* end confdefs.h.  */
8771#include <ac_nonexistent.h>
8772_ACEOF
8773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8774  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8775  ac_status=$?
8776  grep -v '^ *+' conftest.er1 >conftest.err
8777  rm -f conftest.er1
8778  cat conftest.err >&5
8779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780  (exit $ac_status); } >/dev/null; then
8781  if test -s conftest.err; then
8782    ac_cpp_err=$ac_cxx_preproc_warn_flag
8783    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8784  else
8785    ac_cpp_err=
8786  fi
8787else
8788  ac_cpp_err=yes
8789fi
8790if test -z "$ac_cpp_err"; then
8791  # Broken: success on invalid input.
8792continue
8793else
8794  echo "$as_me: failed program was:" >&5
8795sed 's/^/| /' conftest.$ac_ext >&5
8796
8797  # Passes both tests.
8798ac_preproc_ok=:
8799break
8800fi
8801rm -f conftest.err conftest.$ac_ext
8802
8803done
8804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8805rm -f conftest.err conftest.$ac_ext
8806if $ac_preproc_ok; then
8807  break
8808fi
8809
8810    done
8811    ac_cv_prog_CXXCPP=$CXXCPP
8812
8813fi
8814  CXXCPP=$ac_cv_prog_CXXCPP
8815else
8816  ac_cv_prog_CXXCPP=$CXXCPP
8817fi
8818echo "$as_me:$LINENO: result: $CXXCPP" >&5
8819echo "${ECHO_T}$CXXCPP" >&6
8820ac_preproc_ok=false
8821for ac_cxx_preproc_warn_flag in '' yes
8822do
8823  # Use a header file that comes with gcc, so configuring glibc
8824  # with a fresh cross-compiler works.
8825  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8826  # <limits.h> exists even on freestanding compilers.
8827  # On the NeXT, cc -E runs the code through the compiler's parser,
8828  # not just through cpp. "Syntax error" is here to catch this case.
8829  cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h.  */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h.  */
8835#ifdef __STDC__
8836# include <limits.h>
8837#else
8838# include <assert.h>
8839#endif
8840                     Syntax error
8841_ACEOF
8842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8843  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8844  ac_status=$?
8845  grep -v '^ *+' conftest.er1 >conftest.err
8846  rm -f conftest.er1
8847  cat conftest.err >&5
8848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849  (exit $ac_status); } >/dev/null; then
8850  if test -s conftest.err; then
8851    ac_cpp_err=$ac_cxx_preproc_warn_flag
8852    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8853  else
8854    ac_cpp_err=
8855  fi
8856else
8857  ac_cpp_err=yes
8858fi
8859if test -z "$ac_cpp_err"; then
8860  :
8861else
8862  echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
8865  # Broken: fails on valid input.
8866continue
8867fi
8868rm -f conftest.err conftest.$ac_ext
8869
8870  # OK, works on sane cases.  Now check whether non-existent headers
8871  # can be detected and how.
8872  cat >conftest.$ac_ext <<_ACEOF
8873/* confdefs.h.  */
8874_ACEOF
8875cat confdefs.h >>conftest.$ac_ext
8876cat >>conftest.$ac_ext <<_ACEOF
8877/* end confdefs.h.  */
8878#include <ac_nonexistent.h>
8879_ACEOF
8880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8881  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8882  ac_status=$?
8883  grep -v '^ *+' conftest.er1 >conftest.err
8884  rm -f conftest.er1
8885  cat conftest.err >&5
8886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887  (exit $ac_status); } >/dev/null; then
8888  if test -s conftest.err; then
8889    ac_cpp_err=$ac_cxx_preproc_warn_flag
8890    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8891  else
8892    ac_cpp_err=
8893  fi
8894else
8895  ac_cpp_err=yes
8896fi
8897if test -z "$ac_cpp_err"; then
8898  # Broken: success on invalid input.
8899continue
8900else
8901  echo "$as_me: failed program was:" >&5
8902sed 's/^/| /' conftest.$ac_ext >&5
8903
8904  # Passes both tests.
8905ac_preproc_ok=:
8906break
8907fi
8908rm -f conftest.err conftest.$ac_ext
8909
8910done
8911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8912rm -f conftest.err conftest.$ac_ext
8913if $ac_preproc_ok; then
8914  :
8915else
8916  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8917See \`config.log' for more details." >&5
8918echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8919See \`config.log' for more details." >&2;}
8920   { (exit 1); exit 1; }; }
8921fi
8922
8923ac_ext=cc
8924ac_cpp='$CXXCPP $CPPFLAGS'
8925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8928
8929fi
8930
8931
8932
8933# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8934
8935# find the maximum length of command line arguments
8936echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8937echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8938if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8939  echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941    i=0
8942  teststring="ABCD"
8943
8944  case $build_os in
8945  msdosdjgpp*)
8946    # On DJGPP, this test can blow up pretty badly due to problems in libc
8947    # (any single argument exceeding 2000 bytes causes a buffer overrun
8948    # during glob expansion).  Even if it were fixed, the result of this
8949    # check would be larger than it should be.
8950    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8951    ;;
8952
8953  gnu*)
8954    # Under GNU Hurd, this test is not required because there is
8955    # no limit to the length of command line arguments.
8956    # Libtool will interpret -1 as no limit whatsoever
8957    lt_cv_sys_max_cmd_len=-1;
8958    ;;
8959
8960  cygwin* | mingw*)
8961    # On Win9x/ME, this test blows up -- it succeeds, but takes
8962    # about 5 minutes as the teststring grows exponentially.
8963    # Worse, since 9x/ME are not pre-emptively multitasking,
8964    # you end up with a "frozen" computer, even though with patience
8965    # the test eventually succeeds (with a max line length of 256k).
8966    # Instead, let's just punt: use the minimum linelength reported by
8967    # all of the supported platforms: 8192 (on NT/2K/XP).
8968    lt_cv_sys_max_cmd_len=8192;
8969    ;;
8970
8971  amigaos*)
8972    # On AmigaOS with pdksh, this test takes hours, literally.
8973    # So we just punt and use a minimum line length of 8192.
8974    lt_cv_sys_max_cmd_len=8192;
8975    ;;
8976
8977  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8978    # This has been around since 386BSD, at least.  Likely further.
8979    if test -x /sbin/sysctl; then
8980      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8981    elif test -x /usr/sbin/sysctl; then
8982      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8983    else
8984      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8985    fi
8986    # And add a safety zone
8987    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8988    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8989    ;;
8990
8991  interix*)
8992    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8993    lt_cv_sys_max_cmd_len=196608
8994    ;;
8995
8996  osf*)
8997    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8998    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8999    # nice to cause kernel panics so lets avoid the loop below.
9000    # First set a reasonable default.
9001    lt_cv_sys_max_cmd_len=16384
9002    #
9003    if test -x /sbin/sysconfig; then
9004      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9005        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9006      esac
9007    fi
9008    ;;
9009  sco3.2v5*)
9010    lt_cv_sys_max_cmd_len=102400
9011    ;;
9012  sysv5* | sco5v6* | sysv4.2uw2*)
9013    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9014    if test -n "$kargmax"; then
9015      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
9016    else
9017      lt_cv_sys_max_cmd_len=32768
9018    fi
9019    ;;
9020  *)
9021    # If test is not a shell built-in, we'll probably end up computing a
9022    # maximum length that is only half of the actual maximum length, but
9023    # we can't tell.
9024    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9025    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9026               = "XX$teststring") >/dev/null 2>&1 &&
9027            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9028            lt_cv_sys_max_cmd_len=$new_result &&
9029            test $i != 17 # 1/2 MB should be enough
9030    do
9031      i=`expr $i + 1`
9032      teststring=$teststring$teststring
9033    done
9034    teststring=
9035    # Add a significant safety factor because C++ compilers can tack on massive
9036    # amounts of additional arguments before passing them to the linker.
9037    # It appears as though 1/2 is a usable value.
9038    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9039    ;;
9040  esac
9041
9042fi
9043
9044if test -n $lt_cv_sys_max_cmd_len ; then
9045  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9046echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9047else
9048  echo "$as_me:$LINENO: result: none" >&5
9049echo "${ECHO_T}none" >&6
9050fi
9051
9052
9053
9054
9055# Check for command to grab the raw symbol name followed by C symbol from nm.
9056echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9057echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9058if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9059  echo $ECHO_N "(cached) $ECHO_C" >&6
9060else
9061
9062# These are sane defaults that work on at least a few old systems.
9063# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9064
9065# Character class describing NM global symbol codes.
9066symcode='[BCDEGRST]'
9067
9068# Regexp to match symbols that can be accessed directly from C.
9069sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9070
9071# Transform an extracted symbol line into a proper C declaration
9072lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9073
9074# Transform an extracted symbol line into symbol name and symbol address
9075lt_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'"
9076
9077# Define system-specific variables.
9078case $host_os in
9079aix*)
9080  symcode='[BCDT]'
9081  ;;
9082cygwin* | mingw* | pw32*)
9083  symcode='[ABCDGISTW]'
9084  ;;
9085hpux*) # Its linker distinguishes data from code symbols
9086  if test "$host_cpu" = ia64; then
9087    symcode='[ABCDEGRST]'
9088  fi
9089  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9090  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'"
9091  ;;
9092linux*)
9093  if test "$host_cpu" = ia64; then
9094    symcode='[ABCDGIRSTW]'
9095    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9096    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'"
9097  fi
9098  ;;
9099irix* | nonstopux*)
9100  symcode='[BCDEGRST]'
9101  ;;
9102osf*)
9103  symcode='[BCDEGQRST]'
9104  ;;
9105solaris*)
9106  symcode='[BDRT]'
9107  ;;
9108sco3.2v5*)
9109  symcode='[DT]'
9110  ;;
9111sysv4.2uw2*)
9112  symcode='[DT]'
9113  ;;
9114sysv5* | sco5v6* | unixware* | OpenUNIX*)
9115  symcode='[ABDT]'
9116  ;;
9117sysv4)
9118  symcode='[DFNSTU]'
9119  ;;
9120esac
9121
9122# Handle CRLF in mingw tool chain
9123opt_cr=
9124case $build_os in
9125mingw*)
9126  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9127  ;;
9128esac
9129
9130# If we're using GNU nm, then use its standard symbol codes.
9131case `$NM -V 2>&1` in
9132*GNU* | *'with BFD'*)
9133  symcode='[ABCDGIRSTW]' ;;
9134esac
9135
9136# Try without a prefix undercore, then with it.
9137for ac_symprfx in "" "_"; do
9138
9139  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9140  symxfrm="\\1 $ac_symprfx\\2 \\2"
9141
9142  # Write the raw and C identifiers.
9143  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9144
9145  # Check to see that the pipe works correctly.
9146  pipe_works=no
9147
9148  rm -f conftest*
9149  cat > conftest.$ac_ext <<EOF
9150#ifdef __cplusplus
9151extern "C" {
9152#endif
9153char nm_test_var;
9154void nm_test_func(){}
9155#ifdef __cplusplus
9156}
9157#endif
9158int main(){nm_test_var='a';nm_test_func();return(0);}
9159EOF
9160
9161  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9162  (eval $ac_compile) 2>&5
9163  ac_status=$?
9164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165  (exit $ac_status); }; then
9166    # Now try to grab the symbols.
9167    nlist=conftest.nm
9168    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9169  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9170  ac_status=$?
9171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172  (exit $ac_status); } && test -s "$nlist"; then
9173      # Try sorting and uniquifying the output.
9174      if sort "$nlist" | uniq > "$nlist"T; then
9175        mv -f "$nlist"T "$nlist"
9176      else
9177        rm -f "$nlist"T
9178      fi
9179
9180      # Make sure that we snagged all the symbols we need.
9181      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9182        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9183          cat <<EOF > conftest.$ac_ext
9184#ifdef __cplusplus
9185extern "C" {
9186#endif
9187
9188EOF
9189          # Now generate the symbol file.
9190          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9191
9192          cat <<EOF >> conftest.$ac_ext
9193#if defined (__STDC__) && __STDC__
9194# define lt_ptr_t void *
9195#else
9196# define lt_ptr_t char *
9197# define const
9198#endif
9199
9200/* The mapping between symbol names and symbols. */
9201const struct {
9202  const char *name;
9203  lt_ptr_t address;
9204}
9205lt_preloaded_symbols[] =
9206{
9207EOF
9208          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9209          cat <<\EOF >> conftest.$ac_ext
9210  {0, (lt_ptr_t) 0}
9211};
9212
9213#ifdef __cplusplus
9214}
9215#endif
9216EOF
9217          # Now try linking the two files.
9218          mv conftest.$ac_objext conftstm.$ac_objext
9219          lt_save_LIBS="$LIBS"
9220          lt_save_CFLAGS="$CFLAGS"
9221          LIBS="conftstm.$ac_objext"
9222          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9223          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224  (eval $ac_link) 2>&5
9225  ac_status=$?
9226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9228            pipe_works=yes
9229          fi
9230          LIBS="$lt_save_LIBS"
9231          CFLAGS="$lt_save_CFLAGS"
9232        else
9233          echo "cannot find nm_test_func in $nlist" >&5
9234        fi
9235      else
9236        echo "cannot find nm_test_var in $nlist" >&5
9237      fi
9238    else
9239      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9240    fi
9241  else
9242    echo "$progname: failed program was:" >&5
9243    cat conftest.$ac_ext >&5
9244  fi
9245  rm -f conftest* conftst*
9246
9247  # Do not use the global_symbol_pipe unless it works.
9248  if test "$pipe_works" = yes; then
9249    break
9250  else
9251    lt_cv_sys_global_symbol_pipe=
9252  fi
9253done
9254
9255fi
9256
9257if test -z "$lt_cv_sys_global_symbol_pipe"; then
9258  lt_cv_sys_global_symbol_to_cdecl=
9259fi
9260if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9261  echo "$as_me:$LINENO: result: failed" >&5
9262echo "${ECHO_T}failed" >&6
9263else
9264  echo "$as_me:$LINENO: result: ok" >&5
9265echo "${ECHO_T}ok" >&6
9266fi
9267
9268echo "$as_me:$LINENO: checking for objdir" >&5
9269echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9270if test "${lt_cv_objdir+set}" = set; then
9271  echo $ECHO_N "(cached) $ECHO_C" >&6
9272else
9273  rm -f .libs 2>/dev/null
9274mkdir .libs 2>/dev/null
9275if test -d .libs; then
9276  lt_cv_objdir=.libs
9277else
9278  # MS-DOS does not allow filenames that begin with a dot.
9279  lt_cv_objdir=_libs
9280fi
9281rmdir .libs 2>/dev/null
9282fi
9283echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9284echo "${ECHO_T}$lt_cv_objdir" >&6
9285objdir=$lt_cv_objdir
9286
9287
9288
9289
9290
9291case $host_os in
9292aix3*)
9293  # AIX sometimes has problems with the GCC collect2 program.  For some
9294  # reason, if we set the COLLECT_NAMES environment variable, the problems
9295  # vanish in a puff of smoke.
9296  if test "X${COLLECT_NAMES+set}" != Xset; then
9297    COLLECT_NAMES=
9298    export COLLECT_NAMES
9299  fi
9300  ;;
9301esac
9302
9303# Sed substitution that helps us do robust quoting.  It backslashifies
9304# metacharacters that are still active within double-quoted strings.
9305Xsed='sed -e 1s/^X//'
9306sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9307
9308# Same as above, but do not quote variable references.
9309double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9310
9311# Sed substitution to delay expansion of an escaped shell variable in a
9312# double_quote_subst'ed string.
9313delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9314
9315# Sed substitution to avoid accidental globbing in evaled expressions
9316no_glob_subst='s/\*/\\\*/g'
9317
9318# Constants:
9319rm="rm -f"
9320
9321# Global variables:
9322default_ofile=libtool
9323can_build_shared=yes
9324
9325# All known linkers require a `.a' archive for static linking (except MSVC,
9326# which needs '.lib').
9327libext=a
9328ltmain="$ac_aux_dir/ltmain.sh"
9329ofile="$default_ofile"
9330with_gnu_ld="$lt_cv_prog_gnu_ld"
9331
9332if test -n "$ac_tool_prefix"; then
9333  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9334set dummy ${ac_tool_prefix}ar; ac_word=$2
9335echo "$as_me:$LINENO: checking for $ac_word" >&5
9336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9337if test "${ac_cv_prog_AR+set}" = set; then
9338  echo $ECHO_N "(cached) $ECHO_C" >&6
9339else
9340  if test -n "$AR"; then
9341  ac_cv_prog_AR="$AR" # Let the user override the test.
9342else
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346  IFS=$as_save_IFS
9347  test -z "$as_dir" && as_dir=.
9348  for ac_exec_ext in '' $ac_executable_extensions; do
9349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350    ac_cv_prog_AR="${ac_tool_prefix}ar"
9351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9352    break 2
9353  fi
9354done
9355done
9356
9357fi
9358fi
9359AR=$ac_cv_prog_AR
9360if test -n "$AR"; then
9361  echo "$as_me:$LINENO: result: $AR" >&5
9362echo "${ECHO_T}$AR" >&6
9363else
9364  echo "$as_me:$LINENO: result: no" >&5
9365echo "${ECHO_T}no" >&6
9366fi
9367
9368fi
9369if test -z "$ac_cv_prog_AR"; then
9370  ac_ct_AR=$AR
9371  # Extract the first word of "ar", so it can be a program name with args.
9372set dummy ar; ac_word=$2
9373echo "$as_me:$LINENO: checking for $ac_word" >&5
9374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9375if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9376  echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378  if test -n "$ac_ct_AR"; then
9379  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9380else
9381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382for as_dir in $PATH
9383do
9384  IFS=$as_save_IFS
9385  test -z "$as_dir" && as_dir=.
9386  for ac_exec_ext in '' $ac_executable_extensions; do
9387  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388    ac_cv_prog_ac_ct_AR="ar"
9389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9390    break 2
9391  fi
9392done
9393done
9394
9395  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9396fi
9397fi
9398ac_ct_AR=$ac_cv_prog_ac_ct_AR
9399if test -n "$ac_ct_AR"; then
9400  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9401echo "${ECHO_T}$ac_ct_AR" >&6
9402else
9403  echo "$as_me:$LINENO: result: no" >&5
9404echo "${ECHO_T}no" >&6
9405fi
9406
9407  AR=$ac_ct_AR
9408else
9409  AR="$ac_cv_prog_AR"
9410fi
9411
9412if test -n "$ac_tool_prefix"; then
9413  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9414set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9415echo "$as_me:$LINENO: checking for $ac_word" >&5
9416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9417if test "${ac_cv_prog_RANLIB+set}" = set; then
9418  echo $ECHO_N "(cached) $ECHO_C" >&6
9419else
9420  if test -n "$RANLIB"; then
9421  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9422else
9423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424for as_dir in $PATH
9425do
9426  IFS=$as_save_IFS
9427  test -z "$as_dir" && as_dir=.
9428  for ac_exec_ext in '' $ac_executable_extensions; do
9429  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9430    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9432    break 2
9433  fi
9434done
9435done
9436
9437fi
9438fi
9439RANLIB=$ac_cv_prog_RANLIB
9440if test -n "$RANLIB"; then
9441  echo "$as_me:$LINENO: result: $RANLIB" >&5
9442echo "${ECHO_T}$RANLIB" >&6
9443else
9444  echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
9446fi
9447
9448fi
9449if test -z "$ac_cv_prog_RANLIB"; then
9450  ac_ct_RANLIB=$RANLIB
9451  # Extract the first word of "ranlib", so it can be a program name with args.
9452set dummy ranlib; ac_word=$2
9453echo "$as_me:$LINENO: checking for $ac_word" >&5
9454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9455if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9456  echo $ECHO_N "(cached) $ECHO_C" >&6
9457else
9458  if test -n "$ac_ct_RANLIB"; then
9459  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9460else
9461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462for as_dir in $PATH
9463do
9464  IFS=$as_save_IFS
9465  test -z "$as_dir" && as_dir=.
9466  for ac_exec_ext in '' $ac_executable_extensions; do
9467  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9468    ac_cv_prog_ac_ct_RANLIB="ranlib"
9469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9470    break 2
9471  fi
9472done
9473done
9474
9475  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9476fi
9477fi
9478ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9479if test -n "$ac_ct_RANLIB"; then
9480  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9481echo "${ECHO_T}$ac_ct_RANLIB" >&6
9482else
9483  echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485fi
9486
9487  RANLIB=$ac_ct_RANLIB
9488else
9489  RANLIB="$ac_cv_prog_RANLIB"
9490fi
9491
9492if test -n "$ac_tool_prefix"; then
9493  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9494set dummy ${ac_tool_prefix}strip; ac_word=$2
9495echo "$as_me:$LINENO: checking for $ac_word" >&5
9496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9497if test "${ac_cv_prog_STRIP+set}" = set; then
9498  echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500  if test -n "$STRIP"; then
9501  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9502else
9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504for as_dir in $PATH
9505do
9506  IFS=$as_save_IFS
9507  test -z "$as_dir" && as_dir=.
9508  for ac_exec_ext in '' $ac_executable_extensions; do
9509  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9510    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9512    break 2
9513  fi
9514done
9515done
9516
9517fi
9518fi
9519STRIP=$ac_cv_prog_STRIP
9520if test -n "$STRIP"; then
9521  echo "$as_me:$LINENO: result: $STRIP" >&5
9522echo "${ECHO_T}$STRIP" >&6
9523else
9524  echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
9526fi
9527
9528fi
9529if test -z "$ac_cv_prog_STRIP"; then
9530  ac_ct_STRIP=$STRIP
9531  # Extract the first word of "strip", so it can be a program name with args.
9532set dummy strip; ac_word=$2
9533echo "$as_me:$LINENO: checking for $ac_word" >&5
9534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9535if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9536  echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538  if test -n "$ac_ct_STRIP"; then
9539  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9540else
9541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542for as_dir in $PATH
9543do
9544  IFS=$as_save_IFS
9545  test -z "$as_dir" && as_dir=.
9546  for ac_exec_ext in '' $ac_executable_extensions; do
9547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9548    ac_cv_prog_ac_ct_STRIP="strip"
9549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9550    break 2
9551  fi
9552done
9553done
9554
9555  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9556fi
9557fi
9558ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9559if test -n "$ac_ct_STRIP"; then
9560  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9561echo "${ECHO_T}$ac_ct_STRIP" >&6
9562else
9563  echo "$as_me:$LINENO: result: no" >&5
9564echo "${ECHO_T}no" >&6
9565fi
9566
9567  STRIP=$ac_ct_STRIP
9568else
9569  STRIP="$ac_cv_prog_STRIP"
9570fi
9571
9572
9573old_CC="$CC"
9574old_CFLAGS="$CFLAGS"
9575
9576# Set sane defaults for various variables
9577test -z "$AR" && AR=ar
9578test -z "$AR_FLAGS" && AR_FLAGS=cru
9579test -z "$AS" && AS=as
9580test -z "$CC" && CC=cc
9581test -z "$LTCC" && LTCC=$CC
9582test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9583test -z "$DLLTOOL" && DLLTOOL=dlltool
9584test -z "$LD" && LD=ld
9585test -z "$LN_S" && LN_S="ln -s"
9586test -z "$MAGIC_CMD" && MAGIC_CMD=file
9587test -z "$NM" && NM=nm
9588test -z "$SED" && SED=sed
9589test -z "$OBJDUMP" && OBJDUMP=objdump
9590test -z "$RANLIB" && RANLIB=:
9591test -z "$STRIP" && STRIP=:
9592test -z "$ac_objext" && ac_objext=o
9593
9594# Determine commands to create old-style static archives.
9595old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9596old_postinstall_cmds='chmod 644 $oldlib'
9597old_postuninstall_cmds=
9598
9599if test -n "$RANLIB"; then
9600  case $host_os in
9601  openbsd*)
9602    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9603    ;;
9604  *)
9605    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9606    ;;
9607  esac
9608  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9609fi
9610
9611for cc_temp in $compiler""; do
9612  case $cc_temp in
9613    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9614    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9615    \-*) ;;
9616    *) break;;
9617  esac
9618done
9619cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9620
9621
9622# Only perform the check for file, if the check method requires it
9623case $deplibs_check_method in
9624file_magic*)
9625  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9626    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9627echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9628if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9629  echo $ECHO_N "(cached) $ECHO_C" >&6
9630else
9631  case $MAGIC_CMD in
9632[\\/*] |  ?:[\\/]*)
9633  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9634  ;;
9635*)
9636  lt_save_MAGIC_CMD="$MAGIC_CMD"
9637  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9638  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9639  for ac_dir in $ac_dummy; do
9640    IFS="$lt_save_ifs"
9641    test -z "$ac_dir" && ac_dir=.
9642    if test -f $ac_dir/${ac_tool_prefix}file; then
9643      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9644      if test -n "$file_magic_test_file"; then
9645        case $deplibs_check_method in
9646        "file_magic "*)
9647          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9648          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9649          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9650            $EGREP "$file_magic_regex" > /dev/null; then
9651            :
9652          else
9653            cat <<EOF 1>&2
9654
9655*** Warning: the command libtool uses to detect shared libraries,
9656*** $file_magic_cmd, produces output that libtool cannot recognize.
9657*** The result is that libtool may fail to recognize shared libraries
9658*** as such.  This will affect the creation of libtool libraries that
9659*** depend on shared libraries, but programs linked with such libtool
9660*** libraries will work regardless of this problem.  Nevertheless, you
9661*** may want to report the problem to your system manager and/or to
9662*** bug-libtool@gnu.org
9663
9664EOF
9665          fi ;;
9666        esac
9667      fi
9668      break
9669    fi
9670  done
9671  IFS="$lt_save_ifs"
9672  MAGIC_CMD="$lt_save_MAGIC_CMD"
9673  ;;
9674esac
9675fi
9676
9677MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9678if test -n "$MAGIC_CMD"; then
9679  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9680echo "${ECHO_T}$MAGIC_CMD" >&6
9681else
9682  echo "$as_me:$LINENO: result: no" >&5
9683echo "${ECHO_T}no" >&6
9684fi
9685
9686if test -z "$lt_cv_path_MAGIC_CMD"; then
9687  if test -n "$ac_tool_prefix"; then
9688    echo "$as_me:$LINENO: checking for file" >&5
9689echo $ECHO_N "checking for file... $ECHO_C" >&6
9690if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9691  echo $ECHO_N "(cached) $ECHO_C" >&6
9692else
9693  case $MAGIC_CMD in
9694[\\/*] |  ?:[\\/]*)
9695  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9696  ;;
9697*)
9698  lt_save_MAGIC_CMD="$MAGIC_CMD"
9699  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9700  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9701  for ac_dir in $ac_dummy; do
9702    IFS="$lt_save_ifs"
9703    test -z "$ac_dir" && ac_dir=.
9704    if test -f $ac_dir/file; then
9705      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9706      if test -n "$file_magic_test_file"; then
9707        case $deplibs_check_method in
9708        "file_magic "*)
9709          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9710          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9711          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9712            $EGREP "$file_magic_regex" > /dev/null; then
9713            :
9714          else
9715            cat <<EOF 1>&2
9716
9717*** Warning: the command libtool uses to detect shared libraries,
9718*** $file_magic_cmd, produces output that libtool cannot recognize.
9719*** The result is that libtool may fail to recognize shared libraries
9720*** as such.  This will affect the creation of libtool libraries that
9721*** depend on shared libraries, but programs linked with such libtool
9722*** libraries will work regardless of this problem.  Nevertheless, you
9723*** may want to report the problem to your system manager and/or to
9724*** bug-libtool@gnu.org
9725
9726EOF
9727          fi ;;
9728        esac
9729      fi
9730      break
9731    fi
9732  done
9733  IFS="$lt_save_ifs"
9734  MAGIC_CMD="$lt_save_MAGIC_CMD"
9735  ;;
9736esac
9737fi
9738
9739MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9740if test -n "$MAGIC_CMD"; then
9741  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9742echo "${ECHO_T}$MAGIC_CMD" >&6
9743else
9744  echo "$as_me:$LINENO: result: no" >&5
9745echo "${ECHO_T}no" >&6
9746fi
9747
9748  else
9749    MAGIC_CMD=:
9750  fi
9751fi
9752
9753  fi
9754  ;;
9755esac
9756
9757enable_dlopen=no
9758enable_win32_dll=no
9759
9760# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9761if test "${enable_libtool_lock+set}" = set; then
9762  enableval="$enable_libtool_lock"
9763
9764fi;
9765test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9766
9767
9768# Check whether --with-pic or --without-pic was given.
9769if test "${with_pic+set}" = set; then
9770  withval="$with_pic"
9771  pic_mode="$withval"
9772else
9773  pic_mode=default
9774fi;
9775test -z "$pic_mode" && pic_mode=default
9776
9777# Use C for the default configuration in the libtool script
9778tagname=
9779lt_save_CC="$CC"
9780ac_ext=c
9781ac_cpp='$CPP $CPPFLAGS'
9782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9784ac_compiler_gnu=$ac_cv_c_compiler_gnu
9785
9786
9787# Source file extension for C test sources.
9788ac_ext=c
9789
9790# Object file extension for compiled C test sources.
9791objext=o
9792objext=$objext
9793
9794# Code to be used in simple compile tests
9795lt_simple_compile_test_code="int some_variable = 0;\n"
9796
9797# Code to be used in simple link tests
9798lt_simple_link_test_code='int main(){return(0);}\n'
9799
9800
9801# If no C compiler was specified, use CC.
9802LTCC=${LTCC-"$CC"}
9803
9804# If no C compiler flags were specified, use CFLAGS.
9805LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9806
9807# Allow CC to be a program name with arguments.
9808compiler=$CC
9809
9810
9811# save warnings/boilerplate of simple test code
9812ac_outfile=conftest.$ac_objext
9813printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9814eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9815_lt_compiler_boilerplate=`cat conftest.err`
9816$rm conftest*
9817
9818ac_outfile=conftest.$ac_objext
9819printf "$lt_simple_link_test_code" >conftest.$ac_ext
9820eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9821_lt_linker_boilerplate=`cat conftest.err`
9822$rm conftest*
9823
9824
9825## CAVEAT EMPTOR:
9826## There is no encapsulation within the following macros, do not change
9827## the running order or otherwise move them around unless you know exactly
9828## what you are doing...
9829
9830lt_prog_compiler_no_builtin_flag=
9831
9832if test "$GCC" = yes; then
9833  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9834
9835
9836echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9837echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9838if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9839  echo $ECHO_N "(cached) $ECHO_C" >&6
9840else
9841  lt_cv_prog_compiler_rtti_exceptions=no
9842  ac_outfile=conftest.$ac_objext
9843   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9844   lt_compiler_flag="-fno-rtti -fno-exceptions"
9845   # Insert the option either (1) after the last *FLAGS variable, or
9846   # (2) before a word containing "conftest.", or (3) at the end.
9847   # Note that $ac_compile itself does not contain backslashes and begins
9848   # with a dollar sign (not a hyphen), so the echo should work correctly.
9849   # The option is referenced via a variable to avoid confusing sed.
9850   lt_compile=`echo "$ac_compile" | $SED \
9851   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9852   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9853   -e 's:$: $lt_compiler_flag:'`
9854   (eval echo "\"\$as_me:9854: $lt_compile\"" >&5)
9855   (eval "$lt_compile" 2>conftest.err)
9856   ac_status=$?
9857   cat conftest.err >&5
9858   echo "$as_me:9858: \$? = $ac_status" >&5
9859   if (exit $ac_status) && test -s "$ac_outfile"; then
9860     # The compiler can only warn and ignore the option if not recognized
9861     # So say no if there are warnings other than the usual output.
9862     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9863     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9864     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9865       lt_cv_prog_compiler_rtti_exceptions=yes
9866     fi
9867   fi
9868   $rm conftest*
9869
9870fi
9871echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9872echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9873
9874if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9875    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9876else
9877    :
9878fi
9879
9880fi
9881
9882lt_prog_compiler_wl=
9883lt_prog_compiler_pic=
9884lt_prog_compiler_static=
9885
9886echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9887echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9888
9889  if test "$GCC" = yes; then
9890    lt_prog_compiler_wl='-Wl,'
9891    lt_prog_compiler_static='-static'
9892
9893    case $host_os in
9894      aix*)
9895      # All AIX code is PIC.
9896      if test "$host_cpu" = ia64; then
9897        # AIX 5 now supports IA64 processor
9898        lt_prog_compiler_static='-Bstatic'
9899      fi
9900      ;;
9901
9902    amigaos*)
9903      # FIXME: we need at least 68020 code to build shared libraries, but
9904      # adding the `-m68020' flag to GCC prevents building anything better,
9905      # like `-m68040'.
9906      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9907      ;;
9908
9909    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9910      # PIC is the default for these OSes.
9911      ;;
9912
9913    mingw* | pw32* | os2*)
9914      # This hack is so that the source file can tell whether it is being
9915      # built for inclusion in a dll (and should export symbols for example).
9916      lt_prog_compiler_pic='-DDLL_EXPORT'
9917      ;;
9918
9919    darwin* | rhapsody*)
9920      # PIC is the default on this platform
9921      # Common symbols not allowed in MH_DYLIB files
9922      lt_prog_compiler_pic='-fno-common'
9923      ;;
9924
9925    interix3*)
9926      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9927      # Instead, we relocate shared libraries at runtime.
9928      ;;
9929
9930    msdosdjgpp*)
9931      # Just because we use GCC doesn't mean we suddenly get shared libraries
9932      # on systems that don't support them.
9933      lt_prog_compiler_can_build_shared=no
9934      enable_shared=no
9935      ;;
9936
9937    sysv4*MP*)
9938      if test -d /usr/nec; then
9939        lt_prog_compiler_pic=-Kconform_pic
9940      fi
9941      ;;
9942
9943    hpux*)
9944      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9945      # not for PA HP-UX.
9946      case $host_cpu in
9947      hppa*64*|ia64*)
9948        # +Z the default
9949        ;;
9950      *)
9951        lt_prog_compiler_pic='-fPIC'
9952        ;;
9953      esac
9954      ;;
9955
9956    *)
9957      lt_prog_compiler_pic='-fPIC'
9958      ;;
9959    esac
9960  else
9961    # PORTME Check for flag to pass linker flags through the system compiler.
9962    case $host_os in
9963    aix*)
9964      lt_prog_compiler_wl='-Wl,'
9965      if test "$host_cpu" = ia64; then
9966        # AIX 5 now supports IA64 processor
9967        lt_prog_compiler_static='-Bstatic'
9968      else
9969        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9970      fi
9971      ;;
9972      darwin*)
9973        # PIC is the default on this platform
9974        # Common symbols not allowed in MH_DYLIB files
9975       case $cc_basename in
9976         xlc*)
9977         lt_prog_compiler_pic='-qnocommon'
9978         lt_prog_compiler_wl='-Wl,'
9979         ;;
9980       esac
9981       ;;
9982
9983    mingw* | pw32* | os2*)
9984      # This hack is so that the source file can tell whether it is being
9985      # built for inclusion in a dll (and should export symbols for example).
9986      lt_prog_compiler_pic='-DDLL_EXPORT'
9987      ;;
9988
9989    hpux9* | hpux10* | hpux11*)
9990      lt_prog_compiler_wl='-Wl,'
9991      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9992      # not for PA HP-UX.
9993      case $host_cpu in
9994      hppa*64*|ia64*)
9995        # +Z the default
9996        ;;
9997      *)
9998        lt_prog_compiler_pic='+Z'
9999        ;;
10000      esac
10001      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10002      lt_prog_compiler_static='${wl}-a ${wl}archive'
10003      ;;
10004
10005    irix5* | irix6* | nonstopux*)
10006      lt_prog_compiler_wl='-Wl,'
10007      # PIC (with -KPIC) is the default.
10008      lt_prog_compiler_static='-non_shared'
10009      ;;
10010
10011    newsos6)
10012      lt_prog_compiler_pic='-KPIC'
10013      lt_prog_compiler_static='-Bstatic'
10014      ;;
10015
10016    linux*)
10017      case $cc_basename in
10018      icc* | ecc*)
10019        lt_prog_compiler_wl='-Wl,'
10020        lt_prog_compiler_pic='-KPIC'
10021        lt_prog_compiler_static='-static'
10022        ;;
10023      pgcc* | pgf77* | pgf90* | pgf95*)
10024        # Portland Group compilers (*not* the Pentium gcc compiler,
10025        # which looks to be a dead project)
10026        lt_prog_compiler_wl='-Wl,'
10027        lt_prog_compiler_pic='-fpic'
10028        lt_prog_compiler_static='-Bstatic'
10029        ;;
10030      ccc*)
10031        lt_prog_compiler_wl='-Wl,'
10032        # All Alpha code is PIC.
10033        lt_prog_compiler_static='-non_shared'
10034        ;;
10035      esac
10036      ;;
10037
10038    osf3* | osf4* | osf5*)
10039      lt_prog_compiler_wl='-Wl,'
10040      # All OSF/1 code is PIC.
10041      lt_prog_compiler_static='-non_shared'
10042      ;;
10043
10044    solaris*)
10045      lt_prog_compiler_pic='-KPIC'
10046      lt_prog_compiler_static='-Bstatic'
10047      case $cc_basename in
10048      f77* | f90* | f95*)
10049        lt_prog_compiler_wl='-Qoption ld ';;
10050      *)
10051        lt_prog_compiler_wl='-Wl,';;
10052      esac
10053      ;;
10054
10055    sunos4*)
10056      lt_prog_compiler_wl='-Qoption ld '
10057      lt_prog_compiler_pic='-PIC'
10058      lt_prog_compiler_static='-Bstatic'
10059      ;;
10060
10061    sysv4 | sysv4.2uw2* | sysv4.3*)
10062      lt_prog_compiler_wl='-Wl,'
10063      lt_prog_compiler_pic='-KPIC'
10064      lt_prog_compiler_static='-Bstatic'
10065      ;;
10066
10067    sysv4*MP*)
10068      if test -d /usr/nec ;then
10069        lt_prog_compiler_pic='-Kconform_pic'
10070        lt_prog_compiler_static='-Bstatic'
10071      fi
10072      ;;
10073
10074    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10075      lt_prog_compiler_wl='-Wl,'
10076      lt_prog_compiler_pic='-KPIC'
10077      lt_prog_compiler_static='-Bstatic'
10078      ;;
10079
10080    unicos*)
10081      lt_prog_compiler_wl='-Wl,'
10082      lt_prog_compiler_can_build_shared=no
10083      ;;
10084
10085    uts4*)
10086      lt_prog_compiler_pic='-pic'
10087      lt_prog_compiler_static='-Bstatic'
10088      ;;
10089
10090    *)
10091      lt_prog_compiler_can_build_shared=no
10092      ;;
10093    esac
10094  fi
10095
10096echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10097echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10098
10099#
10100# Check to make sure the PIC flag actually works.
10101#
10102if test -n "$lt_prog_compiler_pic"; then
10103
10104echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10105echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10106if test "${lt_prog_compiler_pic_works+set}" = set; then
10107  echo $ECHO_N "(cached) $ECHO_C" >&6
10108else
10109  lt_prog_compiler_pic_works=no
10110  ac_outfile=conftest.$ac_objext
10111   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10112   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10113   # Insert the option either (1) after the last *FLAGS variable, or
10114   # (2) before a word containing "conftest.", or (3) at the end.
10115   # Note that $ac_compile itself does not contain backslashes and begins
10116   # with a dollar sign (not a hyphen), so the echo should work correctly.
10117   # The option is referenced via a variable to avoid confusing sed.
10118   lt_compile=`echo "$ac_compile" | $SED \
10119   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10121   -e 's:$: $lt_compiler_flag:'`
10122   (eval echo "\"\$as_me:10122: $lt_compile\"" >&5)
10123   (eval "$lt_compile" 2>conftest.err)
10124   ac_status=$?
10125   cat conftest.err >&5
10126   echo "$as_me:10126: \$? = $ac_status" >&5
10127   if (exit $ac_status) && test -s "$ac_outfile"; then
10128     # The compiler can only warn and ignore the option if not recognized
10129     # So say no if there are warnings other than the usual output.
10130     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10131     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10132     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10133       lt_prog_compiler_pic_works=yes
10134     fi
10135   fi
10136   $rm conftest*
10137
10138fi
10139echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10140echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10141
10142if test x"$lt_prog_compiler_pic_works" = xyes; then
10143    case $lt_prog_compiler_pic in
10144     "" | " "*) ;;
10145     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10146     esac
10147else
10148    lt_prog_compiler_pic=
10149     lt_prog_compiler_can_build_shared=no
10150fi
10151
10152fi
10153case $host_os in
10154  # For platforms which do not support PIC, -DPIC is meaningless:
10155  *djgpp*)
10156    lt_prog_compiler_pic=
10157    ;;
10158  *)
10159    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10160    ;;
10161esac
10162
10163#
10164# Check to make sure the static flag actually works.
10165#
10166wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10167echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10168echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10169if test "${lt_prog_compiler_static_works+set}" = set; then
10170  echo $ECHO_N "(cached) $ECHO_C" >&6
10171else
10172  lt_prog_compiler_static_works=no
10173   save_LDFLAGS="$LDFLAGS"
10174   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10175   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10176   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10177     # The linker can only warn and ignore the option if not recognized
10178     # So say no if there are warnings
10179     if test -s conftest.err; then
10180       # Append any errors to the config.log.
10181       cat conftest.err 1>&5
10182       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10183       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10184       if diff conftest.exp conftest.er2 >/dev/null; then
10185         lt_prog_compiler_static_works=yes
10186       fi
10187     else
10188       lt_prog_compiler_static_works=yes
10189     fi
10190   fi
10191   $rm conftest*
10192   LDFLAGS="$save_LDFLAGS"
10193
10194fi
10195echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10196echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10197
10198if test x"$lt_prog_compiler_static_works" = xyes; then
10199    :
10200else
10201    lt_prog_compiler_static=
10202fi
10203
10204
10205echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10206echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10207if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10208  echo $ECHO_N "(cached) $ECHO_C" >&6
10209else
10210  lt_cv_prog_compiler_c_o=no
10211   $rm -r conftest 2>/dev/null
10212   mkdir conftest
10213   cd conftest
10214   mkdir out
10215   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10216
10217   lt_compiler_flag="-o out/conftest2.$ac_objext"
10218   # Insert the option either (1) after the last *FLAGS variable, or
10219   # (2) before a word containing "conftest.", or (3) at the end.
10220   # Note that $ac_compile itself does not contain backslashes and begins
10221   # with a dollar sign (not a hyphen), so the echo should work correctly.
10222   lt_compile=`echo "$ac_compile" | $SED \
10223   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10224   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10225   -e 's:$: $lt_compiler_flag:'`
10226   (eval echo "\"\$as_me:10226: $lt_compile\"" >&5)
10227   (eval "$lt_compile" 2>out/conftest.err)
10228   ac_status=$?
10229   cat out/conftest.err >&5
10230   echo "$as_me:10230: \$? = $ac_status" >&5
10231   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10232   then
10233     # The compiler can only warn and ignore the option if not recognized
10234     # So say no if there are warnings
10235     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10236     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10237     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10238       lt_cv_prog_compiler_c_o=yes
10239     fi
10240   fi
10241   chmod u+w . 2>&5
10242   $rm conftest*
10243   # SGI C++ compiler will create directory out/ii_files/ for
10244   # template instantiation
10245   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10246   $rm out/* && rmdir out
10247   cd ..
10248   rmdir conftest
10249   $rm conftest*
10250
10251fi
10252echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10253echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10254
10255
10256hard_links="nottested"
10257if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10258  # do not overwrite the value of need_locks provided by the user
10259  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10260echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10261  hard_links=yes
10262  $rm conftest*
10263  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10264  touch conftest.a
10265  ln conftest.a conftest.b 2>&5 || hard_links=no
10266  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10267  echo "$as_me:$LINENO: result: $hard_links" >&5
10268echo "${ECHO_T}$hard_links" >&6
10269  if test "$hard_links" = no; then
10270    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10271echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10272    need_locks=warn
10273  fi
10274else
10275  need_locks=no
10276fi
10277
10278echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10279echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10280
10281  runpath_var=
10282  allow_undefined_flag=
10283  enable_shared_with_static_runtimes=no
10284  archive_cmds=
10285  archive_expsym_cmds=
10286  old_archive_From_new_cmds=
10287  old_archive_from_expsyms_cmds=
10288  export_dynamic_flag_spec=
10289  whole_archive_flag_spec=
10290  thread_safe_flag_spec=
10291  hardcode_libdir_flag_spec=
10292  hardcode_libdir_flag_spec_ld=
10293  hardcode_libdir_separator=
10294  hardcode_direct=no
10295  hardcode_minus_L=no
10296  hardcode_shlibpath_var=unsupported
10297  link_all_deplibs=unknown
10298  hardcode_automatic=no
10299  module_cmds=
10300  module_expsym_cmds=
10301  always_export_symbols=no
10302  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10303  # include_expsyms should be a list of space-separated symbols to be *always*
10304  # included in the symbol list
10305  include_expsyms=
10306  # exclude_expsyms can be an extended regexp of symbols to exclude
10307  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10308  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10309  # as well as any symbol that contains `d'.
10310  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10311  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10312  # platforms (ab)use it in PIC code, but their linkers get confused if
10313  # the symbol is explicitly referenced.  Since portable code cannot
10314  # rely on this symbol name, it's probably fine to never include it in
10315  # preloaded symbol tables.
10316  extract_expsyms_cmds=
10317  # Just being paranoid about ensuring that cc_basename is set.
10318  for cc_temp in $compiler""; do
10319  case $cc_temp in
10320    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10321    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10322    \-*) ;;
10323    *) break;;
10324  esac
10325done
10326cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10327
10328  case $host_os in
10329  cygwin* | mingw* | pw32*)
10330    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10331    # When not using gcc, we currently assume that we are using
10332    # Microsoft Visual C++.
10333    if test "$GCC" != yes; then
10334      with_gnu_ld=no
10335    fi
10336    ;;
10337  interix*)
10338    # we just hope/assume this is gcc and not c89 (= MSVC++)
10339    with_gnu_ld=yes
10340    ;;
10341  openbsd*)
10342    with_gnu_ld=no
10343    ;;
10344  esac
10345
10346  ld_shlibs=yes
10347  if test "$with_gnu_ld" = yes; then
10348    # If archive_cmds runs LD, not CC, wlarc should be empty
10349    wlarc='${wl}'
10350
10351    # Set some defaults for GNU ld with shared library support. These
10352    # are reset later if shared libraries are not supported. Putting them
10353    # here allows them to be overridden if necessary.
10354    runpath_var=LD_RUN_PATH
10355    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10356    export_dynamic_flag_spec='${wl}--export-dynamic'
10357    # ancient GNU ld didn't support --whole-archive et. al.
10358    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10359        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10360      else
10361        whole_archive_flag_spec=
10362    fi
10363    supports_anon_versioning=no
10364    case `$LD -v 2>/dev/null` in
10365      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10366      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10367      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10368      *\ 2.11.*) ;; # other 2.11 versions
10369      *) supports_anon_versioning=yes ;;
10370    esac
10371
10372    # See if GNU ld supports shared libraries.
10373    case $host_os in
10374    aix3* | aix4* | aix5*)
10375      # On AIX/PPC, the GNU linker is very broken
10376      if test "$host_cpu" != ia64; then
10377        ld_shlibs=no
10378        cat <<EOF 1>&2
10379
10380*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10381*** to be unable to reliably create shared libraries on AIX.
10382*** Therefore, libtool is disabling shared libraries support.  If you
10383*** really care for shared libraries, you may want to modify your PATH
10384*** so that a non-GNU linker is found, and then restart.
10385
10386EOF
10387      fi
10388      ;;
10389
10390    amigaos*)
10391      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)'
10392      hardcode_libdir_flag_spec='-L$libdir'
10393      hardcode_minus_L=yes
10394
10395      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10396      # that the semantics of dynamic libraries on AmigaOS, at least up
10397      # to version 4, is to share data among multiple programs linked
10398      # with the same dynamic library.  Since this doesn't match the
10399      # behavior of shared libraries on other platforms, we can't use
10400      # them.
10401      ld_shlibs=no
10402      ;;
10403
10404    beos*)
10405      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10406        allow_undefined_flag=unsupported
10407        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10408        # support --undefined.  This deserves some investigation.  FIXME
10409        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10410      else
10411        ld_shlibs=no
10412      fi
10413      ;;
10414
10415    cygwin* | mingw* | pw32*)
10416      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10417      # as there is no search path for DLLs.
10418      hardcode_libdir_flag_spec='-L$libdir'
10419      allow_undefined_flag=unsupported
10420      always_export_symbols=no
10421      enable_shared_with_static_runtimes=yes
10422      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10423
10424      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10425        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10426        # If the export-symbols file already is a .def file (1st line
10427        # is EXPORTS), use it as is; otherwise, prepend...
10428        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10429          cp $export_symbols $output_objdir/$soname.def;
10430        else
10431          echo EXPORTS > $output_objdir/$soname.def;
10432          cat $export_symbols >> $output_objdir/$soname.def;
10433        fi~
10434        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10435      else
10436        ld_shlibs=no
10437      fi
10438      ;;
10439
10440    interix3*)
10441      hardcode_direct=no
10442      hardcode_shlibpath_var=no
10443      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10444      export_dynamic_flag_spec='${wl}-E'
10445      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10446      # Instead, shared libraries are loaded at an image base (0x10000000 by
10447      # default) and relocated if they conflict, which is a slow very memory
10448      # consuming and fragmenting process.  To avoid this, we pick a random,
10449      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10450      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10451      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10452      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'
10453      ;;
10454
10455    linux*)
10456      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10457        tmp_addflag=
10458        case $cc_basename,$host_cpu in
10459        pgcc*)                          # Portland Group C compiler
10460          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'
10461          tmp_addflag=' $pic_flag'
10462          ;;
10463        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10464          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'
10465          tmp_addflag=' $pic_flag -Mnomain' ;;
10466        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10467          tmp_addflag=' -i_dynamic' ;;
10468        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10469          tmp_addflag=' -i_dynamic -nofor_main' ;;
10470        ifc* | ifort*)                  # Intel Fortran compiler
10471          tmp_addflag=' -nofor_main' ;;
10472        esac
10473        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10474
10475        if test $supports_anon_versioning = yes; then
10476          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10477  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10478  $echo "local: *; };" >> $output_objdir/$libname.ver~
10479          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10480        fi
10481      else
10482        ld_shlibs=no
10483      fi
10484      ;;
10485
10486    netbsd*)
10487      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10488        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10489        wlarc=
10490      else
10491        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10492        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10493      fi
10494      ;;
10495
10496    solaris*)
10497      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10498        ld_shlibs=no
10499        cat <<EOF 1>&2
10500
10501*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10502*** create shared libraries on Solaris systems.  Therefore, libtool
10503*** is disabling shared libraries support.  We urge you to upgrade GNU
10504*** binutils to release 2.9.1 or newer.  Another option is to modify
10505*** your PATH or compiler configuration so that the native linker is
10506*** used, and then restart.
10507
10508EOF
10509      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10510        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10511        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10512      else
10513        ld_shlibs=no
10514      fi
10515      ;;
10516
10517    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10518      case `$LD -v 2>&1` in
10519        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10520        ld_shlibs=no
10521        cat <<_LT_EOF 1>&2
10522
10523*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10524*** reliably create shared libraries on SCO systems.  Therefore, libtool
10525*** is disabling shared libraries support.  We urge you to upgrade GNU
10526*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10527*** your PATH or compiler configuration so that the native linker is
10528*** used, and then restart.
10529
10530_LT_EOF
10531        ;;
10532        *)
10533          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10534            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10535            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10536            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10537          else
10538            ld_shlibs=no
10539          fi
10540        ;;
10541      esac
10542      ;;
10543
10544    sunos4*)
10545      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10546      wlarc=
10547      hardcode_direct=yes
10548      hardcode_shlibpath_var=no
10549      ;;
10550
10551    *)
10552      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10553        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10554        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10555      else
10556        ld_shlibs=no
10557      fi
10558      ;;
10559    esac
10560
10561    if test "$ld_shlibs" = no; then
10562      runpath_var=
10563      hardcode_libdir_flag_spec=
10564      export_dynamic_flag_spec=
10565      whole_archive_flag_spec=
10566    fi
10567  else
10568    # PORTME fill in a description of your system's linker (not GNU ld)
10569    case $host_os in
10570    aix3*)
10571      allow_undefined_flag=unsupported
10572      always_export_symbols=yes
10573      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'
10574      # Note: this linker hardcodes the directories in LIBPATH if there
10575      # are no directories specified by -L.
10576      hardcode_minus_L=yes
10577      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10578        # Neither direct hardcoding nor static linking is supported with a
10579        # broken collect2.
10580        hardcode_direct=unsupported
10581      fi
10582      ;;
10583
10584    aix4* | aix5*)
10585      if test "$host_cpu" = ia64; then
10586        # On IA64, the linker does run time linking by default, so we don't
10587        # have to do anything special.
10588        aix_use_runtimelinking=no
10589        exp_sym_flag='-Bexport'
10590        no_entry_flag=""
10591      else
10592        # If we're using GNU nm, then we don't want the "-C" option.
10593        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10594        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10595          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'
10596        else
10597          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'
10598        fi
10599        aix_use_runtimelinking=no
10600
10601        # Test if we are trying to use run time linking or normal
10602        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10603        # need to do runtime linking.
10604        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10605          for ld_flag in $LDFLAGS; do
10606          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10607            aix_use_runtimelinking=yes
10608            break
10609          fi
10610          done
10611          ;;
10612        esac
10613
10614        exp_sym_flag='-bexport'
10615        no_entry_flag='-bnoentry'
10616      fi
10617
10618      # When large executables or shared objects are built, AIX ld can
10619      # have problems creating the table of contents.  If linking a library
10620      # or program results in "error TOC overflow" add -mminimal-toc to
10621      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10622      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10623
10624      archive_cmds=''
10625      hardcode_direct=yes
10626      hardcode_libdir_separator=':'
10627      link_all_deplibs=yes
10628
10629      if test "$GCC" = yes; then
10630        case $host_os in aix4.[012]|aix4.[012].*)
10631        # We only want to do this on AIX 4.2 and lower, the check
10632        # below for broken collect2 doesn't work under 4.3+
10633          collect2name=`${CC} -print-prog-name=collect2`
10634          if test -f "$collect2name" && \
10635           strings "$collect2name" | grep resolve_lib_name >/dev/null
10636          then
10637          # We have reworked collect2
10638          hardcode_direct=yes
10639          else
10640          # We have old collect2
10641          hardcode_direct=unsupported
10642          # It fails to find uninstalled libraries when the uninstalled
10643          # path is not listed in the libpath.  Setting hardcode_minus_L
10644          # to unsupported forces relinking
10645          hardcode_minus_L=yes
10646          hardcode_libdir_flag_spec='-L$libdir'
10647          hardcode_libdir_separator=
10648          fi
10649          ;;
10650        esac
10651        shared_flag='-shared'
10652        if test "$aix_use_runtimelinking" = yes; then
10653          shared_flag="$shared_flag "'${wl}-G'
10654        fi
10655      else
10656        # not using gcc
10657        if test "$host_cpu" = ia64; then
10658        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10659        # chokes on -Wl,-G. The following line is correct:
10660          shared_flag='-G'
10661        else
10662          if test "$aix_use_runtimelinking" = yes; then
10663            shared_flag='${wl}-G'
10664          else
10665            shared_flag='${wl}-bM:SRE'
10666          fi
10667        fi
10668      fi
10669
10670      # It seems that -bexpall does not export symbols beginning with
10671      # underscore (_), so it is better to generate a list of symbols to export.
10672      always_export_symbols=yes
10673      if test "$aix_use_runtimelinking" = yes; then
10674        # Warning - without using the other runtime loading flags (-brtl),
10675        # -berok will link without error, but may produce a broken library.
10676        allow_undefined_flag='-berok'
10677       # Determine the default libpath from the value encoded in an empty executable.
10678       cat >conftest.$ac_ext <<_ACEOF
10679/* confdefs.h.  */
10680_ACEOF
10681cat confdefs.h >>conftest.$ac_ext
10682cat >>conftest.$ac_ext <<_ACEOF
10683/* end confdefs.h.  */
10684
10685#ifdef F77_DUMMY_MAIN
10686
10687#  ifdef __cplusplus
10688     extern "C"
10689#  endif
10690   int F77_DUMMY_MAIN() { return 1; }
10691
10692#endif
10693int
10694main ()
10695{
10696
10697  ;
10698  return 0;
10699}
10700_ACEOF
10701rm -f conftest.$ac_objext conftest$ac_exeext
10702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703  (eval $ac_link) 2>conftest.er1
10704  ac_status=$?
10705  grep -v '^ *+' conftest.er1 >conftest.err
10706  rm -f conftest.er1
10707  cat conftest.err >&5
10708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709  (exit $ac_status); } &&
10710         { ac_try='test -z "$ac_c_werror_flag"
10711                         || test ! -s conftest.err'
10712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713  (eval $ac_try) 2>&5
10714  ac_status=$?
10715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716  (exit $ac_status); }; } &&
10717         { ac_try='test -s conftest$ac_exeext'
10718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719  (eval $ac_try) 2>&5
10720  ac_status=$?
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); }; }; then
10723
10724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10725}'`
10726# Check for a 64-bit object if we didn't find anything.
10727if 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; }
10728}'`; fi
10729else
10730  echo "$as_me: failed program was:" >&5
10731sed 's/^/| /' conftest.$ac_ext >&5
10732
10733fi
10734rm -f conftest.err conftest.$ac_objext \
10735      conftest$ac_exeext conftest.$ac_ext
10736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10737
10738       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10739        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"
10740       else
10741        if test "$host_cpu" = ia64; then
10742          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10743          allow_undefined_flag="-z nodefs"
10744          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"
10745        else
10746         # Determine the default libpath from the value encoded in an empty executable.
10747         cat >conftest.$ac_ext <<_ACEOF
10748/* confdefs.h.  */
10749_ACEOF
10750cat confdefs.h >>conftest.$ac_ext
10751cat >>conftest.$ac_ext <<_ACEOF
10752/* end confdefs.h.  */
10753
10754#ifdef F77_DUMMY_MAIN
10755
10756#  ifdef __cplusplus
10757     extern "C"
10758#  endif
10759   int F77_DUMMY_MAIN() { return 1; }
10760
10761#endif
10762int
10763main ()
10764{
10765
10766  ;
10767  return 0;
10768}
10769_ACEOF
10770rm -f conftest.$ac_objext conftest$ac_exeext
10771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772  (eval $ac_link) 2>conftest.er1
10773  ac_status=$?
10774  grep -v '^ *+' conftest.er1 >conftest.err
10775  rm -f conftest.er1
10776  cat conftest.err >&5
10777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778  (exit $ac_status); } &&
10779         { ac_try='test -z "$ac_c_werror_flag"
10780                         || test ! -s conftest.err'
10781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782  (eval $ac_try) 2>&5
10783  ac_status=$?
10784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785  (exit $ac_status); }; } &&
10786         { ac_try='test -s conftest$ac_exeext'
10787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788  (eval $ac_try) 2>&5
10789  ac_status=$?
10790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791  (exit $ac_status); }; }; then
10792
10793aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10794}'`
10795# Check for a 64-bit object if we didn't find anything.
10796if 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; }
10797}'`; fi
10798else
10799  echo "$as_me: failed program was:" >&5
10800sed 's/^/| /' conftest.$ac_ext >&5
10801
10802fi
10803rm -f conftest.err conftest.$ac_objext \
10804      conftest$ac_exeext conftest.$ac_ext
10805if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10806
10807         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10808          # Warning - without using the other run time loading flags,
10809          # -berok will link without error, but may produce a broken library.
10810          no_undefined_flag=' ${wl}-bernotok'
10811          allow_undefined_flag=' ${wl}-berok'
10812          # Exported symbols can be pulled into shared objects from archives
10813          whole_archive_flag_spec='$convenience'
10814          archive_cmds_need_lc=yes
10815          # This is similar to how AIX traditionally builds its shared libraries.
10816          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'
10817        fi
10818      fi
10819      ;;
10820
10821    amigaos*)
10822      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)'
10823      hardcode_libdir_flag_spec='-L$libdir'
10824      hardcode_minus_L=yes
10825      # see comment about different semantics on the GNU ld section
10826      ld_shlibs=no
10827      ;;
10828
10829    bsdi[45]*)
10830      export_dynamic_flag_spec=-rdynamic
10831      ;;
10832
10833    cygwin* | mingw* | pw32*)
10834      # When not using gcc, we currently assume that we are using
10835      # Microsoft Visual C++.
10836      # hardcode_libdir_flag_spec is actually meaningless, as there is
10837      # no search path for DLLs.
10838      hardcode_libdir_flag_spec=' '
10839      allow_undefined_flag=unsupported
10840      # Tell ltmain to make .lib files, not .a files.
10841      libext=lib
10842      # Tell ltmain to make .dll files, not .so files.
10843      shrext_cmds=".dll"
10844      # FIXME: Setting linknames here is a bad hack.
10845      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10846      # The linker will automatically build a .lib file if we build a DLL.
10847      old_archive_From_new_cmds='true'
10848      # FIXME: Should let the user specify the lib program.
10849      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10850      fix_srcfile_path='`cygpath -w "$srcfile"`'
10851      enable_shared_with_static_runtimes=yes
10852      ;;
10853
10854    darwin* | rhapsody*)
10855      case $host_os in
10856        rhapsody* | darwin1.[012])
10857         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10858         ;;
10859       *) # Darwin 1.3 on
10860         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10861           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'