source: ThirdParty/FilterSQP/stable/1.2/configure @ 3016

Last change on this file since 3016 was 3016, checked in by stefan, 7 years ago

temporarily committing release candidate

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