source: branches/autotools-update/Clp/configure @ 2316

Last change on this file since 2316 was 2316, checked in by lou, 16 months ago

Collateral damage for BuildTools r3811.

  • Property svn:executable set to *
File size: 846.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Clp trunk.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14#
15# Copyright 2006 International Business Machines and others.
16# All Rights Reserved.
17# This file is part of the open source package Clp which is distributed
18# under the Eclipse Public License.
19## -------------------- ##
20## M4sh Initialization. ##
21## -------------------- ##
22
23# Be more Bourne compatible
24DUALCASE=1; export DUALCASE # for MKS sh
25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26  emulate sh
27  NULLCMD=:
28  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29  # is contrary to our usage.  Disable this feature.
30  alias -g '${1+"$@"}'='"$@"'
31  setopt NO_GLOB_SUBST
32else
33  case `(set -o) 2>/dev/null` in #(
34  *posix*) :
35    set -o posix ;; #(
36  *) :
37     ;;
38esac
39fi
40
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49# Prefer a ksh shell builtin over an external printf program on Solaris,
50# but without wasting forks for bash or zsh.
51if test -z "$BASH_VERSION$ZSH_VERSION" \
52    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='print -r --'
54  as_echo_n='print -rn --'
55elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56  as_echo='printf %s\n'
57  as_echo_n='printf %s'
58else
59  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61    as_echo_n='/usr/ucb/echo -n'
62  else
63    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64    as_echo_n_body='eval
65      arg=$1;
66      case $arg in #(
67      *"$as_nl"*)
68        expr "X$arg" : "X\\(.*\\)$as_nl";
69        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70      esac;
71      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72    '
73    export as_echo_n_body
74    as_echo_n='sh -c $as_echo_n_body as_echo'
75  fi
76  export as_echo_body
77  as_echo='sh -c $as_echo_body as_echo'
78fi
79
80# The user is always right.
81if test "${PATH_SEPARATOR+set}" != set; then
82  PATH_SEPARATOR=:
83  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85      PATH_SEPARATOR=';'
86  }
87fi
88
89
90# IFS
91# We need space, tab and new line, in precisely that order.  Quoting is
92# there to prevent editors from complaining about space-tab.
93# (If _AS_PATH_WALK were called with IFS unset, it would disable word
94# splitting by setting IFS to empty value.)
95IFS=" ""        $as_nl"
96
97# Find who we are.  Look in the path if we contain no directory separator.
98as_myself=
99case $0 in #((
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107  done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  exit 1
120fi
121
122# Unset variables that we do not need and which cause bugs (e.g. in
123# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
124# suppresses any "Segmentation fault" message there.  '((' could
125# trigger a bug in pdksh 5.2.14.
126for as_var in BASH_ENV ENV MAIL MAILPATH
127do eval test x\${$as_var+set} = xset \
128  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
129done
130PS1='$ '
131PS2='> '
132PS4='+ '
133
134# NLS nuisances.
135LC_ALL=C
136export LC_ALL
137LANGUAGE=C
138export LANGUAGE
139
140# CDPATH.
141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142
143# Use a proper internal environment variable to ensure we don't fall
144  # into an infinite loop, continuously re-executing ourselves.
145  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
146    _as_can_reexec=no; export _as_can_reexec;
147    # We cannot yet assume a decent shell, so we have to provide a
148# neutralization value for shells without unset; and this also
149# works around shells that cannot unset nonexistent variables.
150# Preserve -v and -x to the replacement shell.
151BASH_ENV=/dev/null
152ENV=/dev/null
153(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
154case $- in # ((((
155  *v*x* | *x*v* ) as_opts=-vx ;;
156  *v* ) as_opts=-v ;;
157  *x* ) as_opts=-x ;;
158  * ) as_opts= ;;
159esac
160exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
161# Admittedly, this is quite paranoid, since all the known shells bail
162# out after a failed `exec'.
163$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
164as_fn_exit 255
165  fi
166  # We don't want this to propagate to other subprocesses.
167          { _as_can_reexec=; unset _as_can_reexec;}
168if test "x$CONFIG_SHELL" = x; then
169  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
170  emulate sh
171  NULLCMD=:
172  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
173  # is contrary to our usage.  Disable this feature.
174  alias -g '\${1+\"\$@\"}'='\"\$@\"'
175  setopt NO_GLOB_SUBST
176else
177  case \`(set -o) 2>/dev/null\` in #(
178  *posix*) :
179    set -o posix ;; #(
180  *) :
181     ;;
182esac
183fi
184"
185  as_required="as_fn_return () { (exit \$1); }
186as_fn_success () { as_fn_return 0; }
187as_fn_failure () { as_fn_return 1; }
188as_fn_ret_success () { return 0; }
189as_fn_ret_failure () { return 1; }
190
191exitcode=0
192as_fn_success || { exitcode=1; echo as_fn_success failed.; }
193as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
194as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
195as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
196if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
197
198else
199  exitcode=1; echo positional parameters were not saved.
200fi
201test x\$exitcode = x0 || exit 1
202test -x / || exit 1"
203  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
204  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
205  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
206  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
207
208  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
209    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
210    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
211    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
212    PATH=/empty FPATH=/empty; export PATH FPATH
213    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
214      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
215test \$(( 1 + 1 )) = 2 || exit 1"
216  if (eval "$as_required") 2>/dev/null; then :
217  as_have_required=yes
218else
219  as_have_required=no
220fi
221  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
222
223else
224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225as_found=false
226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227do
228  IFS=$as_save_IFS
229  test -z "$as_dir" && as_dir=.
230  as_found=:
231  case $as_dir in #(
232         /*)
233           for as_base in sh bash ksh sh5; do
234             # Try only shells that exist, to save several forks.
235             as_shell=$as_dir/$as_base
236             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
238  CONFIG_SHELL=$as_shell as_have_required=yes
239                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
240  break 2
241fi
242fi
243           done;;
244       esac
245  as_found=false
246done
247$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
248              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
249  CONFIG_SHELL=$SHELL as_have_required=yes
250fi; }
251IFS=$as_save_IFS
252
253
254      if test "x$CONFIG_SHELL" != x; then :
255  export CONFIG_SHELL
256             # We cannot yet assume a decent shell, so we have to provide a
257# neutralization value for shells without unset; and this also
258# works around shells that cannot unset nonexistent variables.
259# Preserve -v and -x to the replacement shell.
260BASH_ENV=/dev/null
261ENV=/dev/null
262(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
263case $- in # ((((
264  *v*x* | *x*v* ) as_opts=-vx ;;
265  *v* ) as_opts=-v ;;
266  *x* ) as_opts=-x ;;
267  * ) as_opts= ;;
268esac
269exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
270# Admittedly, this is quite paranoid, since all the known shells bail
271# out after a failed `exec'.
272$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
273exit 255
274fi
275
276    if test x$as_have_required = xno; then :
277  $as_echo "$0: This script requires a shell more modern than all"
278  $as_echo "$0: the shells that I found on your system."
279  if test x${ZSH_VERSION+set} = xset ; then
280    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
281    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
282  else
283    $as_echo "$0: Please tell bug-autoconf@gnu.org and
284$0: clp@list.coin-or.org about your system, including any
285$0: error possibly output before this message. Then install
286$0: a modern shell, or manually run the script under such a
287$0: shell if you do have one."
288  fi
289  exit 1
290fi
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311# as_fn_set_status STATUS
312# -----------------------
313# Set $? to STATUS, without forking.
314as_fn_set_status ()
315{
316  return $1
317} # as_fn_set_status
318
319# as_fn_exit STATUS
320# -----------------
321# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322as_fn_exit ()
323{
324  set +e
325  as_fn_set_status $1
326  exit $1
327} # as_fn_exit
328
329# as_fn_mkdir_p
330# -------------
331# Create "$as_dir" as a directory, including parents if necessary.
332as_fn_mkdir_p ()
333{
334
335  case $as_dir in #(
336  -*) as_dir=./$as_dir;;
337  esac
338  test -d "$as_dir" || eval $as_mkdir_p || {
339    as_dirs=
340    while :; do
341      case $as_dir in #(
342      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343      *) as_qdir=$as_dir;;
344      esac
345      as_dirs="'$as_qdir' $as_dirs"
346      as_dir=`$as_dirname -- "$as_dir" ||
347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348         X"$as_dir" : 'X\(//\)[^/]' \| \
349         X"$as_dir" : 'X\(//\)$' \| \
350         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351$as_echo X"$as_dir" |
352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353            s//\1/
354            q
355          }
356          /^X\(\/\/\)[^/].*/{
357            s//\1/
358            q
359          }
360          /^X\(\/\/\)$/{
361            s//\1/
362            q
363          }
364          /^X\(\/\).*/{
365            s//\1/
366            q
367          }
368          s/.*/./; q'`
369      test -d "$as_dir" && break
370    done
371    test -z "$as_dirs" || eval "mkdir $as_dirs"
372  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375} # as_fn_mkdir_p
376
377# as_fn_executable_p FILE
378# -----------------------
379# Test if FILE is an executable regular file.
380as_fn_executable_p ()
381{
382  test -f "$1" && test -x "$1"
383} # as_fn_executable_p
384# as_fn_append VAR VALUE
385# ----------------------
386# Append the text in VALUE to the end of the definition contained in VAR. Take
387# advantage of any shell optimizations that allow amortized linear growth over
388# repeated appends, instead of the typical quadratic growth present in naive
389# implementations.
390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
391  eval 'as_fn_append ()
392  {
393    eval $1+=\$2
394  }'
395else
396  as_fn_append ()
397  {
398    eval $1=\$$1\$2
399  }
400fi # as_fn_append
401
402# as_fn_arith ARG...
403# ------------------
404# Perform arithmetic evaluation on the ARGs, and store the result in the
405# global $as_val. Take advantage of shells that can avoid forks. The arguments
406# must be portable across $(()) and expr.
407if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
408  eval 'as_fn_arith ()
409  {
410    as_val=$(( $* ))
411  }'
412else
413  as_fn_arith ()
414  {
415    as_val=`expr "$@" || test $? -eq 1`
416  }
417fi # as_fn_arith
418
419
420# as_fn_error STATUS ERROR [LINENO LOG_FD]
421# ----------------------------------------
422# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
423# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
424# script with STATUS, using 1 if that was 0.
425as_fn_error ()
426{
427  as_status=$1; test $as_status -eq 0 && as_status=1
428  if test "$4"; then
429    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
430    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
431  fi
432  $as_echo "$as_me: error: $2" >&2
433  as_fn_exit $as_status
434} # as_fn_error
435
436if expr a : '\(a\)' >/dev/null 2>&1 &&
437   test "X`expr 00001 : '.*\(...\)'`" = X001; then
438  as_expr=expr
439else
440  as_expr=false
441fi
442
443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444  as_basename=basename
445else
446  as_basename=false
447fi
448
449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450  as_dirname=dirname
451else
452  as_dirname=false
453fi
454
455as_me=`$as_basename -- "$0" ||
456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
457         X"$0" : 'X\(//\)$' \| \
458         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
459$as_echo X/"$0" |
460    sed '/^.*\/\([^/][^/]*\)\/*$/{
461            s//\1/
462            q
463          }
464          /^X\/\(\/\/\)$/{
465            s//\1/
466            q
467          }
468          /^X\/\(\/\).*/{
469            s//\1/
470            q
471          }
472          s/.*/./; q'`
473
474# Avoid depending upon Character Ranges.
475as_cr_letters='abcdefghijklmnopqrstuvwxyz'
476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
477as_cr_Letters=$as_cr_letters$as_cr_LETTERS
478as_cr_digits='0123456789'
479as_cr_alnum=$as_cr_Letters$as_cr_digits
480
481
482  as_lineno_1=$LINENO as_lineno_1a=$LINENO
483  as_lineno_2=$LINENO as_lineno_2a=$LINENO
484  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
485  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
486  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
487  sed -n '
488    p
489    /[$]LINENO/=
490  ' <$as_myself |
491    sed '
492      s/[$]LINENO.*/&-/
493      t lineno
494      b
495      :lineno
496      N
497      :loop
498      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
499      t loop
500      s/-\n.*//
501    ' >$as_me.lineno &&
502  chmod +x "$as_me.lineno" ||
503    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
504
505  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
506  # already done that, so ensure we don't try to do so again and fall
507  # in an infinite loop.  This has already happened in practice.
508  _as_can_reexec=no; export _as_can_reexec
509  # Don't try to exec as it changes $[0], causing all sort of problems
510  # (the dirname of $[0] is not the place where we might find the
511  # original and so on.  Autoconf is especially sensitive to this).
512  . "./$as_me.lineno"
513  # Exit status is that of the last command.
514  exit
515}
516
517ECHO_C= ECHO_N= ECHO_T=
518case `echo -n x` in #(((((
519-n*)
520  case `echo 'xy\c'` in
521  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
522  xy)  ECHO_C='\c';;
523  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
524       ECHO_T=' ';;
525  esac;;
526*)
527  ECHO_N='-n';;
528esac
529
530rm -f conf$$ conf$$.exe conf$$.file
531if test -d conf$$.dir; then
532  rm -f conf$$.dir/conf$$.file
533else
534  rm -f conf$$.dir
535  mkdir conf$$.dir 2>/dev/null
536fi
537if (echo >conf$$.file) 2>/dev/null; then
538  if ln -s conf$$.file conf$$ 2>/dev/null; then
539    as_ln_s='ln -s'
540    # ... but there are two gotchas:
541    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
542    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
543    # In both cases, we have to default to `cp -pR'.
544    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
545      as_ln_s='cp -pR'
546  elif ln conf$$.file conf$$ 2>/dev/null; then
547    as_ln_s=ln
548  else
549    as_ln_s='cp -pR'
550  fi
551else
552  as_ln_s='cp -pR'
553fi
554rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
555rmdir conf$$.dir 2>/dev/null
556
557if mkdir -p . 2>/dev/null; then
558  as_mkdir_p='mkdir -p "$as_dir"'
559else
560  test -d ./-p && rmdir ./-p
561  as_mkdir_p=false
562fi
563
564as_test_x='test -x'
565as_executable_p=as_fn_executable_p
566
567# Sed expression to map a string onto a valid CPP name.
568as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569
570# Sed expression to map a string onto a valid variable name.
571as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
572
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575
576test -n "$DJDIR" || exec 7<&0 </dev/null
577exec 6>&1
578
579# Name of the host.
580# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
581# so uname gets run too.
582ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
584#
585# Initializations.
586#
587ac_default_prefix=/usr/local
588ac_clean_files=
589ac_config_libobj_dir=.
590LIBOBJS=
591cross_compiling=no
592subdirs=
593MFLAGS=
594MAKEFLAGS=
595
596# Identity of this package.
597PACKAGE_NAME='Clp'
598PACKAGE_TARNAME='coin-or-clp'
599PACKAGE_VERSION='trunk'
600PACKAGE_STRING='Clp trunk'
601PACKAGE_BUGREPORT='clp@list.coin-or.org'
602PACKAGE_URL='https://projects.coin-or.org/Clp'
603
604ac_unique_file="src/ClpSimplex.cpp"
605ac_default_prefix=`pwd`
606# Factoring default headers for most tests.
607ac_includes_default="\
608#include <stdio.h>
609#ifdef HAVE_SYS_TYPES_H
610# include <sys/types.h>
611#endif
612#ifdef HAVE_SYS_STAT_H
613# include <sys/stat.h>
614#endif
615#ifdef STDC_HEADERS
616# include <stdlib.h>
617# include <stddef.h>
618#else
619# ifdef HAVE_STDLIB_H
620#  include <stdlib.h>
621# endif
622#endif
623#ifdef HAVE_STRING_H
624# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625#  include <memory.h>
626# endif
627# include <string.h>
628#endif
629#ifdef HAVE_STRINGS_H
630# include <strings.h>
631#endif
632#ifdef HAVE_INTTYPES_H
633# include <inttypes.h>
634#endif
635#ifdef HAVE_STDINT_H
636# include <stdint.h>
637#endif
638#ifdef HAVE_UNISTD_H
639# include <unistd.h>
640#endif"
641
642ac_subst_vars='am__EXEEXT_FALSE
643am__EXEEXT_TRUE
644LTLIBOBJS
645LIBOBJS
646COIN_CXX_IS_CL_FALSE
647COIN_CXX_IS_CL_TRUE
648DEPENDENCY_LINKING_FALSE
649DEPENDENCY_LINKING_TRUE
650coin_doxy_tagfiles
651COIN_HAS_LATEX_FALSE
652COIN_HAS_LATEX_TRUE
653COIN_HAS_DOXYGEN_FALSE
654COIN_HAS_DOXYGEN_TRUE
655coin_doxy_logname
656coin_doxy_tagname
657coin_doxy_usedot
658coin_have_latex
659coin_have_doxygen
660EXAMPLE_CLEAN_FILES
661EXAMPLE_UNCOMP_FILES
662EXAMPLE_DIST_FILES
663COIN_VPATH_BUILD_FALSE
664COIN_VPATH_BUILD_TRUE
665COIN_HAS_READLINE_FALSE
666COIN_HAS_READLINE_TRUE
667COIN_HAS_ASL_FALSE
668COIN_HAS_ASL_TRUE
669COIN_HAS_WSMP_FALSE
670COIN_HAS_WSMP_TRUE
671COIN_HAS_MUMPS_FALSE
672COIN_HAS_MUMPS_TRUE
673COIN_HAS_GLPK_FALSE
674COIN_HAS_GLPK_TRUE
675COIN_HAS_CHOLMOD_FALSE
676COIN_HAS_CHOLMOD_TRUE
677COIN_HAS_AMD_FALSE
678COIN_HAS_AMD_TRUE
679COIN_HAS_ABC_FALSE
680COIN_HAS_ABC_TRUE
681NETLIB_DATA
682COIN_HAS_NETLIB_FALSE
683COIN_HAS_NETLIB_TRUE
684SAMPLE_DATA
685COIN_HAS_SAMPLE_FALSE
686COIN_HAS_SAMPLE_TRUE
687COIN_HAS_OSITESTS_FALSE
688COIN_HAS_OSITESTS_TRUE
689OSICLPUNITTEST_PCFILES_PUB
690OSICLPUNITTEST_CFLAGS_PUB
691OSICLPUNITTEST_LIBS_PUB
692OSICLPUNITTEST_PCFILES
693OSICLPUNITTEST_CFLAGS
694OSICLPUNITTEST_LIBS
695COIN_HAS_OSI_FALSE
696COIN_HAS_OSI_TRUE
697OSICLPLIB_PCFILES_PUB
698OSICLPLIB_CFLAGS_PUB
699OSICLPLIB_LIBS_PUB
700OSICLPLIB_PCFILES
701OSICLPLIB_CFLAGS
702OSICLPLIB_LIBS
703COIN_HAS_COINUTILS_FALSE
704COIN_HAS_COINUTILS_TRUE
705CLPLIB_PCFILES_PUB
706CLPLIB_CFLAGS_PUB
707CLPLIB_LIBS_PUB
708CLPLIB_PCFILES
709CLPLIB_CFLAGS
710CLPLIB_LIBS
711COIN_PKG_CONFIG_PATH
712COIN_HAS_PKGCONFIG_FALSE
713COIN_HAS_PKGCONFIG_TRUE
714ac_ct_PKG_CONFIG
715PKG_CONFIG
716LT_LDFLAGS
717CXXCPP
718CPP
719LT_SYS_LIBRARY_PATH
720OTOOL64
721OTOOL
722LIPO
723NMEDIT
724DSYMUTIL
725MANIFEST_TOOL
726RANLIB
727ac_ct_AR
728AR
729DLLTOOL
730OBJDUMP
731LN_S
732NM
733ac_ct_DUMPBIN
734DUMPBIN
735LD
736FGREP
737EGREP
738GREP
739SED
740LIBTOOL
741FLIBS
742ac_ct_F77
743FFLAGS
744F77
745am__fastdepCXX_FALSE
746am__fastdepCXX_TRUE
747CXXDEPMODE
748ac_ct_CXX
749CXXFLAGS
750CXX
751am__fastdepCC_FALSE
752am__fastdepCC_TRUE
753CCDEPMODE
754am__nodep
755AMDEPBACKSLASH
756AMDEP_FALSE
757AMDEP_TRUE
758am__quote
759am__include
760DEPDIR
761OBJEXT
762EXEEXT
763ac_ct_CC
764CPPFLAGS
765LDFLAGS
766CFLAGS
767CC
768MAINT
769MAINTAINER_MODE_FALSE
770MAINTAINER_MODE_TRUE
771am__untar
772am__tar
773AMTAR
774am__leading_dot
775SET_MAKE
776AWK
777mkdir_p
778MKDIR_P
779INSTALL_STRIP_PROGRAM
780STRIP
781install_sh
782MAKEINFO
783AUTOHEADER
784AUTOMAKE
785AUTOCONF
786ACLOCAL
787VERSION
788PACKAGE
789CYGPATH_W
790am__isrc
791INSTALL_DATA
792INSTALL_SCRIPT
793INSTALL_PROGRAM
794AM_BACKSLASH
795AM_DEFAULT_VERBOSITY
796AM_DEFAULT_V
797AM_V
798host_os
799host_vendor
800host_cpu
801host
802build_os
803build_vendor
804build_cpu
805build
806ALWAYS_FALSE_FALSE
807ALWAYS_FALSE_TRUE
808CLP_SVN_REV
809have_svnversion
810target_alias
811host_alias
812build_alias
813LIBS
814ECHO_T
815ECHO_N
816ECHO_C
817DEFS
818mandir
819localedir
820libdir
821psdir
822pdfdir
823dvidir
824htmldir
825infodir
826docdir
827oldincludedir
828includedir
829localstatedir
830sharedstatedir
831sysconfdir
832datadir
833datarootdir
834libexecdir
835sbindir
836bindir
837program_transform_name
838prefix
839exec_prefix
840PACKAGE_URL
841PACKAGE_BUGREPORT
842PACKAGE_STRING
843PACKAGE_VERSION
844PACKAGE_TARNAME
845PACKAGE_NAME
846PATH_SEPARATOR
847SHELL'
848ac_subst_files=''
849ac_user_opts='
850enable_option_checking
851enable_msvc
852enable_silent_rules
853enable_maintainer_mode
854enable_dependency_tracking
855enable_shared
856enable_static
857with_pic
858enable_fast_install
859with_aix_soname
860with_gnu_ld
861with_sysroot
862enable_libtool_lock
863with_coinutils
864with_coinutils_libs
865with_coinutils_cflags
866with_osi
867with_osi_libs
868with_osi_cflags
869with_ositests
870with_ositests_libs
871with_ositests_cflags
872with_sample
873with_sample_data
874with_netlib
875with_netlib_data
876enable_aboca
877with_amd
878with_amd_libs
879with_amd_cflags
880with_cholmod
881with_cholmod_libs
882with_cholmod_cflags
883with_glpk
884with_glpk_libs
885with_glpk_cflags
886with_mumps
887with_mumps_libs
888with_mumps_cflags
889with_wsmp
890with_wsmp_libs
891with_wsmp_cflags
892with_asl
893with_asl_libs
894with_asl_cflags
895enable_readline
896with_dot
897'
898      ac_precious_vars='build_alias
899host_alias
900target_alias
901CC
902CFLAGS
903LDFLAGS
904LIBS
905CPPFLAGS
906CXX
907CXXFLAGS
908CCC
909F77
910FFLAGS
911LT_SYS_LIBRARY_PATH
912CPP
913CXXCPP
914PKG_CONFIG'
915
916
917# Initialize some variables set by options.
918ac_init_help=
919ac_init_version=false
920ac_unrecognized_opts=
921ac_unrecognized_sep=
922# The variables have the same names as the options, with
923# dashes changed to underlines.
924cache_file=/dev/null
925exec_prefix=NONE
926no_create=
927no_recursion=
928prefix=NONE
929program_prefix=NONE
930program_suffix=NONE
931program_transform_name=s,x,x,
932silent=
933site=
934srcdir=
935verbose=
936x_includes=NONE
937x_libraries=NONE
938
939# Installation directory options.
940# These are left unexpanded so users can "make install exec_prefix=/foo"
941# and all the variables that are supposed to be based on exec_prefix
942# by default will actually change.
943# Use braces instead of parens because sh, perl, etc. also accept them.
944# (The list follows the same order as the GNU Coding Standards.)
945bindir='${exec_prefix}/bin'
946sbindir='${exec_prefix}/sbin'
947libexecdir='${exec_prefix}/libexec'
948datarootdir='${prefix}/share'
949datadir='${datarootdir}'
950sysconfdir='${prefix}/etc'
951sharedstatedir='${prefix}/com'
952localstatedir='${prefix}/var'
953includedir='${prefix}/include'
954oldincludedir='/usr/include'
955docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956infodir='${datarootdir}/info'
957htmldir='${docdir}'
958dvidir='${docdir}'
959pdfdir='${docdir}'
960psdir='${docdir}'
961libdir='${exec_prefix}/lib'
962localedir='${datarootdir}/locale'
963mandir='${datarootdir}/man'
964
965ac_prev=
966ac_dashdash=
967for ac_option
968do
969  # If the previous option needs an argument, assign it.
970  if test -n "$ac_prev"; then
971    eval $ac_prev=\$ac_option
972    ac_prev=
973    continue
974  fi
975
976  case $ac_option in
977  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978  *=)   ac_optarg= ;;
979  *)    ac_optarg=yes ;;
980  esac
981
982  # Accept the important Cygnus configure options, so we can diagnose typos.
983
984  case $ac_dashdash$ac_option in
985  --)
986    ac_dashdash=yes ;;
987
988  -bindir | --bindir | --bindi | --bind | --bin | --bi)
989    ac_prev=bindir ;;
990  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991    bindir=$ac_optarg ;;
992
993  -build | --build | --buil | --bui | --bu)
994    ac_prev=build_alias ;;
995  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996    build_alias=$ac_optarg ;;
997
998  -cache-file | --cache-file | --cache-fil | --cache-fi \
999  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000    ac_prev=cache_file ;;
1001  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003    cache_file=$ac_optarg ;;
1004
1005  --config-cache | -C)
1006    cache_file=config.cache ;;
1007
1008  -datadir | --datadir | --datadi | --datad)
1009    ac_prev=datadir ;;
1010  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011    datadir=$ac_optarg ;;
1012
1013  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014  | --dataroo | --dataro | --datar)
1015    ac_prev=datarootdir ;;
1016  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018    datarootdir=$ac_optarg ;;
1019
1020  -disable-* | --disable-*)
1021    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022    # Reject names that are not valid shell variable names.
1023    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024      as_fn_error $? "invalid feature name: $ac_useropt"
1025    ac_useropt_orig=$ac_useropt
1026    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027    case $ac_user_opts in
1028      *"
1029"enable_$ac_useropt"
1030"*) ;;
1031      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032         ac_unrecognized_sep=', ';;
1033    esac
1034    eval enable_$ac_useropt=no ;;
1035
1036  -docdir | --docdir | --docdi | --doc | --do)
1037    ac_prev=docdir ;;
1038  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039    docdir=$ac_optarg ;;
1040
1041  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042    ac_prev=dvidir ;;
1043  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044    dvidir=$ac_optarg ;;
1045
1046  -enable-* | --enable-*)
1047    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048    # Reject names that are not valid shell variable names.
1049    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050      as_fn_error $? "invalid feature name: $ac_useropt"
1051    ac_useropt_orig=$ac_useropt
1052    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053    case $ac_user_opts in
1054      *"
1055"enable_$ac_useropt"
1056"*) ;;
1057      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058         ac_unrecognized_sep=', ';;
1059    esac
1060    eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064  | --exec | --exe | --ex)
1065    ac_prev=exec_prefix ;;
1066  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068  | --exec=* | --exe=* | --ex=*)
1069    exec_prefix=$ac_optarg ;;
1070
1071  -gas | --gas | --ga | --g)
1072    # Obsolete; use --with-gas.
1073    with_gas=yes ;;
1074
1075  -help | --help | --hel | --he | -h)
1076    ac_init_help=long ;;
1077  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078    ac_init_help=recursive ;;
1079  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080    ac_init_help=short ;;
1081
1082  -host | --host | --hos | --ho)
1083    ac_prev=host_alias ;;
1084  -host=* | --host=* | --hos=* | --ho=*)
1085    host_alias=$ac_optarg ;;
1086
1087  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088    ac_prev=htmldir ;;
1089  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090  | --ht=*)
1091    htmldir=$ac_optarg ;;
1092
1093  -includedir | --includedir | --includedi | --included | --include \
1094  | --includ | --inclu | --incl | --inc)
1095    ac_prev=includedir ;;
1096  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097  | --includ=* | --inclu=* | --incl=* | --inc=*)
1098    includedir=$ac_optarg ;;
1099
1100  -infodir | --infodir | --infodi | --infod | --info | --inf)
1101    ac_prev=infodir ;;
1102  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103    infodir=$ac_optarg ;;
1104
1105  -libdir | --libdir | --libdi | --libd)
1106    ac_prev=libdir ;;
1107  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108    libdir=$ac_optarg ;;
1109
1110  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111  | --libexe | --libex | --libe)
1112    ac_prev=libexecdir ;;
1113  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114  | --libexe=* | --libex=* | --libe=*)
1115    libexecdir=$ac_optarg ;;
1116
1117  -localedir | --localedir | --localedi | --localed | --locale)
1118    ac_prev=localedir ;;
1119  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120    localedir=$ac_optarg ;;
1121
1122  -localstatedir | --localstatedir | --localstatedi | --localstated \
1123  | --localstate | --localstat | --localsta | --localst | --locals)
1124    ac_prev=localstatedir ;;
1125  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127    localstatedir=$ac_optarg ;;
1128
1129  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130    ac_prev=mandir ;;
1131  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132    mandir=$ac_optarg ;;
1133
1134  -nfp | --nfp | --nf)
1135    # Obsolete; use --without-fp.
1136    with_fp=no ;;
1137
1138  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139  | --no-cr | --no-c | -n)
1140    no_create=yes ;;
1141
1142  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144    no_recursion=yes ;;
1145
1146  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148  | --oldin | --oldi | --old | --ol | --o)
1149    ac_prev=oldincludedir ;;
1150  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153    oldincludedir=$ac_optarg ;;
1154
1155  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156    ac_prev=prefix ;;
1157  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158    prefix=$ac_optarg ;;
1159
1160  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161  | --program-pre | --program-pr | --program-p)
1162    ac_prev=program_prefix ;;
1163  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165    program_prefix=$ac_optarg ;;
1166
1167  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168  | --program-suf | --program-su | --program-s)
1169    ac_prev=program_suffix ;;
1170  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172    program_suffix=$ac_optarg ;;
1173
1174  -program-transform-name | --program-transform-name \
1175  | --program-transform-nam | --program-transform-na \
1176  | --program-transform-n | --program-transform- \
1177  | --program-transform | --program-transfor \
1178  | --program-transfo | --program-transf \
1179  | --program-trans | --program-tran \
1180  | --progr-tra | --program-tr | --program-t)
1181    ac_prev=program_transform_name ;;
1182  -program-transform-name=* | --program-transform-name=* \
1183  | --program-transform-nam=* | --program-transform-na=* \
1184  | --program-transform-n=* | --program-transform-=* \
1185  | --program-transform=* | --program-transfor=* \
1186  | --program-transfo=* | --program-transf=* \
1187  | --program-trans=* | --program-tran=* \
1188  | --progr-tra=* | --program-tr=* | --program-t=*)
1189    program_transform_name=$ac_optarg ;;
1190
1191  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192    ac_prev=pdfdir ;;
1193  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194    pdfdir=$ac_optarg ;;
1195
1196  -psdir | --psdir | --psdi | --psd | --ps)
1197    ac_prev=psdir ;;
1198  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199    psdir=$ac_optarg ;;
1200
1201  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202  | -silent | --silent | --silen | --sile | --sil)
1203    silent=yes ;;
1204
1205  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206    ac_prev=sbindir ;;
1207  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208  | --sbi=* | --sb=*)
1209    sbindir=$ac_optarg ;;
1210
1211  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213  | --sharedst | --shareds | --shared | --share | --shar \
1214  | --sha | --sh)
1215    ac_prev=sharedstatedir ;;
1216  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219  | --sha=* | --sh=*)
1220    sharedstatedir=$ac_optarg ;;
1221
1222  -site | --site | --sit)
1223    ac_prev=site ;;
1224  -site=* | --site=* | --sit=*)
1225    site=$ac_optarg ;;
1226
1227  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228    ac_prev=srcdir ;;
1229  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230    srcdir=$ac_optarg ;;
1231
1232  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233  | --syscon | --sysco | --sysc | --sys | --sy)
1234    ac_prev=sysconfdir ;;
1235  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237    sysconfdir=$ac_optarg ;;
1238
1239  -target | --target | --targe | --targ | --tar | --ta | --t)
1240    ac_prev=target_alias ;;
1241  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242    target_alias=$ac_optarg ;;
1243
1244  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245    verbose=yes ;;
1246
1247  -version | --version | --versio | --versi | --vers | -V)
1248    ac_init_version=: ;;
1249
1250  -with-* | --with-*)
1251    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252    # Reject names that are not valid shell variable names.
1253    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254      as_fn_error $? "invalid package name: $ac_useropt"
1255    ac_useropt_orig=$ac_useropt
1256    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257    case $ac_user_opts in
1258      *"
1259"with_$ac_useropt"
1260"*) ;;
1261      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262         ac_unrecognized_sep=', ';;
1263    esac
1264    eval with_$ac_useropt=\$ac_optarg ;;
1265
1266  -without-* | --without-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      as_fn_error $? "invalid package name: $ac_useropt"
1271    ac_useropt_orig=$ac_useropt
1272    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273    case $ac_user_opts in
1274      *"
1275"with_$ac_useropt"
1276"*) ;;
1277      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278         ac_unrecognized_sep=', ';;
1279    esac
1280    eval with_$ac_useropt=no ;;
1281
1282  --x)
1283    # Obsolete; use --with-x.
1284    with_x=yes ;;
1285
1286  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287  | --x-incl | --x-inc | --x-in | --x-i)
1288    ac_prev=x_includes ;;
1289  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291    x_includes=$ac_optarg ;;
1292
1293  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295    ac_prev=x_libraries ;;
1296  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298    x_libraries=$ac_optarg ;;
1299
1300  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301Try \`$0 --help' for more information"
1302    ;;
1303
1304  *=*)
1305    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306    # Reject names that are not valid shell variable names.
1307    case $ac_envvar in #(
1308      '' | [0-9]* | *[!_$as_cr_alnum]* )
1309      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310    esac
1311    eval $ac_envvar=\$ac_optarg
1312    export $ac_envvar ;;
1313
1314  *)
1315    # FIXME: should be removed in autoconf 3.0.
1316    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320    ;;
1321
1322  esac
1323done
1324
1325if test -n "$ac_prev"; then
1326  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327  as_fn_error $? "missing argument to $ac_option"
1328fi
1329
1330if test -n "$ac_unrecognized_opts"; then
1331  case $enable_option_checking in
1332    no) ;;
1333    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335  esac
1336fi
1337
1338# Check all directory arguments for consistency.
1339for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340                datadir sysconfdir sharedstatedir localstatedir includedir \
1341                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342                libdir localedir mandir
1343do
1344  eval ac_val=\$$ac_var
1345  # Remove trailing slashes.
1346  case $ac_val in
1347    */ )
1348      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349      eval $ac_var=\$ac_val;;
1350  esac
1351  # Be sure to have absolute directory names.
1352  case $ac_val in
1353    [\\/$]* | ?:[\\/]* )  continue;;
1354    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355  esac
1356  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368  if test "x$build_alias" = x; then
1369    cross_compiling=maybe
1370  elif test "x$build_alias" != "x$host_alias"; then
1371    cross_compiling=yes
1372  fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
1380
1381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384  as_fn_error $? "working directory cannot be determined"
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386  as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389# Find the source files, if location was not specified.
1390if test -z "$srcdir"; then
1391  ac_srcdir_defaulted=yes
1392  # Try the directory containing this script, then the parent directory.
1393  ac_confdir=`$as_dirname -- "$as_myself" ||
1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395         X"$as_myself" : 'X\(//\)[^/]' \| \
1396         X"$as_myself" : 'X\(//\)$' \| \
1397         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398$as_echo X"$as_myself" |
1399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400            s//\1/
1401            q
1402          }
1403          /^X\(\/\/\)[^/].*/{
1404            s//\1/
1405            q
1406          }
1407          /^X\(\/\/\)$/{
1408            s//\1/
1409            q
1410          }
1411          /^X\(\/\).*/{
1412            s//\1/
1413            q
1414          }
1415          s/.*/./; q'`
1416  srcdir=$ac_confdir
1417  if test ! -r "$srcdir/$ac_unique_file"; then
1418    srcdir=..
1419  fi
1420else
1421  ac_srcdir_defaulted=no
1422fi
1423if test ! -r "$srcdir/$ac_unique_file"; then
1424  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426fi
1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
1429        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430        pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433  srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443  eval ac_env_${ac_var}_value=\$${ac_var}
1444  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
1447
1448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452  # Omit some internal or obsolete options to make the list less imposing.
1453  # This message is too long to be a string in the A/UX 3.1 sh.
1454  cat <<_ACEOF
1455\`configure' configures Clp trunk to adapt to many kinds of systems.
1456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465  -h, --help              display this help and exit
1466      --help=short        display options specific to this package
1467      --help=recursive    display the short help of all the included packages
1468  -V, --version           display version information and exit
1469  -q, --quiet, --silent   do not print \`checking ...' messages
1470      --cache-file=FILE   cache test results in FILE [disabled]
1471  -C, --config-cache      alias for \`--cache-file=config.cache'
1472  -n, --no-create         do not create output files
1473      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475Installation directories:
1476  --prefix=PREFIX         install architecture-independent files in PREFIX
1477                          [$ac_default_prefix]
1478  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479                          [PREFIX]
1480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489  --bindir=DIR            user executables [EPREFIX/bin]
1490  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1491  --libexecdir=DIR        program executables [EPREFIX/libexec]
1492  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1493  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1494  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1495  --libdir=DIR            object code libraries [EPREFIX/lib]
1496  --includedir=DIR        C header files [PREFIX/include]
1497  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1498  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1499  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1500  --infodir=DIR           info documentation [DATAROOTDIR/info]
1501  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1502  --mandir=DIR            man documentation [DATAROOTDIR/man]
1503  --docdir=DIR            documentation root [DATAROOTDIR/doc/coin-or-clp]
1504  --htmldir=DIR           html documentation [DOCDIR]
1505  --dvidir=DIR            dvi documentation [DOCDIR]
1506  --pdfdir=DIR            pdf documentation [DOCDIR]
1507  --psdir=DIR             ps documentation [DOCDIR]
1508_ACEOF
1509
1510  cat <<\_ACEOF
1511
1512Program names:
1513  --program-prefix=PREFIX            prepend PREFIX to installed program names
1514  --program-suffix=SUFFIX            append SUFFIX to installed program names
1515  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1516
1517System types:
1518  --build=BUILD     configure for building on BUILD [guessed]
1519  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520_ACEOF
1521fi
1522
1523if test -n "$ac_init_help"; then
1524  case $ac_init_help in
1525     short | recursive ) echo "Configuration of Clp trunk:";;
1526   esac
1527  cat <<\_ACEOF
1528
1529Optional Features:
1530  --disable-option-checking  ignore unrecognized --enable/--with options
1531  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533  --enable-msvc           Allow only Intel/Microsoft compilers on
1534                          MinGW/MSys/Cygwin.
1535  --enable-silent-rules   less verbose build output (undo: "make V=1")
1536  --disable-silent-rules  verbose build output (undo: "make V=0")
1537  --enable-maintainer-mode
1538                          enable make rules and dependencies not useful (and
1539                          sometimes confusing) to the casual installer
1540  --enable-dependency-tracking
1541                          do not reject slow dependency extractors
1542  --disable-dependency-tracking
1543                          speeds up one-time build
1544  --enable-shared[=PKGS]  build shared libraries [default=no]
1545  --enable-static[=PKGS]  build static libraries [default=no]
1546  --enable-fast-install[=PKGS]
1547                          optimize for fast installation [default=yes]
1548  --disable-libtool-lock  avoid locking (might break parallel builds)
1549  --enable-aboca          Enables build of the Aboca solver; 1 - build Abc
1550                          serial but no inherit code (default when built); 2 -
1551                          build Abc serial and inherit code; 3 - build Abc
1552                          cilk parallel but no inherit code; 4 - build Abc
1553                          cilk parallel and inherit code
1554  --disable-readline      do not compile with readline library
1555
1556Optional Packages:
1557  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1558  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1559  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1560                          both]
1561  --with-aix-soname=aix|svr4|both
1562                          shared library versioning (aka "SONAME") variant to
1563                          provide on AIX, [default=aix].
1564  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1566                          compiler's sysroot if not specified).
1567  --with-coinutils        Use CoinUtils. If an argument is given, 'yes' is
1568                          equivalent to --with-coinutils, 'no' is
1569                          equivalent to --without-coinutils. Any other
1570                          argument is applied as for --with-coinutils-libs
1571  --with-coinutils-libs   Linker flags for CoinUtils appropriate for your
1572                          environment. (Most often, -l specs for libraries.)
1573  --with-coinutils-cflags Compiler flags for CoinUtils appropriate for your
1574                          environment. (Most often, -I specs for header file
1575                          directories.)
1576  --with-osi              Use Osi. If an argument is given, 'yes' is
1577                          equivalent to --with-osi, 'no' is
1578                          equivalent to --without-osi. Any other argument is
1579                          applied as for --with-osi-libs
1580  --with-osi-libs         Linker flags for Osi appropriate for your
1581                          environment. (Most often, -l specs for libraries.)
1582  --with-osi-cflags       Compiler flags for Osi appropriate for your
1583                          environment. (Most often, -I specs for header file
1584                          directories.)
1585  --with-ositests         Use OsiTests. If an argument is given, 'yes' is
1586                          equivalent to --with-ositests, 'no' is
1587                          equivalent to --without-ositests. Any other argument
1588                          is applied as for --with-ositests-libs
1589  --with-ositests-libs    Linker flags for OsiTests appropriate for your
1590                          environment. (Most often, -l specs for libraries.)
1591  --with-ositests-cflags  Compiler flags for OsiTests appropriate for your
1592                          environment. (Most often, -I specs for header file
1593                          directories.)
1594  --with-sample           Use Sample. If an argument is given, 'yes' is
1595                          equivalent to --with-sample, 'no' is
1596                          equivalent to --without-sample. Any other argument
1597                          is applied as for --with-sample-data
1598  --with-sample-data      A data directory specification for Sample
1599                          appropriate for your environment.
1600  --with-netlib           Use Netlib. If an argument is given, 'yes' is
1601                          equivalent to --with-netlib, 'no' is
1602                          equivalent to --without-netlib. Any other argument
1603                          is applied as for --with-netlib-data
1604  --with-netlib-data      A data directory specification for Netlib
1605                          appropriate for your environment.
1606  --with-amd              Use AMD. If an argument is given, 'yes' is
1607                          equivalent to --with-amd, 'no' is
1608                          equivalent to --without-amd. Any other argument is
1609                          applied as for --with-amd-libs
1610  --with-amd-libs         Linker flags for AMD appropriate for your
1611                          environment. (Most often, -l specs for libraries.)
1612  --with-amd-cflags       Compiler flags for AMD appropriate for your
1613                          environment. (Most often, -I specs for header file
1614                          directories.)
1615  --with-cholmod          Use CHOLMOD. If an argument is given, 'yes' is
1616                          equivalent to --with-cholmod, 'no' is
1617                          equivalent to --without-cholmod. Any other argument
1618                          is applied as for --with-cholmod-libs
1619  --with-cholmod-libs     Linker flags for CHOLMOD appropriate for your
1620                          environment. (Most often, -l specs for libraries.)
1621  --with-cholmod-cflags   Compiler flags for CHOLMOD appropriate for your
1622                          environment. (Most often, -I specs for header file
1623                          directories.)
1624  --with-glpk             Use Glpk. If an argument is given, 'yes' is
1625                          equivalent to --with-glpk, 'no' is
1626                          equivalent to --without-glpk. Any other argument is
1627                          applied as for --with-glpk-libs
1628  --with-glpk-libs        Linker flags for Glpk appropriate for your
1629                          environment. (Most often, -l specs for libraries.)
1630  --with-glpk-cflags      Compiler flags for Glpk appropriate for your
1631                          environment. (Most often, -I specs for header file
1632                          directories.)
1633  --with-mumps            Use Mumps. If an argument is given, 'yes' is
1634                          equivalent to --with-mumps, 'no' is
1635                          equivalent to --without-mumps. Any other argument is
1636                          applied as for --with-mumps-libs
1637  --with-mumps-libs       Linker flags for Mumps appropriate for your
1638                          environment. (Most often, -l specs for libraries.)
1639  --with-mumps-cflags     Compiler flags for Mumps appropriate for your
1640                          environment. (Most often, -I specs for header file
1641                          directories.)
1642  --with-wsmp             Use WSMP. If an argument is given, 'yes' is
1643                          equivalent to --with-wsmp, 'no' is
1644                          equivalent to --without-wsmp. Any other argument is
1645                          applied as for --with-wsmp-libs
1646  --with-wsmp-libs        Linker flags for WSMP appropriate for your
1647                          environment. (Most often, -l specs for libraries.)
1648  --with-wsmp-cflags      Compiler flags for WSMP appropriate for your
1649                          environment. (Most often, -I specs for header file
1650                          directories.)
1651  --with-asl              Use ASL. If an argument is given, 'yes' is
1652                          equivalent to --with-asl, 'no' is
1653                          equivalent to --without-asl. Any other argument is
1654                          applied as for --with-asl-libs
1655  --with-asl-libs         Linker flags for ASL appropriate for your
1656                          environment. (Most often, -l specs for libraries.)
1657  --with-asl-cflags       Compiler flags for ASL appropriate for your
1658                          environment. (Most often, -I specs for header file
1659                          directories.)
1660  --with-dot              use dot (from graphviz) when creating documentation
1661                          with doxygen if available; --without-dot to disable
1662
1663Some influential environment variables:
1664  CC          C compiler command
1665  CFLAGS      C compiler flags
1666  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1667              nonstandard directory <lib dir>
1668  LIBS        libraries to pass to the linker, e.g. -l<library>
1669  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1670              you have headers in a nonstandard directory <include dir>
1671  CXX         C++ compiler command
1672  CXXFLAGS    C++ compiler flags
1673  F77         Fortran 77 compiler command
1674  FFLAGS      Fortran 77 compiler flags
1675  LT_SYS_LIBRARY_PATH
1676              User-defined run-time library search path.
1677  CPP         C preprocessor
1678  CXXCPP      C++ preprocessor
1679  PKG_CONFIG  path to pkg-config utility
1680
1681Use these variables to override the choices made by `configure' or to help
1682it to find libraries and programs with nonstandard names/locations.
1683
1684Report bugs to <clp@list.coin-or.org>.
1685Clp home page: <https://projects.coin-or.org/Clp>.
1686_ACEOF
1687ac_status=$?
1688fi
1689
1690if test "$ac_init_help" = "recursive"; then
1691  # If there are subdirs, report their specific --help.
1692  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693    test -d "$ac_dir" ||
1694      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695      continue
1696    ac_builddir=.
1697
1698case "$ac_dir" in
1699.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700*)
1701  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702  # A ".." for each directory in $ac_dir_suffix.
1703  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704  case $ac_top_builddir_sub in
1705  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707  esac ;;
1708esac
1709ac_abs_top_builddir=$ac_pwd
1710ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711# for backward compatibility:
1712ac_top_builddir=$ac_top_build_prefix
1713
1714case $srcdir in
1715  .)  # We are building in place.
1716    ac_srcdir=.
1717    ac_top_srcdir=$ac_top_builddir_sub
1718    ac_abs_top_srcdir=$ac_pwd ;;
1719  [\\/]* | ?:[\\/]* )  # Absolute name.
1720    ac_srcdir=$srcdir$ac_dir_suffix;
1721    ac_top_srcdir=$srcdir
1722    ac_abs_top_srcdir=$srcdir ;;
1723  *) # Relative name.
1724    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725    ac_top_srcdir=$ac_top_build_prefix$srcdir
1726    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727esac
1728ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729
1730    cd "$ac_dir" || { ac_status=$?; continue; }
1731    # Check for guested configure.
1732    if test -f "$ac_srcdir/configure.gnu"; then
1733      echo &&
1734      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735    elif test -f "$ac_srcdir/configure"; then
1736      echo &&
1737      $SHELL "$ac_srcdir/configure" --help=recursive
1738    else
1739      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740    fi || ac_status=$?
1741    cd "$ac_pwd" || { ac_status=$?; break; }
1742  done
1743fi
1744
1745test -n "$ac_init_help" && exit $ac_status
1746if $ac_init_version; then
1747  cat <<\_ACEOF
1748Clp configure trunk
1749generated by GNU Autoconf 2.69
1750
1751Copyright (C) 2012 Free Software Foundation, Inc.
1752This configure script is free software; the Free Software Foundation
1753gives unlimited permission to copy, distribute and modify it.
1754
1755
1756Copyright 2006 International Business Machines and others.
1757All Rights Reserved.
1758This file is part of the open source package Clp which is distributed
1759under the Eclipse Public License.
1760_ACEOF
1761  exit
1762fi
1763
1764## ------------------------ ##
1765## Autoconf initialization. ##
1766## ------------------------ ##
1767
1768# ac_fn_c_try_compile LINENO
1769# --------------------------
1770# Try to compile conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_c_try_compile ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  rm -f conftest.$ac_objext
1775  if { { ac_try="$ac_compile"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_compile") 2>conftest.err
1783  ac_status=$?
1784  if test -s conftest.err; then
1785    grep -v '^ *+' conftest.err >conftest.er1
1786    cat conftest.er1 >&5
1787    mv -f conftest.er1 conftest.err
1788  fi
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && {
1791         test -z "$ac_c_werror_flag" ||
1792         test ! -s conftest.err
1793       } && test -s conftest.$ac_objext; then :
1794  ac_retval=0
1795else
1796  $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799        ac_retval=1
1800fi
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802  as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_compile
1805
1806# ac_fn_cxx_try_compile LINENO
1807# ----------------------------
1808# Try to compile conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_cxx_try_compile ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  rm -f conftest.$ac_objext
1813  if { { ac_try="$ac_compile"
1814case "(($ac_try" in
1815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816  *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820  (eval "$ac_compile") 2>conftest.err
1821  ac_status=$?
1822  if test -s conftest.err; then
1823    grep -v '^ *+' conftest.err >conftest.er1
1824    cat conftest.er1 >&5
1825    mv -f conftest.er1 conftest.err
1826  fi
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; } && {
1829         test -z "$ac_cxx_werror_flag" ||
1830         test ! -s conftest.err
1831       } && test -s conftest.$ac_objext; then :
1832  ac_retval=0
1833else
1834  $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837        ac_retval=1
1838fi
1839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840  as_fn_set_status $ac_retval
1841
1842} # ac_fn_cxx_try_compile
1843
1844# ac_fn_f77_try_compile LINENO
1845# ----------------------------
1846# Try to compile conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_f77_try_compile ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  rm -f conftest.$ac_objext
1851  if { { ac_try="$ac_compile"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_compile") 2>conftest.err
1859  ac_status=$?
1860  if test -s conftest.err; then
1861    grep -v '^ *+' conftest.err >conftest.er1
1862    cat conftest.er1 >&5
1863    mv -f conftest.er1 conftest.err
1864  fi
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } && {
1867         test -z "$ac_f77_werror_flag" ||
1868         test ! -s conftest.err
1869       } && test -s conftest.$ac_objext; then :
1870  ac_retval=0
1871else
1872  $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875        ac_retval=1
1876fi
1877  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878  as_fn_set_status $ac_retval
1879
1880} # ac_fn_f77_try_compile
1881
1882# ac_fn_c_try_link LINENO
1883# -----------------------
1884# Try to link conftest.$ac_ext, and return whether this succeeded.
1885ac_fn_c_try_link ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  rm -f conftest.$ac_objext conftest$ac_exeext
1889  if { { ac_try="$ac_link"
1890case "(($ac_try" in
1891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892  *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896  (eval "$ac_link") 2>conftest.err
1897  ac_status=$?
1898  if test -s conftest.err; then
1899    grep -v '^ *+' conftest.err >conftest.er1
1900    cat conftest.er1 >&5
1901    mv -f conftest.er1 conftest.err
1902  fi
1903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904  test $ac_status = 0; } && {
1905         test -z "$ac_c_werror_flag" ||
1906         test ! -s conftest.err
1907       } && test -s conftest$ac_exeext && {
1908         test "$cross_compiling" = yes ||
1909         test -x conftest$ac_exeext
1910       }; then :
1911  ac_retval=0
1912else
1913  $as_echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916        ac_retval=1
1917fi
1918  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920  # interfere with the next link command; also delete a directory that is
1921  # left behind by Apple's compiler.  We do this before executing the actions.
1922  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924  as_fn_set_status $ac_retval
1925
1926} # ac_fn_c_try_link
1927
1928# ac_fn_cxx_try_link LINENO
1929# -------------------------
1930# Try to link conftest.$ac_ext, and return whether this succeeded.
1931ac_fn_cxx_try_link ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  rm -f conftest.$ac_objext conftest$ac_exeext
1935  if { { ac_try="$ac_link"
1936case "(($ac_try" in
1937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938  *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942  (eval "$ac_link") 2>conftest.err
1943  ac_status=$?
1944  if test -s conftest.err; then
1945    grep -v '^ *+' conftest.err >conftest.er1
1946    cat conftest.er1 >&5
1947    mv -f conftest.er1 conftest.err
1948  fi
1949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; } && {
1951         test -z "$ac_cxx_werror_flag" ||
1952         test ! -s conftest.err
1953       } && test -s conftest$ac_exeext && {
1954         test "$cross_compiling" = yes ||
1955         test -x conftest$ac_exeext
1956       }; then :
1957  ac_retval=0
1958else
1959  $as_echo "$as_me: failed program was:" >&5
1960sed 's/^/| /' conftest.$ac_ext >&5
1961
1962        ac_retval=1
1963fi
1964  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966  # interfere with the next link command; also delete a directory that is
1967  # left behind by Apple's compiler.  We do this before executing the actions.
1968  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970  as_fn_set_status $ac_retval
1971
1972} # ac_fn_cxx_try_link
1973
1974# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1975# -------------------------------------------------------
1976# Tests whether HEADER exists and can be compiled using the include files in
1977# INCLUDES, setting the cache variable VAR accordingly.
1978ac_fn_c_check_header_compile ()
1979{
1980  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982$as_echo_n "checking for $2... " >&6; }
1983if eval \${$3+:} false; then :
1984  $as_echo_n "(cached) " >&6
1985else
1986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$4
1989#include <$2>
1990_ACEOF
1991if ac_fn_c_try_compile "$LINENO"; then :
1992  eval "$3=yes"
1993else
1994  eval "$3=no"
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
2001  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003} # ac_fn_c_check_header_compile
2004
2005# ac_fn_c_try_cpp LINENO
2006# ----------------------
2007# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2008ac_fn_c_try_cpp ()
2009{
2010  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011  if { { ac_try="$ac_cpp conftest.$ac_ext"
2012case "(($ac_try" in
2013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014  *) ac_try_echo=$ac_try;;
2015esac
2016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017$as_echo "$ac_try_echo"; } >&5
2018  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2019  ac_status=$?
2020  if test -s conftest.err; then
2021    grep -v '^ *+' conftest.err >conftest.er1
2022    cat conftest.er1 >&5
2023    mv -f conftest.er1 conftest.err
2024  fi
2025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026  test $ac_status = 0; } > conftest.i && {
2027         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2028         test ! -s conftest.err
2029       }; then :
2030  ac_retval=0
2031else
2032  $as_echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035    ac_retval=1
2036fi
2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038  as_fn_set_status $ac_retval
2039
2040} # ac_fn_c_try_cpp
2041
2042# ac_fn_c_try_run LINENO
2043# ----------------------
2044# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2045# that executables *can* be run.
2046ac_fn_c_try_run ()
2047{
2048  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049  if { { ac_try="$ac_link"
2050case "(($ac_try" in
2051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052  *) ac_try_echo=$ac_try;;
2053esac
2054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055$as_echo "$ac_try_echo"; } >&5
2056  (eval "$ac_link") 2>&5
2057  ac_status=$?
2058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2060  { { case "(($ac_try" in
2061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062  *) ac_try_echo=$ac_try;;
2063esac
2064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065$as_echo "$ac_try_echo"; } >&5
2066  (eval "$ac_try") 2>&5
2067  ac_status=$?
2068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069  test $ac_status = 0; }; }; then :
2070  ac_retval=0
2071else
2072  $as_echo "$as_me: program exited with status $ac_status" >&5
2073       $as_echo "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076       ac_retval=$ac_status
2077fi
2078  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080  as_fn_set_status $ac_retval
2081
2082} # ac_fn_c_try_run
2083
2084# ac_fn_c_check_func LINENO FUNC VAR
2085# ----------------------------------
2086# Tests whether FUNC exists, setting the cache variable VAR accordingly
2087ac_fn_c_check_func ()
2088{
2089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091$as_echo_n "checking for $2... " >&6; }
2092if eval \${$3+:} false; then :
2093  $as_echo_n "(cached) " >&6
2094else
2095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h.  */
2097/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2098   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2099#define $2 innocuous_$2
2100
2101/* System header to define __stub macros and hopefully few prototypes,
2102    which can conflict with char $2 (); below.
2103    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2104    <limits.h> exists even on freestanding compilers.  */
2105
2106#ifdef __STDC__
2107# include <limits.h>
2108#else
2109# include <assert.h>
2110#endif
2111
2112#undef $2
2113
2114/* Override any GCC internal prototype to avoid an error.
2115   Use char because int might match the return type of a GCC
2116   builtin and then its argument prototype would still apply.  */
2117#ifdef __cplusplus
2118extern "C"
2119#endif
2120char $2 ();
2121/* The GNU C library defines this for functions which it implements
2122    to always fail with ENOSYS.  Some functions are actually named
2123    something starting with __ and the normal name is an alias.  */
2124#if defined __stub_$2 || defined __stub___$2
2125choke me
2126#endif
2127
2128#ifdef F77_DUMMY_MAIN
2129
2130#  ifdef __cplusplus
2131     extern "C"
2132#  endif
2133   int F77_DUMMY_MAIN() { return 1; }
2134
2135#endif
2136int
2137main ()
2138{
2139return $2 ();
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_link "$LINENO"; then :
2145  eval "$3=yes"
2146else
2147  eval "$3=no"
2148fi
2149rm -f core conftest.err conftest.$ac_objext \
2150    conftest$ac_exeext conftest.$ac_ext
2151fi
2152eval ac_res=\$$3
2153               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154$as_echo "$ac_res" >&6; }
2155  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156
2157} # ac_fn_c_check_func
2158
2159# ac_fn_cxx_try_cpp LINENO
2160# ------------------------
2161# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2162ac_fn_cxx_try_cpp ()
2163{
2164  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165  if { { ac_try="$ac_cpp conftest.$ac_ext"
2166case "(($ac_try" in
2167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168  *) ac_try_echo=$ac_try;;
2169esac
2170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171$as_echo "$ac_try_echo"; } >&5
2172  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2173  ac_status=$?
2174  if test -s conftest.err; then
2175    grep -v '^ *+' conftest.err >conftest.er1
2176    cat conftest.er1 >&5
2177    mv -f conftest.er1 conftest.err
2178  fi
2179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180  test $ac_status = 0; } > conftest.i && {
2181         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2182         test ! -s conftest.err
2183       }; then :
2184  ac_retval=0
2185else
2186  $as_echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189    ac_retval=1
2190fi
2191  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192  as_fn_set_status $ac_retval
2193
2194} # ac_fn_cxx_try_cpp
2195
2196# ac_fn_f77_try_link LINENO
2197# -------------------------
2198# Try to link conftest.$ac_ext, and return whether this succeeded.
2199ac_fn_f77_try_link ()
2200{
2201  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202  rm -f conftest.$ac_objext conftest$ac_exeext
2203  if { { ac_try="$ac_link"
2204case "(($ac_try" in
2205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206  *) ac_try_echo=$ac_try;;
2207esac
2208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2209$as_echo "$ac_try_echo"; } >&5
2210  (eval "$ac_link") 2>conftest.err
2211  ac_status=$?
2212  if test -s conftest.err; then
2213    grep -v '^ *+' conftest.err >conftest.er1
2214    cat conftest.er1 >&5
2215    mv -f conftest.er1 conftest.err
2216  fi
2217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218  test $ac_status = 0; } && {
2219         test -z "$ac_f77_werror_flag" ||
2220         test ! -s conftest.err
2221       } && test -s conftest$ac_exeext && {
2222         test "$cross_compiling" = yes ||
2223         test -x conftest$ac_exeext
2224       }; then :
2225  ac_retval=0
2226else
2227  $as_echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230        ac_retval=1
2231fi
2232  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2233  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2234  # interfere with the next link command; also delete a directory that is
2235  # left behind by Apple's compiler.  We do this before executing the actions.
2236  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238  as_fn_set_status $ac_retval
2239
2240} # ac_fn_f77_try_link
2241
2242# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2243# ---------------------------------------------------------
2244# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2245# the include files in INCLUDES and setting the cache variable VAR
2246# accordingly.
2247ac_fn_cxx_check_header_mongrel ()
2248{
2249  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250  if eval \${$3+:} false; then :
2251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252$as_echo_n "checking for $2... " >&6; }
2253if eval \${$3+:} false; then :
2254  $as_echo_n "(cached) " >&6
2255fi
2256eval ac_res=\$$3
2257               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258$as_echo "$ac_res" >&6; }
2259else
2260  # Is the header compilable?
2261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2262$as_echo_n "checking $2 usability... " >&6; }
2263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264/* end confdefs.h.  */
2265$4
2266#include <$2>
2267_ACEOF
2268if ac_fn_cxx_try_compile "$LINENO"; then :
2269  ac_header_compiler=yes
2270else
2271  ac_header_compiler=no
2272fi
2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2275$as_echo "$ac_header_compiler" >&6; }
2276
2277# Is the header present?
2278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2279$as_echo_n "checking $2 presence... " >&6; }
2280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281/* end confdefs.h.  */
2282#include <$2>
2283_ACEOF
2284if ac_fn_cxx_try_cpp "$LINENO"; then :
2285  ac_header_preproc=yes
2286else
2287  ac_header_preproc=no
2288fi
2289rm -f conftest.err conftest.i conftest.$ac_ext
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2291$as_echo "$ac_header_preproc" >&6; }
2292
2293# So?  What about this header?
2294case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2295  yes:no: )
2296    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2297$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2298    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2299$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2300    ;;
2301  no:yes:* )
2302    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2303$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2304    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2305$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2306    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2307$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2308    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2309$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2310    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2311$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2312( $as_echo "## ----------------------------------- ##
2313## Report this to clp@list.coin-or.org ##
2314## ----------------------------------- ##"
2315     ) | sed "s/^/$as_me: WARNING:     /" >&2
2316    ;;
2317esac
2318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2319$as_echo_n "checking for $2... " >&6; }
2320if eval \${$3+:} false; then :
2321  $as_echo_n "(cached) " >&6
2322else
2323  eval "$3=\$ac_header_compiler"
2324fi
2325eval ac_res=\$$3
2326               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327$as_echo "$ac_res" >&6; }
2328fi
2329  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330
2331} # ac_fn_cxx_check_header_mongrel
2332
2333# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2334# ---------------------------------------------------------
2335# Tests whether HEADER exists and can be compiled using the include files in
2336# INCLUDES, setting the cache variable VAR accordingly.
2337ac_fn_cxx_check_header_compile ()
2338{
2339  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341$as_echo_n "checking for $2... " >&6; }
2342if eval \${$3+:} false; then :
2343  $as_echo_n "(cached) " >&6
2344else
2345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h.  */
2347$4
2348#include <$2>
2349_ACEOF
2350if ac_fn_cxx_try_compile "$LINENO"; then :
2351  eval "$3=yes"
2352else
2353  eval "$3=no"
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357eval ac_res=\$$3
2358               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359$as_echo "$ac_res" >&6; }
2360  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361
2362} # ac_fn_cxx_check_header_compile
2363cat >config.log <<_ACEOF
2364This file contains any messages produced by compilers while
2365running configure, to aid debugging if configure makes a mistake.
2366
2367It was created by Clp $as_me trunk, which was
2368generated by GNU Autoconf 2.69.  Invocation command line was
2369
2370  $ $0 $@
2371
2372_ACEOF
2373exec 5>>config.log
2374{
2375cat <<_ASUNAME
2376## --------- ##
2377## Platform. ##
2378## --------- ##
2379
2380hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2381uname -m = `(uname -m) 2>/dev/null || echo unknown`
2382uname -r = `(uname -r) 2>/dev/null || echo unknown`
2383uname -s = `(uname -s) 2>/dev/null || echo unknown`
2384uname -v = `(uname -v) 2>/dev/null || echo unknown`
2385
2386/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2387/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2388
2389/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2390/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2391/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2392/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2393/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2394/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2395/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2396
2397_ASUNAME
2398
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402  IFS=$as_save_IFS
2403  test -z "$as_dir" && as_dir=.
2404    $as_echo "PATH: $as_dir"
2405  done
2406IFS=$as_save_IFS
2407
2408} >&5
2409
2410cat >&5 <<_ACEOF
2411
2412
2413## ----------- ##
2414## Core tests. ##
2415## ----------- ##
2416
2417_ACEOF
2418
2419
2420# Keep a trace of the command line.
2421# Strip out --no-create and --no-recursion so they do not pile up.
2422# Strip out --silent because we don't want to record it for future runs.
2423# Also quote any args containing shell meta-characters.
2424# Make two passes to allow for proper duplicate-argument suppression.
2425ac_configure_args=
2426ac_configure_args0=
2427ac_configure_args1=
2428ac_must_keep_next=false
2429for ac_pass in 1 2
2430do
2431  for ac_arg
2432  do
2433    case $ac_arg in
2434    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2435    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2436    | -silent | --silent | --silen | --sile | --sil)
2437      continue ;;
2438    *\'*)
2439      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2440    esac
2441    case $ac_pass in
2442    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2443    2)
2444      as_fn_append ac_configure_args1 " '$ac_arg'"
2445      if test $ac_must_keep_next = true; then
2446        ac_must_keep_next=false # Got value, back to normal.
2447      else
2448        case $ac_arg in
2449          *=* | --config-cache | -C | -disable-* | --disable-* \
2450          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2451          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2452          | -with-* | --with-* | -without-* | --without-* | --x)
2453            case "$ac_configure_args0 " in
2454              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2455            esac
2456            ;;
2457          -* ) ac_must_keep_next=true ;;
2458        esac
2459      fi
2460      as_fn_append ac_configure_args " '$ac_arg'"
2461      ;;
2462    esac
2463  done
2464done
2465{ ac_configure_args0=; unset ac_configure_args0;}
2466{ ac_configure_args1=; unset ac_configure_args1;}
2467
2468# When interrupted or exit'd, cleanup temporary files, and complete
2469# config.log.  We remove comments because anyway the quotes in there
2470# would cause problems or look ugly.
2471# WARNING: Use '\'' to represent an apostrophe within the trap.
2472# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2473trap 'exit_status=$?
2474  # Save into config.log some information that might help in debugging.
2475  {
2476    echo
2477
2478    $as_echo "## ---------------- ##
2479## Cache variables. ##
2480## ---------------- ##"
2481    echo
2482    # The following way of writing the cache mishandles newlines in values,
2483(
2484  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2485    eval ac_val=\$$ac_var
2486    case $ac_val in #(
2487    *${as_nl}*)
2488      case $ac_var in #(
2489      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2490$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2491      esac
2492      case $ac_var in #(
2493      _ | IFS | as_nl) ;; #(
2494      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2495      *) { eval $ac_var=; unset $ac_var;} ;;
2496      esac ;;
2497    esac
2498  done
2499  (set) 2>&1 |
2500    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2501    *${as_nl}ac_space=\ *)
2502      sed -n \
2503        "s/'\''/'\''\\\\'\'''\''/g;
2504          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2505      ;; #(
2506    *)
2507      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2508      ;;
2509    esac |
2510    sort
2511)
2512    echo
2513
2514    $as_echo "## ----------------- ##
2515## Output variables. ##
2516## ----------------- ##"
2517    echo
2518    for ac_var in $ac_subst_vars
2519    do
2520      eval ac_val=\$$ac_var
2521      case $ac_val in
2522      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523      esac
2524      $as_echo "$ac_var='\''$ac_val'\''"
2525    done | sort
2526    echo
2527
2528    if test -n "$ac_subst_files"; then
2529      $as_echo "## ------------------- ##
2530## File substitutions. ##
2531## ------------------- ##"
2532      echo
2533      for ac_var in $ac_subst_files
2534      do
2535        eval ac_val=\$$ac_var
2536        case $ac_val in
2537        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2538        esac
2539        $as_echo "$ac_var='\''$ac_val'\''"
2540      done | sort
2541      echo
2542    fi
2543
2544    if test -s confdefs.h; then
2545      $as_echo "## ----------- ##
2546## confdefs.h. ##
2547## ----------- ##"
2548      echo
2549      cat confdefs.h
2550      echo
2551    fi
2552    test "$ac_signal" != 0 &&
2553      $as_echo "$as_me: caught signal $ac_signal"
2554    $as_echo "$as_me: exit $exit_status"
2555  } >&5
2556  rm -f core *.core core.conftest.* &&
2557    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2558    exit $exit_status
2559' 0
2560for ac_signal in 1 2 13 15; do
2561  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2562done
2563ac_signal=0
2564
2565# confdefs.h avoids OS command line length limits that DEFS can exceed.
2566rm -f -r conftest* confdefs.h
2567
2568$as_echo "/* confdefs.h */" > confdefs.h
2569
2570# Predefined preprocessor variables.
2571
2572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_NAME "$PACKAGE_NAME"
2574_ACEOF
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2578_ACEOF
2579
2580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_VERSION "$PACKAGE_VERSION"
2582_ACEOF
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_STRING "$PACKAGE_STRING"
2586_ACEOF
2587
2588cat >>confdefs.h <<_ACEOF
2589#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2590_ACEOF
2591
2592cat >>confdefs.h <<_ACEOF
2593#define PACKAGE_URL "$PACKAGE_URL"
2594_ACEOF
2595
2596
2597# Let the site file select an alternate cache file if it wants to.
2598# Prefer an explicitly selected file to automatically selected ones.
2599ac_site_file1=NONE
2600ac_site_file2=NONE
2601if test -n "$CONFIG_SITE"; then
2602  # We do not want a PATH search for config.site.
2603  case $CONFIG_SITE in #((
2604    -*)  ac_site_file1=./$CONFIG_SITE;;
2605    */*) ac_site_file1=$CONFIG_SITE;;
2606    *)   ac_site_file1=./$CONFIG_SITE;;
2607  esac
2608elif test "x$prefix" != xNONE; then
2609  ac_site_file1=$prefix/share/config.site
2610  ac_site_file2=$prefix/etc/config.site
2611else
2612  ac_site_file1=$ac_default_prefix/share/config.site
2613  ac_site_file2=$ac_default_prefix/etc/config.site
2614fi
2615for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2616do
2617  test "x$ac_site_file" = xNONE && continue
2618  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2619    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2620$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2621    sed 's/^/| /' "$ac_site_file" >&5
2622    . "$ac_site_file" \
2623      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625as_fn_error $? "failed to load site script $ac_site_file
2626See \`config.log' for more details" "$LINENO" 5; }
2627  fi
2628done
2629
2630if test -r "$cache_file"; then
2631  # Some versions of bash will fail to source /dev/null (special files
2632  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2633  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2634    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2635$as_echo "$as_me: loading cache $cache_file" >&6;}
2636    case $cache_file in
2637      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2638      *)                      . "./$cache_file";;
2639    esac
2640  fi
2641else
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2643$as_echo "$as_me: creating cache $cache_file" >&6;}
2644  >$cache_file
2645fi
2646
2647# Check that the precious variables saved in the cache have kept the same
2648# value.
2649ac_cache_corrupted=false
2650for ac_var in $ac_precious_vars; do
2651  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2652  eval ac_new_set=\$ac_env_${ac_var}_set
2653  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2654  eval ac_new_val=\$ac_env_${ac_var}_value
2655  case $ac_old_set,$ac_new_set in
2656    set,)
2657      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2658$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2659      ac_cache_corrupted=: ;;
2660    ,set)
2661      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2662$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2663      ac_cache_corrupted=: ;;
2664    ,);;
2665    *)
2666      if test "x$ac_old_val" != "x$ac_new_val"; then
2667        # differences in whitespace do not lead to failure.
2668        ac_old_val_w=`echo x $ac_old_val`
2669        ac_new_val_w=`echo x $ac_new_val`
2670        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2671          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2672$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2673          ac_cache_corrupted=:
2674        else
2675          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2676$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2677          eval $ac_var=\$ac_old_val
2678        fi
2679        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2680$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2681        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2682$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2683      fi;;
2684  esac
2685  # Pass precious variables to config.status.
2686  if test "$ac_new_set" = set; then
2687    case $ac_new_val in
2688    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2689    *) ac_arg=$ac_var=$ac_new_val ;;
2690    esac
2691    case " $ac_configure_args " in
2692      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2693      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2694    esac
2695  fi
2696done
2697if $ac_cache_corrupted; then
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2701$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2702  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2703fi
2704## -------------------- ##
2705## Main body of script. ##
2706## -------------------- ##
2707
2708ac_ext=c
2709ac_cpp='$CPP $CPPFLAGS'
2710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713
2714
2715
2716
2717
2718# List one file in the package so that the configure script can test
2719# whether the package is actually there
2720
2721
2722
2723# Do some initialization work (version numbers, change prefix default, ...)
2724
2725
2726  # Check whether --enable-msvc was given.
2727if test "${enable_msvc+set}" = set; then :
2728  enableval=$enable_msvc; enable_msvc=$enableval
2729else
2730  enable_msvc=no
2731fi
2732
2733
2734
2735# We want --enable-msvc setup and checked
2736
2737
2738
2739# This macro should run before the compiler checks (doesn't seem to be
2740# sufficient for CFLAGS)
2741
2742
2743
2744
2745
2746
2747# change default compiler flags (TODO bring back --enable-debug)
2748# - disable debugging (remove -g, set -DNDEBUG)
2749# - enable exceptions for (i)cl
2750
2751  if test "$enable_msvc" = yes ; then
2752    : ${FFLAGS:=""}
2753    : ${FCFLAGS:=""}
2754    : ${CFLAGS:="-DNDEBUG -nologo"}
2755    : ${CXXFLAGS:="-DNDEBUG -EHsc -nologo"}
2756    : ${AR:="lib"}
2757    : ${AR_FLAGS:="-nologo -out:"}
2758  else
2759    : ${FFLAGS:=""}
2760    : ${FCFLAGS:=""}
2761    : ${CFLAGS:="-DNDEBUG"}
2762    : ${CXXFLAGS:="-DNDEBUG"}
2763  fi
2764
2765ac_aux_dir=
2766for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2767  if test -f "$ac_dir/install-sh"; then
2768    ac_aux_dir=$ac_dir
2769    ac_install_sh="$ac_aux_dir/install-sh -c"
2770    break
2771  elif test -f "$ac_dir/install.sh"; then
2772    ac_aux_dir=$ac_dir
2773    ac_install_sh="$ac_aux_dir/install.sh -c"
2774    break
2775  elif test -f "$ac_dir/shtool"; then
2776    ac_aux_dir=$ac_dir
2777    ac_install_sh="$ac_aux_dir/shtool install -c"
2778    break
2779  fi
2780done
2781if test -z "$ac_aux_dir"; then
2782  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2783fi
2784
2785# These three variables are undocumented and unsupported,
2786# and are intended to be withdrawn in a future Autoconf release.
2787# They can cause serious problems if a builder's source tree is in a directory
2788# whose full name contains unusual characters.
2789ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2790ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2791ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2792
2793
2794# Make sure we can run config.sub.
2795$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2796  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2797
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2799$as_echo_n "checking build system type... " >&6; }
2800if ${ac_cv_build+:} false; then :
2801  $as_echo_n "(cached) " >&6
2802else
2803  ac_build_alias=$build_alias
2804test "x$ac_build_alias" = x &&
2805  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2806test "x$ac_build_alias" = x &&
2807  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2808ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2809  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2810
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2813$as_echo "$ac_cv_build" >&6; }
2814case $ac_cv_build in
2815*-*-*) ;;
2816*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2817esac
2818build=$ac_cv_build
2819ac_save_IFS=$IFS; IFS='-'
2820set x $ac_cv_build
2821shift
2822build_cpu=$1
2823build_vendor=$2
2824shift; shift
2825# Remember, the first character of IFS is used to create $*,
2826# except with old shells:
2827build_os=$*
2828IFS=$ac_save_IFS
2829case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2830
2831
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2833$as_echo_n "checking host system type... " >&6; }
2834if ${ac_cv_host+:} false; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  if test "x$host_alias" = x; then
2838  ac_cv_host=$ac_cv_build
2839else
2840  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2841    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2842fi
2843
2844fi
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2846$as_echo "$ac_cv_host" >&6; }
2847case $ac_cv_host in
2848*-*-*) ;;
2849*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2850esac
2851host=$ac_cv_host
2852ac_save_IFS=$IFS; IFS='-'
2853set x $ac_cv_host
2854shift
2855host_cpu=$1
2856host_vendor=$2
2857shift; shift
2858# Remember, the first character of IFS is used to create $*,
2859# except with old shells:
2860host_os=$*
2861IFS=$ac_save_IFS
2862case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2863
2864
2865am__api_version='1.15'
2866
2867# Find a good install program.  We prefer a C program (faster),
2868# so one script is as good as another.  But avoid the broken or
2869# incompatible versions:
2870# SysV /etc/install, /usr/sbin/install
2871# SunOS /usr/etc/install
2872# IRIX /sbin/install
2873# AIX /bin/install
2874# AmigaOS /C/install, which installs bootblocks on floppy discs
2875# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2876# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2877# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2878# OS/2's system install, which has a completely different semantic
2879# ./install, which can be erroneously created by make from ./install.sh.
2880# Reject install programs that cannot install multiple files.
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2882$as_echo_n "checking for a BSD-compatible install... " >&6; }
2883if test -z "$INSTALL"; then
2884if ${ac_cv_path_install+:} false; then :
2885  $as_echo_n "(cached) " >&6
2886else
2887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892    # Account for people who put trailing slashes in PATH elements.
2893case $as_dir/ in #((
2894  ./ | .// | /[cC]/* | \
2895  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2896  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2897  /usr/ucb/* ) ;;
2898  *)
2899    # OSF1 and SCO ODT 3.0 have their own names for install.
2900    # Don't use installbsd from OSF since it installs stuff as root
2901    # by default.
2902    for ac_prog in ginstall scoinst install; do
2903      for ac_exec_ext in '' $ac_executable_extensions; do
2904        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2905          if test $ac_prog = install &&
2906            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907            # AIX install.  It has an incompatible calling convention.
2908            :
2909          elif test $ac_prog = install &&
2910            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2911            # program-specific install script used by HP pwplus--don't use.
2912            :
2913          else
2914            rm -rf conftest.one conftest.two conftest.dir
2915            echo one > conftest.one
2916            echo two > conftest.two
2917            mkdir conftest.dir
2918            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2919              test -s conftest.one && test -s conftest.two &&
2920              test -s conftest.dir/conftest.one &&
2921              test -s conftest.dir/conftest.two
2922            then
2923              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2924              break 3
2925            fi
2926          fi
2927        fi
2928      done
2929    done
2930    ;;
2931esac
2932
2933  done
2934IFS=$as_save_IFS
2935
2936rm -rf conftest.one conftest.two conftest.dir
2937
2938fi
2939  if test "${ac_cv_path_install+set}" = set; then
2940    INSTALL=$ac_cv_path_install
2941  else
2942    # As a last resort, use the slow shell script.  Don't cache a
2943    # value for INSTALL within a source directory, because that will
2944    # break other packages using the cache if that directory is
2945    # removed, or if the value is a relative name.
2946    INSTALL=$ac_install_sh
2947  fi
2948fi
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2950$as_echo "$INSTALL" >&6; }
2951
2952# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2953# It thinks the first close brace ends the variable substitution.
2954test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2955
2956test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2957
2958test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2959
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2961$as_echo_n "checking whether build environment is sane... " >&6; }
2962# Reject unsafe characters in $srcdir or the absolute working directory
2963# name.  Accept space and tab only in the latter.
2964am_lf='
2965'
2966case `pwd` in
2967  *[\\\"\#\$\&\'\`$am_lf]*)
2968    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2969esac
2970case $srcdir in
2971  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2972    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2973esac
2974
2975# Do 'set' in a subshell so we don't clobber the current shell's
2976# arguments.  Must try -L first in case configure is actually a
2977# symlink; some systems play weird games with the mod time of symlinks
2978# (eg FreeBSD returns the mod time of the symlink's containing
2979# directory).
2980if (
2981   am_has_slept=no
2982   for am_try in 1 2; do
2983     echo "timestamp, slept: $am_has_slept" > conftest.file
2984     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2985     if test "$*" = "X"; then
2986        # -L didn't work.
2987        set X `ls -t "$srcdir/configure" conftest.file`
2988     fi
2989     if test "$*" != "X $srcdir/configure conftest.file" \
2990        && test "$*" != "X conftest.file $srcdir/configure"; then
2991
2992        # If neither matched, then we have a broken ls.  This can happen
2993        # if, for instance, CONFIG_SHELL is bash and it inherits a
2994        # broken ls alias from the environment.  This has actually
2995        # happened.  Such a system could not be considered "sane".
2996        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2997  alias in your environment" "$LINENO" 5
2998     fi
2999     if test "$2" = conftest.file || test $am_try -eq 2; then
3000       break
3001     fi
3002     # Just in case.
3003     sleep 1
3004     am_has_slept=yes
3005   done
3006   test "$2" = conftest.file
3007   )
3008then
3009   # Ok.
3010   :
3011else
3012   as_fn_error $? "newly created file is older than distributed files!
3013Check your system clock" "$LINENO" 5
3014fi
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016$as_echo "yes" >&6; }
3017# If we didn't sleep, we still need to ensure time stamps of config.status and
3018# generated files are strictly newer.
3019am_sleep_pid=
3020if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3021  ( sleep 1 ) &
3022  am_sleep_pid=$!
3023fi
3024
3025rm -f conftest.file
3026
3027test "$program_prefix" != NONE &&
3028  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3029# Use a double $ so make ignores it.
3030test "$program_suffix" != NONE &&
3031  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3032# Double any \ or $.
3033# By default was `s,x,x', remove it if useless.
3034ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3035program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3036
3037# Expand $ac_aux_dir to an absolute path.
3038am_aux_dir=`cd "$ac_aux_dir" && pwd`
3039
3040if test x"${MISSING+set}" != xset; then
3041  case $am_aux_dir in
3042  *\ * | *\     *)
3043    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3044  *)
3045    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3046  esac
3047fi
3048# Use eval to expand $SHELL
3049if eval "$MISSING --is-lightweight"; then
3050  am_missing_run="$MISSING "
3051else
3052  am_missing_run=
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3054$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3055fi
3056
3057if test x"${install_sh+set}" != xset; then
3058  case $am_aux_dir in
3059  *\ * | *\     *)
3060    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3061  *)
3062    install_sh="\${SHELL} $am_aux_dir/install-sh"
3063  esac
3064fi
3065
3066# Installed binaries are usually stripped using 'strip' when the user
3067# run "make install-strip".  However 'strip' might not be the right
3068# tool to use in cross-compilation environments, therefore Automake
3069# will honor the 'STRIP' environment variable to overrule this program.
3070if test "$cross_compiling" != no; then
3071  if test -n "$ac_tool_prefix"; then
3072  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073set dummy ${ac_tool_prefix}strip; ac_word=$2
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
3076if ${ac_cv_prog_STRIP+:} false; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  if test -n "$STRIP"; then
3080  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085  IFS=$as_save_IFS
3086  test -z "$as_dir" && as_dir=.
3087    for ac_exec_ext in '' $ac_executable_extensions; do
3088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091    break 2
3092  fi
3093done
3094  done
3095IFS=$as_save_IFS
3096
3097fi
3098fi
3099STRIP=$ac_cv_prog_STRIP
3100if test -n "$STRIP"; then
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3102$as_echo "$STRIP" >&6; }
3103else
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105$as_echo "no" >&6; }
3106fi
3107
3108
3109fi
3110if test -z "$ac_cv_prog_STRIP"; then
3111  ac_ct_STRIP=$STRIP
3112  # Extract the first word of "strip", so it can be a program name with args.
3113set dummy strip; ac_word=$2
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  if test -n "$ac_ct_STRIP"; then
3120  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  test -z "$as_dir" && as_dir=.
3127    for ac_exec_ext in '' $ac_executable_extensions; do
3128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129    ac_cv_prog_ac_ct_STRIP="strip"
3130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134  done
3135IFS=$as_save_IFS
3136
3137fi
3138fi
3139ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3140if test -n "$ac_ct_STRIP"; then
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3142$as_echo "$ac_ct_STRIP" >&6; }
3143else
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148  if test "x$ac_ct_STRIP" = x; then
3149    STRIP=":"
3150  else
3151    case $cross_compiling:$ac_tool_warned in
3152yes:)
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155ac_tool_warned=yes ;;
3156esac
3157    STRIP=$ac_ct_STRIP
3158  fi
3159else
3160  STRIP="$ac_cv_prog_STRIP"
3161fi
3162
3163fi
3164INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3165
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3167$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3168if test -z "$MKDIR_P"; then
3169  if ${ac_cv_path_mkdir+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_prog in mkdir gmkdir; do
3178         for ac_exec_ext in '' $ac_executable_extensions; do
3179           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3180           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3181             'mkdir (GNU coreutils) '* | \
3182             'mkdir (coreutils) '* | \
3183             'mkdir (fileutils) '4.1*)
3184               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3185               break 3;;
3186           esac
3187         done
3188       done
3189  done
3190IFS=$as_save_IFS
3191
3192fi
3193
3194  test -d ./--version && rmdir ./--version
3195  if test "${ac_cv_path_mkdir+set}" = set; then
3196    MKDIR_P="$ac_cv_path_mkdir -p"
3197  else
3198    # As a last resort, use the slow shell script.  Don't cache a
3199    # value for MKDIR_P within a source directory, because that will
3200    # break other packages using the cache if that directory is
3201    # removed, or if the value is a relative name.
3202    MKDIR_P="$ac_install_sh -d"
3203  fi
3204fi
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3206$as_echo "$MKDIR_P" >&6; }
3207
3208for ac_prog in gawk mawk nawk awk
3209do
3210  # Extract the first word of "$ac_prog", so it can be a program name with args.
3211set dummy $ac_prog; ac_word=$2
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213$as_echo_n "checking for $ac_word... " >&6; }
3214if ${ac_cv_prog_AWK+:} false; then :
3215  $as_echo_n "(cached) " >&6
3216else
3217  if test -n "$AWK"; then
3218  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3219else
3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223  IFS=$as_save_IFS
3224  test -z "$as_dir" && as_dir=.
3225    for ac_exec_ext in '' $ac_executable_extensions; do
3226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227    ac_cv_prog_AWK="$ac_prog"
3228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229    break 2
3230  fi
3231done
3232  done
3233IFS=$as_save_IFS
3234
3235fi
3236fi
3237AWK=$ac_cv_prog_AWK
3238if test -n "$AWK"; then
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3240$as_echo "$AWK" >&6; }
3241else
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243$as_echo "no" >&6; }
3244fi
3245
3246
3247  test -n "$AWK" && break
3248done
3249
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3251$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3252set x ${MAKE-make}
3253ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3254if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  cat >conftest.make <<\_ACEOF
3258SHELL = /bin/sh
3259all:
3260        @echo '@@@%%%=$(MAKE)=@@@%%%'
3261_ACEOF
3262# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3263case `${MAKE-make} -f conftest.make 2>/dev/null` in
3264  *@@@%%%=?*=@@@%%%*)
3265    eval ac_cv_prog_make_${ac_make}_set=yes;;
3266  *)
3267    eval ac_cv_prog_make_${ac_make}_set=no;;
3268esac
3269rm -f conftest.make
3270fi
3271if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273$as_echo "yes" >&6; }
3274  SET_MAKE=
3275else
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277$as_echo "no" >&6; }
3278  SET_MAKE="MAKE=${MAKE-make}"
3279fi
3280
3281rm -rf .tst 2>/dev/null
3282mkdir .tst 2>/dev/null
3283if test -d .tst; then
3284  am__leading_dot=.
3285else
3286  am__leading_dot=_
3287fi
3288rmdir .tst 2>/dev/null
3289
3290
3291# Enforce the required autoconf version
3292
3293
3294
3295# Set the project's version numbers
3296
3297
3298
3299cat >>confdefs.h <<_ACEOF
3300#define CLP_VERSION "$PACKAGE_VERSION"
3301_ACEOF
3302
3303
3304# Parse package version, assuming major.minor.release. PACKAGE_VERSION is set
3305# by AC_INIT. Force components to 9999 if they're empty; this deals with
3306# things like `trunk' and other nonstandard forms.
3307
3308  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
3309  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
3310  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
3311  test -z "$coin_majorver"   && coin_majorver=9999
3312  test -z "$coin_minorver"   && coin_minorver=9999
3313  test -z "$coin_releasever" && coin_releasever=9999
3314
3315cat >>confdefs.h <<_ACEOF
3316#define CLP_VERSION_MAJOR $coin_majorver
3317_ACEOF
3318
3319
3320cat >>confdefs.h <<_ACEOF
3321#define CLP_VERSION_MINOR $coin_minorver
3322_ACEOF
3323
3324
3325cat >>confdefs.h <<_ACEOF
3326#define CLP_VERSION_RELEASE $coin_releasever
3327_ACEOF
3328
3329
3330# Create a variable set to the upper case version of the project name
3331
3332  COIN_PRJCT=CLP
3333
3334# Set the project's SVN revision number. The complicated sed expression
3335# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
3336# as a single number.
3337
3338  # Extract the first word of "svnversion", so it can be a program name with args.
3339set dummy svnversion; ac_word=$2
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if ${ac_cv_prog_have_svnversion+:} false; then :
3343  $as_echo_n "(cached) " >&6
3344else
3345  if test -n "$have_svnversion"; then
3346  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353    for ac_exec_ext in '' $ac_executable_extensions; do
3354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355    ac_cv_prog_have_svnversion="yes"
3356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360  done
3361IFS=$as_save_IFS
3362
3363  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
3364fi
3365fi
3366have_svnversion=$ac_cv_prog_have_svnversion
3367if test -n "$have_svnversion"; then
3368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_svnversion" >&5
3369$as_echo "$have_svnversion" >&6; }
3370else
3371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372$as_echo "no" >&6; }
3373fi
3374
3375
3376  if test "x$have_svnversion" = xyes; then
3377
3378    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
3379    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
3380      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
3381
3382cat >>confdefs.h <<_ACEOF
3383#define CLP_SVN_REV $CLP_SVN_REV
3384_ACEOF
3385
3386    fi
3387  fi
3388
3389
3390
3391# Capture the libtool library version, if given.
3392
3393
3394
3395
3396# A useful makefile conditional that is always false
3397
3398   if false; then
3399  ALWAYS_FALSE_TRUE=
3400  ALWAYS_FALSE_FALSE='#'
3401else
3402  ALWAYS_FALSE_TRUE='#'
3403  ALWAYS_FALSE_FALSE=
3404fi
3405
3406
3407# Where should everything be installed by default?  The COIN default is to
3408# install directly into subdirectories of the directory where configure is
3409# run. The default would be to install under /usr/local.
3410
3411
3412
3413# Change the default compiler flags. This needs to run before
3414# AC_CANONICAL_BUILD.
3415
3416
3417
3418# Get the build and host types
3419
3420
3421
3422
3423# libtool has some magic for host_os=mingw, but doesn't know about msys
3424
3425  if test $host_os = msys ; then
3426    host_os=mingw
3427    host=`echo $host | sed -e 's/msys/mingw/'`
3428  fi
3429
3430# Make silent build rules the default (https://www.gnu.org/software/automake/
3431# manual/html_node/Automake-Silent-Rules.html). Run before AM_INIT_AUTOMAKE,
3432# which will AC_REQUIRE it anyway.
3433
3434  # Check whether --enable-silent-rules was given.
3435if test "${enable_silent_rules+set}" = set; then :
3436  enableval=$enable_silent_rules;
3437fi
3438
3439case $enable_silent_rules in # (((
3440  yes) AM_DEFAULT_VERBOSITY=0;;
3441   no) AM_DEFAULT_VERBOSITY=1;;
3442    *) AM_DEFAULT_VERBOSITY=0;;
3443esac
3444am_make=${MAKE-make}
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3446$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3447if ${am_cv_make_support_nested_variables+:} false; then :
3448  $as_echo_n "(cached) " >&6
3449else
3450  if $as_echo 'TRUE=$(BAR$(V))
3451BAR0=false
3452BAR1=true
3453V=1
3454am__doit:
3455        @$(TRUE)
3456.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3457  am_cv_make_support_nested_variables=yes
3458else
3459  am_cv_make_support_nested_variables=no
3460fi
3461fi
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3463$as_echo "$am_cv_make_support_nested_variables" >&6; }
3464if test $am_cv_make_support_nested_variables = yes; then
3465    AM_V='$(V)'
3466  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3467else
3468  AM_V=$AM_DEFAULT_VERBOSITY
3469  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3470fi
3471AM_BACKSLASH='\'
3472
3473
3474# Initialize automake
3475# - don't AC_DEFINE PACKAGE or VERSION (but there're still defined as shell
3476#   variables in configure, and as make variables).
3477# - disable dist target
3478# - enable all automake warnings
3479
3480  if test "`cd $srcdir && pwd`" != "`pwd`"; then
3481  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3482  # is not polluted with repeated "-I."
3483  am__isrc=' -I$(srcdir)'
3484  # test to see if srcdir already configured
3485  if test -f $srcdir/config.status; then
3486    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3487  fi
3488fi
3489
3490# test whether we have cygpath
3491if test -z "$CYGPATH_W"; then
3492  if (cygpath --version) >/dev/null 2>/dev/null; then
3493    CYGPATH_W='cygpath -w'
3494  else
3495    CYGPATH_W=echo
3496  fi
3497fi
3498
3499
3500# Define the identity of the package.
3501 PACKAGE='coin-or-clp'
3502 VERSION='trunk'
3503
3504
3505# Some tools Automake needs.
3506
3507ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3508
3509
3510AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3511
3512
3513AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3514
3515
3516AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3517
3518
3519MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3520
3521# For better backward compatibility.  To be removed once Automake 1.9.x
3522# dies out for good.  For more background, see:
3523# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3524# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3525mkdir_p='$(MKDIR_P)'
3526
3527# We need awk for the "check" target (and possibly the TAP driver).  The
3528# system "awk" is bad on some platforms.
3529# Always define AMTAR for backward compatibility.  Yes, it's still used
3530# in the wild :-(  We should find a proper way to deprecate it ...
3531AMTAR='$${TAR-tar}'
3532
3533
3534# We'll loop over all known methods to create a tar archive until one works.
3535_am_tools='gnutar  pax cpio none'
3536
3537am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3538
3539
3540
3541
3542
3543
3544# POSIX will say in a future version that running "rm -f" with no argument
3545# is OK; and we want to be able to make that assumption in our Makefile
3546# recipes.  So use an aggressive probe to check that the usage we want is
3547# actually supported "in the wild" to an acceptable degree.
3548# See automake bug#10828.
3549# To make any issue more visible, cause the running configure to be aborted
3550# by default if the 'rm' program in use doesn't match our expectations; the
3551# user can still override this though.
3552if rm -f && rm -fr && rm -rf; then : OK; else
3553  cat >&2 <<'END'
3554Oops!
3555
3556Your 'rm' program seems unable to run without file operands specified
3557on the command line, even when the '-f' option is present.  This is contrary
3558to the behaviour of most rm programs out there, and not conforming with
3559the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3560
3561Please tell bug-automake@gnu.org about your system, including the value
3562of your $PATH and any error possibly output before this message.  This
3563can help us improve future automake versions.
3564
3565END
3566  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3567    echo 'Configuration will proceed anyway, since you have set the' >&2
3568    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3569    echo >&2
3570  else
3571    cat >&2 <<'END'
3572Aborting the configuration process, to ensure you take notice of the issue.
3573
3574You can download and install GNU coreutils to get an 'rm' implementation
3575that behaves properly: <http://www.gnu.org/software/coreutils/>.
3576
3577If you want to complete the configuration process using your problematic
3578'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3579to "yes", and re-run configure.
3580
3581END
3582    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3583  fi
3584fi
3585
3586
3587# Disable automatic rebuild of configure/Makefile. Use run_autotools.
3588
3589
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3591$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3592    # Check whether --enable-maintainer-mode was given.
3593if test "${enable_maintainer_mode+set}" = set; then :
3594  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3595else
3596  USE_MAINTAINER_MODE=no
3597fi
3598
3599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3600$as_echo "$USE_MAINTAINER_MODE" >&6; }
3601   if test $USE_MAINTAINER_MODE = yes; then
3602  MAINTAINER_MODE_TRUE=
3603  MAINTAINER_MODE_FALSE='#'
3604else
3605  MAINTAINER_MODE_TRUE='#'
3606  MAINTAINER_MODE_FALSE=
3607fi
3608
3609  MAINT=$MAINTAINER_MODE_TRUE
3610
3611
3612
3613
3614#############################################################################
3615#                         Standard build tool stuff                         #
3616#############################################################################
3617
3618# Get the name of the C++ compiler and appropriate compiler options.
3619
3620DEPDIR="${am__leading_dot}deps"
3621
3622ac_config_commands="$ac_config_commands depfiles"
3623
3624
3625am_make=${MAKE-make}
3626cat > confinc << 'END'
3627am__doit:
3628        @echo this is the am__doit target
3629.PHONY: am__doit
3630END
3631# If we don't find an include directive, just comment out the code.
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3633$as_echo_n "checking for style of include used by $am_make... " >&6; }
3634am__include="#"
3635am__quote=
3636_am_result=none
3637# First try GNU make style include.
3638echo "include confinc" > confmf
3639# Ignore all kinds of additional output from 'make'.
3640case `$am_make -s -f confmf 2> /dev/null` in #(
3641*the\ am__doit\ target*)
3642  am__include=include
3643  am__quote=
3644  _am_result=GNU
3645  ;;
3646esac
3647# Now try BSD make style include.
3648if test "$am__include" = "#"; then
3649   echo '.include "confinc"' > confmf
3650   case `$am_make -s -f confmf 2> /dev/null` in #(
3651   *the\ am__doit\ target*)
3652     am__include=.include
3653     am__quote="\""
3654     _am_result=BSD
3655     ;;
3656   esac
3657fi
3658
3659
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3661$as_echo "$_am_result" >&6; }
3662rm -f confinc confmf
3663
3664# Check whether --enable-dependency-tracking was given.
3665if test "${enable_dependency_tracking+set}" = set; then :
3666  enableval=$enable_dependency_tracking;
3667fi
3668
3669if test "x$enable_dependency_tracking" != xno; then
3670  am_depcomp="$ac_aux_dir/depcomp"
3671  AMDEPBACKSLASH='\'
3672  am__nodep='_no'
3673fi
3674 if test "x$enable_dependency_tracking" != xno; then
3675  AMDEP_TRUE=
3676  AMDEP_FALSE='#'
3677else
3678  AMDEP_TRUE='#'
3679  AMDEP_FALSE=
3680fi
3681
3682
3683
3684
3685
3686# Setting up libtool with LT_INIT will AC_REQUIRE AC_PROG_CC, but we want
3687# to invoke it from this macro first so that we can supply a parameter.
3688
3689
3690
3691
3692# If enable-msvc, then test only for MS and Intel (on Windows) C compiler
3693# otherwise, test a long list of C compilers that comes into our mind
3694
3695  if test $enable_msvc = yes ; then
3696    comps="icl cl"
3697  else
3698    # TODO old buildtools was doing some $build specific logic here, do we
3699    # still need this?
3700    comps="gcc clang cc icc icl cl cc xlc xlc_r pgcc"
3701  fi
3702  ac_ext=c
3703ac_cpp='$CPP $CPPFLAGS'
3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707if test -n "$ac_tool_prefix"; then
3708  for ac_prog in $comps
3709  do
3710    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713$as_echo_n "checking for $ac_word... " >&6; }
3714if ${ac_cv_prog_CC+:} false; then :
3715  $as_echo_n "(cached) " >&6
3716else
3717  if test -n "$CC"; then
3718  ac_cv_prog_CC="$CC" # Let the user override the test.
3719else
3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723  IFS=$as_save_IFS
3724  test -z "$as_dir" && as_dir=.
3725    for ac_exec_ext in '' $ac_executable_extensions; do
3726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729    break 2
3730  fi
3731done
3732  done
3733IFS=$as_save_IFS
3734
3735fi
3736fi
3737CC=$ac_cv_prog_CC
3738if test -n "$CC"; then
3739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740$as_echo "$CC" >&6; }
3741else
3742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743$as_echo "no" >&6; }
3744fi
3745
3746
3747    test -n "$CC" && break
3748  done
3749fi
3750if test -z "$CC"; then
3751  ac_ct_CC=$CC
3752  for ac_prog in $comps
3753do
3754  # Extract the first word of "$ac_prog", so it can be a program name with args.
3755set dummy $ac_prog; ac_word=$2
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757$as_echo_n "checking for $ac_word... " >&6; }
3758if ${ac_cv_prog_ac_ct_CC+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  if test -n "$ac_ct_CC"; then
3762  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767  IFS=$as_save_IFS
3768  test -z "$as_dir" && as_dir=.
3769    for ac_exec_ext in '' $ac_executable_extensions; do
3770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771    ac_cv_prog_ac_ct_CC="$ac_prog"
3772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773    break 2
3774  fi
3775done
3776  done
3777IFS=$as_save_IFS
3778
3779fi
3780fi
3781ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782if test -n "$ac_ct_CC"; then
3783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784$as_echo "$ac_ct_CC" >&6; }
3785else
3786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787$as_echo "no" >&6; }
3788fi
3789
3790
3791  test -n "$ac_ct_CC" && break
3792done
3793
3794  if test "x$ac_ct_CC" = x; then
3795    CC=""
3796  else
3797    case $cross_compiling:$ac_tool_warned in
3798yes:)
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801ac_tool_warned=yes ;;
3802esac
3803    CC=$ac_ct_CC
3804  fi
3805fi
3806
3807
3808test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3810as_fn_error $? "no acceptable C compiler found in \$PATH
3811See \`config.log' for more details" "$LINENO" 5; }
3812
3813# Provide some information about the compiler.
3814$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3815set X $ac_compile
3816ac_compiler=$2
3817for ac_option in --version -v -V -qversion; do
3818  { { ac_try="$ac_compiler $ac_option >&5"
3819case "(($ac_try" in
3820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821  *) ac_try_echo=$ac_try;;
3822esac
3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824$as_echo "$ac_try_echo"; } >&5
3825  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3826  ac_status=$?
3827  if test -s conftest.err; then
3828    sed '10a\
3829... rest of stderr output deleted ...
3830         10q' conftest.err >conftest.er1
3831    cat conftest.er1 >&5
3832  fi
3833  rm -f conftest.er1 conftest.err
3834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835  test $ac_status = 0; }
3836done
3837
3838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h.  */
3840
3841int
3842main ()
3843{
3844
3845  ;
3846  return 0;
3847}
3848_ACEOF
3849ac_clean_files_save=$ac_clean_files
3850ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3851# Try to create an executable without -o first, disregard a.out.
3852# It will help us diagnose broken compilers, and finding out an intuition
3853# of exeext.
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3855$as_echo_n "checking whether the C compiler works... " >&6; }
3856ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3857
3858# The possible output files:
3859ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3860
3861ac_rmfiles=
3862for ac_file in $ac_files
3863do
3864  case $ac_file in
3865    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3866    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3867  esac
3868done
3869rm -f $ac_rmfiles
3870
3871if { { ac_try="$ac_link_default"
3872case "(($ac_try" in
3873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874  *) ac_try_echo=$ac_try;;
3875esac
3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877$as_echo "$ac_try_echo"; } >&5
3878  (eval "$ac_link_default") 2>&5
3879  ac_status=$?
3880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881  test $ac_status = 0; }; then :
3882  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3883# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3884# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3885# so that the user can short-circuit this test for compilers unknown to
3886# Autoconf.
3887for ac_file in $ac_files ''
3888do
3889  test -f "$ac_file" || continue
3890  case $ac_file in
3891    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3892        ;;
3893    [ab].out )
3894        # We found the default executable, but exeext='' is most
3895        # certainly right.
3896        break;;
3897    *.* )
3898        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3899        then :; else
3900           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901        fi
3902        # We set ac_cv_exeext here because the later test for it is not
3903        # safe: cross compilers may not add the suffix if given an `-o'
3904        # argument, so we may need to know it at that point already.
3905        # Even if this section looks crufty: it has the advantage of
3906        # actually working.
3907        break;;
3908    * )
3909        break;;
3910  esac
3911done
3912test "$ac_cv_exeext" = no && ac_cv_exeext=
3913
3914else
3915  ac_file=''
3916fi
3917if test -z "$ac_file"; then :
3918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919$as_echo "no" >&6; }
3920$as_echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925as_fn_error 77 "C compiler cannot create executables
3926See \`config.log' for more details" "$LINENO" 5; }
3927else
3928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3929$as_echo "yes" >&6; }
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3932$as_echo_n "checking for C compiler default output file name... " >&6; }
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3934$as_echo "$ac_file" >&6; }
3935ac_exeext=$ac_cv_exeext
3936
3937rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3938ac_clean_files=$ac_clean_files_save
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3940$as_echo_n "checking for suffix of executables... " >&6; }
3941if { { ac_try="$ac_link"
3942case "(($ac_try" in
3943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944  *) ac_try_echo=$ac_try;;
3945esac
3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947$as_echo "$ac_try_echo"; } >&5
3948  (eval "$ac_link") 2>&5
3949  ac_status=$?
3950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951  test $ac_status = 0; }; then :
3952  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3953# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3954# work properly (i.e., refer to `conftest.exe'), while it won't with
3955# `rm'.
3956for ac_file in conftest.exe conftest conftest.*; do
3957  test -f "$ac_file" || continue
3958  case $ac_file in
3959    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3960    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3961          break;;
3962    * ) break;;
3963  esac
3964done
3965else
3966  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3969See \`config.log' for more details" "$LINENO" 5; }
3970fi
3971rm -f conftest conftest$ac_cv_exeext
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3973$as_echo "$ac_cv_exeext" >&6; }
3974
3975rm -f conftest.$ac_ext
3976EXEEXT=$ac_cv_exeext
3977ac_exeext=$EXEEXT
3978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980#include <stdio.h>
3981int
3982main ()
3983{
3984FILE *f = fopen ("conftest.out", "w");
3985 return ferror (f) || fclose (f) != 0;
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991ac_clean_files="$ac_clean_files conftest.out"
3992# Check that the compiler produces executables we can run.  If not, either
3993# the compiler is broken, or we cross compile.
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3995$as_echo_n "checking whether we are cross compiling... " >&6; }
3996if test "$cross_compiling" != yes; then
3997  { { ac_try="$ac_link"
3998case "(($ac_try" in
3999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000  *) ac_try_echo=$ac_try;;
4001esac
4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003$as_echo "$ac_try_echo"; } >&5
4004  (eval "$ac_link") 2>&5
4005  ac_status=$?
4006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007  test $ac_status = 0; }
4008  if { ac_try='./conftest$ac_cv_exeext'
4009  { { case "(($ac_try" in
4010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011  *) ac_try_echo=$ac_try;;
4012esac
4013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014$as_echo "$ac_try_echo"; } >&5
4015  (eval "$ac_try") 2>&5
4016  ac_status=$?
4017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018  test $ac_status = 0; }; }; then
4019    cross_compiling=no
4020  else
4021    if test "$cross_compiling" = maybe; then
4022        cross_compiling=yes
4023    else
4024        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026as_fn_error $? "cannot run C compiled programs.
4027If you meant to cross compile, use \`--host'.
4028See \`config.log' for more details" "$LINENO" 5; }
4029    fi
4030  fi
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4033$as_echo "$cross_compiling" >&6; }
4034
4035rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4036ac_clean_files=$ac_clean_files_save
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4038$as_echo_n "checking for suffix of object files... " >&6; }
4039if ${ac_cv_objext+:} false; then :
4040  $as_echo_n "(cached) " >&6
4041else
4042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044
4045int
4046main ()
4047{
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053rm -f conftest.o conftest.obj
4054if { { ac_try="$ac_compile"
4055case "(($ac_try" in
4056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057  *) ac_try_echo=$ac_try;;
4058esac
4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060$as_echo "$ac_try_echo"; } >&5
4061  (eval "$ac_compile") 2>&5
4062  ac_status=$?
4063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064  test $ac_status = 0; }; then :
4065  for ac_file in conftest.o conftest.obj conftest.*; do
4066  test -f "$ac_file" || continue;
4067  case $ac_file in
4068    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4069    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4070       break;;
4071  esac
4072done
4073else
4074  $as_echo "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
4077{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4079as_fn_error $? "cannot compute suffix of object files: cannot compile
4080See \`config.log' for more details" "$LINENO" 5; }
4081fi
4082rm -f conftest.$ac_cv_objext conftest.$ac_ext
4083fi
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4085$as_echo "$ac_cv_objext" >&6; }
4086OBJEXT=$ac_cv_objext
4087ac_objext=$OBJEXT
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4089$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4090if ${ac_cv_c_compiler_gnu+:} false; then :
4091  $as_echo_n "(cached) " >&6
4092else
4093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h.  */
4095
4096int
4097main ()
4098{
4099#ifndef __GNUC__
4100       choke me
4101#endif
4102
4103  ;
4104  return 0;
4105}
4106_ACEOF
4107if ac_fn_c_try_compile "$LINENO"; then :
4108  ac_compiler_gnu=yes
4109else
4110  ac_compiler_gnu=no
4111fi
4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113ac_cv_c_compiler_gnu=$ac_compiler_gnu
4114
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4117$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4118if test $ac_compiler_gnu = yes; then
4119  GCC=yes
4120else
4121  GCC=
4122fi
4123ac_test_CFLAGS=${CFLAGS+set}
4124ac_save_CFLAGS=$CFLAGS
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4126$as_echo_n "checking whether $CC accepts -g... " >&6; }
4127if ${ac_cv_prog_cc_g+:} false; then :
4128  $as_echo_n "(cached) " >&6
4129else
4130  ac_save_c_werror_flag=$ac_c_werror_flag
4131   ac_c_werror_flag=yes
4132   ac_cv_prog_cc_g=no
4133   CFLAGS="-g"
4134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135/* end confdefs.h.  */
4136
4137int
4138main ()
4139{
4140
4141  ;
4142  return 0;
4143}
4144_ACEOF
4145if ac_fn_c_try_compile "$LINENO"; then :
4146  ac_cv_prog_cc_g=yes
4147else
4148  CFLAGS=""
4149      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151
4152int
4153main ()
4154{
4155
4156  ;
4157  return 0;
4158}
4159_ACEOF
4160if ac_fn_c_try_compile "$LINENO"; then :
4161
4162else
4163  ac_c_werror_flag=$ac_save_c_werror_flag
4164         CFLAGS="-g"
4165         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h.  */
4167
4168int
4169main ()
4170{
4171
4172  ;
4173  return 0;
4174}
4175_ACEOF
4176if ac_fn_c_try_compile "$LINENO"; then :
4177  ac_cv_prog_cc_g=yes
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180fi
4181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182fi
4183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184   ac_c_werror_flag=$ac_save_c_werror_flag
4185fi
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4187$as_echo "$ac_cv_prog_cc_g" >&6; }
4188if test "$ac_test_CFLAGS" = set; then
4189  CFLAGS=$ac_save_CFLAGS
4190elif test $ac_cv_prog_cc_g = yes; then
4191  if test "$GCC" = yes; then
4192    CFLAGS="-g -O2"
4193  else
4194    CFLAGS="-g"
4195  fi
4196else
4197  if test "$GCC" = yes; then
4198    CFLAGS="-O2"
4199  else
4200    CFLAGS=
4201  fi
4202fi
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4204$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4205if ${ac_cv_prog_cc_c89+:} false; then :
4206  $as_echo_n "(cached) " >&6
4207else
4208  ac_cv_prog_cc_c89=no
4209ac_save_CC=$CC
4210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h.  */
4212#include <stdarg.h>
4213#include <stdio.h>
4214struct stat;
4215/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4216struct buf { int x; };
4217FILE * (*rcsopen) (struct buf *, struct stat *, int);
4218static char *e (p, i)
4219     char **p;
4220     int i;
4221{
4222  return p[i];
4223}
4224static char *f (char * (*g) (char **, int), char **p, ...)
4225{
4226  char *s;
4227  va_list v;
4228  va_start (v,p);
4229  s = g (p, va_arg (v,int));
4230  va_end (v);
4231  return s;
4232}
4233
4234/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4235   function prototypes and stuff, but not '\xHH' hex character constants.
4236   These don't provoke an error unfortunately, instead are silently treated
4237   as 'x'.  The following induces an error, until -std is added to get
4238   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4239   array size at least.  It's necessary to write '\x00'==0 to get something
4240   that's true only with -std.  */
4241int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4242
4243/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4244   inside strings and character constants.  */
4245#define FOO(x) 'x'
4246int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4247
4248int test (int i, double x);
4249struct s1 {int (*f) (int a);};
4250struct s2 {int (*f) (double a);};
4251int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252int argc;
4253char **argv;
4254int
4255main ()
4256{
4257return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4258  ;
4259  return 0;
4260}
4261_ACEOF
4262for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4263        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4264do
4265  CC="$ac_save_CC $ac_arg"
4266  if ac_fn_c_try_compile "$LINENO"; then :
4267  ac_cv_prog_cc_c89=$ac_arg
4268fi
4269rm -f core conftest.err conftest.$ac_objext
4270  test "x$ac_cv_prog_cc_c89" != "xno" && break
4271done
4272rm -f conftest.$ac_ext
4273CC=$ac_save_CC
4274
4275fi
4276# AC_CACHE_VAL
4277case "x$ac_cv_prog_cc_c89" in
4278  x)
4279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4280$as_echo "none needed" >&6; } ;;
4281  xno)
4282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4283$as_echo "unsupported" >&6; } ;;
4284  *)
4285    CC="$CC $ac_cv_prog_cc_c89"
4286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4287$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4288esac
4289if test "x$ac_cv_prog_cc_c89" != xno; then :
4290
4291fi
4292
4293ac_ext=c
4294ac_cpp='$CPP $CPPFLAGS'
4295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298
4299ac_ext=c
4300ac_cpp='$CPP $CPPFLAGS'
4301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4305$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4306if ${am_cv_prog_cc_c_o+:} false; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310/* end confdefs.h.  */
4311
4312int
4313main ()
4314{
4315
4316  ;
4317  return 0;
4318}
4319_ACEOF
4320  # Make sure it works both with $CC and with simple cc.
4321  # Following AC_PROG_CC_C_O, we do the test twice because some
4322  # compilers refuse to overwrite an existing .o file with -o,
4323  # though they will create one.
4324  am_cv_prog_cc_c_o=yes
4325  for am_i in 1 2; do
4326    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4327   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } \
4331         && test -f conftest2.$ac_objext; then
4332      : OK
4333    else
4334      am_cv_prog_cc_c_o=no
4335      break
4336    fi
4337  done
4338  rm -f core conftest*
4339  unset am_i
4340fi
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4342$as_echo "$am_cv_prog_cc_c_o" >&6; }
4343if test "$am_cv_prog_cc_c_o" != yes; then
4344   # Losing compiler, so override with the script.
4345   # FIXME: It is wrong to rewrite CC.
4346   # But if we don't then we get into trouble of one sort or another.
4347   # A longer-term fix would be to have automake use am__CC in this case,
4348   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4349   CC="$am_aux_dir/compile $CC"
4350fi
4351ac_ext=c
4352ac_cpp='$CPP $CPPFLAGS'
4353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356
4357
4358depcc="$CC"   am_compiler_list=
4359
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4361$as_echo_n "checking dependency style of $depcc... " >&6; }
4362if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4363  $as_echo_n "(cached) " >&6
4364else
4365  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4366  # We make a subdir and do the tests there.  Otherwise we can end up
4367  # making bogus files that we don't know about and never remove.  For
4368  # instance it was reported that on HP-UX the gcc test will end up
4369  # making a dummy file named 'D' -- because '-MD' means "put the output
4370  # in D".
4371  rm -rf conftest.dir
4372  mkdir conftest.dir
4373  # Copy depcomp to subdir because otherwise we won't find it if we're
4374  # using a relative directory.
4375  cp "$am_depcomp" conftest.dir
4376  cd conftest.dir
4377  # We will build objects and dependencies in a subdirectory because
4378  # it helps to detect inapplicable dependency modes.  For instance
4379  # both Tru64's cc and ICC support -MD to output dependencies as a
4380  # side effect of compilation, but ICC will put the dependencies in
4381  # the current directory while Tru64 will put them in the object
4382  # directory.
4383  mkdir sub
4384
4385  am_cv_CC_dependencies_compiler_type=none
4386  if test "$am_compiler_list" = ""; then
4387     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4388  fi
4389  am__universal=false
4390  case " $depcc " in #(
4391     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4392     esac
4393
4394  for depmode in $am_compiler_list; do
4395    # Setup a source with many dependencies, because some compilers
4396    # like to wrap large dependency lists on column 80 (with \), and
4397    # we should not choose a depcomp mode which is confused by this.
4398    #
4399    # We need to recreate these files for each test, as the compiler may
4400    # overwrite some of them when testing with obscure command lines.
4401    # This happens at least with the AIX C compiler.
4402    : > sub/conftest.c
4403    for i in 1 2 3 4 5 6; do
4404      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4405      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4406      # Solaris 10 /bin/sh.
4407      echo '/* dummy */' > sub/conftst$i.h
4408    done
4409    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4410
4411    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4412    # mode.  It turns out that the SunPro C++ compiler does not properly
4413    # handle '-M -o', and we need to detect this.  Also, some Intel
4414    # versions had trouble with output in subdirs.
4415    am__obj=sub/conftest.${OBJEXT-o}
4416    am__minus_obj="-o $am__obj"
4417    case $depmode in
4418    gcc)
4419      # This depmode causes a compiler race in universal mode.
4420      test "$am__universal" = false || continue
4421      ;;
4422    nosideeffect)
4423      # After this tag, mechanisms are not by side-effect, so they'll
4424      # only be used when explicitly requested.
4425      if test "x$enable_dependency_tracking" = xyes; then
4426        continue
4427      else
4428        break
4429      fi
4430      ;;
4431    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4432      # This compiler won't grok '-c -o', but also, the minuso test has
4433      # not run yet.  These depmodes are late enough in the game, and
4434      # so weak that their functioning should not be impacted.
4435      am__obj=conftest.${OBJEXT-o}
4436      am__minus_obj=
4437      ;;
4438    none) break ;;
4439    esac
4440    if depmode=$depmode \
4441       source=sub/conftest.c object=$am__obj \
4442       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4443       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4444         >/dev/null 2>conftest.err &&
4445       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4446       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4447       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4448       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4449      # icc doesn't choke on unknown options, it will just issue warnings
4450      # or remarks (even with -Werror).  So we grep stderr for any message
4451      # that says an option was ignored or not supported.
4452      # When given -MP, icc 7.0 and 7.1 complain thusly:
4453      #   icc: Command line warning: ignoring option '-M'; no argument required
4454      # The diagnosis changed in icc 8.0:
4455      #   icc: Command line remark: option '-MP' not supported
4456      if (grep 'ignoring option' conftest.err ||
4457          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4458        am_cv_CC_dependencies_compiler_type=$depmode
4459        break
4460      fi
4461    fi
4462  done
4463
4464  cd ..
4465  rm -rf conftest.dir
4466else
4467  am_cv_CC_dependencies_compiler_type=none
4468fi
4469
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4472$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4473CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4474
4475 if
4476  test "x$enable_dependency_tracking" != xno \
4477  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4478  am__fastdepCC_TRUE=
4479  am__fastdepCC_FALSE='#'
4480else
4481  am__fastdepCC_TRUE='#'
4482  am__fastdepCC_FALSE=
4483fi
4484
4485
4486
4487
4488
4489
4490
4491# If enable-msvc, then test only for MS and Intel (on Windows) C++ compiler
4492# otherwise, test a long list of C++ compilers that comes into our mind
4493
4494  if test $enable_msvc = yes ; then
4495    comps="cl icl"
4496  else
4497    # TODO old buildtools was doing some $build specific logic here, do we
4498    # still need this?
4499    comps="g++ clang++ c++ pgCC icpc gpp cxx cc++ cl icl FCC KCC RCC xlC_r aCC CC"
4500  fi
4501  ac_ext=cpp
4502ac_cpp='$CXXCPP $CPPFLAGS'
4503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4506if test -z "$CXX"; then
4507  if test -n "$CCC"; then
4508    CXX=$CCC
4509  else
4510    if test -n "$ac_tool_prefix"; then
4511  for ac_prog in $comps
4512  do
4513    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516$as_echo_n "checking for $ac_word... " >&6; }
4517if ${ac_cv_prog_CXX+:} false; then :
4518  $as_echo_n "(cached) " >&6
4519else
4520  if test -n "$CXX"; then
4521  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4522else
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526  IFS=$as_save_IFS
4527  test -z "$as_dir" && as_dir=.
4528    for ac_exec_ext in '' $ac_executable_extensions; do
4529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532    break 2
4533  fi
4534done
4535  done
4536IFS=$as_save_IFS
4537
4538fi
4539fi
4540CXX=$ac_cv_prog_CXX
4541if test -n "$CXX"; then
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4543$as_echo "$CXX" >&6; }
4544else
4545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546$as_echo "no" >&6; }
4547fi
4548
4549
4550    test -n "$CXX" && break
4551  done
4552fi
4553if test -z "$CXX"; then
4554  ac_ct_CXX=$CXX
4555  for ac_prog in $comps
4556do
4557  # Extract the first word of "$ac_prog", so it can be a program name with args.
4558set dummy $ac_prog; ac_word=$2
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560$as_echo_n "checking for $ac_word... " >&6; }
4561if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4562  $as_echo_n "(cached) " >&6
4563else
4564  if test -n "$ac_ct_CXX"; then
4565  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570  IFS=$as_save_IFS
4571  test -z "$as_dir" && as_dir=.
4572    for ac_exec_ext in '' $ac_executable_extensions; do
4573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574    ac_cv_prog_ac_ct_CXX="$ac_prog"
4575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576    break 2
4577  fi
4578done
4579  done
4580IFS=$as_save_IFS
4581
4582fi
4583fi
4584ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4585if test -n "$ac_ct_CXX"; then
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4587$as_echo "$ac_ct_CXX" >&6; }
4588else
4589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590$as_echo "no" >&6; }
4591fi
4592
4593
4594  test -n "$ac_ct_CXX" && break
4595done
4596
4597  if test "x$ac_ct_CXX" = x; then
4598    CXX="g++"
4599  else
4600    case $cross_compiling:$ac_tool_warned in
4601yes:)
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4604ac_tool_warned=yes ;;
4605esac
4606    CXX=$ac_ct_CXX
4607  fi
4608fi
4609
4610  fi
4611fi
4612# Provide some information about the compiler.
4613$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4614set X $ac_compile
4615ac_compiler=$2
4616for ac_option in --version -v -V -qversion; do
4617  { { ac_try="$ac_compiler $ac_option >&5"
4618case "(($ac_try" in
4619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620  *) ac_try_echo=$ac_try;;
4621esac
4622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4623$as_echo "$ac_try_echo"; } >&5
4624  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4625  ac_status=$?
4626  if test -s conftest.err; then
4627    sed '10a\
4628... rest of stderr output deleted ...
4629         10q' conftest.err >conftest.er1
4630    cat conftest.er1 >&5
4631  fi
4632  rm -f conftest.er1 conftest.err
4633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634  test $ac_status = 0; }
4635done
4636
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4638$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4639if ${ac_cv_cxx_compiler_gnu+:} false; then :
4640  $as_echo_n "(cached) " >&6
4641else
4642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h.  */
4644
4645int
4646main ()
4647{
4648#ifndef __GNUC__
4649       choke me
4650#endif
4651
4652  ;
4653  return 0;
4654}
4655_ACEOF
4656if ac_fn_cxx_try_compile "$LINENO"; then :
4657  ac_compiler_gnu=yes
4658else
4659  ac_compiler_gnu=no
4660fi
4661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4663
4664fi
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4666$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4667if test $ac_compiler_gnu = yes; then
4668  GXX=yes
4669else
4670  GXX=
4671fi
4672ac_test_CXXFLAGS=${CXXFLAGS+set}
4673ac_save_CXXFLAGS=$CXXFLAGS
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4675$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4676if ${ac_cv_prog_cxx_g+:} false; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4680   ac_cxx_werror_flag=yes
4681   ac_cv_prog_cxx_g=no
4682   CXXFLAGS="-g"
4683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684/* end confdefs.h.  */
4685
4686int
4687main ()
4688{
4689
4690  ;
4691  return 0;
4692}
4693_ACEOF
4694if ac_fn_cxx_try_compile "$LINENO"; then :
4695  ac_cv_prog_cxx_g=yes
4696else
4697  CXXFLAGS=""
4698      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699/* end confdefs.h.  */
4700
4701int
4702main ()
4703{
4704
4705  ;
4706  return 0;
4707}
4708_ACEOF
4709if ac_fn_cxx_try_compile "$LINENO"; then :
4710
4711else
4712  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4713         CXXFLAGS="-g"
4714         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h.  */
4716
4717int
4718main ()
4719{
4720
4721  ;
4722  return 0;
4723}
4724_ACEOF
4725if ac_fn_cxx_try_compile "$LINENO"; then :
4726  ac_cv_prog_cxx_g=yes
4727fi
4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729fi
4730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731fi
4732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4734fi
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4736$as_echo "$ac_cv_prog_cxx_g" >&6; }
4737if test "$ac_test_CXXFLAGS" = set; then
4738  CXXFLAGS=$ac_save_CXXFLAGS
4739elif test $ac_cv_prog_cxx_g = yes; then
4740  if test "$GXX" = yes; then
4741    CXXFLAGS="-g -O2"
4742  else
4743    CXXFLAGS="-g"
4744  fi
4745else
4746  if test "$GXX" = yes; then
4747    CXXFLAGS="-O2"
4748  else
4749    CXXFLAGS=
4750  fi
4751fi
4752ac_ext=c
4753ac_cpp='$CPP $CPPFLAGS'
4754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757
4758depcc="$CXX"  am_compiler_list=
4759
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4761$as_echo_n "checking dependency style of $depcc... " >&6; }
4762if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4766  # We make a subdir and do the tests there.  Otherwise we can end up
4767  # making bogus files that we don't know about and never remove.  For
4768  # instance it was reported that on HP-UX the gcc test will end up
4769  # making a dummy file named 'D' -- because '-MD' means "put the output
4770  # in D".
4771  rm -rf conftest.dir
4772  mkdir conftest.dir
4773  # Copy depcomp to subdir because otherwise we won't find it if we're
4774  # using a relative directory.
4775  cp "$am_depcomp" conftest.dir
4776  cd conftest.dir
4777  # We will build objects and dependencies in a subdirectory because
4778  # it helps to detect inapplicable dependency modes.  For instance
4779  # both Tru64's cc and ICC support -MD to output dependencies as a
4780  # side effect of compilation, but ICC will put the dependencies in
4781  # the current directory while Tru64 will put them in the object
4782  # directory.
4783  mkdir sub
4784
4785  am_cv_CXX_dependencies_compiler_type=none
4786  if test "$am_compiler_list" = ""; then
4787     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4788  fi
4789  am__universal=false
4790  case " $depcc " in #(
4791     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4792     esac
4793
4794  for depmode in $am_compiler_list; do
4795    # Setup a source with many dependencies, because some compilers
4796    # like to wrap large dependency lists on column 80 (with \), and
4797    # we should not choose a depcomp mode which is confused by this.
4798    #
4799    # We need to recreate these files for each test, as the compiler may
4800    # overwrite some of them when testing with obscure command lines.
4801    # This happens at least with the AIX C compiler.
4802    : > sub/conftest.c
4803    for i in 1 2 3 4 5 6; do
4804      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4805      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4806      # Solaris 10 /bin/sh.
4807      echo '/* dummy */' > sub/conftst$i.h
4808    done
4809    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4810
4811    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4812    # mode.  It turns out that the SunPro C++ compiler does not properly
4813    # handle '-M -o', and we need to detect this.  Also, some Intel
4814    # versions had trouble with output in subdirs.
4815    am__obj=sub/conftest.${OBJEXT-o}
4816    am__minus_obj="-o $am__obj"
4817    case $depmode in
4818    gcc)
4819      # This depmode causes a compiler race in universal mode.
4820      test "$am__universal" = false || continue
4821      ;;
4822    nosideeffect)
4823      # After this tag, mechanisms are not by side-effect, so they'll
4824      # only be used when explicitly requested.
4825      if test "x$enable_dependency_tracking" = xyes; then
4826        continue
4827      else
4828        break
4829      fi
4830      ;;
4831    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4832      # This compiler won't grok '-c -o', but also, the minuso test has
4833      # not run yet.  These depmodes are late enough in the game, and
4834      # so weak that their functioning should not be impacted.
4835      am__obj=conftest.${OBJEXT-o}
4836      am__minus_obj=
4837      ;;
4838    none) break ;;
4839    esac
4840    if depmode=$depmode \
4841       source=sub/conftest.c object=$am__obj \
4842       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4843       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4844         >/dev/null 2>conftest.err &&
4845       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4846       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4847       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4848       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4849      # icc doesn't choke on unknown options, it will just issue warnings
4850      # or remarks (even with -Werror).  So we grep stderr for any message
4851      # that says an option was ignored or not supported.
4852      # When given -MP, icc 7.0 and 7.1 complain thusly:
4853      #   icc: Command line warning: ignoring option '-M'; no argument required
4854      # The diagnosis changed in icc 8.0:
4855      #   icc: Command line remark: option '-MP' not supported
4856      if (grep 'ignoring option' conftest.err ||
4857          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4858        am_cv_CXX_dependencies_compiler_type=$depmode
4859        break
4860      fi
4861    fi
4862  done
4863
4864  cd ..
4865  rm -rf conftest.dir
4866else
4867  am_cv_CXX_dependencies_compiler_type=none
4868fi
4869
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4872$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4873CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4874
4875 if
4876  test "x$enable_dependency_tracking" != xno \
4877  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4878  am__fastdepCXX_TRUE=
4879  am__fastdepCXX_FALSE='#'
4880else
4881  am__fastdepCXX_TRUE='#'
4882  am__fastdepCXX_FALSE=
4883fi
4884
4885
4886
4887# If the compiler does not support -c -o, then wrap the compile script around
4888# it.
4889
4890  ac_ext=cpp
4891ac_cpp='$CXXCPP $CPPFLAGS'
4892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX understands -c and -o together" >&5
4896$as_echo_n "checking whether $CXX understands -c and -o together... " >&6; }
4897if ${ac_cv_prog_cxx_c_o+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h.  */
4902
4903int
4904main ()
4905{
4906
4907  ;
4908  return 0;
4909}
4910_ACEOF
4911# We test twice because some compilers refuse to overwrite an existing
4912# `.o' file with `-o', although they will create one.
4913ac_try='$CXX $CXXFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4914rm -f conftest2.*
4915if { { case "(($ac_try" in
4916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917  *) ac_try_echo=$ac_try;;
4918esac
4919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920$as_echo "$ac_try_echo"; } >&5
4921  (eval "$ac_try") 2>&5
4922  ac_status=$?
4923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924  test $ac_status = 0; } &&
4925     test -f conftest2.$ac_objext &&
4926     { { case "(($ac_try" in
4927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928  *) ac_try_echo=$ac_try;;
4929esac
4930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931$as_echo "$ac_try_echo"; } >&5
4932  (eval "$ac_try") 2>&5
4933  ac_status=$?
4934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935  test $ac_status = 0; }; then
4936  ac_cv_prog_cxx_c_o=yes
4937else
4938  ac_cv_prog_cxx_c_o=no
4939fi
4940rm -f conftest*
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_c_o" >&5
4943$as_echo "$ac_cv_prog_cxx_c_o" >&6; }
4944if test $ac_cv_prog_cxx_c_o = no; then
4945
4946$as_echo "#define CXX_NO_MINUS_C_MINUS_O 1" >>confdefs.h
4947
4948fi
4949ac_ext=c
4950ac_cpp='$CPP $CPPFLAGS'
4951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954
4955  if test $ac_cv_prog_cxx_c_o = no ; then
4956    CXX="$am_aux_dir/compile $CXX"
4957  fi
4958
4959
4960# This is a C++ package, set the language accordingly.
4961
4962ac_ext=cpp
4963ac_cpp='$CXXCPP $CPPFLAGS'
4964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4967
4968
4969# Sort out what we need to do to link to Fortran libraries. Check if there's a
4970# Fortran compiler and call the appropriate macro based on the result. If
4971# there's no Fortran compiler, it's necessary to specify a library and
4972# function to use when attempting a link. For Clp, libblas (-lblas) and
4973# DAXPY are appropriate choices.
4974# Yes, we should be able to leverage this and avoid the check for BLAS below,
4975# but I haven't quite figured it out yet.
4976
4977
4978  # AC_MSG_NOTICE([In COIN_PROG_F77])
4979
4980
4981# If enable-msvc, then test only for Intel (on Windows) Fortran compiler
4982
4983  if test $enable_msvc = yes ; then
4984    comps="ifort"
4985  else
4986    # TODO old buildtools was doing some $build specific logic here, do we still
4987    # need this?
4988    comps="gfortran ifort g95 fort77 f77 f95 f90 g77 pgf90 pgf77 ifc frt af77 xlf_r fl32"
4989  fi
4990  ac_ext=f
4991ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4992ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4994if test -n "$ac_tool_prefix"; then
4995  for ac_prog in $comps
4996  do
4997    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000$as_echo_n "checking for $ac_word... " >&6; }
5001if ${ac_cv_prog_F77+:} false; then :
5002  $as_echo_n "(cached) " >&6
5003else
5004  if test -n "$F77"; then
5005  ac_cv_prog_F77="$F77" # Let the user override the test.
5006else
5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010  IFS=$as_save_IFS
5011  test -z "$as_dir" && as_dir=.
5012    for ac_exec_ext in '' $ac_executable_extensions; do
5013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016    break 2
5017  fi
5018done
5019  done
5020IFS=$as_save_IFS
5021
5022fi
5023fi
5024F77=$ac_cv_prog_F77
5025if test -n "$F77"; then
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5027$as_echo "$F77" >&6; }
5028else
5029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030$as_echo "no" >&6; }
5031fi
5032
5033
5034    test -n "$F77" && break
5035  done
5036fi
5037if test -z "$F77"; then
5038  ac_ct_F77=$F77
5039  for ac_prog in $comps
5040do
5041  # Extract the first word of "$ac_prog", so it can be a program name with args.
5042set dummy $ac_prog; ac_word=$2
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044$as_echo_n "checking for $ac_word... " >&6; }
5045if ${ac_cv_prog_ac_ct_F77+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048  if test -n "$ac_ct_F77"; then
5049  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5050else
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054  IFS=$as_save_IFS
5055  test -z "$as_dir" && as_dir=.
5056    for ac_exec_ext in '' $ac_executable_extensions; do
5057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058    ac_cv_prog_ac_ct_F77="$ac_prog"
5059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060    break 2
5061  fi
5062done
5063  done
5064IFS=$as_save_IFS
5065
5066fi
5067fi
5068ac_ct_F77=$ac_cv_prog_ac_ct_F77
5069if test -n "$ac_ct_F77"; then
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5071$as_echo "$ac_ct_F77" >&6; }
5072else
5073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074$as_echo "no" >&6; }
5075fi
5076
5077
5078  test -n "$ac_ct_F77" && break
5079done
5080
5081  if test "x$ac_ct_F77" = x; then
5082    F77=""
5083  else
5084    case $cross_compiling:$ac_tool_warned in
5085yes:)
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5088ac_tool_warned=yes ;;
5089esac
5090    F77=$ac_ct_F77
5091  fi
5092fi
5093
5094
5095# Provide some information about the compiler.
5096$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5097set X $ac_compile
5098ac_compiler=$2
5099for ac_option in --version -v -V -qversion; do
5100  { { ac_try="$ac_compiler $ac_option >&5"
5101case "(($ac_try" in
5102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103  *) ac_try_echo=$ac_try;;
5104esac
5105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106$as_echo "$ac_try_echo"; } >&5
5107  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5108  ac_status=$?
5109  if test -s conftest.err; then
5110    sed '10a\
5111... rest of stderr output deleted ...
5112         10q' conftest.err >conftest.er1
5113    cat conftest.er1 >&5
5114  fi
5115  rm -f conftest.er1 conftest.err
5116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117  test $ac_status = 0; }
5118done
5119rm -f a.out
5120
5121# If we don't use `.F' as extension, the preprocessor is not run on the
5122# input file.  (Note that this only needs to work for GNU compilers.)
5123ac_save_ext=$ac_ext
5124ac_ext=F
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5126$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5127if ${ac_cv_f77_compiler_gnu+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  cat > conftest.$ac_ext <<_ACEOF
5131      program main
5132#ifndef __GNUC__
5133       choke me
5134#endif
5135
5136      end
5137_ACEOF
5138if ac_fn_f77_try_compile "$LINENO"; then :
5139  ac_compiler_gnu=yes
5140else
5141  ac_compiler_gnu=no
5142fi
5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5145
5146fi
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5148$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5149ac_ext=$ac_save_ext
5150ac_test_FFLAGS=${FFLAGS+set}
5151ac_save_FFLAGS=$FFLAGS
5152FFLAGS=
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5154$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5155if ${ac_cv_prog_f77_g+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  FFLAGS=-g
5159cat > conftest.$ac_ext <<_ACEOF
5160      program main
5161
5162      end
5163_ACEOF
5164if ac_fn_f77_try_compile "$LINENO"; then :
5165  ac_cv_prog_f77_g=yes
5166else
5167  ac_cv_prog_f77_g=no
5168fi
5169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5173$as_echo "$ac_cv_prog_f77_g" >&6; }
5174if test "$ac_test_FFLAGS" = set; then
5175  FFLAGS=$ac_save_FFLAGS
5176elif test $ac_cv_prog_f77_g = yes; then
5177  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5178    FFLAGS="-g -O2"
5179  else
5180    FFLAGS="-g"
5181  fi
5182else
5183  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5184    FFLAGS="-O2"
5185  else
5186    FFLAGS=
5187  fi
5188fi
5189
5190if test $ac_compiler_gnu = yes; then
5191  G77=yes
5192else
5193  G77=
5194fi
5195ac_ext=cpp
5196ac_cpp='$CXXCPP $CPPFLAGS'
5197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200
5201
5202# Allow for the possibility that there is no Fortran compiler on the system.
5203
5204  if test "${F77:-unavailable}" = unavailable ; then
5205    F77=unavailable
5206    { $as_echo "$as_me:${as_lineno-$LINENO}: No Fortran compiler available." >&5
5207$as_echo "$as_me: No Fortran compiler available." >&6;}
5208  fi
5209  # AC_MSG_NOTICE([Leaving COIN_PROG_F77])
5210
5211if test "$F77" != "unavailable" ; then
5212
5213ac_ext=f
5214ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5215ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
5218$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
5219if ${ac_cv_prog_f77_v+:} false; then :
5220  $as_echo_n "(cached) " >&6
5221else
5222  cat > conftest.$ac_ext <<_ACEOF
5223      program main
5224
5225      end
5226_ACEOF
5227if ac_fn_f77_try_compile "$LINENO"; then :
5228  ac_cv_prog_f77_v=
5229# Try some options frequently used verbose output
5230for ac_verb in -v -verbose --verbose -V -\#\#\#; do
5231  cat > conftest.$ac_ext <<_ACEOF
5232      program main
5233
5234      end
5235_ACEOF
5236
5237# Compile and link our simple test program by passing a flag (argument
5238# 1 to this macro) to the Fortran compiler in order to get
5239# "verbose" output that we can then parse for the Fortran linker
5240# flags.
5241ac_save_FFLAGS=$FFLAGS
5242FFLAGS="$FFLAGS $ac_verb"
5243eval "set x $ac_link"
5244shift
5245$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5246# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5247# LIBRARY_PATH; skip all such settings.
5248ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
5249  sed '/^Driving:/d; /^Configured with:/d;
5250      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
5251$as_echo "$ac_f77_v_output" >&5
5252FFLAGS=$ac_save_FFLAGS
5253
5254rm -rf conftest*
5255
5256# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5257# /foo, /bar, and /baz are search directories for the Fortran linker.
5258# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5259ac_f77_v_output="`echo $ac_f77_v_output |
5260        grep 'LPATH is:' |
5261        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
5262
5263# FIXME: we keep getting bitten by quoted arguments; a more general fix
5264#        that detects unbalanced quotes in FLIBS should be implemented
5265#        and (ugh) tested at some point.
5266case $ac_f77_v_output in
5267  # With xlf replace commas with spaces,
5268  # and remove "-link" and closing parenthesis.
5269  *xlfentry*)
5270    ac_f77_v_output=`echo $ac_f77_v_output |
5271      sed '
5272        s/,/ /g
5273        s/ -link / /g
5274        s/) *$//
5275      '
5276    ` ;;
5277
5278  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5279  # $LIBS confuse us, and the libraries appear later in the output anyway).
5280  *mGLOB_options_string*)
5281    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5282
5283  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5284  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5285  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5286  *-cmdline\ * | *-ignore\ * | *-def\ *)
5287    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
5288        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5289        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5290        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5291
5292  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
5293  *fort77*f2c*gcc*)
5294    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
5295        /:[      ]\+Running[     ]\{1,\}"gcc"/{
5296          /"-c"/d
5297          /[.]c"*/d
5298          s/^.*"gcc"/"gcc"/
5299          s/"//gp
5300        }'` ;;
5301
5302  # If we are using Cray Fortran then delete quotes.
5303  *cft90*)
5304    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
5305esac
5306
5307
5308  # look for -l* and *.a constructs in the output
5309  for ac_arg in $ac_f77_v_output; do
5310     case $ac_arg in
5311        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5312          ac_cv_prog_f77_v=$ac_verb
5313          break 2 ;;
5314     esac
5315  done
5316done
5317if test -z "$ac_cv_prog_f77_v"; then
5318   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
5319$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
5320fi
5321else
5322  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
5323$as_echo "$as_me: WARNING: compilation failed" >&2;}
5324fi
5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326
5327fi
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
5329$as_echo "$ac_cv_prog_f77_v" >&6; }
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
5331$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
5332if ${ac_cv_f77_libs+:} false; then :
5333  $as_echo_n "(cached) " >&6
5334else
5335  if test "x$FLIBS" != "x"; then
5336  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
5337else
5338
5339cat > conftest.$ac_ext <<_ACEOF
5340      program main
5341
5342      end
5343_ACEOF
5344
5345# Compile and link our simple test program by passing a flag (argument
5346# 1 to this macro) to the Fortran compiler in order to get
5347# "verbose" output that we can then parse for the Fortran linker
5348# flags.
5349ac_save_FFLAGS=$FFLAGS
5350FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
5351eval "set x $ac_link"
5352shift
5353$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5354# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5355# LIBRARY_PATH; skip all such settings.
5356ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
5357  sed '/^Driving:/d; /^Configured with:/d;
5358      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
5359$as_echo "$ac_f77_v_output" >&5
5360FFLAGS=$ac_save_FFLAGS
5361
5362rm -rf conftest*
5363
5364# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5365# /foo, /bar, and /baz are search directories for the Fortran linker.
5366# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5367ac_f77_v_output="`echo $ac_f77_v_output |
5368        grep 'LPATH is:' |
5369        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
5370
5371# FIXME: we keep getting bitten by quoted arguments; a more general fix
5372#        that detects unbalanced quotes in FLIBS should be implemented
5373#        and (ugh) tested at some point.
5374case $ac_f77_v_output in
5375  # With xlf replace commas with spaces,
5376  # and remove "-link" and closing parenthesis.
5377  *xlfentry*)
5378    ac_f77_v_output=`echo $ac_f77_v_output |
5379      sed '
5380        s/,/ /g
5381        s/ -link / /g
5382        s/) *$//
5383      '
5384    ` ;;
5385
5386  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5387  # $LIBS confuse us, and the libraries appear later in the output anyway).
5388  *mGLOB_options_string*)
5389    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5390
5391  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5392  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5393  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5394  *-cmdline\ * | *-ignore\ * | *-def\ *)
5395    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
5396        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5397        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5398        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5399
5400  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
5401  *fort77*f2c*gcc*)
5402    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
5403        /:[      ]\+Running[     ]\{1,\}"gcc"/{
5404          /"-c"/d
5405          /[.]c"*/d
5406          s/^.*"gcc"/"gcc"/
5407          s/"//gp
5408        }'` ;;
5409
5410  # If we are using Cray Fortran then delete quotes.
5411  *cft90*)
5412    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
5413esac
5414
5415
5416
5417ac_cv_f77_libs=
5418
5419# Save positional arguments (if any)
5420ac_save_positional="$@"
5421
5422set X $ac_f77_v_output
5423while test $# != 1; do
5424  shift
5425  ac_arg=$1
5426  case $ac_arg in
5427        [\\/]*.a | ?:[\\/]*.a)
5428            ac_exists=false
5429  for ac_i in $ac_cv_f77_libs; do
5430    if test x"$ac_arg" = x"$ac_i"; then
5431      ac_exists=true
5432      break
5433    fi
5434  done
5435
5436  if test x"$ac_exists" = xtrue; then :
5437
5438else
5439  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5440fi
5441          ;;
5442        -bI:*)
5443            ac_exists=false
5444  for ac_i in $ac_cv_f77_libs; do
5445    if test x"$ac_arg" = x"$ac_i"; then
5446      ac_exists=true
5447      break
5448    fi
5449  done
5450
5451  if test x"$ac_exists" = xtrue; then :
5452
5453else
5454  if test "$ac_compiler_gnu" = yes; then
5455  for ac_link_opt in $ac_arg; do
5456    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
5457  done
5458else
5459  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5460fi
5461fi
5462          ;;
5463          # Ignore these flags.
5464        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
5465          |-LANG:=* | -LIST:* | -LNO:* | -link)
5466          ;;
5467        -lkernel32)
5468          case $host_os in
5469          *cygwin*) ;;
5470          *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5471            ;;
5472          esac
5473          ;;
5474        -[LRuYz])
5475          # These flags, when seen by themselves, take an argument.
5476          # We remove the space between option and argument and re-iterate
5477          # unless we find an empty arg or a new option (starting with -)
5478          case $2 in
5479             "" | -*);;
5480             *)
5481                ac_arg="$ac_arg$2"
5482                shift; shift
5483                set X $ac_arg "$@"
5484                ;;
5485          esac
5486          ;;
5487        -YP,*)
5488          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5489              ac_exists=false
5490  for ac_i in $ac_cv_f77_libs; do
5491    if test x"$ac_j" = x"$ac_i"; then
5492      ac_exists=true
5493      break
5494    fi
5495  done
5496
5497  if test x"$ac_exists" = xtrue; then :
5498
5499else
5500  ac_arg="$ac_arg $ac_j"
5501                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
5502fi
5503          done
5504          ;;
5505        -[lLR]*)
5506            ac_exists=false
5507  for ac_i in $ac_cv_f77_libs; do
5508    if test x"$ac_arg" = x"$ac_i"; then
5509      ac_exists=true
5510      break
5511    fi
5512  done
5513
5514  if test x"$ac_exists" = xtrue; then :
5515
5516else
5517  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5518fi
5519          ;;
5520        -zallextract*| -zdefaultextract)
5521          ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5522          ;;
5523          # Ignore everything else.
5524  esac
5525done
5526# restore positional arguments
5527set X $ac_save_positional; shift
5528
5529# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5530# then we insist that the "run path" must be an absolute path (i.e. it
5531# must begin with a "/").
5532case `(uname -sr) 2>/dev/null` in
5533   "SunOS 5"*)
5534      ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
5535                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5536      test "x$ac_ld_run_path" != x &&
5537        if test "$ac_compiler_gnu" = yes; then
5538  for ac_link_opt in $ac_ld_run_path; do
5539    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
5540  done
5541else
5542  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
5543fi
5544      ;;
5545esac
5546fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5547
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
5550$as_echo "$ac_cv_f77_libs" >&6; }
5551FLIBS="$ac_cv_f77_libs"
5552
5553
5554ac_ext=cpp
5555ac_cpp='$CXXCPP $CPPFLAGS'
5556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5559
5560
5561ac_ext=f
5562ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5563ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5565
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
5567$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
5568if ${ac_cv_f77_dummy_main+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  ac_f77_dm_save_LIBS=$LIBS
5572 LIBS="$LIBS $FLIBS"
5573 ac_fortran_dm_var=F77_DUMMY_MAIN
5574 ac_ext=c
5575ac_cpp='$CPP $CPPFLAGS'
5576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5578ac_compiler_gnu=$ac_cv_c_compiler_gnu
5579
5580 # First, try linking without a dummy main:
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h.  */
5583
5584#ifdef F77_DUMMY_MAIN
5585
5586#  ifdef __cplusplus
5587     extern "C"
5588#  endif
5589   int F77_DUMMY_MAIN() { return 1; }
5590
5591#endif
5592int
5593main ()
5594{
5595
5596  ;
5597  return 0;
5598}
5599_ACEOF
5600if ac_fn_c_try_link "$LINENO"; then :
5601  ac_cv_fortran_dummy_main=none
5602else
5603  ac_cv_fortran_dummy_main=unknown
5604fi
5605rm -f core conftest.err conftest.$ac_objext \
5606    conftest$ac_exeext conftest.$ac_ext
5607
5608 if test $ac_cv_fortran_dummy_main = unknown; then
5609   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
5610     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h.  */
5612#define $ac_fortran_dm_var $ac_func
5613#ifdef F77_DUMMY_MAIN
5614
5615#  ifdef __cplusplus
5616     extern "C"
5617#  endif
5618   int F77_DUMMY_MAIN() { return 1; }
5619
5620#endif
5621int
5622main ()
5623{
5624
5625  ;
5626  return 0;
5627}
5628_ACEOF
5629if ac_fn_c_try_link "$LINENO"; then :
5630  ac_cv_fortran_dummy_main=$ac_func; break
5631fi
5632rm -f core conftest.err conftest.$ac_objext \
5633    conftest$ac_exeext conftest.$ac_ext
5634   done
5635 fi
5636 ac_ext=f
5637ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5638ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5640 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
5641 rm -rf conftest*
5642 LIBS=$ac_f77_dm_save_LIBS
5643
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
5646$as_echo "$ac_cv_f77_dummy_main" >&6; }
5647F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
5648if test "$F77_DUMMY_MAIN" != unknown; then :
5649  if test $F77_DUMMY_MAIN != none; then
5650
5651cat >>confdefs.h <<_ACEOF
5652#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
5653_ACEOF
5654
5655  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
5656
5657$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
5658
5659  fi
5660fi
5661else
5662  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5664as_fn_error $? "linking to Fortran libraries from C fails
5665See \`config.log' for more details" "$LINENO" 5; }
5666fi
5667
5668ac_ext=cpp
5669ac_cpp='$CXXCPP $CPPFLAGS'
5670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5673
5674ac_ext=f
5675ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5676ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
5679$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
5680if ${ac_cv_f77_mangling+:} false; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  cat > conftest.$ac_ext <<_ACEOF
5684      subroutine foobar()
5685      return
5686      end
5687      subroutine foo_bar()
5688      return
5689      end
5690_ACEOF
5691if ac_fn_f77_try_compile "$LINENO"; then :
5692  mv conftest.$ac_objext cfortran_test.$ac_objext
5693
5694  ac_save_LIBS=$LIBS
5695  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
5696
5697  ac_ext=c
5698ac_cpp='$CPP $CPPFLAGS'
5699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702  ac_success=no
5703  for ac_foobar in foobar FOOBAR; do
5704    for ac_underscore in "" "_"; do
5705      ac_func="$ac_foobar$ac_underscore"
5706      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708
5709/* Override any GCC internal prototype to avoid an error.
5710   Use char because int might match the return type of a GCC
5711   builtin and then its argument prototype would still apply.  */
5712#ifdef __cplusplus
5713extern "C"
5714#endif
5715char $ac_func ();
5716#ifdef F77_DUMMY_MAIN
5717
5718#  ifdef __cplusplus
5719     extern "C"
5720#  endif
5721   int F77_DUMMY_MAIN() { return 1; }
5722
5723#endif
5724int
5725main ()
5726{
5727return $ac_func ();
5728  ;
5729  return 0;
5730}
5731_ACEOF
5732if ac_fn_c_try_link "$LINENO"; then :
5733  ac_success=yes; break 2
5734fi
5735rm -f core conftest.err conftest.$ac_objext \
5736    conftest$ac_exeext conftest.$ac_ext
5737    done
5738  done
5739  ac_ext=f
5740ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5741ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5743
5744  if test "$ac_success" = "yes"; then
5745     case $ac_foobar in
5746        foobar)
5747           ac_case=lower
5748           ac_foo_bar=foo_bar
5749           ;;
5750        FOOBAR)
5751           ac_case=upper
5752           ac_foo_bar=FOO_BAR
5753           ;;
5754     esac
5755
5756     ac_ext=c
5757ac_cpp='$CPP $CPPFLAGS'
5758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760ac_compiler_gnu=$ac_cv_c_compiler_gnu
5761     ac_success_extra=no
5762     for ac_extra in "" "_"; do
5763        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5764        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765/* end confdefs.h.  */
5766
5767/* Override any GCC internal prototype to avoid an error.
5768   Use char because int might match the return type of a GCC
5769   builtin and then its argument prototype would still apply.  */
5770#ifdef __cplusplus
5771extern "C"
5772#endif
5773char $ac_func ();
5774#ifdef F77_DUMMY_MAIN
5775
5776#  ifdef __cplusplus
5777     extern "C"
5778#  endif
5779   int F77_DUMMY_MAIN() { return 1; }
5780
5781#endif
5782int
5783main ()
5784{
5785return $ac_func ();
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790if ac_fn_c_try_link "$LINENO"; then :
5791  ac_success_extra=yes; break
5792fi
5793rm -f core conftest.err conftest.$ac_objext \
5794    conftest$ac_exeext conftest.$ac_ext
5795     done
5796     ac_ext=f
5797ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5798ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5800
5801     if test "$ac_success_extra" = "yes"; then
5802        ac_cv_f77_mangling="$ac_case case"
5803        if test -z "$ac_underscore"; then
5804           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
5805        else
5806           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
5807        fi
5808        if test -z "$ac_extra"; then
5809           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
5810        else
5811           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
5812        fi
5813      else
5814        ac_cv_f77_mangling="unknown"
5815      fi
5816  else
5817     ac_cv_f77_mangling="unknown"
5818  fi
5819
5820  LIBS=$ac_save_LIBS
5821  rm -rf conftest*
5822  rm -f cfortran_test*
5823else
5824  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826as_fn_error $? "cannot compile a simple Fortran program
5827See \`config.log' for more details" "$LINENO" 5; }
5828fi
5829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830
5831fi
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
5833$as_echo "$ac_cv_f77_mangling" >&6; }
5834
5835ac_ext=cpp
5836ac_cpp='$CXXCPP $CPPFLAGS'
5837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5840
5841
5842  # AC_MSG_NOTICE([In COIN_F77_SETUP])
5843
5844# F77_WRAPPERS will trigger the necessary F77 setup macros (F77_MAIN,
5845# F77_LIBRARY_LDFLAGS, etc.)
5846
5847  ac_ext=f
5848ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5849ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5851case $ac_cv_f77_mangling in
5852  "lower case, no underscore, no extra underscore")
5853          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
5854
5855          $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
5856 ;;
5857  "lower case, no underscore, extra underscore")
5858          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
5859
5860          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
5861 ;;
5862  "lower case, underscore, no extra underscore")
5863          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
5864
5865          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
5866 ;;
5867  "lower case, underscore, extra underscore")
5868          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
5869
5870          $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
5871 ;;
5872  "upper case, no underscore, no extra underscore")
5873          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
5874
5875          $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
5876 ;;
5877  "upper case, no underscore, extra underscore")
5878          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
5879
5880          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
5881 ;;
5882  "upper case, underscore, no extra underscore")
5883          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
5884
5885          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
5886 ;;
5887  "upper case, underscore, extra underscore")
5888          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
5889
5890          $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
5891 ;;
5892  *)
5893          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
5894$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5895          ;;
5896esac
5897
5898ac_ext=cpp
5899ac_cpp='$CXXCPP $CPPFLAGS'
5900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5903
5904  ac_ext=f
5905ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5906ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5907ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 understands -c and -o together" >&5
5909$as_echo_n "checking whether $F77 understands -c and -o together... " >&6; }
5910if ${ac_cv_prog_f77_c_o+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913  cat > conftest.$ac_ext <<_ACEOF
5914      program main
5915
5916      end
5917_ACEOF
5918# We test twice because some compilers refuse to overwrite an existing
5919# `.o' file with `-o', although they will create one.
5920ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5921rm -f conftest2.*
5922if { { case "(($ac_try" in
5923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924  *) ac_try_echo=$ac_try;;
5925esac
5926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5927$as_echo "$ac_try_echo"; } >&5
5928  (eval "$ac_try") 2>&5
5929  ac_status=$?
5930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931  test $ac_status = 0; } &&
5932     test -f conftest2.$ac_objext &&
5933     { { case "(($ac_try" in
5934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935  *) ac_try_echo=$ac_try;;
5936esac
5937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5938$as_echo "$ac_try_echo"; } >&5
5939  (eval "$ac_try") 2>&5
5940  ac_status=$?
5941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942  test $ac_status = 0; }; then
5943  ac_cv_prog_f77_c_o=yes
5944else
5945  ac_cv_prog_f77_c_o=no
5946fi
5947rm -f conftest*
5948fi
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_c_o" >&5
5950$as_echo "$ac_cv_prog_f77_c_o" >&6; }
5951if test $ac_cv_prog_f77_c_o = no; then
5952
5953$as_echo "#define F77_NO_MINUS_C_MINUS_O 1" >>confdefs.h
5954
5955fi
5956
5957ac_ext=cpp
5958ac_cpp='$CXXCPP $CPPFLAGS'
5959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962
5963  if test $ac_cv_prog_f77_c_o = no ; then
5964    F77="$am_aux_dir/compile $F77"
5965  fi
5966  # AC_MSG_NOTICE([Leaving COIN_F77_SETUP])
5967
5968else
5969
5970
5971  # AC_MSG_NOTICE([In COIN_F77_WRAPPERS])
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Fortran name mangling scheme" >&5
5973$as_echo_n "checking Fortran name mangling scheme... " >&6; }
5974if ${ac_cv_f77_mangling+:} false; then :
5975  $as_echo_n "(cached) " >&6
5976else
5977  ac_save_LIBS=$LIBS
5978     LIBS="-lblas"
5979     for ac_case in "lower case" "upper case" ; do
5980       for ac_trail in "underscore" "no underscore" ; do
5981         for ac_extra in "no extra underscore" "extra underscore" ; do
5982           ac_cv_f77_mangling="${ac_case}, ${ac_trail}, ${ac_extra}"
5983           # AC_MSG_NOTICE([Attempting link for $ac_cv_f77_mangling])
5984           case $ac_case in
5985             "lower case")
5986               ac_name=daxpy
5987               ;;
5988             "upper case")
5989               ac_name=DAXPY
5990               ;;
5991           esac
5992           if test "$ac_trail" = underscore ; then
5993             ac_name=${ac_name}_
5994           fi
5995           # AC_MSG_CHECKING([DAXPY -> $ac_name])
5996           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997/* end confdefs.h.  */
5998#ifdef __cplusplus
5999                  extern "C"
6000                 #endif
6001                 void $ac_name();
6002#ifdef F77_DUMMY_MAIN
6003
6004#  ifdef __cplusplus
6005     extern "C"
6006#  endif
6007   int F77_DUMMY_MAIN() { return 1; }
6008
6009#endif
6010int
6011main ()
6012{
6013$ac_name()
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018if ac_fn_cxx_try_link "$LINENO"; then :
6019  ac_result=success
6020else
6021  ac_result=failure
6022fi
6023rm -f core conftest.err conftest.$ac_objext \
6024    conftest$ac_exeext conftest.$ac_ext
6025           # AC_MSG_RESULT([$result])
6026           if test $ac_result = success ; then
6027             break 3
6028           fi
6029         done
6030       done
6031     done
6032     if test "$ac_result" = "failure" ; then
6033       ac_cv_f77_mangling=unknown
6034       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine correct Fortran name mangling scheme" >&5
6035$as_echo "$as_me: WARNING: Unable to determine correct Fortran name mangling scheme" >&2;}
6036     fi
6037     LIBS=$ac_save_LIBS
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
6040$as_echo "$ac_cv_f77_mangling" >&6; }
6041
6042# Invoke the second-level internal autoconf macro _AC_FC_WRAPPERS to give the
6043# functionality of AC_F77_WRAPPERS.
6044
6045  if test "$ac_cv_f77_mangling" != unknown ; then
6046    ac_ext=f
6047ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6048ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6050
6051    case $ac_cv_f77_mangling in
6052  "lower case, no underscore, no extra underscore")
6053          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
6054
6055          $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
6056 ;;
6057  "lower case, no underscore, extra underscore")
6058          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
6059
6060          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
6061 ;;
6062  "lower case, underscore, no extra underscore")
6063          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
6064
6065          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
6066 ;;
6067  "lower case, underscore, extra underscore")
6068          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
6069
6070          $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
6071 ;;
6072  "upper case, no underscore, no extra underscore")
6073          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
6074
6075          $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
6076 ;;
6077  "upper case, no underscore, extra underscore")
6078          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
6079
6080          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6081 ;;
6082  "upper case, underscore, no extra underscore")
6083          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
6084
6085          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6086 ;;
6087  "upper case, underscore, extra underscore")
6088          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
6089
6090          $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
6091 ;;
6092  *)
6093          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
6094$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6095          ;;
6096esac
6097
6098    ac_ext=cpp
6099ac_cpp='$CXXCPP $CPPFLAGS'
6100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6103
6104  fi
6105  # AC_MSG_NOTICE([Done COIN_F77_WRAPPERS])
6106
6107fi
6108
6109# Initialize libtool
6110
6111case `pwd` in
6112  *\ * | *\     *)
6113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6114$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6115esac
6116
6117
6118
6119macro_version='2.4.6'
6120macro_revision='2.4.6'
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134ltmain=$ac_aux_dir/ltmain.sh
6135
6136# Backslashify metacharacters that are still active within
6137# double-quoted strings.
6138sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6139
6140# Same as above, but do not quote variable references.
6141double_quote_subst='s/\(["`\\]\)/\\\1/g'
6142
6143# Sed substitution to delay expansion of an escaped shell variable in a
6144# double_quote_subst'ed string.
6145delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6146
6147# Sed substitution to delay expansion of an escaped single quote.
6148delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6149
6150# Sed substitution to avoid accidental globbing in evaled expressions
6151no_glob_subst='s/\*/\\\*/g'
6152
6153ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6154ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6155ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6156
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6158$as_echo_n "checking how to print strings... " >&6; }
6159# Test print first, because it will be a builtin if present.
6160if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6161   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6162  ECHO='print -r --'
6163elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6164  ECHO='printf %s\n'
6165else
6166  # Use this function as a fallback that always works.
6167  func_fallback_echo ()
6168  {
6169    eval 'cat <<_LTECHO_EOF
6170$1
6171_LTECHO_EOF'
6172  }
6173  ECHO='func_fallback_echo'
6174fi
6175
6176# func_echo_all arg...
6177# Invoke $ECHO with all args, space-separated.
6178func_echo_all ()
6179{
6180    $ECHO ""
6181}
6182
6183case $ECHO in
6184  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6185$as_echo "printf" >&6; } ;;
6186  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6187$as_echo "print -r" >&6; } ;;
6188  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6189$as_echo "cat" >&6; } ;;
6190esac
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6206$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6207if ${ac_cv_path_SED+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6211     for ac_i in 1 2 3 4 5 6 7; do
6212       ac_script="$ac_script$as_nl$ac_script"
6213     done
6214     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6215     { ac_script=; unset ac_script;}
6216     if test -z "$SED"; then
6217  ac_path_SED_found=false
6218  # Loop through the user's path and test for each of PROGNAME-LIST
6219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222  IFS=$as_save_IFS
6223  test -z "$as_dir" && as_dir=.
6224    for ac_prog in sed gsed; do
6225    for ac_exec_ext in '' $ac_executable_extensions; do
6226      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6227      as_fn_executable_p "$ac_path_SED" || continue
6228# Check for GNU ac_path_SED and select it if it is found.
6229  # Check for GNU $ac_path_SED
6230case `"$ac_path_SED" --version 2>&1` in
6231*GNU*)
6232  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6233*)
6234  ac_count=0
6235  $as_echo_n 0123456789 >"conftest.in"
6236  while :
6237  do
6238    cat "conftest.in" "conftest.in" >"conftest.tmp"
6239    mv "conftest.tmp" "conftest.in"
6240    cp "conftest.in" "conftest.nl"
6241    $as_echo '' >> "conftest.nl"
6242    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6243    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6244    as_fn_arith $ac_count + 1 && ac_count=$as_val
6245    if test $ac_count -gt ${ac_path_SED_max-0}; then
6246      # Best one so far, save it but keep looking for a better one
6247      ac_cv_path_SED="$ac_path_SED"
6248      ac_path_SED_max=$ac_count
6249    fi
6250    # 10*(2^10) chars as input seems more than enough
6251    test $ac_count -gt 10 && break
6252  done
6253  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6254esac
6255
6256      $ac_path_SED_found && break 3
6257    done
6258  done
6259  done
6260IFS=$as_save_IFS
6261  if test -z "$ac_cv_path_SED"; then
6262    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6263  fi
6264else
6265  ac_cv_path_SED=$SED
6266fi
6267
6268fi
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6270$as_echo "$ac_cv_path_SED" >&6; }
6271 SED="$ac_cv_path_SED"
6272  rm -f conftest.sed
6273
6274test -z "$SED" && SED=sed
6275Xsed="$SED -e 1s/^X//"
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6288$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6289if ${ac_cv_path_GREP+:} false; then :
6290  $as_echo_n "(cached) " >&6
6291else
6292  if test -z "$GREP"; then
6293  ac_path_GREP_found=false
6294  # Loop through the user's path and test for each of PROGNAME-LIST
6295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6297do
6298  IFS=$as_save_IFS
6299  test -z "$as_dir" && as_dir=.
6300    for ac_prog in grep ggrep; do
6301    for ac_exec_ext in '' $ac_executable_extensions; do
6302      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6303      as_fn_executable_p "$ac_path_GREP" || continue
6304# Check for GNU ac_path_GREP and select it if it is found.
6305  # Check for GNU $ac_path_GREP
6306case `"$ac_path_GREP" --version 2>&1` in
6307*GNU*)
6308  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6309*)
6310  ac_count=0
6311  $as_echo_n 0123456789 >"conftest.in"
6312  while :
6313  do
6314    cat "conftest.in" "conftest.in" >"conftest.tmp"
6315    mv "conftest.tmp" "conftest.in"
6316    cp "conftest.in" "conftest.nl"
6317    $as_echo 'GREP' >> "conftest.nl"
6318    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6319    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6320    as_fn_arith $ac_count + 1 && ac_count=$as_val
6321    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6322      # Best one so far, save it but keep looking for a better one
6323      ac_cv_path_GREP="$ac_path_GREP"
6324      ac_path_GREP_max=$ac_count
6325    fi
6326    # 10*(2^10) chars as input seems more than enough
6327    test $ac_count -gt 10 && break
6328  done
6329  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6330esac
6331
6332      $ac_path_GREP_found && break 3
6333    done
6334  done
6335  done
6336IFS=$as_save_IFS
6337  if test -z "$ac_cv_path_GREP"; then
6338    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6339  fi
6340else
6341  ac_cv_path_GREP=$GREP
6342fi
6343
6344fi
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6346$as_echo "$ac_cv_path_GREP" >&6; }
6347 GREP="$ac_cv_path_GREP"
6348
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6351$as_echo_n "checking for egrep... " >&6; }
6352if ${ac_cv_path_EGREP+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6356   then ac_cv_path_EGREP="$GREP -E"
6357   else
6358     if test -z "$EGREP"; then
6359  ac_path_EGREP_found=false
6360  # Loop through the user's path and test for each of PROGNAME-LIST
6361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6363do
6364  IFS=$as_save_IFS
6365  test -z "$as_dir" && as_dir=.
6366    for ac_prog in egrep; do
6367    for ac_exec_ext in '' $ac_executable_extensions; do
6368      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6369      as_fn_executable_p "$ac_path_EGREP" || continue
6370# Check for GNU ac_path_EGREP and select it if it is found.
6371  # Check for GNU $ac_path_EGREP
6372case `"$ac_path_EGREP" --version 2>&1` in
6373*GNU*)
6374  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6375*)
6376  ac_count=0
6377  $as_echo_n 0123456789 >"conftest.in"
6378  while :
6379  do
6380    cat "conftest.in" "conftest.in" >"conftest.tmp"
6381    mv "conftest.tmp" "conftest.in"
6382    cp "conftest.in" "conftest.nl"
6383    $as_echo 'EGREP' >> "conftest.nl"
6384    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6385    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6386    as_fn_arith $ac_count + 1 && ac_count=$as_val
6387    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6388      # Best one so far, save it but keep looking for a better one
6389      ac_cv_path_EGREP="$ac_path_EGREP"
6390      ac_path_EGREP_max=$ac_count
6391    fi
6392    # 10*(2^10) chars as input seems more than enough
6393    test $ac_count -gt 10 && break
6394  done
6395  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6396esac
6397
6398      $ac_path_EGREP_found && break 3
6399    done
6400  done
6401  done
6402IFS=$as_save_IFS
6403  if test -z "$ac_cv_path_EGREP"; then
6404    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6405  fi
6406else
6407  ac_cv_path_EGREP=$EGREP
6408fi
6409
6410   fi
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6413$as_echo "$ac_cv_path_EGREP" >&6; }
6414 EGREP="$ac_cv_path_EGREP"
6415
6416
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6418$as_echo_n "checking for fgrep... " >&6; }
6419if ${ac_cv_path_FGREP+:} false; then :
6420  $as_echo_n "(cached) " >&6
6421else
6422  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6423   then ac_cv_path_FGREP="$GREP -F"
6424   else
6425     if test -z "$FGREP"; then
6426  ac_path_FGREP_found=false
6427  # Loop through the user's path and test for each of PROGNAME-LIST
6428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6430do
6431  IFS=$as_save_IFS
6432  test -z "$as_dir" && as_dir=.
6433    for ac_prog in fgrep; do
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6436      as_fn_executable_p "$ac_path_FGREP" || continue
6437# Check for GNU ac_path_FGREP and select it if it is found.
6438  # Check for GNU $ac_path_FGREP
6439case `"$ac_path_FGREP" --version 2>&1` in
6440*GNU*)
6441  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6442*)
6443  ac_count=0
6444  $as_echo_n 0123456789 >"conftest.in"
6445  while :
6446  do
6447    cat "conftest.in" "conftest.in" >"conftest.tmp"
6448    mv "conftest.tmp" "conftest.in"
6449    cp "conftest.in" "conftest.nl"
6450    $as_echo 'FGREP' >> "conftest.nl"
6451    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6452    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6453    as_fn_arith $ac_count + 1 && ac_count=$as_val
6454    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6455      # Best one so far, save it but keep looking for a better one
6456      ac_cv_path_FGREP="$ac_path_FGREP"
6457      ac_path_FGREP_max=$ac_count
6458    fi
6459    # 10*(2^10) chars as input seems more than enough
6460    test $ac_count -gt 10 && break
6461  done
6462  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6463esac
6464
6465      $ac_path_FGREP_found && break 3
6466    done
6467  done
6468  done
6469IFS=$as_save_IFS
6470  if test -z "$ac_cv_path_FGREP"; then
6471    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6472  fi
6473else
6474  ac_cv_path_FGREP=$FGREP
6475fi
6476
6477   fi
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6480$as_echo "$ac_cv_path_FGREP" >&6; }
6481 FGREP="$ac_cv_path_FGREP"
6482
6483
6484test -z "$GREP" && GREP=grep
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504# Check whether --with-gnu-ld was given.
6505if test "${with_gnu_ld+set}" = set; then :
6506  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6507else
6508  with_gnu_ld=no
6509fi
6510
6511ac_prog=ld
6512if test yes = "$GCC"; then
6513  # Check if gcc -print-prog-name=ld gives a path.
6514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6515$as_echo_n "checking for ld used by $CC... " >&6; }
6516  case $host in
6517  *-*-mingw*)
6518    # gcc leaves a trailing carriage return, which upsets mingw
6519    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6520  *)
6521    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6522  esac
6523  case $ac_prog in
6524    # Accept absolute paths.
6525    [\\/]* | ?:[\\/]*)
6526      re_direlt='/[^/][^/]*/\.\./'
6527      # Canonicalize the pathname of ld
6528      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6529      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6530        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6531      done
6532      test -z "$LD" && LD=$ac_prog
6533      ;;
6534  "")
6535    # If it fails, then pretend we aren't using GCC.
6536    ac_prog=ld
6537    ;;
6538  *)
6539    # If it is relative, then search for the first ld in PATH.
6540    with_gnu_ld=unknown
6541    ;;
6542  esac
6543elif test yes = "$with_gnu_ld"; then
6544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6545$as_echo_n "checking for GNU ld... " >&6; }
6546else
6547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6548$as_echo_n "checking for non-GNU ld... " >&6; }
6549fi
6550if ${lt_cv_path_LD+:} false; then :
6551  $as_echo_n "(cached) " >&6
6552else
6553  if test -z "$LD"; then
6554  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6555  for ac_dir in $PATH; do
6556    IFS=$lt_save_ifs
6557    test -z "$ac_dir" && ac_dir=.
6558    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6559      lt_cv_path_LD=$ac_dir/$ac_prog
6560      # Check to see if the program is GNU ld.  I'd rather use --version,
6561      # but apparently some variants of GNU ld only accept -v.
6562      # Break only if it was the GNU/non-GNU ld that we prefer.
6563      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6564      *GNU* | *'with BFD'*)
6565        test no != "$with_gnu_ld" && break
6566        ;;
6567      *)
6568        test yes != "$with_gnu_ld" && break
6569        ;;
6570      esac
6571    fi
6572  done
6573  IFS=$lt_save_ifs
6574else
6575  lt_cv_path_LD=$LD # Let the user override the test with a path.
6576fi
6577fi
6578
6579LD=$lt_cv_path_LD
6580if test -n "$LD"; then
6581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6582$as_echo "$LD" >&6; }
6583else
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585$as_echo "no" >&6; }
6586fi
6587test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6589$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6590if ${lt_cv_prog_gnu_ld+:} false; then :
6591  $as_echo_n "(cached) " >&6
6592else
6593  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6594case `$LD -v 2>&1 </dev/null` in
6595*GNU* | *'with BFD'*)
6596  lt_cv_prog_gnu_ld=yes
6597  ;;
6598*)
6599  lt_cv_prog_gnu_ld=no
6600  ;;
6601esac
6602fi
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6604$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6605with_gnu_ld=$lt_cv_prog_gnu_ld
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6616$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6617if ${lt_cv_path_NM+:} false; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620  if test -n "$NM"; then
6621  # Let the user override the test.
6622  lt_cv_path_NM=$NM
6623else
6624  lt_nm_to_check=${ac_tool_prefix}nm
6625  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6626    lt_nm_to_check="$lt_nm_to_check nm"
6627  fi
6628  for lt_tmp_nm in $lt_nm_to_check; do
6629    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6630    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6631      IFS=$lt_save_ifs
6632      test -z "$ac_dir" && ac_dir=.
6633      tmp_nm=$ac_dir/$lt_tmp_nm
6634      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6635        # Check to see if the nm accepts a BSD-compat flag.
6636        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6637        #   nm: unknown option "B" ignored
6638        # Tru64's nm complains that /dev/null is an invalid object file
6639        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6640        case $build_os in
6641        mingw*) lt_bad_file=conftest.nm/nofile ;;
6642        *) lt_bad_file=/dev/null ;;
6643        esac
6644        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6645        *$lt_bad_file* | *'Invalid file or object type'*)
6646          lt_cv_path_NM="$tmp_nm -B"
6647          break 2
6648          ;;
6649        *)
6650          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6651          */dev/null*)
6652            lt_cv_path_NM="$tmp_nm -p"
6653            break 2
6654            ;;
6655          *)
6656            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6657            continue # so that we can try to find one that supports BSD flags
6658            ;;
6659          esac
6660          ;;
6661        esac
6662      fi
6663    done
6664    IFS=$lt_save_ifs
6665  done
6666  : ${lt_cv_path_NM=no}
6667fi
6668fi
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6670$as_echo "$lt_cv_path_NM" >&6; }
6671if test no != "$lt_cv_path_NM"; then
6672  NM=$lt_cv_path_NM
6673else
6674  # Didn't find any BSD compatible name lister, look for dumpbin.
6675  if test -n "$DUMPBIN"; then :
6676    # Let the user override the test.
6677  else
6678    if test -n "$ac_tool_prefix"; then
6679  for ac_prog in dumpbin "link -dump"
6680  do
6681    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6682set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684$as_echo_n "checking for $ac_word... " >&6; }
6685if ${ac_cv_prog_DUMPBIN+:} false; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688  if test -n "$DUMPBIN"; then
6689  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6690else
6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692for as_dir in $PATH
6693do
6694  IFS=$as_save_IFS
6695  test -z "$as_dir" && as_dir=.
6696    for ac_exec_ext in '' $ac_executable_extensions; do
6697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700    break 2
6701  fi
6702done
6703  done
6704IFS=$as_save_IFS
6705
6706fi
6707fi
6708DUMPBIN=$ac_cv_prog_DUMPBIN
6709if test -n "$DUMPBIN"; then
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6711$as_echo "$DUMPBIN" >&6; }
6712else
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714$as_echo "no" >&6; }
6715fi
6716
6717
6718    test -n "$DUMPBIN" && break
6719  done
6720fi
6721if test -z "$DUMPBIN"; then
6722  ac_ct_DUMPBIN=$DUMPBIN
6723  for ac_prog in dumpbin "link -dump"
6724do
6725  # Extract the first word of "$ac_prog", so it can be a program name with args.
6726set dummy $ac_prog; ac_word=$2
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
6729if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6730  $as_echo_n "(cached) " >&6
6731else
6732  if test -n "$ac_ct_DUMPBIN"; then
6733  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744    break 2
6745  fi
6746done
6747  done
6748IFS=$as_save_IFS
6749
6750fi
6751fi
6752ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6753if test -n "$ac_ct_DUMPBIN"; then
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6755$as_echo "$ac_ct_DUMPBIN" >&6; }
6756else
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758$as_echo "no" >&6; }
6759fi
6760
6761
6762  test -n "$ac_ct_DUMPBIN" && break
6763done
6764
6765  if test "x$ac_ct_DUMPBIN" = x; then
6766    DUMPBIN=":"
6767  else
6768    case $cross_compiling:$ac_tool_warned in
6769yes:)
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772ac_tool_warned=yes ;;
6773esac
6774    DUMPBIN=$ac_ct_DUMPBIN
6775  fi
6776fi
6777
6778    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6779    *COFF*)
6780      DUMPBIN="$DUMPBIN -symbols -headers"
6781      ;;
6782    *)
6783      DUMPBIN=:
6784      ;;
6785    esac
6786  fi
6787
6788  if test : != "$DUMPBIN"; then
6789    NM=$DUMPBIN
6790  fi
6791fi
6792test -z "$NM" && NM=nm
6793
6794
6795
6796
6797
6798
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6800$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6801if ${lt_cv_nm_interface+:} false; then :
6802  $as_echo_n "(cached) " >&6
6803else
6804  lt_cv_nm_interface="BSD nm"
6805  echo "int some_variable = 0;" > conftest.$ac_ext
6806  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6807  (eval "$ac_compile" 2>conftest.err)
6808  cat conftest.err >&5
6809  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6810  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6811  cat conftest.err >&5
6812  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6813  cat conftest.out >&5
6814  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6815    lt_cv_nm_interface="MS dumpbin"
6816  fi
6817  rm -f conftest*
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6820$as_echo "$lt_cv_nm_interface" >&6; }
6821
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6823$as_echo_n "checking whether ln -s works... " >&6; }
6824LN_S=$as_ln_s
6825if test "$LN_S" = "ln -s"; then
6826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6827$as_echo "yes" >&6; }
6828else
6829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6830$as_echo "no, using $LN_S" >&6; }
6831fi
6832
6833# find the maximum length of command line arguments
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6835$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6836if ${lt_cv_sys_max_cmd_len+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839    i=0
6840  teststring=ABCD
6841
6842  case $build_os in
6843  msdosdjgpp*)
6844    # On DJGPP, this test can blow up pretty badly due to problems in libc
6845    # (any single argument exceeding 2000 bytes causes a buffer overrun
6846    # during glob expansion).  Even if it were fixed, the result of this
6847    # check would be larger than it should be.
6848    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6849    ;;
6850
6851  gnu*)
6852    # Under GNU Hurd, this test is not required because there is
6853    # no limit to the length of command line arguments.
6854    # Libtool will interpret -1 as no limit whatsoever
6855    lt_cv_sys_max_cmd_len=-1;
6856    ;;
6857
6858  cygwin* | mingw* | cegcc*)
6859    # On Win9x/ME, this test blows up -- it succeeds, but takes
6860    # about 5 minutes as the teststring grows exponentially.
6861    # Worse, since 9x/ME are not pre-emptively multitasking,
6862    # you end up with a "frozen" computer, even though with patience
6863    # the test eventually succeeds (with a max line length of 256k).
6864    # Instead, let's just punt: use the minimum linelength reported by
6865    # all of the supported platforms: 8192 (on NT/2K/XP).
6866    lt_cv_sys_max_cmd_len=8192;
6867    ;;
6868
6869  mint*)
6870    # On MiNT this can take a long time and run out of memory.
6871    lt_cv_sys_max_cmd_len=8192;
6872    ;;
6873
6874  amigaos*)
6875    # On AmigaOS with pdksh, this test takes hours, literally.
6876    # So we just punt and use a minimum line length of 8192.
6877    lt_cv_sys_max_cmd_len=8192;
6878    ;;
6879
6880  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6881    # This has been around since 386BSD, at least.  Likely further.
6882    if test -x /sbin/sysctl; then
6883      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6884    elif test -x /usr/sbin/sysctl; then
6885      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6886    else
6887      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6888    fi
6889    # And add a safety zone
6890    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6891    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6892    ;;
6893
6894  interix*)
6895    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6896    lt_cv_sys_max_cmd_len=196608
6897    ;;
6898
6899  os2*)
6900    # The test takes a long time on OS/2.
6901    lt_cv_sys_max_cmd_len=8192
6902    ;;
6903
6904  osf*)
6905    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6906    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6907    # nice to cause kernel panics so lets avoid the loop below.
6908    # First set a reasonable default.
6909    lt_cv_sys_max_cmd_len=16384
6910    #
6911    if test -x /sbin/sysconfig; then
6912      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6913        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6914      esac
6915    fi
6916    ;;
6917  sco3.2v5*)
6918    lt_cv_sys_max_cmd_len=102400
6919    ;;
6920  sysv5* | sco5v6* | sysv4.2uw2*)
6921    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6922    if test -n "$kargmax"; then
6923      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6924    else
6925      lt_cv_sys_max_cmd_len=32768
6926    fi
6927    ;;
6928  *)
6929    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6930    if test -n "$lt_cv_sys_max_cmd_len" && \
6931       test undefined != "$lt_cv_sys_max_cmd_len"; then
6932      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6933      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6934    else
6935      # Make teststring a little bigger before we do anything with it.
6936      # a 1K string should be a reasonable start.
6937      for i in 1 2 3 4 5 6 7 8; do
6938        teststring=$teststring$teststring
6939      done
6940      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6941      # If test is not a shell built-in, we'll probably end up computing a
6942      # maximum length that is only half of the actual maximum length, but
6943      # we can't tell.
6944      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6945                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6946              test 17 != "$i" # 1/2 MB should be enough
6947      do
6948        i=`expr $i + 1`
6949        teststring=$teststring$teststring
6950      done
6951      # Only check the string length outside the loop.
6952      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6953      teststring=
6954      # Add a significant safety factor because C++ compilers can tack on
6955      # massive amounts of additional arguments before passing them to the
6956      # linker.  It appears as though 1/2 is a usable value.
6957      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6958    fi
6959    ;;
6960  esac
6961
6962fi
6963
6964if test -n "$lt_cv_sys_max_cmd_len"; then
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6966$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6967else
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6969$as_echo "none" >&6; }
6970fi
6971max_cmd_len=$lt_cv_sys_max_cmd_len
6972
6973
6974
6975
6976
6977
6978: ${CP="cp -f"}
6979: ${MV="mv -f"}
6980: ${RM="rm -f"}
6981
6982if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6983  lt_unset=unset
6984else
6985  lt_unset=false
6986fi
6987
6988
6989
6990
6991
6992# test EBCDIC or ASCII
6993case `echo X|tr X '\101'` in
6994 A) # ASCII based system
6995    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6996  lt_SP2NL='tr \040 \012'
6997  lt_NL2SP='tr \015\012 \040\040'
6998  ;;
6999 *) # EBCDIC based system
7000  lt_SP2NL='tr \100 \n'
7001  lt_NL2SP='tr \r\n \100\100'
7002  ;;
7003esac
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7014$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7015if ${lt_cv_to_host_file_cmd+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018  case $host in
7019  *-*-mingw* )
7020    case $build in
7021      *-*-mingw* ) # actually msys
7022        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7023        ;;
7024      *-*-cygwin* )
7025        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7026        ;;
7027      * ) # otherwise, assume *nix
7028        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7029        ;;
7030    esac
7031    ;;
7032  *-*-cygwin* )
7033    case $build in
7034      *-*-mingw* ) # actually msys
7035        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7036        ;;
7037      *-*-cygwin* )
7038        lt_cv_to_host_file_cmd=func_convert_file_noop
7039        ;;
7040      * ) # otherwise, assume *nix
7041        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7042        ;;
7043    esac
7044    ;;
7045  * ) # unhandled hosts (and "normal" native builds)
7046    lt_cv_to_host_file_cmd=func_convert_file_noop
7047    ;;
7048esac
7049
7050fi
7051
7052to_host_file_cmd=$lt_cv_to_host_file_cmd
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7054$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7055
7056
7057
7058
7059
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7061$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7062if ${lt_cv_to_tool_file_cmd+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  #assume ordinary cross tools, or native build.
7066lt_cv_to_tool_file_cmd=func_convert_file_noop
7067case $host in
7068  *-*-mingw* )
7069    case $build in
7070      *-*-mingw* ) # actually msys
7071        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7072        ;;
7073    esac
7074    ;;
7075esac
7076
7077fi
7078
7079to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7081$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7082
7083
7084
7085
7086
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7088$as_echo_n "checking for $LD option to reload object files... " >&6; }
7089if ${lt_cv_ld_reload_flag+:} false; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  lt_cv_ld_reload_flag='-r'
7093fi
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7095$as_echo "$lt_cv_ld_reload_flag" >&6; }
7096reload_flag=$lt_cv_ld_reload_flag
7097case $reload_flag in
7098"" | " "*) ;;
7099*) reload_flag=" $reload_flag" ;;
7100esac
7101reload_cmds='$LD$reload_flag -o $output$reload_objs'
7102case $host_os in
7103  cygwin* | mingw* | pw32* | cegcc*)
7104    if test yes != "$GCC"; then
7105      reload_cmds=false
7106    fi
7107    ;;
7108  darwin*)
7109    if test yes = "$GCC"; then
7110      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7111    else
7112      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7113    fi
7114    ;;
7115esac
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125if test -n "$ac_tool_prefix"; then
7126  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7127set dummy ${ac_tool_prefix}objdump; ac_word=$2
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129$as_echo_n "checking for $ac_word... " >&6; }
7130if ${ac_cv_prog_OBJDUMP+:} false; then :
7131  $as_echo_n "(cached) " >&6
7132else
7133  if test -n "$OBJDUMP"; then
7134  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7135else
7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139  IFS=$as_save_IFS
7140  test -z "$as_dir" && as_dir=.
7141    for ac_exec_ext in '' $ac_executable_extensions; do
7142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145    break 2
7146  fi
7147done
7148  done
7149IFS=$as_save_IFS
7150
7151fi
7152fi
7153OBJDUMP=$ac_cv_prog_OBJDUMP
7154if test -n "$OBJDUMP"; then
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7156$as_echo "$OBJDUMP" >&6; }
7157else
7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159$as_echo "no" >&6; }
7160fi
7161
7162
7163fi
7164if test -z "$ac_cv_prog_OBJDUMP"; then
7165  ac_ct_OBJDUMP=$OBJDUMP
7166  # Extract the first word of "objdump", so it can be a program name with args.
7167set dummy objdump; ac_word=$2
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169$as_echo_n "checking for $ac_word... " >&6; }
7170if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7171  $as_echo_n "(cached) " >&6
7172else
7173  if test -n "$ac_ct_OBJDUMP"; then
7174  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179  IFS=$as_save_IFS
7180  test -z "$as_dir" && as_dir=.
7181    for ac_exec_ext in '' $ac_executable_extensions; do
7182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185    break 2
7186  fi
7187done
7188  done
7189IFS=$as_save_IFS
7190
7191fi
7192fi
7193ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7194if test -n "$ac_ct_OBJDUMP"; then
7195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7196$as_echo "$ac_ct_OBJDUMP" >&6; }
7197else
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
7200fi
7201
7202  if test "x$ac_ct_OBJDUMP" = x; then
7203    OBJDUMP="false"
7204  else
7205    case $cross_compiling:$ac_tool_warned in
7206yes:)
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209ac_tool_warned=yes ;;
7210esac
7211    OBJDUMP=$ac_ct_OBJDUMP
7212  fi
7213else
7214  OBJDUMP="$ac_cv_prog_OBJDUMP"
7215fi
7216
7217test -z "$OBJDUMP" && OBJDUMP=objdump
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7228$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7229if ${lt_cv_deplibs_check_method+:} false; then :
7230  $as_echo_n "(cached) " >&6
7231else
7232  lt_cv_file_magic_cmd='$MAGIC_CMD'
7233lt_cv_file_magic_test_file=
7234lt_cv_deplibs_check_method='unknown'
7235# Need to set the preceding variable on all platforms that support
7236# interlibrary dependencies.
7237# 'none' -- dependencies not supported.
7238# 'unknown' -- same as none, but documents that we really don't know.
7239# 'pass_all' -- all dependencies passed with no checks.
7240# 'test_compile' -- check by making test program.
7241# 'file_magic [[regex]]' -- check by looking for files in library path
7242# that responds to the $file_magic_cmd with a given extended regex.
7243# If you have 'file' or equivalent on your system and you're not sure
7244# whether 'pass_all' will *always* work, you probably want this one.
7245
7246case $host_os in
7247aix[4-9]*)
7248  lt_cv_deplibs_check_method=pass_all
7249  ;;
7250
7251beos*)
7252  lt_cv_deplibs_check_method=pass_all
7253  ;;
7254
7255bsdi[45]*)
7256  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7257  lt_cv_file_magic_cmd='/usr/bin/file -L'
7258  lt_cv_file_magic_test_file=/shlib/libc.so
7259  ;;
7260
7261cygwin*)
7262  # func_win32_libid is a shell function defined in ltmain.sh
7263  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7264  lt_cv_file_magic_cmd='func_win32_libid'
7265  ;;
7266
7267mingw* | pw32*)
7268  # Base MSYS/MinGW do not provide the 'file' command needed by
7269  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7270  # unless we find 'file', for example because we are cross-compiling.
7271  if ( file / ) >/dev/null 2>&1; then
7272    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7273    lt_cv_file_magic_cmd='func_win32_libid'
7274  else
7275    # Keep this pattern in sync with the one in func_win32_libid.
7276    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7277    lt_cv_file_magic_cmd='$OBJDUMP -f'
7278  fi
7279  ;;
7280
7281cegcc*)
7282  # use the weaker test based on 'objdump'. See mingw*.
7283  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7284  lt_cv_file_magic_cmd='$OBJDUMP -f'
7285  ;;
7286
7287darwin* | rhapsody*)
7288  lt_cv_deplibs_check_method=pass_all
7289  ;;
7290
7291freebsd* | dragonfly*)
7292  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7293    case $host_cpu in
7294    i*86 )
7295      # Not sure whether the presence of OpenBSD here was a mistake.
7296      # Let's accept both of them until this is cleared up.
7297      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7298      lt_cv_file_magic_cmd=/usr/bin/file
7299      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7300      ;;
7301    esac
7302  else
7303    lt_cv_deplibs_check_method=pass_all
7304  fi
7305  ;;
7306
7307haiku*)
7308  lt_cv_deplibs_check_method=pass_all
7309  ;;
7310
7311hpux10.20* | hpux11*)
7312  lt_cv_file_magic_cmd=/usr/bin/file
7313  case $host_cpu in
7314  ia64*)
7315    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7316    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7317    ;;
7318  hppa*64*)
7319    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7320    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7321    ;;
7322  *)
7323    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7324    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7325    ;;
7326  esac
7327  ;;
7328
7329interix[3-9]*)
7330  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7331  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7332  ;;
7333
7334irix5* | irix6* | nonstopux*)
7335  case $LD in
7336  *-32|*"-32 ") libmagic=32-bit;;
7337  *-n32|*"-n32 ") libmagic=N32;;
7338  *-64|*"-64 ") libmagic=64-bit;;
7339  *) libmagic=never-match;;
7340  esac
7341  lt_cv_deplibs_check_method=pass_all
7342  ;;
7343
7344# This must be glibc/ELF.
7345linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7346  lt_cv_deplibs_check_method=pass_all
7347  ;;
7348
7349netbsd*)
7350  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7351    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7352  else
7353    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7354  fi
7355  ;;
7356
7357newos6*)
7358  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7359  lt_cv_file_magic_cmd=/usr/bin/file
7360  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7361  ;;
7362
7363*nto* | *qnx*)
7364  lt_cv_deplibs_check_method=pass_all
7365  ;;
7366
7367openbsd* | bitrig*)
7368  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7370  else
7371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7372  fi
7373  ;;
7374
7375osf3* | osf4* | osf5*)
7376  lt_cv_deplibs_check_method=pass_all
7377  ;;
7378
7379rdos*)
7380  lt_cv_deplibs_check_method=pass_all
7381  ;;
7382
7383solaris*)
7384  lt_cv_deplibs_check_method=pass_all
7385  ;;
7386
7387sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7388  lt_cv_deplibs_check_method=pass_all
7389  ;;
7390
7391sysv4 | sysv4.3*)
7392  case $host_vendor in
7393  motorola)
7394    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]'
7395    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7396    ;;
7397  ncr)
7398    lt_cv_deplibs_check_method=pass_all
7399    ;;
7400  sequent)
7401    lt_cv_file_magic_cmd='/bin/file'
7402    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7403    ;;
7404  sni)
7405    lt_cv_file_magic_cmd='/bin/file'
7406    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7407    lt_cv_file_magic_test_file=/lib/libc.so
7408    ;;
7409  siemens)
7410    lt_cv_deplibs_check_method=pass_all
7411    ;;
7412  pc)
7413    lt_cv_deplibs_check_method=pass_all
7414    ;;
7415  esac
7416  ;;
7417
7418tpf*)
7419  lt_cv_deplibs_check_method=pass_all
7420  ;;
7421os2*)
7422  lt_cv_deplibs_check_method=pass_all
7423  ;;
7424esac
7425
7426fi
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7428$as_echo "$lt_cv_deplibs_check_method" >&6; }
7429
7430file_magic_glob=
7431want_nocaseglob=no
7432if test "$build" = "$host"; then
7433  case $host_os in
7434  mingw* | pw32*)
7435    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7436      want_nocaseglob=yes
7437    else
7438      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7439    fi
7440    ;;
7441  esac
7442fi
7443
7444file_magic_cmd=$lt_cv_file_magic_cmd
7445deplibs_check_method=$lt_cv_deplibs_check_method
7446test -z "$deplibs_check_method" && deplibs_check_method=unknown
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469if test -n "$ac_tool_prefix"; then
7470  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7471set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473$as_echo_n "checking for $ac_word... " >&6; }
7474if ${ac_cv_prog_DLLTOOL+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  if test -n "$DLLTOOL"; then
7478  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483  IFS=$as_save_IFS
7484  test -z "$as_dir" && as_dir=.
7485    for ac_exec_ext in '' $ac_executable_extensions; do
7486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492  done
7493IFS=$as_save_IFS
7494
7495fi
7496fi
7497DLLTOOL=$ac_cv_prog_DLLTOOL
7498if test -n "$DLLTOOL"; then
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7500$as_echo "$DLLTOOL" >&6; }
7501else
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503$as_echo "no" >&6; }
7504fi
7505
7506
7507fi
7508if test -z "$ac_cv_prog_DLLTOOL"; then
7509  ac_ct_DLLTOOL=$DLLTOOL
7510  # Extract the first word of "dlltool", so it can be a program name with args.
7511set dummy dlltool; ac_word=$2
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513$as_echo_n "checking for $ac_word... " >&6; }
7514if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  if test -n "$ac_ct_DLLTOOL"; then
7518  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7519else
7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523  IFS=$as_save_IFS
7524  test -z "$as_dir" && as_dir=.
7525    for ac_exec_ext in '' $ac_executable_extensions; do
7526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529    break 2
7530  fi
7531done
7532  done
7533IFS=$as_save_IFS
7534
7535fi
7536fi
7537ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7538if test -n "$ac_ct_DLLTOOL"; then
7539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7540$as_echo "$ac_ct_DLLTOOL" >&6; }
7541else
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543$as_echo "no" >&6; }
7544fi
7545
7546  if test "x$ac_ct_DLLTOOL" = x; then
7547    DLLTOOL="false"
7548  else
7549    case $cross_compiling:$ac_tool_warned in
7550yes:)
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553ac_tool_warned=yes ;;
7554esac
7555    DLLTOOL=$ac_ct_DLLTOOL
7556  fi
7557else
7558  DLLTOOL="$ac_cv_prog_DLLTOOL"
7559fi
7560
7561test -z "$DLLTOOL" && DLLTOOL=dlltool
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7573$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7574if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  lt_cv_sharedlib_from_linklib_cmd='unknown'
7578
7579case $host_os in
7580cygwin* | mingw* | pw32* | cegcc*)
7581  # two different shell functions defined in ltmain.sh;
7582  # decide which one to use based on capabilities of $DLLTOOL
7583  case `$DLLTOOL --help 2>&1` in
7584  *--identify-strict*)
7585    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7586    ;;
7587  *)
7588    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7589    ;;
7590  esac
7591  ;;
7592*)
7593  # fallback: assume linklib IS sharedlib
7594  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7595  ;;
7596esac
7597
7598fi
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7600$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7601sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7602test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7603
7604
7605
7606
7607
7608
7609
7610if test -n "$ac_tool_prefix"; then
7611  for ac_prog in ar
7612  do
7613    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if ${ac_cv_prog_AR+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  if test -n "$AR"; then
7621  ac_cv_prog_AR="$AR" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626  IFS=$as_save_IFS
7627  test -z "$as_dir" && as_dir=.
7628    for ac_exec_ext in '' $ac_executable_extensions; do
7629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632    break 2
7633  fi
7634done
7635  done
7636IFS=$as_save_IFS
7637
7638fi
7639fi
7640AR=$ac_cv_prog_AR
7641if test -n "$AR"; then
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7643$as_echo "$AR" >&6; }
7644else
7645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649
7650    test -n "$AR" && break
7651  done
7652fi
7653if test -z "$AR"; then
7654  ac_ct_AR=$AR
7655  for ac_prog in ar
7656do
7657  # Extract the first word of "$ac_prog", so it can be a program name with args.
7658set dummy $ac_prog; ac_word=$2
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
7661if ${ac_cv_prog_ac_ct_AR+:} false; then :
7662  $as_echo_n "(cached) " >&6
7663else
7664  if test -n "$ac_ct_AR"; then
7665  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670  IFS=$as_save_IFS
7671  test -z "$as_dir" && as_dir=.
7672    for ac_exec_ext in '' $ac_executable_extensions; do
7673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674    ac_cv_prog_ac_ct_AR="$ac_prog"
7675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676    break 2
7677  fi
7678done
7679  done
7680IFS=$as_save_IFS
7681
7682fi
7683fi
7684ac_ct_AR=$ac_cv_prog_ac_ct_AR
7685if test -n "$ac_ct_AR"; then
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7687$as_echo "$ac_ct_AR" >&6; }
7688else
7689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
7691fi
7692
7693
7694  test -n "$ac_ct_AR" && break
7695done
7696
7697  if test "x$ac_ct_AR" = x; then
7698    AR="false"
7699  else
7700    case $cross_compiling:$ac_tool_warned in
7701yes:)
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7704ac_tool_warned=yes ;;
7705esac
7706    AR=$ac_ct_AR
7707  fi
7708fi
7709
7710: ${AR=ar}
7711: ${AR_FLAGS=cru}
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7724$as_echo_n "checking for archiver @FILE support... " >&6; }
7725if ${lt_cv_ar_at_file+:} false; then :
7726  $as_echo_n "(cached) " >&6
7727else
7728  lt_cv_ar_at_file=no
7729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730/* end confdefs.h.  */
7731
7732#ifdef F77_DUMMY_MAIN
7733
7734#  ifdef __cplusplus
7735     extern "C"
7736#  endif
7737   int F77_DUMMY_MAIN() { return 1; }
7738
7739#endif
7740int
7741main ()
7742{
7743
7744  ;
7745  return 0;
7746}
7747_ACEOF
7748if ac_fn_cxx_try_compile "$LINENO"; then :
7749  echo conftest.$ac_objext > conftest.lst
7750      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7751      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7752  (eval $lt_ar_try) 2>&5
7753  ac_status=$?
7754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7755  test $ac_status = 0; }
7756      if test 0 -eq "$ac_status"; then
7757        # Ensure the archiver fails upon bogus file names.
7758        rm -f conftest.$ac_objext libconftest.a
7759        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7760  (eval $lt_ar_try) 2>&5
7761  ac_status=$?
7762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7763  test $ac_status = 0; }
7764        if test 0 -ne "$ac_status"; then
7765          lt_cv_ar_at_file=@
7766        fi
7767      fi
7768      rm -f conftest.* libconftest.a
7769
7770fi
7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772
7773fi
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7775$as_echo "$lt_cv_ar_at_file" >&6; }
7776
7777if test no = "$lt_cv_ar_at_file"; then
7778  archiver_list_spec=
7779else
7780  archiver_list_spec=$lt_cv_ar_at_file
7781fi
7782
7783
7784
7785
7786
7787
7788
7789if test -n "$ac_tool_prefix"; then
7790  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7791set dummy ${ac_tool_prefix}strip; ac_word=$2
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793$as_echo_n "checking for $ac_word... " >&6; }
7794if ${ac_cv_prog_STRIP+:} false; then :
7795  $as_echo_n "(cached) " >&6
7796else
7797  if test -n "$STRIP"; then
7798  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7799else
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803  IFS=$as_save_IFS
7804  test -z "$as_dir" && as_dir=.
7805    for ac_exec_ext in '' $ac_executable_extensions; do
7806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809    break 2
7810  fi
7811done
7812  done
7813IFS=$as_save_IFS
7814
7815fi
7816fi
7817STRIP=$ac_cv_prog_STRIP
7818if test -n "$STRIP"; then
7819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7820$as_echo "$STRIP" >&6; }
7821else
7822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823$as_echo "no" >&6; }
7824fi
7825
7826
7827fi
7828if test -z "$ac_cv_prog_STRIP"; then
7829  ac_ct_STRIP=$STRIP
7830  # Extract the first word of "strip", so it can be a program name with args.
7831set dummy strip; ac_word=$2
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833$as_echo_n "checking for $ac_word... " >&6; }
7834if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  if test -n "$ac_ct_STRIP"; then
7838  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7839else
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843  IFS=$as_save_IFS
7844  test -z "$as_dir" && as_dir=.
7845    for ac_exec_ext in '' $ac_executable_extensions; do
7846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847    ac_cv_prog_ac_ct_STRIP="strip"
7848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849    break 2
7850  fi
7851done
7852  done
7853IFS=$as_save_IFS
7854
7855fi
7856fi
7857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7858if test -n "$ac_ct_STRIP"; then
7859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7860$as_echo "$ac_ct_STRIP" >&6; }
7861else
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863$as_echo "no" >&6; }
7864fi
7865
7866  if test "x$ac_ct_STRIP" = x; then
7867    STRIP=":"
7868  else
7869    case $cross_compiling:$ac_tool_warned in
7870yes:)
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7873ac_tool_warned=yes ;;
7874esac
7875    STRIP=$ac_ct_STRIP
7876  fi
7877else
7878  STRIP="$ac_cv_prog_STRIP"
7879fi
7880
7881test -z "$STRIP" && STRIP=:
7882
7883
7884
7885
7886
7887
7888if test -n "$ac_tool_prefix"; then
7889  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7890set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if ${ac_cv_prog_RANLIB+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  if test -n "$RANLIB"; then
7897  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902  IFS=$as_save_IFS
7903  test -z "$as_dir" && as_dir=.
7904    for ac_exec_ext in '' $ac_executable_extensions; do
7905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908    break 2
7909  fi
7910done
7911  done
7912IFS=$as_save_IFS
7913
7914fi
7915fi
7916RANLIB=$ac_cv_prog_RANLIB
7917if test -n "$RANLIB"; then
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7919$as_echo "$RANLIB" >&6; }
7920else
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925
7926fi
7927if test -z "$ac_cv_prog_RANLIB"; then
7928  ac_ct_RANLIB=$RANLIB
7929  # Extract the first word of "ranlib", so it can be a program name with args.
7930set dummy ranlib; ac_word=$2
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932$as_echo_n "checking for $ac_word... " >&6; }
7933if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  if test -n "$ac_ct_RANLIB"; then
7937  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7938else
7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942  IFS=$as_save_IFS
7943  test -z "$as_dir" && as_dir=.
7944    for ac_exec_ext in '' $ac_executable_extensions; do
7945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946    ac_cv_prog_ac_ct_RANLIB="ranlib"
7947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948    break 2
7949  fi
7950done
7951  done
7952IFS=$as_save_IFS
7953
7954fi
7955fi
7956ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7957if test -n "$ac_ct_RANLIB"; then
7958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7959$as_echo "$ac_ct_RANLIB" >&6; }
7960else
7961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962$as_echo "no" >&6; }
7963fi
7964
7965  if test "x$ac_ct_RANLIB" = x; then
7966    RANLIB=":"
7967  else
7968    case $cross_compiling:$ac_tool_warned in
7969yes:)
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972ac_tool_warned=yes ;;
7973esac
7974    RANLIB=$ac_ct_RANLIB
7975  fi
7976else
7977  RANLIB="$ac_cv_prog_RANLIB"
7978fi
7979
7980test -z "$RANLIB" && RANLIB=:
7981
7982
7983
7984
7985
7986
7987# Determine commands to create old-style static archives.
7988old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7989old_postinstall_cmds='chmod 644 $oldlib'
7990old_postuninstall_cmds=
7991
7992if test -n "$RANLIB"; then
7993  case $host_os in
7994  bitrig* | openbsd*)
7995    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7996    ;;
7997  *)
7998    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7999    ;;
8000  esac
8001  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8002fi
8003
8004case $host_os in
8005  darwin*)
8006    lock_old_archive_extraction=yes ;;
8007  *)
8008    lock_old_archive_extraction=no ;;
8009esac
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049# If no C compiler was specified, use CC.
8050LTCC=${LTCC-"$CC"}
8051
8052# If no C compiler flags were specified, use CFLAGS.
8053LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8054
8055# Allow CC to be a program name with arguments.
8056compiler=$CC
8057
8058
8059# Check for command to grab the raw symbol name followed by C symbol from nm.
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8061$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8062if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8063  $as_echo_n "(cached) " >&6
8064else
8065
8066# These are sane defaults that work on at least a few old systems.
8067# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8068
8069# Character class describing NM global symbol codes.
8070symcode='[BCDEGRST]'
8071
8072# Regexp to match symbols that can be accessed directly from C.
8073sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8074
8075# Define system-specific variables.
8076case $host_os in
8077aix*)
8078  symcode='[BCDT]'
8079  ;;
8080cygwin* | mingw* | pw32* | cegcc*)
8081  symcode='[ABCDGISTW]'
8082  ;;
8083hpux*)
8084  if test ia64 = "$host_cpu"; then
8085    symcode='[ABCDEGRST]'
8086  fi
8087  ;;
8088irix* | nonstopux*)
8089  symcode='[BCDEGRST]'
8090  ;;
8091osf*)
8092  symcode='[BCDEGQRST]'
8093  ;;
8094solaris*)
8095  symcode='[BDRT]'
8096  ;;
8097sco3.2v5*)
8098  symcode='[DT]'
8099  ;;
8100sysv4.2uw2*)
8101  symcode='[DT]'
8102  ;;
8103sysv5* | sco5v6* | unixware* | OpenUNIX*)
8104  symcode='[ABDT]'
8105  ;;
8106sysv4)
8107  symcode='[DFNSTU]'
8108  ;;
8109esac
8110
8111# If we're using GNU nm, then use its standard symbol codes.
8112case `$NM -V 2>&1` in
8113*GNU* | *'with BFD'*)
8114  symcode='[ABCDGIRSTW]' ;;
8115esac
8116
8117if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8118  # Gets list of data symbols to import.
8119  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8120  # Adjust the below global symbol transforms to fixup imported variables.
8121  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8122  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8123  lt_c_name_lib_hook="\
8124  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8125  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8126else
8127  # Disable hooks by default.
8128  lt_cv_sys_global_symbol_to_import=
8129  lt_cdecl_hook=
8130  lt_c_name_hook=
8131  lt_c_name_lib_hook=
8132fi
8133
8134# Transform an extracted symbol line into a proper C declaration.
8135# Some systems (esp. on ia64) link data and code symbols differently,
8136# so use this general approach.
8137lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8138$lt_cdecl_hook\
8139" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8140" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8141
8142# Transform an extracted symbol line into symbol name and symbol address
8143lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8144$lt_c_name_hook\
8145" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8146" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8147
8148# Transform an extracted symbol line into symbol name with lib prefix and
8149# symbol address.
8150lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8151$lt_c_name_lib_hook\
8152" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8153" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8154" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8155
8156# Handle CRLF in mingw tool chain
8157opt_cr=
8158case $build_os in
8159mingw*)
8160  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8161  ;;
8162esac
8163
8164# Try without a prefix underscore, then with it.
8165for ac_symprfx in "" "_"; do
8166
8167  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8168  symxfrm="\\1 $ac_symprfx\\2 \\2"
8169
8170  # Write the raw and C identifiers.
8171  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8172    # Fake it for dumpbin and say T for any non-static function,
8173    # D for any global variable and I for any imported variable.
8174    # Also find C++ and __fastcall symbols from MSVC++,
8175    # which start with @ or ?.
8176    lt_cv_sys_global_symbol_pipe="$AWK '"\
8177"     {last_section=section; section=\$ 3};"\
8178"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8179"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8180"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8181"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8182"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8183"     \$ 0!~/External *\|/{next};"\
8184"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8185"     {if(hide[section]) next};"\
8186"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8187"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8188"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8189"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8190"     ' prfx=^$ac_symprfx"
8191  else
8192    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8193  fi
8194  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8195
8196  # Check to see that the pipe works correctly.
8197  pipe_works=no
8198
8199  rm -f conftest*
8200  cat > conftest.$ac_ext <<_LT_EOF
8201#ifdef __cplusplus
8202extern "C" {
8203#endif
8204char nm_test_var;
8205void nm_test_func(void);
8206void nm_test_func(void){}
8207#ifdef __cplusplus
8208}
8209#endif
8210int main(){nm_test_var='a';nm_test_func();return(0);}
8211_LT_EOF
8212
8213  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8214  (eval $ac_compile) 2>&5
8215  ac_status=$?
8216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8217  test $ac_status = 0; }; then
8218    # Now try to grab the symbols.
8219    nlist=conftest.nm
8220    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8221  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8222  ac_status=$?
8223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8224  test $ac_status = 0; } && test -s "$nlist"; then
8225      # Try sorting and uniquifying the output.
8226      if sort "$nlist" | uniq > "$nlist"T; then
8227        mv -f "$nlist"T "$nlist"
8228      else
8229        rm -f "$nlist"T
8230      fi
8231
8232      # Make sure that we snagged all the symbols we need.
8233      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8234        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8235          cat <<_LT_EOF > conftest.$ac_ext
8236/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8237#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8238/* DATA imports from DLLs on WIN32 can't be const, because runtime
8239   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8240# define LT_DLSYM_CONST
8241#elif defined __osf__
8242/* This system does not cope well with relocations in const data.  */
8243# define LT_DLSYM_CONST
8244#else
8245# define LT_DLSYM_CONST const
8246#endif
8247
8248#ifdef __cplusplus
8249extern "C" {
8250#endif
8251
8252_LT_EOF
8253          # Now generate the symbol file.
8254          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8255
8256          cat <<_LT_EOF >> conftest.$ac_ext
8257
8258/* The mapping between symbol names and symbols.  */
8259LT_DLSYM_CONST struct {
8260  const char *name;
8261  void       *address;
8262}
8263lt__PROGRAM__LTX_preloaded_symbols[] =
8264{
8265  { "@PROGRAM@", (void *) 0 },
8266_LT_EOF
8267          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8268          cat <<\_LT_EOF >> conftest.$ac_ext
8269  {0, (void *) 0}
8270};
8271
8272/* This works around a problem in FreeBSD linker */
8273#ifdef FREEBSD_WORKAROUND
8274static const void *lt_preloaded_setup() {
8275  return lt__PROGRAM__LTX_preloaded_symbols;
8276}
8277#endif
8278
8279#ifdef __cplusplus
8280}
8281#endif
8282_LT_EOF
8283          # Now try linking the two files.
8284          mv conftest.$ac_objext conftstm.$ac_objext
8285          lt_globsym_save_LIBS=$LIBS
8286          lt_globsym_save_CFLAGS=$CFLAGS
8287          LIBS=conftstm.$ac_objext
8288          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8289          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8290  (eval $ac_link) 2>&5
8291  ac_status=$?
8292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8293  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8294            pipe_works=yes
8295          fi
8296          LIBS=$lt_globsym_save_LIBS
8297          CFLAGS=$lt_globsym_save_CFLAGS
8298        else
8299          echo "cannot find nm_test_func in $nlist" >&5
8300        fi
8301      else
8302        echo "cannot find nm_test_var in $nlist" >&5
8303      fi
8304    else
8305      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8306    fi
8307  else
8308    echo "$progname: failed program was:" >&5
8309    cat conftest.$ac_ext >&5
8310  fi
8311  rm -rf conftest* conftst*
8312
8313  # Do not use the global_symbol_pipe unless it works.
8314  if test yes = "$pipe_works"; then
8315    break
8316  else
8317    lt_cv_sys_global_symbol_pipe=
8318  fi
8319done
8320
8321fi
8322
8323if test -z "$lt_cv_sys_global_symbol_pipe"; then
8324  lt_cv_sys_global_symbol_to_cdecl=
8325fi
8326if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8328$as_echo "failed" >&6; }
8329else
8330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8331$as_echo "ok" >&6; }
8332fi
8333
8334# Response file support.
8335if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8336  nm_file_list_spec='@'
8337elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8338  nm_file_list_spec='@'
8339fi
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8378$as_echo_n "checking for sysroot... " >&6; }
8379
8380# Check whether --with-sysroot was given.
8381if test "${with_sysroot+set}" = set; then :
8382  withval=$with_sysroot;
8383else
8384  with_sysroot=no
8385fi
8386
8387
8388lt_sysroot=
8389case $with_sysroot in #(
8390 yes)
8391   if test yes = "$GCC"; then
8392     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8393   fi
8394   ;; #(
8395 /*)
8396   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8397   ;; #(
8398 no|'')
8399   ;; #(
8400 *)
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8402$as_echo "$with_sysroot" >&6; }
8403   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8404   ;;
8405esac
8406
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8408$as_echo "${lt_sysroot:-no}" >&6; }
8409
8410
8411
8412
8413
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8415$as_echo_n "checking for a working dd... " >&6; }
8416if ${ac_cv_path_lt_DD+:} false; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419  printf 0123456789abcdef0123456789abcdef >conftest.i
8420cat conftest.i conftest.i >conftest2.i
8421: ${lt_DD:=$DD}
8422if test -z "$lt_DD"; then
8423  ac_path_lt_DD_found=false
8424  # Loop through the user's path and test for each of PROGNAME-LIST
8425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428  IFS=$as_save_IFS
8429  test -z "$as_dir" && as_dir=.
8430    for ac_prog in dd; do
8431    for ac_exec_ext in '' $ac_executable_extensions; do
8432      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8433      as_fn_executable_p "$ac_path_lt_DD" || continue
8434if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8435  cmp -s conftest.i conftest.out \
8436  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8437fi
8438      $ac_path_lt_DD_found && break 3
8439    done
8440  done
8441  done
8442IFS=$as_save_IFS
8443  if test -z "$ac_cv_path_lt_DD"; then
8444    :
8445  fi
8446else
8447  ac_cv_path_lt_DD=$lt_DD
8448fi
8449
8450rm -f conftest.i conftest2.i conftest.out
8451fi
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8453$as_echo "$ac_cv_path_lt_DD" >&6; }
8454
8455
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8457$as_echo_n "checking how to truncate binary pipes... " >&6; }
8458if ${lt_cv_truncate_bin+:} false; then :
8459  $as_echo_n "(cached) " >&6
8460else
8461  printf 0123456789abcdef0123456789abcdef >conftest.i
8462cat conftest.i conftest.i >conftest2.i
8463lt_cv_truncate_bin=
8464if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8465  cmp -s conftest.i conftest.out \
8466  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8467fi
8468rm -f conftest.i conftest2.i conftest.out
8469test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8470fi
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8472$as_echo "$lt_cv_truncate_bin" >&6; }
8473
8474
8475
8476
8477
8478
8479
8480# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8481func_cc_basename ()
8482{
8483    for cc_temp in $*""; do
8484      case $cc_temp in
8485        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8486        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8487        \-*) ;;
8488        *) break;;
8489      esac
8490    done
8491    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8492}
8493
8494# Check whether --enable-libtool-lock was given.
8495if test "${enable_libtool_lock+set}" = set; then :
8496  enableval=$enable_libtool_lock;
8497fi
8498
8499test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8500
8501# Some flags need to be propagated to the compiler or linker for good
8502# libtool support.
8503case $host in
8504ia64-*-hpux*)
8505  # Find out what ABI is being produced by ac_compile, and set mode
8506  # options accordingly.
8507  echo 'int i;' > conftest.$ac_ext
8508  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8509  (eval $ac_compile) 2>&5
8510  ac_status=$?
8511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512  test $ac_status = 0; }; then
8513    case `/usr/bin/file conftest.$ac_objext` in
8514      *ELF-32*)
8515        HPUX_IA64_MODE=32
8516        ;;
8517      *ELF-64*)
8518        HPUX_IA64_MODE=64
8519        ;;
8520    esac
8521  fi
8522  rm -rf conftest*
8523  ;;
8524*-*-irix6*)
8525  # Find out what ABI is being produced by ac_compile, and set linker
8526  # options accordingly.
8527  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8528  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8529  (eval $ac_compile) 2>&5
8530  ac_status=$?
8531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8532  test $ac_status = 0; }; then
8533    if test yes = "$lt_cv_prog_gnu_ld"; then
8534      case `/usr/bin/file conftest.$ac_objext` in
8535        *32-bit*)
8536          LD="${LD-ld} -melf32bsmip"
8537          ;;
8538        *N32*)
8539          LD="${LD-ld} -melf32bmipn32"
8540          ;;
8541        *64-bit*)
8542          LD="${LD-ld} -melf64bmip"
8543        ;;
8544      esac
8545    else
8546      case `/usr/bin/file conftest.$ac_objext` in
8547        *32-bit*)
8548          LD="${LD-ld} -32"
8549          ;;
8550        *N32*)
8551          LD="${LD-ld} -n32"
8552          ;;
8553        *64-bit*)
8554          LD="${LD-ld} -64"
8555          ;;
8556      esac
8557    fi
8558  fi
8559  rm -rf conftest*
8560  ;;
8561
8562mips64*-*linux*)
8563  # Find out what ABI is being produced by ac_compile, and set linker
8564  # options accordingly.
8565  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8566  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8567  (eval $ac_compile) 2>&5
8568  ac_status=$?
8569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8570  test $ac_status = 0; }; then
8571    emul=elf
8572    case `/usr/bin/file conftest.$ac_objext` in
8573      *32-bit*)
8574        emul="${emul}32"
8575        ;;
8576      *64-bit*)
8577        emul="${emul}64"
8578        ;;
8579    esac
8580    case `/usr/bin/file conftest.$ac_objext` in
8581      *MSB*)
8582        emul="${emul}btsmip"
8583        ;;
8584      *LSB*)
8585        emul="${emul}ltsmip"
8586        ;;
8587    esac
8588    case `/usr/bin/file conftest.$ac_objext` in
8589      *N32*)
8590        emul="${emul}n32"
8591        ;;
8592    esac
8593    LD="${LD-ld} -m $emul"
8594  fi
8595  rm -rf conftest*
8596  ;;
8597
8598x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8599s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8600  # Find out what ABI is being produced by ac_compile, and set linker
8601  # options accordingly.  Note that the listed cases only cover the
8602  # situations where additional linker options are needed (such as when
8603  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8604  # vice versa); the common cases where no linker options are needed do
8605  # not appear in the list.
8606  echo 'int i;' > conftest.$ac_ext
8607  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8608  (eval $ac_compile) 2>&5
8609  ac_status=$?
8610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8611  test $ac_status = 0; }; then
8612    case `/usr/bin/file conftest.o` in
8613      *32-bit*)
8614        case $host in
8615          x86_64-*kfreebsd*-gnu)
8616            LD="${LD-ld} -m elf_i386_fbsd"
8617            ;;
8618          x86_64-*linux*)
8619            case `/usr/bin/file conftest.o` in
8620              *x86-64*)
8621                LD="${LD-ld} -m elf32_x86_64"
8622                ;;
8623              *)
8624                LD="${LD-ld} -m elf_i386"
8625                ;;
8626            esac
8627            ;;
8628          powerpc64le-*linux*)
8629            LD="${LD-ld} -m elf32lppclinux"
8630            ;;
8631          powerpc64-*linux*)
8632            LD="${LD-ld} -m elf32ppclinux"
8633            ;;
8634          s390x-*linux*)
8635            LD="${LD-ld} -m elf_s390"
8636            ;;
8637          sparc64-*linux*)
8638            LD="${LD-ld} -m elf32_sparc"
8639            ;;
8640        esac
8641        ;;
8642      *64-bit*)
8643        case $host in
8644          x86_64-*kfreebsd*-gnu)
8645            LD="${LD-ld} -m elf_x86_64_fbsd"
8646            ;;
8647          x86_64-*linux*)
8648            LD="${LD-ld} -m elf_x86_64"
8649            ;;
8650          powerpcle-*linux*)
8651            LD="${LD-ld} -m elf64lppc"
8652            ;;
8653          powerpc-*linux*)
8654            LD="${LD-ld} -m elf64ppc"
8655            ;;
8656          s390*-*linux*|s390*-*tpf*)
8657            LD="${LD-ld} -m elf64_s390"
8658            ;;
8659          sparc*-*linux*)
8660            LD="${LD-ld} -m elf64_sparc"
8661            ;;
8662        esac
8663        ;;
8664    esac
8665  fi
8666  rm -rf conftest*
8667  ;;
8668
8669*-*-sco3.2v5*)
8670  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8671  SAVE_CFLAGS=$CFLAGS
8672  CFLAGS="$CFLAGS -belf"
8673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8674$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8675if ${lt_cv_cc_needs_belf+:} false; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  ac_ext=c
8679ac_cpp='$CPP $CPPFLAGS'
8680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8682ac_compiler_gnu=$ac_cv_c_compiler_gnu
8683
8684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685/* end confdefs.h.  */
8686
8687#ifdef F77_DUMMY_MAIN
8688
8689#  ifdef __cplusplus
8690     extern "C"
8691#  endif
8692   int F77_DUMMY_MAIN() { return 1; }
8693
8694#endif
8695int
8696main ()
8697{
8698
8699  ;
8700  return 0;
8701}
8702_ACEOF
8703if ac_fn_c_try_link "$LINENO"; then :
8704  lt_cv_cc_needs_belf=yes
8705else
8706  lt_cv_cc_needs_belf=no
8707fi
8708rm -f core conftest.err conftest.$ac_objext \
8709    conftest$ac_exeext conftest.$ac_ext
8710     ac_ext=c
8711ac_cpp='$CPP $CPPFLAGS'
8712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8718$as_echo "$lt_cv_cc_needs_belf" >&6; }
8719  if test yes != "$lt_cv_cc_needs_belf"; then
8720    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8721    CFLAGS=$SAVE_CFLAGS
8722  fi
8723  ;;
8724*-*solaris*)
8725  # Find out what ABI is being produced by ac_compile, and set linker
8726  # options accordingly.
8727  echo 'int i;' > conftest.$ac_ext
8728  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8729  (eval $ac_compile) 2>&5
8730  ac_status=$?
8731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8732  test $ac_status = 0; }; then
8733    case `/usr/bin/file conftest.o` in
8734    *64-bit*)
8735      case $lt_cv_prog_gnu_ld in
8736      yes*)
8737        case $host in
8738        i?86-*-solaris*|x86_64-*-solaris*)
8739          LD="${LD-ld} -m elf_x86_64"
8740          ;;
8741        sparc*-*-solaris*)
8742          LD="${LD-ld} -m elf64_sparc"
8743          ;;
8744        esac
8745        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8746        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8747          LD=${LD-ld}_sol2
8748        fi
8749        ;;
8750      *)
8751        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8752          LD="${LD-ld} -64"
8753        fi
8754        ;;
8755      esac
8756      ;;
8757    esac
8758  fi
8759  rm -rf conftest*
8760  ;;
8761esac
8762
8763need_locks=$enable_libtool_lock
8764
8765if test -n "$ac_tool_prefix"; then
8766  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8767set dummy ${ac_tool_prefix}mt; ac_word=$2
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769$as_echo_n "checking for $ac_word... " >&6; }
8770if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8771  $as_echo_n "(cached) " >&6
8772else
8773  if test -n "$MANIFEST_TOOL"; then
8774  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8775else
8776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777for as_dir in $PATH
8778do
8779  IFS=$as_save_IFS
8780  test -z "$as_dir" && as_dir=.
8781    for ac_exec_ext in '' $ac_executable_extensions; do
8782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785    break 2
8786  fi
8787done
8788  done
8789IFS=$as_save_IFS
8790
8791fi
8792fi
8793MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8794if test -n "$MANIFEST_TOOL"; then
8795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8796$as_echo "$MANIFEST_TOOL" >&6; }
8797else
8798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799$as_echo "no" >&6; }
8800fi
8801
8802
8803fi
8804if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8805  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8806  # Extract the first word of "mt", so it can be a program name with args.
8807set dummy mt; ac_word=$2
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809$as_echo_n "checking for $ac_word... " >&6; }
8810if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8811  $as_echo_n "(cached) " >&6
8812else
8813  if test -n "$ac_ct_MANIFEST_TOOL"; then
8814  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8815else
8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817for as_dir in $PATH
8818do
8819  IFS=$as_save_IFS
8820  test -z "$as_dir" && as_dir=.
8821    for ac_exec_ext in '' $ac_executable_extensions; do
8822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8823    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825    break 2
8826  fi
8827done
8828  done
8829IFS=$as_save_IFS
8830
8831fi
8832fi
8833ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8834if test -n "$ac_ct_MANIFEST_TOOL"; then
8835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8836$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8837else
8838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839$as_echo "no" >&6; }
8840fi
8841
8842  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8843    MANIFEST_TOOL=":"
8844  else
8845    case $cross_compiling:$ac_tool_warned in
8846yes:)
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8849ac_tool_warned=yes ;;
8850esac
8851    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8852  fi
8853else
8854  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8855fi
8856
8857test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8859$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8860if ${lt_cv_path_mainfest_tool+:} false; then :
8861  $as_echo_n "(cached) " >&6
8862else
8863  lt_cv_path_mainfest_tool=no
8864  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8865  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8866  cat conftest.err >&5
8867  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8868    lt_cv_path_mainfest_tool=yes
8869  fi
8870  rm -f conftest*
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8873$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8874if test yes != "$lt_cv_path_mainfest_tool"; then
8875  MANIFEST_TOOL=:
8876fi
8877
8878
8879
8880
8881
8882
8883  case $host_os in
8884    rhapsody* | darwin*)
8885    if test -n "$ac_tool_prefix"; then
8886  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8887set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8889$as_echo_n "checking for $ac_word... " >&6; }
8890if ${ac_cv_prog_DSYMUTIL+:} false; then :
8891  $as_echo_n "(cached) " >&6
8892else
8893  if test -n "$DSYMUTIL"; then
8894  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8895else
8896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897for as_dir in $PATH
8898do
8899  IFS=$as_save_IFS
8900  test -z "$as_dir" && as_dir=.
8901    for ac_exec_ext in '' $ac_executable_extensions; do
8902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8903    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8905    break 2
8906  fi
8907done
8908  done
8909IFS=$as_save_IFS
8910
8911fi
8912fi
8913DSYMUTIL=$ac_cv_prog_DSYMUTIL
8914if test -n "$DSYMUTIL"; then
8915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8916$as_echo "$DSYMUTIL" >&6; }
8917else
8918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919$as_echo "no" >&6; }
8920fi
8921
8922
8923fi
8924if test -z "$ac_cv_prog_DSYMUTIL"; then
8925  ac_ct_DSYMUTIL=$DSYMUTIL
8926  # Extract the first word of "dsymutil", so it can be a program name with args.
8927set dummy dsymutil; ac_word=$2
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929$as_echo_n "checking for $ac_word... " >&6; }
8930if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8931  $as_echo_n "(cached) " >&6
8932else
8933  if test -n "$ac_ct_DSYMUTIL"; then
8934  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939  IFS=$as_save_IFS
8940  test -z "$as_dir" && as_dir=.
8941    for ac_exec_ext in '' $ac_executable_extensions; do
8942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945    break 2
8946  fi
8947done
8948  done
8949IFS=$as_save_IFS
8950
8951fi
8952fi
8953ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8954if test -n "$ac_ct_DSYMUTIL"; then
8955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8956$as_echo "$ac_ct_DSYMUTIL" >&6; }
8957else
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959$as_echo "no" >&6; }
8960fi
8961
8962  if test "x$ac_ct_DSYMUTIL" = x; then
8963    DSYMUTIL=":"
8964  else
8965    case $cross_compiling:$ac_tool_warned in
8966yes:)
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8969ac_tool_warned=yes ;;
8970esac
8971    DSYMUTIL=$ac_ct_DSYMUTIL
8972  fi
8973else
8974  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8975fi
8976
8977    if test -n "$ac_tool_prefix"; then
8978  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8979set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981$as_echo_n "checking for $ac_word... " >&6; }
8982if ${ac_cv_prog_NMEDIT+:} false; then :
8983  $as_echo_n "(cached) " >&6
8984else
8985  if test -n "$NMEDIT"; then
8986  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8987else
8988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989for as_dir in $PATH
8990do
8991  IFS=$as_save_IFS
8992  test -z "$as_dir" && as_dir=.
8993    for ac_exec_ext in '' $ac_executable_extensions; do
8994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8995    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997    break 2
8998  fi
8999done
9000  done
9001IFS=$as_save_IFS
9002
9003fi
9004fi
9005NMEDIT=$ac_cv_prog_NMEDIT
9006if test -n "$NMEDIT"; then
9007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9008$as_echo "$NMEDIT" >&6; }
9009else
9010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011$as_echo "no" >&6; }
9012fi
9013
9014
9015fi
9016if test -z "$ac_cv_prog_NMEDIT"; then
9017  ac_ct_NMEDIT=$NMEDIT
9018  # Extract the first word of "nmedit", so it can be a program name with args.
9019set dummy nmedit; ac_word=$2
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021$as_echo_n "checking for $ac_word... " >&6; }
9022if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9023  $as_echo_n "(cached) " >&6
9024else
9025  if test -n "$ac_ct_NMEDIT"; then
9026  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9027else
9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029for as_dir in $PATH
9030do
9031  IFS=$as_save_IFS
9032  test -z "$as_dir" && as_dir=.
9033    for ac_exec_ext in '' $ac_executable_extensions; do
9034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9035    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037    break 2
9038  fi
9039done
9040  done
9041IFS=$as_save_IFS
9042
9043fi
9044fi
9045ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9046if test -n "$ac_ct_NMEDIT"; then
9047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9048$as_echo "$ac_ct_NMEDIT" >&6; }
9049else
9050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051$as_echo "no" >&6; }
9052fi
9053
9054  if test "x$ac_ct_NMEDIT" = x; then
9055    NMEDIT=":"
9056  else
9057    case $cross_compiling:$ac_tool_warned in
9058yes:)
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9061ac_tool_warned=yes ;;
9062esac
9063    NMEDIT=$ac_ct_NMEDIT
9064  fi
9065else
9066  NMEDIT="$ac_cv_prog_NMEDIT"
9067fi
9068
9069    if test -n "$ac_tool_prefix"; then
9070  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9071set dummy ${ac_tool_prefix}lipo; ac_word=$2
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073$as_echo_n "checking for $ac_word... " >&6; }
9074if ${ac_cv_prog_LIPO+:} false; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077  if test -n "$LIPO"; then
9078  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9079else
9080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081for as_dir in $PATH
9082do
9083  IFS=$as_save_IFS
9084  test -z "$as_dir" && as_dir=.
9085    for ac_exec_ext in '' $ac_executable_extensions; do
9086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9087    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089    break 2
9090  fi
9091done
9092  done
9093IFS=$as_save_IFS
9094
9095fi
9096fi
9097LIPO=$ac_cv_prog_LIPO
9098if test -n "$LIPO"; then
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9100$as_echo "$LIPO" >&6; }
9101else
9102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103$as_echo "no" >&6; }
9104fi
9105
9106
9107fi
9108if test -z "$ac_cv_prog_LIPO"; then
9109  ac_ct_LIPO=$LIPO
9110  # Extract the first word of "lipo", so it can be a program name with args.
9111set dummy lipo; ac_word=$2
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
9114if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9115  $as_echo_n "(cached) " >&6
9116else
9117  if test -n "$ac_ct_LIPO"; then
9118  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9119else
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123  IFS=$as_save_IFS
9124  test -z "$as_dir" && as_dir=.
9125    for ac_exec_ext in '' $ac_executable_extensions; do
9126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127    ac_cv_prog_ac_ct_LIPO="lipo"
9128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129    break 2
9130  fi
9131done
9132  done
9133IFS=$as_save_IFS
9134
9135fi
9136fi
9137ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9138if test -n "$ac_ct_LIPO"; then
9139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9140$as_echo "$ac_ct_LIPO" >&6; }
9141else
9142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
9144fi
9145
9146  if test "x$ac_ct_LIPO" = x; then
9147    LIPO=":"
9148  else
9149    case $cross_compiling:$ac_tool_warned in
9150yes:)
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9153ac_tool_warned=yes ;;
9154esac
9155    LIPO=$ac_ct_LIPO
9156  fi
9157else
9158  LIPO="$ac_cv_prog_LIPO"
9159fi
9160
9161    if test -n "$ac_tool_prefix"; then
9162  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9163set dummy ${ac_tool_prefix}otool; ac_word=$2
9164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9165$as_echo_n "checking for $ac_word... " >&6; }
9166if ${ac_cv_prog_OTOOL+:} false; then :
9167  $as_echo_n "(cached) " >&6
9168else
9169  if test -n "$OTOOL"; then
9170  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9171else
9172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173for as_dir in $PATH
9174do
9175  IFS=$as_save_IFS
9176  test -z "$as_dir" && as_dir=.
9177    for ac_exec_ext in '' $ac_executable_extensions; do
9178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9179    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9181    break 2
9182  fi
9183done
9184  done
9185IFS=$as_save_IFS
9186
9187fi
9188fi
9189OTOOL=$ac_cv_prog_OTOOL
9190if test -n "$OTOOL"; then
9191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9192$as_echo "$OTOOL" >&6; }
9193else
9194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195$as_echo "no" >&6; }
9196fi
9197
9198
9199fi
9200if test -z "$ac_cv_prog_OTOOL"; then
9201  ac_ct_OTOOL=$OTOOL
9202  # Extract the first word of "otool", so it can be a program name with args.
9203set dummy otool; ac_word=$2
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9205$as_echo_n "checking for $ac_word... " >&6; }
9206if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9207  $as_echo_n "(cached) " >&6
9208else
9209  if test -n "$ac_ct_OTOOL"; then
9210  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9211else
9212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213for as_dir in $PATH
9214do
9215  IFS=$as_save_IFS
9216  test -z "$as_dir" && as_dir=.
9217    for ac_exec_ext in '' $ac_executable_extensions; do
9218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9219    ac_cv_prog_ac_ct_OTOOL="otool"
9220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9221    break 2
9222  fi
9223done
9224  done
9225IFS=$as_save_IFS
9226
9227fi
9228fi
9229ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9230if test -n "$ac_ct_OTOOL"; then
9231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9232$as_echo "$ac_ct_OTOOL" >&6; }
9233else
9234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235$as_echo "no" >&6; }
9236fi
9237
9238  if test "x$ac_ct_OTOOL" = x; then
9239    OTOOL=":"
9240  else
9241    case $cross_compiling:$ac_tool_warned in
9242yes:)
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9245ac_tool_warned=yes ;;
9246esac
9247    OTOOL=$ac_ct_OTOOL
9248  fi
9249else
9250  OTOOL="$ac_cv_prog_OTOOL"
9251fi
9252
9253    if test -n "$ac_tool_prefix"; then
9254  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9255set dummy ${ac_tool_prefix}otool64; ac_word=$2
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257$as_echo_n "checking for $ac_word... " >&6; }
9258if ${ac_cv_prog_OTOOL64+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  if test -n "$OTOOL64"; then
9262  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9263else
9264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265for as_dir in $PATH
9266do
9267  IFS=$as_save_IFS
9268  test -z "$as_dir" && as_dir=.
9269    for ac_exec_ext in '' $ac_executable_extensions; do
9270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9271    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9273    break 2
9274  fi
9275done
9276  done
9277IFS=$as_save_IFS
9278
9279fi
9280fi
9281OTOOL64=$ac_cv_prog_OTOOL64
9282if test -n "$OTOOL64"; then
9283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9284$as_echo "$OTOOL64" >&6; }
9285else
9286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9287$as_echo "no" >&6; }
9288fi
9289
9290
9291fi
9292if test -z "$ac_cv_prog_OTOOL64"; then
9293  ac_ct_OTOOL64=$OTOOL64
9294  # Extract the first word of "otool64", so it can be a program name with args.
9295set dummy otool64; ac_word=$2
9296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9297$as_echo_n "checking for $ac_word... " >&6; }
9298if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9299  $as_echo_n "(cached) " >&6
9300else
9301  if test -n "$ac_ct_OTOOL64"; then
9302  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9303else
9304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307  IFS=$as_save_IFS
9308  test -z "$as_dir" && as_dir=.
9309    for ac_exec_ext in '' $ac_executable_extensions; do
9310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9311    ac_cv_prog_ac_ct_OTOOL64="otool64"
9312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9313    break 2
9314  fi
9315done
9316  done
9317IFS=$as_save_IFS
9318
9319fi
9320fi
9321ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9322if test -n "$ac_ct_OTOOL64"; then
9323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9324$as_echo "$ac_ct_OTOOL64" >&6; }
9325else
9326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9327$as_echo "no" >&6; }
9328fi
9329
9330  if test "x$ac_ct_OTOOL64" = x; then
9331    OTOOL64=":"
9332  else
9333    case $cross_compiling:$ac_tool_warned in
9334yes:)
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9337ac_tool_warned=yes ;;
9338esac
9339    OTOOL64=$ac_ct_OTOOL64
9340  fi
9341else
9342  OTOOL64="$ac_cv_prog_OTOOL64"
9343fi
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9372$as_echo_n "checking for -single_module linker flag... " >&6; }
9373if ${lt_cv_apple_cc_single_mod+:} false; then :
9374  $as_echo_n "(cached) " >&6
9375else
9376  lt_cv_apple_cc_single_mod=no
9377      if test -z "$LT_MULTI_MODULE"; then
9378        # By default we will add the -single_module flag. You can override
9379        # by either setting the environment variable LT_MULTI_MODULE
9380        # non-empty at configure time, or by adding -multi_module to the
9381        # link flags.
9382        rm -rf libconftest.dylib*
9383        echo "int foo(void){return 1;}" > conftest.c
9384        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9385-dynamiclib -Wl,-single_module conftest.c" >&5
9386        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9387          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9388        _lt_result=$?
9389        # If there is a non-empty error log, and "single_module"
9390        # appears in it, assume the flag caused a linker warning
9391        if test -s conftest.err && $GREP single_module conftest.err; then
9392          cat conftest.err >&5
9393        # Otherwise, if the output was created with a 0 exit code from
9394        # the compiler, it worked.
9395        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9396          lt_cv_apple_cc_single_mod=yes
9397        else
9398          cat conftest.err >&5
9399        fi
9400        rm -rf libconftest.dylib*
9401        rm -f conftest.*
9402      fi
9403fi
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9405$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9406
9407    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9408$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9409if ${lt_cv_ld_exported_symbols_list+:} false; then :
9410  $as_echo_n "(cached) " >&6
9411else
9412  lt_cv_ld_exported_symbols_list=no
9413      save_LDFLAGS=$LDFLAGS
9414      echo "_main" > conftest.sym
9415      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9416      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417/* end confdefs.h.  */
9418
9419#ifdef F77_DUMMY_MAIN
9420
9421#  ifdef __cplusplus
9422     extern "C"
9423#  endif
9424   int F77_DUMMY_MAIN() { return 1; }
9425
9426#endif
9427int
9428main ()
9429{
9430
9431  ;
9432  return 0;
9433}
9434_ACEOF
9435if ac_fn_c_try_link "$LINENO"; then :
9436  lt_cv_ld_exported_symbols_list=yes
9437else
9438  lt_cv_ld_exported_symbols_list=no
9439fi
9440rm -f core conftest.err conftest.$ac_objext \
9441    conftest$ac_exeext conftest.$ac_ext
9442        LDFLAGS=$save_LDFLAGS
9443
9444fi
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9446$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9447
9448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9449$as_echo_n "checking for -force_load linker flag... " >&6; }
9450if ${lt_cv_ld_force_load+:} false; then :
9451  $as_echo_n "(cached) " >&6
9452else
9453  lt_cv_ld_force_load=no
9454      cat > conftest.c << _LT_EOF
9455int forced_loaded() { return 2;}
9456_LT_EOF
9457      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9458      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9459      echo "$AR cru libconftest.a conftest.o" >&5
9460      $AR cru libconftest.a conftest.o 2>&5
9461      echo "$RANLIB libconftest.a" >&5
9462      $RANLIB libconftest.a 2>&5
9463      cat > conftest.c << _LT_EOF
9464int main() { return 0;}
9465_LT_EOF
9466      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9467      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9468      _lt_result=$?
9469      if test -s conftest.err && $GREP force_load conftest.err; then
9470        cat conftest.err >&5
9471      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9472        lt_cv_ld_force_load=yes
9473      else
9474        cat conftest.err >&5
9475      fi
9476        rm -f conftest.err libconftest.a conftest conftest.c
9477        rm -rf conftest.dSYM
9478
9479fi
9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9481$as_echo "$lt_cv_ld_force_load" >&6; }
9482    case $host_os in
9483    rhapsody* | darwin1.[012])
9484      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9485    darwin1.*)
9486      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9487    darwin*) # darwin 5.x on
9488      # if running on 10.5 or later, the deployment target defaults
9489      # to the OS version, if on x86, and 10.4, the deployment
9490      # target defaults to 10.4. Don't you love it?
9491      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9492        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9493          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9494        10.[012][,.]*)
9495          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9496        10.*)
9497          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9498      esac
9499    ;;
9500  esac
9501    if test yes = "$lt_cv_apple_cc_single_mod"; then
9502      _lt_dar_single_mod='$single_module'
9503    fi
9504    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9505      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9506    else
9507      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9508    fi
9509    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9510      _lt_dsymutil='~$DSYMUTIL $lib || :'
9511    else
9512      _lt_dsymutil=
9513    fi
9514    ;;
9515  esac
9516
9517# func_munge_path_list VARIABLE PATH
9518# -----------------------------------
9519# VARIABLE is name of variable containing _space_ separated list of
9520# directories to be munged by the contents of PATH, which is string
9521# having a format:
9522# "DIR[:DIR]:"
9523#       string "DIR[ DIR]" will be prepended to VARIABLE
9524# ":DIR[:DIR]"
9525#       string "DIR[ DIR]" will be appended to VARIABLE
9526# "DIRP[:DIRP]::[DIRA:]DIRA"
9527#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9528#       "DIRA[ DIRA]" will be appended to VARIABLE
9529# "DIR[:DIR]"
9530#       VARIABLE will be replaced by "DIR[ DIR]"
9531func_munge_path_list ()
9532{
9533    case x$2 in
9534    x)
9535        ;;
9536    *:)
9537        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9538        ;;
9539    x:*)
9540        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9541        ;;
9542    *::*)
9543        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9544        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9545        ;;
9546    *)
9547        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9548        ;;
9549    esac
9550}
9551
9552ac_ext=c
9553ac_cpp='$CPP $CPPFLAGS'
9554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9558$as_echo_n "checking how to run the C preprocessor... " >&6; }
9559# On Suns, sometimes $CPP names a directory.
9560if test -n "$CPP" && test -d "$CPP"; then
9561  CPP=
9562fi
9563if test -z "$CPP"; then
9564  if ${ac_cv_prog_CPP+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567      # Double quotes because CPP needs to be expanded
9568    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9569    do
9570      ac_preproc_ok=false
9571for ac_c_preproc_warn_flag in '' yes
9572do
9573  # Use a header file that comes with gcc, so configuring glibc
9574  # with a fresh cross-compiler works.
9575  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576  # <limits.h> exists even on freestanding compilers.
9577  # On the NeXT, cc -E runs the code through the compiler's parser,
9578  # not just through cpp. "Syntax error" is here to catch this case.
9579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580/* end confdefs.h.  */
9581#ifdef __STDC__
9582# include <limits.h>
9583#else
9584# include <assert.h>
9585#endif
9586                     Syntax error
9587_ACEOF
9588if ac_fn_c_try_cpp "$LINENO"; then :
9589
9590else
9591  # Broken: fails on valid input.
9592continue
9593fi
9594rm -f conftest.err conftest.i conftest.$ac_ext
9595
9596  # OK, works on sane cases.  Now check whether nonexistent headers
9597  # can be detected and how.
9598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599/* end confdefs.h.  */
9600#include <ac_nonexistent.h>
9601_ACEOF
9602if ac_fn_c_try_cpp "$LINENO"; then :
9603  # Broken: success on invalid input.
9604continue
9605else
9606  # Passes both tests.
9607ac_preproc_ok=:
9608break
9609fi
9610rm -f conftest.err conftest.i conftest.$ac_ext
9611
9612done
9613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9614rm -f conftest.i conftest.err conftest.$ac_ext
9615if $ac_preproc_ok; then :
9616  break
9617fi
9618
9619    done
9620    ac_cv_prog_CPP=$CPP
9621
9622fi
9623  CPP=$ac_cv_prog_CPP
9624else
9625  ac_cv_prog_CPP=$CPP
9626fi
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9628$as_echo "$CPP" >&6; }
9629ac_preproc_ok=false
9630for ac_c_preproc_warn_flag in '' yes
9631do
9632  # Use a header file that comes with gcc, so configuring glibc
9633  # with a fresh cross-compiler works.
9634  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9635  # <limits.h> exists even on freestanding compilers.
9636  # On the NeXT, cc -E runs the code through the compiler's parser,
9637  # not just through cpp. "Syntax error" is here to catch this case.
9638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640#ifdef __STDC__
9641# include <limits.h>
9642#else
9643# include <assert.h>
9644#endif
9645                     Syntax error
9646_ACEOF
9647if ac_fn_c_try_cpp "$LINENO"; then :
9648
9649else
9650  # Broken: fails on valid input.
9651continue
9652fi
9653rm -f conftest.err conftest.i conftest.$ac_ext
9654
9655  # OK, works on sane cases.  Now check whether nonexistent headers
9656  # can be detected and how.
9657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658/* end confdefs.h.  */
9659#include <ac_nonexistent.h>
9660_ACEOF
9661if ac_fn_c_try_cpp "$LINENO"; then :
9662  # Broken: success on invalid input.
9663continue
9664else
9665  # Passes both tests.
9666ac_preproc_ok=:
9667break
9668fi
9669rm -f conftest.err conftest.i conftest.$ac_ext
9670
9671done
9672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9673rm -f conftest.i conftest.err conftest.$ac_ext
9674if $ac_preproc_ok; then :
9675
9676else
9677  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9679as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9680See \`config.log' for more details" "$LINENO" 5; }
9681fi
9682
9683ac_ext=c
9684ac_cpp='$CPP $CPPFLAGS'
9685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9687ac_compiler_gnu=$ac_cv_c_compiler_gnu
9688
9689
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9691$as_echo_n "checking for ANSI C header files... " >&6; }
9692if ${ac_cv_header_stdc+:} false; then :
9693  $as_echo_n "(cached) " >&6
9694else
9695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697#include <stdlib.h>
9698#include <stdarg.h>
9699#include <string.h>
9700#include <float.h>
9701
9702#ifdef F77_DUMMY_MAIN
9703
9704#  ifdef __cplusplus
9705     extern "C"
9706#  endif
9707   int F77_DUMMY_MAIN() { return 1; }
9708
9709#endif
9710int
9711main ()
9712{
9713
9714  ;
9715  return 0;
9716}
9717_ACEOF
9718if ac_fn_c_try_compile "$LINENO"; then :
9719  ac_cv_header_stdc=yes
9720else
9721  ac_cv_header_stdc=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724
9725if test $ac_cv_header_stdc = yes; then
9726  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728/* end confdefs.h.  */
9729#include <string.h>
9730
9731_ACEOF
9732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9733  $EGREP "memchr" >/dev/null 2>&1; then :
9734
9735else
9736  ac_cv_header_stdc=no
9737fi
9738rm -f conftest*
9739
9740fi
9741
9742if test $ac_cv_header_stdc = yes; then
9743  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746#include <stdlib.h>
9747
9748_ACEOF
9749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9750  $EGREP "free" >/dev/null 2>&1; then :
9751
9752else
9753  ac_cv_header_stdc=no
9754fi
9755rm -f conftest*
9756
9757fi
9758
9759if test $ac_cv_header_stdc = yes; then
9760  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9761  if test "$cross_compiling" = yes; then :
9762  :
9763else
9764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h.  */
9766#include <ctype.h>
9767#include <stdlib.h>
9768#if ((' ' & 0x0FF) == 0x020)
9769# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9770# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9771#else
9772# define ISLOWER(c) \
9773                   (('a' <= (c) && (c) <= 'i') \
9774                     || ('j' <= (c) && (c) <= 'r') \
9775                     || ('s' <= (c) && (c) <= 'z'))
9776# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9777#endif
9778
9779#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9780int
9781main ()
9782{
9783  int i;
9784  for (i = 0; i < 256; i++)
9785    if (XOR (islower (i), ISLOWER (i))
9786        || toupper (i) != TOUPPER (i))
9787      return 2;
9788  return 0;
9789}
9790_ACEOF
9791if ac_fn_c_try_run "$LINENO"; then :
9792
9793else
9794  ac_cv_header_stdc=no
9795fi
9796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9797  conftest.$ac_objext conftest.beam conftest.$ac_ext
9798fi
9799
9800fi
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9803$as_echo "$ac_cv_header_stdc" >&6; }
9804if test $ac_cv_header_stdc = yes; then
9805
9806$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9807
9808fi
9809
9810# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9811for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9812                  inttypes.h stdint.h unistd.h
9813do :
9814  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9815ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9816"
9817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9818  cat >>confdefs.h <<_ACEOF
9819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9820_ACEOF
9821
9822fi
9823
9824done
9825
9826
9827for ac_header in dlfcn.h
9828do :
9829  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9830"
9831if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9832  cat >>confdefs.h <<_ACEOF
9833#define HAVE_DLFCN_H 1
9834_ACEOF
9835
9836fi
9837
9838done
9839
9840
9841
9842func_stripname_cnf ()
9843{
9844  case $2 in
9845  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9846  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9847  esac
9848} # func_stripname_cnf
9849
9850
9851# On Windows, shared C++ libraries do not work with the current libtool (it
9852# handles only exports for C functions, not C++). On all other systems, build
9853# shared libraries.
9854
9855  case $host_os in
9856    cygwin* | mingw* | msys* )
9857      # Check whether --enable-shared was given.
9858if test "${enable_shared+set}" = set; then :
9859  enableval=$enable_shared; p=${PACKAGE-default}
9860    case $enableval in
9861    yes) enable_shared=yes ;;
9862    no) enable_shared=no ;;
9863    *)
9864      enable_shared=no
9865      # Look at the argument we got.  We use all the common list separators.
9866      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9867      for pkg in $enableval; do
9868        IFS=$lt_save_ifs
9869        if test "X$pkg" = "X$p"; then
9870          enable_shared=yes
9871        fi
9872      done
9873      IFS=$lt_save_ifs
9874      ;;
9875    esac
9876else
9877  enable_shared=no
9878fi
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888      ;;
9889    *)
9890      # Check whether --enable-static was given.
9891if test "${enable_static+set}" = set; then :
9892  enableval=$enable_static; p=${PACKAGE-default}
9893    case $enableval in
9894    yes) enable_static=yes ;;
9895    no) enable_static=no ;;
9896    *)
9897     enable_static=no
9898      # Look at the argument we got.  We use all the common list separators.
9899      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9900      for pkg in $enableval; do
9901        IFS=$lt_save_ifs
9902        if test "X$pkg" = "X$p"; then
9903          enable_static=yes
9904        fi
9905      done
9906      IFS=$lt_save_ifs
9907      ;;
9908    esac
9909else
9910  enable_static=no
9911fi
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921      ;;
9922  esac
9923
9924# Create libtool
9925
9926
9927
9928
9929
9930# Set options
9931
9932
9933
9934        enable_dlopen=no
9935
9936
9937  enable_win32_dll=no
9938
9939
9940
9941
9942
9943# Check whether --with-pic was given.
9944if test "${with_pic+set}" = set; then :
9945  withval=$with_pic; lt_p=${PACKAGE-default}
9946    case $withval in
9947    yes|no) pic_mode=$withval ;;
9948    *)
9949      pic_mode=default
9950      # Look at the argument we got.  We use all the common list separators.
9951      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9952      for lt_pkg in $withval; do
9953        IFS=$lt_save_ifs
9954        if test "X$lt_pkg" = "X$lt_p"; then
9955          pic_mode=yes
9956        fi
9957      done
9958      IFS=$lt_save_ifs
9959      ;;
9960    esac
9961else
9962  pic_mode=default
9963fi
9964
9965
9966
9967
9968
9969
9970
9971
9972  # Check whether --enable-fast-install was given.
9973if test "${enable_fast_install+set}" = set; then :
9974  enableval=$enable_fast_install; p=${PACKAGE-default}
9975    case $enableval in
9976    yes) enable_fast_install=yes ;;
9977    no) enable_fast_install=no ;;
9978    *)
9979      enable_fast_install=no
9980      # Look at the argument we got.  We use all the common list separators.
9981      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9982      for pkg in $enableval; do
9983        IFS=$lt_save_ifs
9984        if test "X$pkg" = "X$p"; then
9985          enable_fast_install=yes
9986        fi
9987      done
9988      IFS=$lt_save_ifs
9989      ;;
9990    esac
9991else
9992  enable_fast_install=yes
9993fi
9994
9995
9996
9997
9998
9999
10000
10001
10002  shared_archive_member_spec=
10003case $host,$enable_shared in
10004power*-*-aix[5-9]*,yes)
10005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10006$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10007
10008# Check whether --with-aix-soname was given.
10009if test "${with_aix_soname+set}" = set; then :
10010  withval=$with_aix_soname; case $withval in
10011    aix|svr4|both)
10012      ;;
10013    *)
10014      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10015      ;;
10016    esac
10017    lt_cv_with_aix_soname=$with_aix_soname
10018else
10019  if ${lt_cv_with_aix_soname+:} false; then :
10020  $as_echo_n "(cached) " >&6
10021else
10022  lt_cv_with_aix_soname=aix
10023fi
10024
10025    with_aix_soname=$lt_cv_with_aix_soname
10026fi
10027
10028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10029$as_echo "$with_aix_soname" >&6; }
10030  if test aix != "$with_aix_soname"; then
10031    # For the AIX way of multilib, we name the shared archive member
10032    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10033    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10034    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10035    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10036    if test 64 = "${OBJECT_MODE-32}"; then
10037      shared_archive_member_spec=shr_64
10038    else
10039      shared_archive_member_spec=shr
10040    fi
10041  fi
10042  ;;
10043*)
10044  with_aix_soname=aix
10045  ;;
10046esac
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057# This can be used to rebuild libtool when needed
10058LIBTOOL_DEPS=$ltmain
10059
10060# Always use our own libtool.
10061LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092test -z "$LN_S" && LN_S="ln -s"
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107if test -n "${ZSH_VERSION+set}"; then
10108   setopt NO_GLOB_SUBST
10109fi
10110
10111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10112$as_echo_n "checking for objdir... " >&6; }
10113if ${lt_cv_objdir+:} false; then :
10114  $as_echo_n "(cached) " >&6
10115else
10116  rm -f .libs 2>/dev/null
10117mkdir .libs 2>/dev/null
10118if test -d .libs; then
10119  lt_cv_objdir=.libs
10120else
10121  # MS-DOS does not allow filenames that begin with a dot.
10122  lt_cv_objdir=_libs
10123fi
10124rmdir .libs 2>/dev/null
10125fi
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10127$as_echo "$lt_cv_objdir" >&6; }
10128objdir=$lt_cv_objdir
10129
10130
10131
10132
10133
10134cat >>confdefs.h <<_ACEOF
10135#define LT_OBJDIR "$lt_cv_objdir/"
10136_ACEOF
10137
10138
10139
10140
10141case $host_os in
10142aix3*)
10143  # AIX sometimes has problems with the GCC collect2 program.  For some
10144  # reason, if we set the COLLECT_NAMES environment variable, the problems
10145  # vanish in a puff of smoke.
10146  if test set != "${COLLECT_NAMES+set}"; then
10147    COLLECT_NAMES=
10148    export COLLECT_NAMES
10149  fi
10150  ;;
10151esac
10152
10153# Global variables:
10154ofile=libtool
10155can_build_shared=yes
10156
10157# All known linkers require a '.a' archive for static linking (except MSVC,
10158# which needs '.lib').
10159libext=a
10160
10161with_gnu_ld=$lt_cv_prog_gnu_ld
10162
10163old_CC=$CC
10164old_CFLAGS=$CFLAGS
10165
10166# Set sane defaults for various variables
10167test -z "$CC" && CC=cc
10168test -z "$LTCC" && LTCC=$CC
10169test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10170test -z "$LD" && LD=ld
10171test -z "$ac_objext" && ac_objext=o
10172
10173func_cc_basename $compiler
10174cc_basename=$func_cc_basename_result
10175
10176
10177# Only perform the check for file, if the check method requires it
10178test -z "$MAGIC_CMD" && MAGIC_CMD=file
10179case $deplibs_check_method in
10180file_magic*)
10181  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10182    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10183$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10184if ${lt_cv_path_MAGIC_CMD+:} false; then :
10185  $as_echo_n "(cached) " >&6
10186else
10187  case $MAGIC_CMD in
10188[\\/*] |  ?:[\\/]*)
10189  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10190  ;;
10191*)
10192  lt_save_MAGIC_CMD=$MAGIC_CMD
10193  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10194  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10195  for ac_dir in $ac_dummy; do
10196    IFS=$lt_save_ifs
10197    test -z "$ac_dir" && ac_dir=.
10198    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10199      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10200      if test -n "$file_magic_test_file"; then
10201        case $deplibs_check_method in
10202        "file_magic "*)
10203          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10204          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10205          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10206            $EGREP "$file_magic_regex" > /dev/null; then
10207            :
10208          else
10209            cat <<_LT_EOF 1>&2
10210
10211*** Warning: the command libtool uses to detect shared libraries,
10212*** $file_magic_cmd, produces output that libtool cannot recognize.
10213*** The result is that libtool may fail to recognize shared libraries
10214*** as such.  This will affect the creation of libtool libraries that
10215*** depend on shared libraries, but programs linked with such libtool
10216*** libraries will work regardless of this problem.  Nevertheless, you
10217*** may want to report the problem to your system manager and/or to
10218*** bug-libtool@gnu.org
10219
10220_LT_EOF
10221          fi ;;
10222        esac
10223      fi
10224      break
10225    fi
10226  done
10227  IFS=$lt_save_ifs
10228  MAGIC_CMD=$lt_save_MAGIC_CMD
10229  ;;
10230esac
10231fi
10232
10233MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10234if test -n "$MAGIC_CMD"; then
10235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10236$as_echo "$MAGIC_CMD" >&6; }
10237else
10238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239$as_echo "no" >&6; }
10240fi
10241
10242
10243
10244
10245
10246if test -z "$lt_cv_path_MAGIC_CMD"; then
10247  if test -n "$ac_tool_prefix"; then
10248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10249$as_echo_n "checking for file... " >&6; }
10250if ${lt_cv_path_MAGIC_CMD+:} false; then :
10251  $as_echo_n "(cached) " >&6
10252else
10253  case $MAGIC_CMD in
10254[\\/*] |  ?:[\\/]*)
10255  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10256  ;;
10257*)
10258  lt_save_MAGIC_CMD=$MAGIC_CMD
10259  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10260  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10261  for ac_dir in $ac_dummy; do
10262    IFS=$lt_save_ifs
10263    test -z "$ac_dir" && ac_dir=.
10264    if test -f "$ac_dir/file"; then
10265      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10266      if test -n "$file_magic_test_file"; then
10267        case $deplibs_check_method in
10268        "file_magic "*)
10269          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10270          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10271          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10272            $EGREP "$file_magic_regex" > /dev/null; then
10273            :
10274          else
10275            cat <<_LT_EOF 1>&2
10276
10277*** Warning: the command libtool uses to detect shared libraries,
10278*** $file_magic_cmd, produces output that libtool cannot recognize.
10279*** The result is that libtool may fail to recognize shared libraries
10280*** as such.  This will affect the creation of libtool libraries that
10281*** depend on shared libraries, but programs linked with such libtool
10282*** libraries will work regardless of this problem.  Nevertheless, you
10283*** may want to report the problem to your system manager and/or to
10284*** bug-libtool@gnu.org
10285
10286_LT_EOF
10287          fi ;;
10288        esac
10289      fi
10290      break
10291    fi
10292  done
10293  IFS=$lt_save_ifs
10294  MAGIC_CMD=$lt_save_MAGIC_CMD
10295  ;;
10296esac
10297fi
10298
10299MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10300if test -n "$MAGIC_CMD"; then
10301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10302$as_echo "$MAGIC_CMD" >&6; }
10303else
10304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305$as_echo "no" >&6; }
10306fi
10307
10308
10309  else
10310    MAGIC_CMD=:
10311  fi
10312fi
10313
10314  fi
10315  ;;
10316esac
10317
10318# Use C for the default configuration in the libtool script
10319
10320lt_save_CC=$CC
10321ac_ext=c
10322ac_cpp='$CPP $CPPFLAGS'
10323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10325ac_compiler_gnu=$ac_cv_c_compiler_gnu
10326
10327
10328# Source file extension for C test sources.
10329ac_ext=c
10330
10331# Object file extension for compiled C test sources.
10332objext=o
10333objext=$objext
10334
10335# Code to be used in simple compile tests
10336lt_simple_compile_test_code="int some_variable = 0;"
10337
10338# Code to be used in simple link tests
10339lt_simple_link_test_code='int main(){return(0);}'
10340
10341
10342
10343
10344
10345
10346
10347# If no C compiler was specified, use CC.
10348LTCC=${LTCC-"$CC"}
10349
10350# If no C compiler flags were specified, use CFLAGS.
10351LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10352
10353# Allow CC to be a program name with arguments.
10354compiler=$CC
10355
10356# Save the default compiler, since it gets overwritten when the other
10357# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10358compiler_DEFAULT=$CC
10359
10360# save warnings/boilerplate of simple test code
10361ac_outfile=conftest.$ac_objext
10362echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10363eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10364_lt_compiler_boilerplate=`cat conftest.err`
10365$RM conftest*
10366
10367ac_outfile=conftest.$ac_objext
10368echo "$lt_simple_link_test_code" >conftest.$ac_ext
10369eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10370_lt_linker_boilerplate=`cat conftest.err`
10371$RM -r conftest*
10372
10373
10374if test -n "$compiler"; then
10375
10376lt_prog_compiler_no_builtin_flag=
10377
10378if test yes = "$GCC"; then
10379  case $cc_basename in
10380  nvcc*)
10381    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10382  *)
10383    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10384  esac
10385
10386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10387$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10388if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10389  $as_echo_n "(cached) " >&6
10390else
10391  lt_cv_prog_compiler_rtti_exceptions=no
10392   ac_outfile=conftest.$ac_objext
10393   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10394   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10395   # Insert the option either (1) after the last *FLAGS variable, or
10396   # (2) before a word containing "conftest.", or (3) at the end.
10397   # Note that $ac_compile itself does not contain backslashes and begins
10398   # with a dollar sign (not a hyphen), so the echo should work correctly.
10399   # The option is referenced via a variable to avoid confusing sed.
10400   lt_compile=`echo "$ac_compile" | $SED \
10401   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10402   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10403   -e 's:$: $lt_compiler_flag:'`
10404   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10405   (eval "$lt_compile" 2>conftest.err)
10406   ac_status=$?
10407   cat conftest.err >&5
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   if (exit $ac_status) && test -s "$ac_outfile"; then
10410     # The compiler can only warn and ignore the option if not recognized
10411     # So say no if there are warnings other than the usual output.
10412     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10413     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10414     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10415       lt_cv_prog_compiler_rtti_exceptions=yes
10416     fi
10417   fi
10418   $RM conftest*
10419
10420fi
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10422$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10423
10424if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10425    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10426else
10427    :
10428fi
10429
10430fi
10431
10432
10433
10434
10435
10436
10437  lt_prog_compiler_wl=
10438lt_prog_compiler_pic=
10439lt_prog_compiler_static=
10440
10441
10442  if test yes = "$GCC"; then
10443    lt_prog_compiler_wl='-Wl,'
10444    lt_prog_compiler_static='-static'
10445
10446    case $host_os in
10447      aix*)
10448      # All AIX code is PIC.
10449      if test ia64 = "$host_cpu"; then
10450        # AIX 5 now supports IA64 processor
10451        lt_prog_compiler_static='-Bstatic'
10452      fi
10453      lt_prog_compiler_pic='-fPIC'
10454      ;;
10455
10456    amigaos*)
10457      case $host_cpu in
10458      powerpc)
10459            # see comment about AmigaOS4 .so support
10460            lt_prog_compiler_pic='-fPIC'
10461        ;;
10462      m68k)
10463            # FIXME: we need at least 68020 code to build shared libraries, but
10464            # adding the '-m68020' flag to GCC prevents building anything better,
10465            # like '-m68040'.
10466            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10467        ;;
10468      esac
10469      ;;
10470
10471    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10472      # PIC is the default for these OSes.
10473      ;;
10474
10475    mingw* | cygwin* | pw32* | os2* | cegcc*)
10476      # This hack is so that the source file can tell whether it is being
10477      # built for inclusion in a dll (and should export symbols for example).
10478      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10479      # (--disable-auto-import) libraries
10480      lt_prog_compiler_pic='-DDLL_EXPORT'
10481      case $host_os in
10482      os2*)
10483        lt_prog_compiler_static='$wl-static'
10484        ;;
10485      esac
10486      ;;
10487
10488    darwin* | rhapsody*)
10489      # PIC is the default on this platform
10490      # Common symbols not allowed in MH_DYLIB files
10491      lt_prog_compiler_pic='-fno-common'
10492      ;;
10493
10494    haiku*)
10495      # PIC is the default for Haiku.
10496      # The "-static" flag exists, but is broken.
10497      lt_prog_compiler_static=
10498      ;;
10499
10500    hpux*)
10501      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10502      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10503      # sets the default TLS model and affects inlining.
10504      case $host_cpu in
10505      hppa*64*)
10506        # +Z the default
10507        ;;
10508      *)
10509        lt_prog_compiler_pic='-fPIC'
10510        ;;
10511      esac
10512      ;;
10513
10514    interix[3-9]*)
10515      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10516      # Instead, we relocate shared libraries at runtime.
10517      ;;
10518
10519    msdosdjgpp*)
10520      # Just because we use GCC doesn't mean we suddenly get shared libraries
10521      # on systems that don't support them.
10522      lt_prog_compiler_can_build_shared=no
10523      enable_shared=no
10524      ;;
10525
10526    *nto* | *qnx*)
10527      # QNX uses GNU C++, but need to define -shared option too, otherwise
10528      # it will coredump.
10529      lt_prog_compiler_pic='-fPIC -shared'
10530      ;;
10531
10532    sysv4*MP*)
10533      if test -d /usr/nec; then
10534        lt_prog_compiler_pic=-Kconform_pic
10535      fi
10536      ;;
10537
10538    *)
10539      lt_prog_compiler_pic='-fPIC'
10540      ;;
10541    esac
10542
10543    case $cc_basename in
10544    nvcc*) # Cuda Compiler Driver 2.2
10545      lt_prog_compiler_wl='-Xlinker '
10546      if test -n "$lt_prog_compiler_pic"; then
10547        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10548      fi
10549      ;;
10550    esac
10551  else
10552    # PORTME Check for flag to pass linker flags through the system compiler.
10553    case $host_os in
10554    aix*)
10555      lt_prog_compiler_wl='-Wl,'
10556      if test ia64 = "$host_cpu"; then
10557        # AIX 5 now supports IA64 processor
10558        lt_prog_compiler_static='-Bstatic'
10559      else
10560        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10561      fi
10562      ;;
10563
10564    darwin* | rhapsody*)
10565      # PIC is the default on this platform
10566      # Common symbols not allowed in MH_DYLIB files
10567      lt_prog_compiler_pic='-fno-common'
10568      case $cc_basename in
10569      nagfor*)
10570        # NAG Fortran compiler
10571        lt_prog_compiler_wl='-Wl,-Wl,,'
10572        lt_prog_compiler_pic='-PIC'
10573        lt_prog_compiler_static='-Bstatic'
10574        ;;
10575      esac
10576      ;;
10577
10578    mingw* | cygwin* | pw32* | os2* | cegcc*)
10579      # This hack is so that the source file can tell whether it is being
10580      # built for inclusion in a dll (and should export symbols for example).
10581      lt_prog_compiler_pic='-DDLL_EXPORT'
10582      case $host_os in
10583      os2*)
10584        lt_prog_compiler_static='$wl-static'
10585        ;;
10586      esac
10587      ;;
10588
10589    hpux9* | hpux10* | hpux11*)
10590      lt_prog_compiler_wl='-Wl,'
10591      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10592      # not for PA HP-UX.
10593      case $host_cpu in
10594      hppa*64*|ia64*)
10595        # +Z the default
10596        ;;
10597      *)
10598        lt_prog_compiler_pic='+Z'
10599        ;;
10600      esac
10601      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10602      lt_prog_compiler_static='$wl-a ${wl}archive'
10603      ;;
10604
10605    irix5* | irix6* | nonstopux*)
10606      lt_prog_compiler_wl='-Wl,'
10607      # PIC (with -KPIC) is the default.
10608      lt_prog_compiler_static='-non_shared'
10609      ;;
10610
10611    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10612      case $cc_basename in
10613      # old Intel for x86_64, which still supported -KPIC.
10614      ecc*)
10615        lt_prog_compiler_wl='-Wl,'
10616        lt_prog_compiler_pic='-KPIC'
10617        lt_prog_compiler_static='-static'
10618        ;;
10619      # icc used to be incompatible with GCC.
10620      # ICC 10 doesn't accept -KPIC any more.
10621      icc* | ifort*)
10622        lt_prog_compiler_wl='-Wl,'
10623        lt_prog_compiler_pic='-fPIC'
10624        lt_prog_compiler_static='-static'
10625        ;;
10626      # Lahey Fortran 8.1.
10627      lf95*)
10628        lt_prog_compiler_wl='-Wl,'
10629        lt_prog_compiler_pic='--shared'
10630        lt_prog_compiler_static='--static'
10631        ;;
10632      nagfor*)
10633        # NAG Fortran compiler
10634        lt_prog_compiler_wl='-Wl,-Wl,,'
10635        lt_prog_compiler_pic='-PIC'
10636        lt_prog_compiler_static='-Bstatic'
10637        ;;
10638      tcc*)
10639        # Fabrice Bellard et al's Tiny C Compiler
10640        lt_prog_compiler_wl='-Wl,'
10641        lt_prog_compiler_pic='-fPIC'
10642        lt_prog_compiler_static='-static'
10643        ;;
10644      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10645        # Portland Group compilers (*not* the Pentium gcc compiler,
10646        # which looks to be a dead project)
10647        lt_prog_compiler_wl='-Wl,'
10648        lt_prog_compiler_pic='-fpic'
10649        lt_prog_compiler_static='-Bstatic'
10650        ;;
10651      ccc*)
10652        lt_prog_compiler_wl='-Wl,'
10653        # All Alpha code is PIC.
10654        lt_prog_compiler_static='-non_shared'
10655        ;;
10656      xl* | bgxl* | bgf* | mpixl*)
10657        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10658        lt_prog_compiler_wl='-Wl,'
10659        lt_prog_compiler_pic='-qpic'
10660        lt_prog_compiler_static='-qstaticlink'
10661        ;;
10662      *)
10663        case `$CC -V 2>&1 | sed 5q` in
10664        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10665          # Sun Fortran 8.3 passes all unrecognized flags to the linker
10666          lt_prog_compiler_pic='-KPIC'
10667          lt_prog_compiler_static='-Bstatic'
10668          lt_prog_compiler_wl=''
10669          ;;
10670        *Sun\ F* | *Sun*Fortran*)
10671          lt_prog_compiler_pic='-KPIC'
10672          lt_prog_compiler_static='-Bstatic'
10673          lt_prog_compiler_wl='-Qoption ld '
10674          ;;
10675        *Sun\ C*)
10676          # Sun C 5.9
10677          lt_prog_compiler_pic='-KPIC'
10678          lt_prog_compiler_static='-Bstatic'
10679          lt_prog_compiler_wl='-Wl,'
10680          ;;
10681        *Intel*\ [CF]*Compiler*)
10682          lt_prog_compiler_wl='-Wl,'
10683          lt_prog_compiler_pic='-fPIC'
10684          lt_prog_compiler_static='-static'
10685          ;;
10686        *Portland\ Group*)
10687          lt_prog_compiler_wl='-Wl,'
10688          lt_prog_compiler_pic='-fpic'
10689          lt_prog_compiler_static='-Bstatic'
10690          ;;
10691        esac
10692        ;;
10693      esac
10694      ;;
10695
10696    newsos6)
10697      lt_prog_compiler_pic='-KPIC'
10698      lt_prog_compiler_static='-Bstatic'
10699      ;;
10700
10701    *nto* | *qnx*)
10702      # QNX uses GNU C++, but need to define -shared option too, otherwise
10703      # it will coredump.
10704      lt_prog_compiler_pic='-fPIC -shared'
10705      ;;
10706
10707    osf3* | osf4* | osf5*)
10708      lt_prog_compiler_wl='-Wl,'
10709      # All OSF/1 code is PIC.
10710      lt_prog_compiler_static='-non_shared'
10711      ;;
10712
10713    rdos*)
10714      lt_prog_compiler_static='-non_shared'
10715      ;;
10716
10717    solaris*)
10718      lt_prog_compiler_pic='-KPIC'
10719      lt_prog_compiler_static='-Bstatic'
10720      case $cc_basename in
10721      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10722        lt_prog_compiler_wl='-Qoption ld ';;
10723      *)
10724        lt_prog_compiler_wl='-Wl,';;
10725      esac
10726      ;;
10727
10728    sunos4*)
10729      lt_prog_compiler_wl='-Qoption ld '
10730      lt_prog_compiler_pic='-PIC'
10731      lt_prog_compiler_static='-Bstatic'
10732      ;;
10733
10734    sysv4 | sysv4.2uw2* | sysv4.3*)
10735      lt_prog_compiler_wl='-Wl,'
10736      lt_prog_compiler_pic='-KPIC'
10737      lt_prog_compiler_static='-Bstatic'
10738      ;;
10739
10740    sysv4*MP*)
10741      if test -d /usr/nec; then
10742        lt_prog_compiler_pic='-Kconform_pic'
10743        lt_prog_compiler_static='-Bstatic'
10744      fi
10745      ;;
10746
10747    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10748      lt_prog_compiler_wl='-Wl,'
10749      lt_prog_compiler_pic='-KPIC'
10750      lt_prog_compiler_static='-Bstatic'
10751      ;;
10752
10753    unicos*)
10754      lt_prog_compiler_wl='-Wl,'
10755      lt_prog_compiler_can_build_shared=no
10756      ;;
10757
10758    uts4*)
10759      lt_prog_compiler_pic='-pic'
10760      lt_prog_compiler_static='-Bstatic'
10761      ;;
10762
10763    *)
10764      lt_prog_compiler_can_build_shared=no
10765      ;;
10766    esac
10767  fi
10768
10769case $host_os in
10770  # For platforms that do not support PIC, -DPIC is meaningless:
10771  *djgpp*)
10772    lt_prog_compiler_pic=
10773    ;;
10774  *)
10775    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10776    ;;
10777esac
10778
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10780$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10781if ${lt_cv_prog_compiler_pic+:} false; then :
10782  $as_echo_n "(cached) " >&6
10783else
10784  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10785fi
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10787$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10788lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10789
10790#
10791# Check to make sure the PIC flag actually works.
10792#
10793if test -n "$lt_prog_compiler_pic"; then
10794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10795$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10796if ${lt_cv_prog_compiler_pic_works+:} false; then :
10797  $as_echo_n "(cached) " >&6
10798else
10799  lt_cv_prog_compiler_pic_works=no
10800   ac_outfile=conftest.$ac_objext
10801   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10802   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10803   # Insert the option either (1) after the last *FLAGS variable, or
10804   # (2) before a word containing "conftest.", or (3) at the end.
10805   # Note that $ac_compile itself does not contain backslashes and begins
10806   # with a dollar sign (not a hyphen), so the echo should work correctly.
10807   # The option is referenced via a variable to avoid confusing sed.
10808   lt_compile=`echo "$ac_compile" | $SED \
10809   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10810   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10811   -e 's:$: $lt_compiler_flag:'`
10812   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10813   (eval "$lt_compile" 2>conftest.err)
10814   ac_status=$?
10815   cat conftest.err >&5
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   if (exit $ac_status) && test -s "$ac_outfile"; then
10818     # The compiler can only warn and ignore the option if not recognized
10819     # So say no if there are warnings other than the usual output.
10820     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10821     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10822     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10823       lt_cv_prog_compiler_pic_works=yes
10824     fi
10825   fi
10826   $RM conftest*
10827
10828fi
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10830$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10831
10832if test yes = "$lt_cv_prog_compiler_pic_works"; then
10833    case $lt_prog_compiler_pic in
10834     "" | " "*) ;;
10835     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10836     esac
10837else
10838    lt_prog_compiler_pic=
10839     lt_prog_compiler_can_build_shared=no
10840fi
10841
10842fi
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854#
10855# Check to make sure the static flag actually works.
10856#
10857wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10859$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10860if ${lt_cv_prog_compiler_static_works+:} false; then :
10861  $as_echo_n "(cached) " >&6
10862else
10863  lt_cv_prog_compiler_static_works=no
10864   save_LDFLAGS=$LDFLAGS
10865   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10866   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10867   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10868     # The linker can only warn and ignore the option if not recognized
10869     # So say no if there are warnings
10870     if test -s conftest.err; then
10871       # Append any errors to the config.log.
10872       cat conftest.err 1>&5
10873       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10874       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10875       if diff conftest.exp conftest.er2 >/dev/null; then
10876         lt_cv_prog_compiler_static_works=yes
10877       fi
10878     else
10879       lt_cv_prog_compiler_static_works=yes
10880     fi
10881   fi
10882   $RM -r conftest*
10883   LDFLAGS=$save_LDFLAGS
10884
10885fi
10886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10887$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10888
10889if test yes = "$lt_cv_prog_compiler_static_works"; then
10890    :
10891else
10892    lt_prog_compiler_static=
10893fi
10894
10895
10896
10897
10898
10899
10900
10901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10902$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10903if ${lt_cv_prog_compiler_c_o+:} false; then :
10904  $as_echo_n "(cached) " >&6
10905else
10906  lt_cv_prog_compiler_c_o=no
10907   $RM -r conftest 2>/dev/null
10908   mkdir conftest
10909   cd conftest
10910   mkdir out
10911   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10912
10913   lt_compiler_flag="-o out/conftest2.$ac_objext"
10914   # Insert the option either (1) after the last *FLAGS variable, or
10915   # (2) before a word containing "conftest.", or (3) at the end.
10916   # Note that $ac_compile itself does not contain backslashes and begins
10917   # with a dollar sign (not a hyphen), so the echo should work correctly.
10918   lt_compile=`echo "$ac_compile" | $SED \
10919   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10920   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10921   -e 's:$: $lt_compiler_flag:'`
10922   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10923   (eval "$lt_compile" 2>out/conftest.err)
10924   ac_status=$?
10925   cat out/conftest.err >&5
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10928   then
10929     # The compiler can only warn and ignore the option if not recognized
10930     # So say no if there are warnings
10931     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10932     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10933     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10934       lt_cv_prog_compiler_c_o=yes
10935     fi
10936   fi
10937   chmod u+w . 2>&5
10938   $RM conftest*
10939   # SGI C++ compiler will create directory out/ii_files/ for
10940   # template instantiation
10941   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10942   $RM out/* && rmdir out
10943   cd ..
10944   $RM -r conftest
10945   $RM conftest*
10946
10947fi
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10949$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10950
10951
10952
10953
10954
10955
10956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10958if ${lt_cv_prog_compiler_c_o+:} false; then :
10959  $as_echo_n "(cached) " >&6
10960else
10961  lt_cv_prog_compiler_c_o=no
10962   $RM -r conftest 2>/dev/null
10963   mkdir conftest
10964   cd conftest
10965   mkdir out
10966   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10967
10968   lt_compiler_flag="-o out/conftest2.$ac_objext"
10969   # Insert the option either (1) after the last *FLAGS variable, or
10970   # (2) before a word containing "conftest.", or (3) at the end.
10971   # Note that $ac_compile itself does not contain backslashes and begins
10972   # with a dollar sign (not a hyphen), so the echo should work correctly.
10973   lt_compile=`echo "$ac_compile" | $SED \
10974   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10975   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10976   -e 's:$: $lt_compiler_flag:'`
10977   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10978   (eval "$lt_compile" 2>out/conftest.err)
10979   ac_status=$?
10980   cat out/conftest.err >&5
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10983   then
10984     # The compiler can only warn and ignore the option if not recognized
10985     # So say no if there are warnings
10986     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10987     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10988     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10989       lt_cv_prog_compiler_c_o=yes
10990     fi
10991   fi
10992   chmod u+w . 2>&5
10993   $RM conftest*
10994   # SGI C++ compiler will create directory out/ii_files/ for
10995   # template instantiation
10996   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10997   $RM out/* && rmdir out
10998   cd ..
10999   $RM -r conftest
11000   $RM conftest*
11001
11002fi
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11004$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11005
11006
11007
11008
11009hard_links=nottested
11010if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11011  # do not overwrite the value of need_locks provided by the user
11012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11013$as_echo_n "checking if we can lock with hard links... " >&6; }
11014  hard_links=yes
11015  $RM conftest*
11016  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11017  touch conftest.a
11018  ln conftest.a conftest.b 2>&5 || hard_links=no
11019  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11021$as_echo "$hard_links" >&6; }
11022  if test no = "$hard_links"; then
11023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11024$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11025    need_locks=warn
11026  fi
11027else
11028  need_locks=no
11029fi
11030
11031
11032
11033
11034
11035
11036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11037$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11038
11039  runpath_var=
11040  allow_undefined_flag=
11041  always_export_symbols=no
11042  archive_cmds=
11043  archive_expsym_cmds=
11044  compiler_needs_object=no
11045  enable_shared_with_static_runtimes=no
11046  export_dynamic_flag_spec=
11047  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11048  hardcode_automatic=no
11049  hardcode_direct=no
11050  hardcode_direct_absolute=no
11051  hardcode_libdir_flag_spec=
11052  hardcode_libdir_separator=
11053  hardcode_minus_L=no
11054  hardcode_shlibpath_var=unsupported
11055  inherit_rpath=no
11056  link_all_deplibs=unknown
11057  module_cmds=
11058  module_expsym_cmds=
11059  old_archive_from_new_cmds=
11060  old_archive_from_expsyms_cmds=
11061  thread_safe_flag_spec=
11062  whole_archive_flag_spec=
11063  # include_expsyms should be a list of space-separated symbols to be *always*
11064  # included in the symbol list
11065  include_expsyms=
11066  # exclude_expsyms can be an extended regexp of symbols to exclude
11067  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11068  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11069  # as well as any symbol that contains 'd'.
11070  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11071  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11072  # platforms (ab)use it in PIC code, but their linkers get confused if