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

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

restoring BuildTools/ThirdParty?/FilterSQP/stable/1.2

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