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

Last change on this file since 2334 was 2334, checked in by lou, 9 months ago

Install .pc files. Fix collateral damage from BuildTools? r3848.

  • Property svn:executable set to *
File size: 846.4 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
646OSICLPUNITTEST_CFLAGS_NOPC
647OSICLPUNITTEST_LFLAGS_NOPC
648OSICLPLIB_CFLAGS_NOPC
649OSICLPLIB_LFLAGS_NOPC
650CLPLIB_CFLAGS_NOPC
651CLPLIB_LFLAGS_NOPC
652COIN_CXX_IS_CL_FALSE
653COIN_CXX_IS_CL_TRUE
654coin_doxy_tagfiles
655COIN_HAS_LATEX_FALSE
656COIN_HAS_LATEX_TRUE
657COIN_HAS_DOXYGEN_FALSE
658COIN_HAS_DOXYGEN_TRUE
659coin_doxy_logname
660coin_doxy_tagname
661coin_doxy_usedot
662coin_have_latex
663coin_have_doxygen
664EXAMPLE_CLEAN_FILES
665EXAMPLE_UNCOMP_FILES
666EXAMPLE_DIST_FILES
667COIN_VPATH_BUILD_FALSE
668COIN_VPATH_BUILD_TRUE
669COIN_HAS_READLINE_FALSE
670COIN_HAS_READLINE_TRUE
671COIN_HAS_ASL_FALSE
672COIN_HAS_ASL_TRUE
673COIN_HAS_WSMP_FALSE
674COIN_HAS_WSMP_TRUE
675COIN_HAS_MUMPS_FALSE
676COIN_HAS_MUMPS_TRUE
677COIN_HAS_GLPK_FALSE
678COIN_HAS_GLPK_TRUE
679COIN_HAS_CHOLMOD_FALSE
680COIN_HAS_CHOLMOD_TRUE
681COIN_HAS_AMD_FALSE
682COIN_HAS_AMD_TRUE
683COIN_HAS_ABC_FALSE
684COIN_HAS_ABC_TRUE
685NETLIB_DATA
686COIN_HAS_NETLIB_FALSE
687COIN_HAS_NETLIB_TRUE
688SAMPLE_DATA
689COIN_HAS_SAMPLE_FALSE
690COIN_HAS_SAMPLE_TRUE
691COIN_HAS_OSITESTS_FALSE
692COIN_HAS_OSITESTS_TRUE
693OSICLPUNITTEST_PCFILES
694OSICLPUNITTEST_CFLAGS
695OSICLPUNITTEST_LFLAGS
696COIN_HAS_OSI_FALSE
697COIN_HAS_OSI_TRUE
698OSICLPLIB_PCFILES
699OSICLPLIB_CFLAGS
700OSICLPLIB_LFLAGS
701COIN_HAS_COINUTILS_FALSE
702COIN_HAS_COINUTILS_TRUE
703CLPLIB_PCFILES
704CLPLIB_CFLAGS
705CLPLIB_LFLAGS
706COIN_PKG_CONFIG_PATH
707COIN_HAS_PKGCONFIG_FALSE
708COIN_HAS_PKGCONFIG_TRUE
709ac_ct_PKG_CONFIG
710PKG_CONFIG
711DEPENDENCY_LINKING_FALSE
712DEPENDENCY_LINKING_TRUE
713LT_LDFLAGS
714CXXCPP
715CPP
716LT_SYS_LIBRARY_PATH
717OTOOL64
718OTOOL
719LIPO
720NMEDIT
721DSYMUTIL
722MANIFEST_TOOL
723RANLIB
724ac_ct_AR
725AR
726DLLTOOL
727OBJDUMP
728LN_S
729NM
730ac_ct_DUMPBIN
731DUMPBIN
732LD
733FGREP
734EGREP
735GREP
736SED
737LIBTOOL
738FLIBS
739ac_ct_F77
740FFLAGS
741F77
742am__fastdepCXX_FALSE
743am__fastdepCXX_TRUE
744CXXDEPMODE
745ac_ct_CXX
746CXXFLAGS
747CXX
748am__fastdepCC_FALSE
749am__fastdepCC_TRUE
750CCDEPMODE
751am__nodep
752AMDEPBACKSLASH
753AMDEP_FALSE
754AMDEP_TRUE
755am__quote
756am__include
757DEPDIR
758OBJEXT
759EXEEXT
760ac_ct_CC
761CPPFLAGS
762LDFLAGS
763CFLAGS
764CC
765MAINT
766MAINTAINER_MODE_FALSE
767MAINTAINER_MODE_TRUE
768am__untar
769am__tar
770AMTAR
771am__leading_dot
772SET_MAKE
773AWK
774mkdir_p
775MKDIR_P
776INSTALL_STRIP_PROGRAM
777STRIP
778install_sh
779MAKEINFO
780AUTOHEADER
781AUTOMAKE
782AUTOCONF
783ACLOCAL
784VERSION
785PACKAGE
786CYGPATH_W
787am__isrc
788INSTALL_DATA
789INSTALL_SCRIPT
790INSTALL_PROGRAM
791AM_BACKSLASH
792AM_DEFAULT_VERBOSITY
793AM_DEFAULT_V
794AM_V
795host_os
796host_vendor
797host_cpu
798host
799build_os
800build_vendor
801build_cpu
802build
803ALWAYS_FALSE_FALSE
804ALWAYS_FALSE_TRUE
805CLP_SVN_REV
806have_svnversion
807target_alias
808host_alias
809build_alias
810LIBS
811ECHO_T
812ECHO_N
813ECHO_C
814DEFS
815mandir
816localedir
817libdir
818psdir
819pdfdir
820dvidir
821htmldir
822infodir
823docdir
824oldincludedir
825includedir
826localstatedir
827sharedstatedir
828sysconfdir
829datadir
830datarootdir
831libexecdir
832sbindir
833bindir
834program_transform_name
835prefix
836exec_prefix
837PACKAGE_URL
838PACKAGE_BUGREPORT
839PACKAGE_STRING
840PACKAGE_VERSION
841PACKAGE_TARNAME
842PACKAGE_NAME
843PATH_SEPARATOR
844SHELL'
845ac_subst_files=''
846ac_user_opts='
847enable_option_checking
848enable_msvc
849enable_silent_rules
850enable_maintainer_mode
851enable_dependency_tracking
852enable_shared
853enable_static
854with_pic
855enable_fast_install
856with_aix_soname
857with_gnu_ld
858with_sysroot
859enable_libtool_lock
860enable_dependency_linking
861with_coinutils
862with_coinutils_lflags
863with_coinutils_cflags
864with_osi
865with_osi_lflags
866with_osi_cflags
867with_ositests
868with_ositests_lflags
869with_ositests_cflags
870with_sample
871with_sample_data
872with_netlib
873with_netlib_data
874enable_aboca
875with_amd
876with_amd_lflags
877with_amd_cflags
878with_cholmod
879with_cholmod_lflags
880with_cholmod_cflags
881with_glpk
882with_glpk_lflags
883with_glpk_cflags
884with_mumps
885with_mumps_lflags
886with_mumps_cflags
887with_wsmp
888with_wsmp_lflags
889with_wsmp_cflags
890with_asl
891with_asl_lflags
892with_asl_cflags
893enable_readline
894with_dot
895'
896      ac_precious_vars='build_alias
897host_alias
898target_alias
899CC
900CFLAGS
901LDFLAGS
902LIBS
903CPPFLAGS
904CXX
905CXXFLAGS
906CCC
907F77
908FFLAGS
909LT_SYS_LIBRARY_PATH
910CPP
911CXXCPP
912PKG_CONFIG'
913
914
915# Initialize some variables set by options.
916ac_init_help=
917ac_init_version=false
918ac_unrecognized_opts=
919ac_unrecognized_sep=
920# The variables have the same names as the options, with
921# dashes changed to underlines.
922cache_file=/dev/null
923exec_prefix=NONE
924no_create=
925no_recursion=
926prefix=NONE
927program_prefix=NONE
928program_suffix=NONE
929program_transform_name=s,x,x,
930silent=
931site=
932srcdir=
933verbose=
934x_includes=NONE
935x_libraries=NONE
936
937# Installation directory options.
938# These are left unexpanded so users can "make install exec_prefix=/foo"
939# and all the variables that are supposed to be based on exec_prefix
940# by default will actually change.
941# Use braces instead of parens because sh, perl, etc. also accept them.
942# (The list follows the same order as the GNU Coding Standards.)
943bindir='${exec_prefix}/bin'
944sbindir='${exec_prefix}/sbin'
945libexecdir='${exec_prefix}/libexec'
946datarootdir='${prefix}/share'
947datadir='${datarootdir}'
948sysconfdir='${prefix}/etc'
949sharedstatedir='${prefix}/com'
950localstatedir='${prefix}/var'
951includedir='${prefix}/include'
952oldincludedir='/usr/include'
953docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954infodir='${datarootdir}/info'
955htmldir='${docdir}'
956dvidir='${docdir}'
957pdfdir='${docdir}'
958psdir='${docdir}'
959libdir='${exec_prefix}/lib'
960localedir='${datarootdir}/locale'
961mandir='${datarootdir}/man'
962
963ac_prev=
964ac_dashdash=
965for ac_option
966do
967  # If the previous option needs an argument, assign it.
968  if test -n "$ac_prev"; then
969    eval $ac_prev=\$ac_option
970    ac_prev=
971    continue
972  fi
973
974  case $ac_option in
975  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976  *=)   ac_optarg= ;;
977  *)    ac_optarg=yes ;;
978  esac
979
980  # Accept the important Cygnus configure options, so we can diagnose typos.
981
982  case $ac_dashdash$ac_option in
983  --)
984    ac_dashdash=yes ;;
985
986  -bindir | --bindir | --bindi | --bind | --bin | --bi)
987    ac_prev=bindir ;;
988  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989    bindir=$ac_optarg ;;
990
991  -build | --build | --buil | --bui | --bu)
992    ac_prev=build_alias ;;
993  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994    build_alias=$ac_optarg ;;
995
996  -cache-file | --cache-file | --cache-fil | --cache-fi \
997  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998    ac_prev=cache_file ;;
999  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001    cache_file=$ac_optarg ;;
1002
1003  --config-cache | -C)
1004    cache_file=config.cache ;;
1005
1006  -datadir | --datadir | --datadi | --datad)
1007    ac_prev=datadir ;;
1008  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009    datadir=$ac_optarg ;;
1010
1011  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012  | --dataroo | --dataro | --datar)
1013    ac_prev=datarootdir ;;
1014  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016    datarootdir=$ac_optarg ;;
1017
1018  -disable-* | --disable-*)
1019    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020    # Reject names that are not valid shell variable names.
1021    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022      as_fn_error $? "invalid feature name: $ac_useropt"
1023    ac_useropt_orig=$ac_useropt
1024    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025    case $ac_user_opts in
1026      *"
1027"enable_$ac_useropt"
1028"*) ;;
1029      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030         ac_unrecognized_sep=', ';;
1031    esac
1032    eval enable_$ac_useropt=no ;;
1033
1034  -docdir | --docdir | --docdi | --doc | --do)
1035    ac_prev=docdir ;;
1036  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037    docdir=$ac_optarg ;;
1038
1039  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040    ac_prev=dvidir ;;
1041  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042    dvidir=$ac_optarg ;;
1043
1044  -enable-* | --enable-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      as_fn_error $? "invalid feature name: $ac_useropt"
1049    ac_useropt_orig=$ac_useropt
1050    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051    case $ac_user_opts in
1052      *"
1053"enable_$ac_useropt"
1054"*) ;;
1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056         ac_unrecognized_sep=', ';;
1057    esac
1058    eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062  | --exec | --exe | --ex)
1063    ac_prev=exec_prefix ;;
1064  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066  | --exec=* | --exe=* | --ex=*)
1067    exec_prefix=$ac_optarg ;;
1068
1069  -gas | --gas | --ga | --g)
1070    # Obsolete; use --with-gas.
1071    with_gas=yes ;;
1072
1073  -help | --help | --hel | --he | -h)
1074    ac_init_help=long ;;
1075  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076    ac_init_help=recursive ;;
1077  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078    ac_init_help=short ;;
1079
1080  -host | --host | --hos | --ho)
1081    ac_prev=host_alias ;;
1082  -host=* | --host=* | --hos=* | --ho=*)
1083    host_alias=$ac_optarg ;;
1084
1085  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086    ac_prev=htmldir ;;
1087  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088  | --ht=*)
1089    htmldir=$ac_optarg ;;
1090
1091  -includedir | --includedir | --includedi | --included | --include \
1092  | --includ | --inclu | --incl | --inc)
1093    ac_prev=includedir ;;
1094  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095  | --includ=* | --inclu=* | --incl=* | --inc=*)
1096    includedir=$ac_optarg ;;
1097
1098  -infodir | --infodir | --infodi | --infod | --info | --inf)
1099    ac_prev=infodir ;;
1100  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101    infodir=$ac_optarg ;;
1102
1103  -libdir | --libdir | --libdi | --libd)
1104    ac_prev=libdir ;;
1105  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106    libdir=$ac_optarg ;;
1107
1108  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109  | --libexe | --libex | --libe)
1110    ac_prev=libexecdir ;;
1111  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112  | --libexe=* | --libex=* | --libe=*)
1113    libexecdir=$ac_optarg ;;
1114
1115  -localedir | --localedir | --localedi | --localed | --locale)
1116    ac_prev=localedir ;;
1117  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118    localedir=$ac_optarg ;;
1119
1120  -localstatedir | --localstatedir | --localstatedi | --localstated \
1121  | --localstate | --localstat | --localsta | --localst | --locals)
1122    ac_prev=localstatedir ;;
1123  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125    localstatedir=$ac_optarg ;;
1126
1127  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128    ac_prev=mandir ;;
1129  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130    mandir=$ac_optarg ;;
1131
1132  -nfp | --nfp | --nf)
1133    # Obsolete; use --without-fp.
1134    with_fp=no ;;
1135
1136  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137  | --no-cr | --no-c | -n)
1138    no_create=yes ;;
1139
1140  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142    no_recursion=yes ;;
1143
1144  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146  | --oldin | --oldi | --old | --ol | --o)
1147    ac_prev=oldincludedir ;;
1148  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151    oldincludedir=$ac_optarg ;;
1152
1153  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154    ac_prev=prefix ;;
1155  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156    prefix=$ac_optarg ;;
1157
1158  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159  | --program-pre | --program-pr | --program-p)
1160    ac_prev=program_prefix ;;
1161  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163    program_prefix=$ac_optarg ;;
1164
1165  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166  | --program-suf | --program-su | --program-s)
1167    ac_prev=program_suffix ;;
1168  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170    program_suffix=$ac_optarg ;;
1171
1172  -program-transform-name | --program-transform-name \
1173  | --program-transform-nam | --program-transform-na \
1174  | --program-transform-n | --program-transform- \
1175  | --program-transform | --program-transfor \
1176  | --program-transfo | --program-transf \
1177  | --program-trans | --program-tran \
1178  | --progr-tra | --program-tr | --program-t)
1179    ac_prev=program_transform_name ;;
1180  -program-transform-name=* | --program-transform-name=* \
1181  | --program-transform-nam=* | --program-transform-na=* \
1182  | --program-transform-n=* | --program-transform-=* \
1183  | --program-transform=* | --program-transfor=* \
1184  | --program-transfo=* | --program-transf=* \
1185  | --program-trans=* | --program-tran=* \
1186  | --progr-tra=* | --program-tr=* | --program-t=*)
1187    program_transform_name=$ac_optarg ;;
1188
1189  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190    ac_prev=pdfdir ;;
1191  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192    pdfdir=$ac_optarg ;;
1193
1194  -psdir | --psdir | --psdi | --psd | --ps)
1195    ac_prev=psdir ;;
1196  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197    psdir=$ac_optarg ;;
1198
1199  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200  | -silent | --silent | --silen | --sile | --sil)
1201    silent=yes ;;
1202
1203  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204    ac_prev=sbindir ;;
1205  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206  | --sbi=* | --sb=*)
1207    sbindir=$ac_optarg ;;
1208
1209  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211  | --sharedst | --shareds | --shared | --share | --shar \
1212  | --sha | --sh)
1213    ac_prev=sharedstatedir ;;
1214  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217  | --sha=* | --sh=*)
1218    sharedstatedir=$ac_optarg ;;
1219
1220  -site | --site | --sit)
1221    ac_prev=site ;;
1222  -site=* | --site=* | --sit=*)
1223    site=$ac_optarg ;;
1224
1225  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226    ac_prev=srcdir ;;
1227  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228    srcdir=$ac_optarg ;;
1229
1230  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231  | --syscon | --sysco | --sysc | --sys | --sy)
1232    ac_prev=sysconfdir ;;
1233  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235    sysconfdir=$ac_optarg ;;
1236
1237  -target | --target | --targe | --targ | --tar | --ta | --t)
1238    ac_prev=target_alias ;;
1239  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240    target_alias=$ac_optarg ;;
1241
1242  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243    verbose=yes ;;
1244
1245  -version | --version | --versio | --versi | --vers | -V)
1246    ac_init_version=: ;;
1247
1248  -with-* | --with-*)
1249    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250    # Reject names that are not valid shell variable names.
1251    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252      as_fn_error $? "invalid package name: $ac_useropt"
1253    ac_useropt_orig=$ac_useropt
1254    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255    case $ac_user_opts in
1256      *"
1257"with_$ac_useropt"
1258"*) ;;
1259      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260         ac_unrecognized_sep=', ';;
1261    esac
1262    eval with_$ac_useropt=\$ac_optarg ;;
1263
1264  -without-* | --without-*)
1265    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266    # Reject names that are not valid shell variable names.
1267    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268      as_fn_error $? "invalid package name: $ac_useropt"
1269    ac_useropt_orig=$ac_useropt
1270    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271    case $ac_user_opts in
1272      *"
1273"with_$ac_useropt"
1274"*) ;;
1275      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276         ac_unrecognized_sep=', ';;
1277    esac
1278    eval with_$ac_useropt=no ;;
1279
1280  --x)
1281    # Obsolete; use --with-x.
1282    with_x=yes ;;
1283
1284  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285  | --x-incl | --x-inc | --x-in | --x-i)
1286    ac_prev=x_includes ;;
1287  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289    x_includes=$ac_optarg ;;
1290
1291  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293    ac_prev=x_libraries ;;
1294  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296    x_libraries=$ac_optarg ;;
1297
1298  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1299Try \`$0 --help' for more information"
1300    ;;
1301
1302  *=*)
1303    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304    # Reject names that are not valid shell variable names.
1305    case $ac_envvar in #(
1306      '' | [0-9]* | *[!_$as_cr_alnum]* )
1307      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1308    esac
1309    eval $ac_envvar=\$ac_optarg
1310    export $ac_envvar ;;
1311
1312  *)
1313    # FIXME: should be removed in autoconf 3.0.
1314    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318    ;;
1319
1320  esac
1321done
1322
1323if test -n "$ac_prev"; then
1324  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325  as_fn_error $? "missing argument to $ac_option"
1326fi
1327
1328if test -n "$ac_unrecognized_opts"; then
1329  case $enable_option_checking in
1330    no) ;;
1331    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333  esac
1334fi
1335
1336# Check all directory arguments for consistency.
1337for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338                datadir sysconfdir sharedstatedir localstatedir includedir \
1339                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340                libdir localedir mandir
1341do
1342  eval ac_val=\$$ac_var
1343  # Remove trailing slashes.
1344  case $ac_val in
1345    */ )
1346      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347      eval $ac_var=\$ac_val;;
1348  esac
1349  # Be sure to have absolute directory names.
1350  case $ac_val in
1351    [\\/$]* | ?:[\\/]* )  continue;;
1352    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353  esac
1354  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355done
1356
1357# There might be people who depend on the old broken behavior: `$host'
1358# used to hold the argument of --host etc.
1359# FIXME: To remove some day.
1360build=$build_alias
1361host=$host_alias
1362target=$target_alias
1363
1364# FIXME: To remove some day.
1365if test "x$host_alias" != x; then
1366  if test "x$build_alias" = x; then
1367    cross_compiling=maybe
1368  elif test "x$build_alias" != "x$host_alias"; then
1369    cross_compiling=yes
1370  fi
1371fi
1372
1373ac_tool_prefix=
1374test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375
1376test "$silent" = yes && exec 6>/dev/null
1377
1378
1379ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380ac_ls_di=`ls -di .` &&
1381ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382  as_fn_error $? "working directory cannot be determined"
1383test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384  as_fn_error $? "pwd does not report name of working directory"
1385
1386
1387# Find the source files, if location was not specified.
1388if test -z "$srcdir"; then
1389  ac_srcdir_defaulted=yes
1390  # Try the directory containing this script, then the parent directory.
1391  ac_confdir=`$as_dirname -- "$as_myself" ||
1392$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393         X"$as_myself" : 'X\(//\)[^/]' \| \
1394         X"$as_myself" : 'X\(//\)$' \| \
1395         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396$as_echo X"$as_myself" |
1397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398            s//\1/
1399            q
1400          }
1401          /^X\(\/\/\)[^/].*/{
1402            s//\1/
1403            q
1404          }
1405          /^X\(\/\/\)$/{
1406            s//\1/
1407            q
1408          }
1409          /^X\(\/\).*/{
1410            s//\1/
1411            q
1412          }
1413          s/.*/./; q'`
1414  srcdir=$ac_confdir
1415  if test ! -r "$srcdir/$ac_unique_file"; then
1416    srcdir=..
1417  fi
1418else
1419  ac_srcdir_defaulted=no
1420fi
1421if test ! -r "$srcdir/$ac_unique_file"; then
1422  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424fi
1425ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426ac_abs_confdir=`(
1427        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428        pwd)`
1429# When building in place, set srcdir=.
1430if test "$ac_abs_confdir" = "$ac_pwd"; then
1431  srcdir=.
1432fi
1433# Remove unnecessary trailing slashes from srcdir.
1434# Double slashes in file names in object file debugging info
1435# mess up M-x gdb in Emacs.
1436case $srcdir in
1437*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438esac
1439for ac_var in $ac_precious_vars; do
1440  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441  eval ac_env_${ac_var}_value=\$${ac_var}
1442  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444done
1445
1446#
1447# Report the --help message.
1448#
1449if test "$ac_init_help" = "long"; then
1450  # Omit some internal or obsolete options to make the list less imposing.
1451  # This message is too long to be a string in the A/UX 3.1 sh.
1452  cat <<_ACEOF
1453\`configure' configures Clp trunk to adapt to many kinds of systems.
1454
1455Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458VAR=VALUE.  See below for descriptions of some of the useful variables.
1459
1460Defaults for the options are specified in brackets.
1461
1462Configuration:
1463  -h, --help              display this help and exit
1464      --help=short        display options specific to this package
1465      --help=recursive    display the short help of all the included packages
1466  -V, --version           display version information and exit
1467  -q, --quiet, --silent   do not print \`checking ...' messages
1468      --cache-file=FILE   cache test results in FILE [disabled]
1469  -C, --config-cache      alias for \`--cache-file=config.cache'
1470  -n, --no-create         do not create output files
1471      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1472
1473Installation directories:
1474  --prefix=PREFIX         install architecture-independent files in PREFIX
1475                          [$ac_default_prefix]
1476  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1477                          [PREFIX]
1478
1479By default, \`make install' will install all the files in
1480\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1481an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482for instance \`--prefix=\$HOME'.
1483
1484For better control, use the options below.
1485
1486Fine tuning of the installation directories:
1487  --bindir=DIR            user executables [EPREFIX/bin]
1488  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1489  --libexecdir=DIR        program executables [EPREFIX/libexec]
1490  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1491  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1492  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1493  --libdir=DIR            object code libraries [EPREFIX/lib]
1494  --includedir=DIR        C header files [PREFIX/include]
1495  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1496  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1497  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1498  --infodir=DIR           info documentation [DATAROOTDIR/info]
1499  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1500  --mandir=DIR            man documentation [DATAROOTDIR/man]
1501  --docdir=DIR            documentation root [DATAROOTDIR/doc/coin-or-clp]
1502  --htmldir=DIR           html documentation [DOCDIR]
1503  --dvidir=DIR            dvi documentation [DOCDIR]
1504  --pdfdir=DIR            pdf documentation [DOCDIR]
1505  --psdir=DIR             ps documentation [DOCDIR]
1506_ACEOF
1507
1508  cat <<\_ACEOF
1509
1510Program names:
1511  --program-prefix=PREFIX            prepend PREFIX to installed program names
1512  --program-suffix=SUFFIX            append SUFFIX to installed program names
1513  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1514
1515System types:
1516  --build=BUILD     configure for building on BUILD [guessed]
1517  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518_ACEOF
1519fi
1520
1521if test -n "$ac_init_help"; then
1522  case $ac_init_help in
1523     short | recursive ) echo "Configuration of Clp trunk:";;
1524   esac
1525  cat <<\_ACEOF
1526
1527Optional Features:
1528  --disable-option-checking  ignore unrecognized --enable/--with options
1529  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1530  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1531  --enable-msvc           Allow only Intel/Microsoft compilers on
1532                          MinGW/MSys/Cygwin.
1533  --enable-silent-rules   less verbose build output (undo: "make V=1")
1534  --disable-silent-rules  verbose build output (undo: "make V=0")
1535  --enable-maintainer-mode
1536                          enable make rules and dependencies not useful (and
1537                          sometimes confusing) to the casual installer
1538  --enable-dependency-tracking
1539                          do not reject slow dependency extractors
1540  --disable-dependency-tracking
1541                          speeds up one-time build
1542  --enable-shared[=PKGS]  build shared libraries [default=yes]
1543  --enable-static[=PKGS]  build static libraries [default=yes]
1544  --enable-fast-install[=PKGS]
1545                          optimize for fast installation [default=yes]
1546  --disable-libtool-lock  avoid locking (might break parallel builds)
1547  --enable-dependency-linking
1548                          Link all library dependencies into shared libraries
1549                          at creation (default=yes)
1550  --enable-aboca          Enables build of the Aboca solver; 1 - build Abc
1551                          serial but no inherit code (default when built); 2 -
1552                          build Abc serial and inherit code; 3 - build Abc
1553                          cilk parallel but no inherit code; 4 - build Abc
1554                          cilk parallel and inherit code
1555  --disable-readline      do not compile with readline library
1556
1557Optional Packages:
1558  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1559  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1560  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1561                          both]
1562  --with-aix-soname=aix|svr4|both
1563                          shared library versioning (aka "SONAME") variant to
1564                          provide on AIX, [default=aix].
1565  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1566  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1567                          compiler's sysroot if not specified).
1568  --with-coinutils        Use CoinUtils. If an argument is given, 'yes' is
1569                          equivalent to --with-coinutils, 'no' is
1570                          equivalent to --without-coinutils. Any other
1571                          argument is applied as for --with-coinutils-lflags
1572  --with-coinutils-lflags Linker flags for CoinUtils appropriate for your
1573                          environment. (Most often, -l specs for libraries.)
1574  --with-coinutils-cflags Compiler flags for CoinUtils appropriate for your
1575                          environment. (Most often, -I specs for header file
1576                          directories.)
1577  --with-osi              Use Osi. If an argument is given, 'yes' is
1578                          equivalent to --with-osi, 'no' is
1579                          equivalent to --without-osi. Any other argument is
1580                          applied as for --with-osi-lflags
1581  --with-osi-lflags       Linker flags for Osi appropriate for your
1582                          environment. (Most often, -l specs for libraries.)
1583  --with-osi-cflags       Compiler flags for Osi appropriate for your
1584                          environment. (Most often, -I specs for header file
1585                          directories.)
1586  --with-ositests         Use OsiTests. If an argument is given, 'yes' is
1587                          equivalent to --with-ositests, 'no' is
1588                          equivalent to --without-ositests. Any other argument
1589                          is applied as for --with-ositests-lflags
1590  --with-ositests-lflags  Linker flags for OsiTests appropriate for your
1591                          environment. (Most often, -l specs for libraries.)
1592  --with-ositests-cflags  Compiler flags for OsiTests appropriate for your
1593                          environment. (Most often, -I specs for header file
1594                          directories.)
1595  --with-sample           Use Sample. If an argument is given, 'yes' is
1596                          equivalent to --with-sample, 'no' is
1597                          equivalent to --without-sample. Any other argument
1598                          is applied as for --with-sample-data
1599  --with-sample-data      A data directory specification for Sample
1600                          appropriate for your environment.
1601  --with-netlib           Use Netlib. If an argument is given, 'yes' is
1602                          equivalent to --with-netlib, 'no' is
1603                          equivalent to --without-netlib. Any other argument
1604                          is applied as for --with-netlib-data
1605  --with-netlib-data      A data directory specification for Netlib
1606                          appropriate for your environment.
1607  --with-amd              Use AMD. If an argument is given, 'yes' is
1608                          equivalent to --with-amd, 'no' is
1609                          equivalent to --without-amd. Any other argument is
1610                          applied as for --with-amd-lflags
1611  --with-amd-lflags       Linker flags for AMD appropriate for your
1612                          environment. (Most often, -l specs for libraries.)
1613  --with-amd-cflags       Compiler flags for AMD appropriate for your
1614                          environment. (Most often, -I specs for header file
1615                          directories.)
1616  --with-cholmod          Use CHOLMOD. If an argument is given, 'yes' is
1617                          equivalent to --with-cholmod, 'no' is
1618                          equivalent to --without-cholmod. Any other argument
1619                          is applied as for --with-cholmod-lflags
1620  --with-cholmod-lflags   Linker flags for CHOLMOD appropriate for your
1621                          environment. (Most often, -l specs for libraries.)
1622  --with-cholmod-cflags   Compiler flags for CHOLMOD appropriate for your
1623                          environment. (Most often, -I specs for header file
1624                          directories.)
1625  --with-glpk             Use Glpk. If an argument is given, 'yes' is
1626                          equivalent to --with-glpk, 'no' is
1627                          equivalent to --without-glpk. Any other argument is
1628                          applied as for --with-glpk-lflags
1629  --with-glpk-lflags      Linker flags for Glpk appropriate for your
1630                          environment. (Most often, -l specs for libraries.)
1631  --with-glpk-cflags      Compiler flags for Glpk appropriate for your
1632                          environment. (Most often, -I specs for header file
1633                          directories.)
1634  --with-mumps            Use Mumps. If an argument is given, 'yes' is
1635                          equivalent to --with-mumps, 'no' is
1636                          equivalent to --without-mumps. Any other argument is
1637                          applied as for --with-mumps-lflags
1638  --with-mumps-lflags     Linker flags for Mumps appropriate for your
1639                          environment. (Most often, -l specs for libraries.)
1640  --with-mumps-cflags     Compiler flags for Mumps appropriate for your
1641                          environment. (Most often, -I specs for header file
1642                          directories.)
1643  --with-wsmp             Use WSMP. If an argument is given, 'yes' is
1644                          equivalent to --with-wsmp, 'no' is
1645                          equivalent to --without-wsmp. Any other argument is
1646                          applied as for --with-wsmp-lflags
1647  --with-wsmp-lflags      Linker flags for WSMP appropriate for your
1648                          environment. (Most often, -l specs for libraries.)
1649  --with-wsmp-cflags      Compiler flags for WSMP appropriate for your
1650                          environment. (Most often, -I specs for header file
1651                          directories.)
1652  --with-asl              Use ASL. If an argument is given, 'yes' is
1653                          equivalent to --with-asl, 'no' is
1654                          equivalent to --without-asl. Any other argument is
1655                          applied as for --with-asl-lflags
1656  --with-asl-lflags       Linker flags for ASL appropriate for your
1657                          environment. (Most often, -l specs for libraries.)
1658  --with-asl-cflags       Compiler flags for ASL appropriate for your
1659                          environment. (Most often, -I specs for header file
1660                          directories.)
1661  --with-dot              use dot (from graphviz) when creating documentation
1662                          with doxygen if available; --without-dot to disable
1663
1664Some influential environment variables:
1665  CC          C compiler command
1666  CFLAGS      C compiler flags
1667  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1668              nonstandard directory <lib dir>
1669  LIBS        libraries to pass to the linker, e.g. -l<library>
1670  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1671              you have headers in a nonstandard directory <include dir>
1672  CXX         C++ compiler command
1673  CXXFLAGS    C++ compiler flags
1674  F77         Fortran 77 compiler command
1675  FFLAGS      Fortran 77 compiler flags
1676  LT_SYS_LIBRARY_PATH
1677              User-defined run-time library search path.
1678  CPP         C preprocessor
1679  CXXCPP      C++ preprocessor
1680  PKG_CONFIG  path to pkg-config utility
1681
1682Use these variables to override the choices made by `configure' or to help
1683it to find libraries and programs with nonstandard names/locations.
1684
1685Report bugs to <clp@list.coin-or.org>.
1686Clp home page: <https://projects.coin-or.org/Clp>.
1687_ACEOF
1688ac_status=$?
1689fi
1690
1691if test "$ac_init_help" = "recursive"; then
1692  # If there are subdirs, report their specific --help.
1693  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1694    test -d "$ac_dir" ||
1695      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1696      continue
1697    ac_builddir=.
1698
1699case "$ac_dir" in
1700.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701*)
1702  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1703  # A ".." for each directory in $ac_dir_suffix.
1704  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1705  case $ac_top_builddir_sub in
1706  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1708  esac ;;
1709esac
1710ac_abs_top_builddir=$ac_pwd
1711ac_abs_builddir=$ac_pwd$ac_dir_suffix
1712# for backward compatibility:
1713ac_top_builddir=$ac_top_build_prefix
1714
1715case $srcdir in
1716  .)  # We are building in place.
1717    ac_srcdir=.
1718    ac_top_srcdir=$ac_top_builddir_sub
1719    ac_abs_top_srcdir=$ac_pwd ;;
1720  [\\/]* | ?:[\\/]* )  # Absolute name.
1721    ac_srcdir=$srcdir$ac_dir_suffix;
1722    ac_top_srcdir=$srcdir
1723    ac_abs_top_srcdir=$srcdir ;;
1724  *) # Relative name.
1725    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1726    ac_top_srcdir=$ac_top_build_prefix$srcdir
1727    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1728esac
1729ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1730
1731    cd "$ac_dir" || { ac_status=$?; continue; }
1732    # Check for guested configure.
1733    if test -f "$ac_srcdir/configure.gnu"; then
1734      echo &&
1735      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1736    elif test -f "$ac_srcdir/configure"; then
1737      echo &&
1738      $SHELL "$ac_srcdir/configure" --help=recursive
1739    else
1740      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1741    fi || ac_status=$?
1742    cd "$ac_pwd" || { ac_status=$?; break; }
1743  done
1744fi
1745
1746test -n "$ac_init_help" && exit $ac_status
1747if $ac_init_version; then
1748  cat <<\_ACEOF
1749Clp configure trunk
1750generated by GNU Autoconf 2.69
1751
1752Copyright (C) 2012 Free Software Foundation, Inc.
1753This configure script is free software; the Free Software Foundation
1754gives unlimited permission to copy, distribute and modify it.
1755
1756
1757Copyright 2006 International Business Machines and others.
1758All Rights Reserved.
1759This file is part of the open source package Clp which is distributed
1760under the Eclipse Public License.
1761_ACEOF
1762  exit
1763fi
1764
1765## ------------------------ ##
1766## Autoconf initialization. ##
1767## ------------------------ ##
1768
1769# ac_fn_c_try_compile LINENO
1770# --------------------------
1771# Try to compile conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_compile ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  rm -f conftest.$ac_objext
1776  if { { ac_try="$ac_compile"
1777case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783  (eval "$ac_compile") 2>conftest.err
1784  ac_status=$?
1785  if test -s conftest.err; then
1786    grep -v '^ *+' conftest.err >conftest.er1
1787    cat conftest.er1 >&5
1788    mv -f conftest.er1 conftest.err
1789  fi
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; } && {
1792         test -z "$ac_c_werror_flag" ||
1793         test ! -s conftest.err
1794       } && test -s conftest.$ac_objext; then :
1795  ac_retval=0
1796else
1797  $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800        ac_retval=1
1801fi
1802  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803  as_fn_set_status $ac_retval
1804
1805} # ac_fn_c_try_compile
1806
1807# ac_fn_cxx_try_compile LINENO
1808# ----------------------------
1809# Try to compile conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_cxx_try_compile ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  rm -f conftest.$ac_objext
1814  if { { ac_try="$ac_compile"
1815case "(($ac_try" in
1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817  *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821  (eval "$ac_compile") 2>conftest.err
1822  ac_status=$?
1823  if test -s conftest.err; then
1824    grep -v '^ *+' conftest.err >conftest.er1
1825    cat conftest.er1 >&5
1826    mv -f conftest.er1 conftest.err
1827  fi
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && {
1830         test -z "$ac_cxx_werror_flag" ||
1831         test ! -s conftest.err
1832       } && test -s conftest.$ac_objext; then :
1833  ac_retval=0
1834else
1835  $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838        ac_retval=1
1839fi
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_cxx_try_compile
1844
1845# ac_fn_f77_try_compile LINENO
1846# ----------------------------
1847# Try to compile conftest.$ac_ext, and return whether this succeeded.
1848ac_fn_f77_try_compile ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  rm -f conftest.$ac_objext
1852  if { { ac_try="$ac_compile"
1853case "(($ac_try" in
1854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855  *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859  (eval "$ac_compile") 2>conftest.err
1860  ac_status=$?
1861  if test -s conftest.err; then
1862    grep -v '^ *+' conftest.err >conftest.er1
1863    cat conftest.er1 >&5
1864    mv -f conftest.er1 conftest.err
1865  fi
1866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867  test $ac_status = 0; } && {
1868         test -z "$ac_f77_werror_flag" ||
1869         test ! -s conftest.err
1870       } && test -s conftest.$ac_objext; then :
1871  ac_retval=0
1872else
1873  $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876        ac_retval=1
1877fi
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879  as_fn_set_status $ac_retval
1880
1881} # ac_fn_f77_try_compile
1882
1883# ac_fn_c_try_link LINENO
1884# -----------------------
1885# Try to link conftest.$ac_ext, and return whether this succeeded.
1886ac_fn_c_try_link ()
1887{
1888  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889  rm -f conftest.$ac_objext conftest$ac_exeext
1890  if { { ac_try="$ac_link"
1891case "(($ac_try" in
1892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893  *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897  (eval "$ac_link") 2>conftest.err
1898  ac_status=$?
1899  if test -s conftest.err; then
1900    grep -v '^ *+' conftest.err >conftest.er1
1901    cat conftest.er1 >&5
1902    mv -f conftest.er1 conftest.err
1903  fi
1904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905  test $ac_status = 0; } && {
1906         test -z "$ac_c_werror_flag" ||
1907         test ! -s conftest.err
1908       } && test -s conftest$ac_exeext && {
1909         test "$cross_compiling" = yes ||
1910         test -x conftest$ac_exeext
1911       }; then :
1912  ac_retval=0
1913else
1914  $as_echo "$as_me: failed program was:" >&5
1915sed 's/^/| /' conftest.$ac_ext >&5
1916
1917        ac_retval=1
1918fi
1919  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921  # interfere with the next link command; also delete a directory that is
1922  # left behind by Apple's compiler.  We do this before executing the actions.
1923  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925  as_fn_set_status $ac_retval
1926
1927} # ac_fn_c_try_link
1928
1929# ac_fn_cxx_try_link LINENO
1930# -------------------------
1931# Try to link conftest.$ac_ext, and return whether this succeeded.
1932ac_fn_cxx_try_link ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  rm -f conftest.$ac_objext conftest$ac_exeext
1936  if { { ac_try="$ac_link"
1937case "(($ac_try" in
1938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939  *) ac_try_echo=$ac_try;;
1940esac
1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942$as_echo "$ac_try_echo"; } >&5
1943  (eval "$ac_link") 2>conftest.err
1944  ac_status=$?
1945  if test -s conftest.err; then
1946    grep -v '^ *+' conftest.err >conftest.er1
1947    cat conftest.er1 >&5
1948    mv -f conftest.er1 conftest.err
1949  fi
1950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951  test $ac_status = 0; } && {
1952         test -z "$ac_cxx_werror_flag" ||
1953         test ! -s conftest.err
1954       } && test -s conftest$ac_exeext && {
1955         test "$cross_compiling" = yes ||
1956         test -x conftest$ac_exeext
1957       }; then :
1958  ac_retval=0
1959else
1960  $as_echo "$as_me: failed program was:" >&5
1961sed 's/^/| /' conftest.$ac_ext >&5
1962
1963        ac_retval=1
1964fi
1965  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967  # interfere with the next link command; also delete a directory that is
1968  # left behind by Apple's compiler.  We do this before executing the actions.
1969  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971  as_fn_set_status $ac_retval
1972
1973} # ac_fn_cxx_try_link
1974
1975# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976# -------------------------------------------------------
1977# Tests whether HEADER exists and can be compiled using the include files in
1978# INCLUDES, setting the cache variable VAR accordingly.
1979ac_fn_c_check_header_compile ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if eval \${$3+:} false; then :
1985  $as_echo_n "(cached) " >&6
1986else
1987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990#include <$2>
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  eval "$3=yes"
1994else
1995  eval "$3=no"
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004} # ac_fn_c_check_header_compile
2005
2006# ac_fn_c_try_cpp LINENO
2007# ----------------------
2008# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2009ac_fn_c_try_cpp ()
2010{
2011  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012  if { { ac_try="$ac_cpp conftest.$ac_ext"
2013case "(($ac_try" in
2014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015  *) ac_try_echo=$ac_try;;
2016esac
2017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018$as_echo "$ac_try_echo"; } >&5
2019  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2020  ac_status=$?
2021  if test -s conftest.err; then
2022    grep -v '^ *+' conftest.err >conftest.er1
2023    cat conftest.er1 >&5
2024    mv -f conftest.er1 conftest.err
2025  fi
2026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027  test $ac_status = 0; } > conftest.i && {
2028         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2029         test ! -s conftest.err
2030       }; then :
2031  ac_retval=0
2032else
2033  $as_echo "$as_me: failed program was:" >&5
2034sed 's/^/| /' conftest.$ac_ext >&5
2035
2036    ac_retval=1
2037fi
2038  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039  as_fn_set_status $ac_retval
2040
2041} # ac_fn_c_try_cpp
2042
2043# ac_fn_c_try_run LINENO
2044# ----------------------
2045# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2046# that executables *can* be run.
2047ac_fn_c_try_run ()
2048{
2049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050  if { { ac_try="$ac_link"
2051case "(($ac_try" in
2052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053  *) ac_try_echo=$ac_try;;
2054esac
2055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056$as_echo "$ac_try_echo"; } >&5
2057  (eval "$ac_link") 2>&5
2058  ac_status=$?
2059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2061  { { case "(($ac_try" in
2062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063  *) ac_try_echo=$ac_try;;
2064esac
2065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066$as_echo "$ac_try_echo"; } >&5
2067  (eval "$ac_try") 2>&5
2068  ac_status=$?
2069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070  test $ac_status = 0; }; }; then :
2071  ac_retval=0
2072else
2073  $as_echo "$as_me: program exited with status $ac_status" >&5
2074       $as_echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077       ac_retval=$ac_status
2078fi
2079  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2080  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081  as_fn_set_status $ac_retval
2082
2083} # ac_fn_c_try_run
2084
2085# ac_fn_c_check_func LINENO FUNC VAR
2086# ----------------------------------
2087# Tests whether FUNC exists, setting the cache variable VAR accordingly
2088ac_fn_c_check_func ()
2089{
2090  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092$as_echo_n "checking for $2... " >&6; }
2093if eval \${$3+:} false; then :
2094  $as_echo_n "(cached) " >&6
2095else
2096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2099   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2100#define $2 innocuous_$2
2101
2102/* System header to define __stub macros and hopefully few prototypes,
2103    which can conflict with char $2 (); below.
2104    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2105    <limits.h> exists even on freestanding compilers.  */
2106
2107#ifdef __STDC__
2108# include <limits.h>
2109#else
2110# include <assert.h>
2111#endif
2112
2113#undef $2
2114
2115/* Override any GCC internal prototype to avoid an error.
2116   Use char because int might match the return type of a GCC
2117   builtin and then its argument prototype would still apply.  */
2118#ifdef __cplusplus
2119extern "C"
2120#endif
2121char $2 ();
2122/* The GNU C library defines this for functions which it implements
2123    to always fail with ENOSYS.  Some functions are actually named
2124    something starting with __ and the normal name is an alias.  */
2125#if defined __stub_$2 || defined __stub___$2
2126choke me
2127#endif
2128
2129#ifdef F77_DUMMY_MAIN
2130
2131#  ifdef __cplusplus
2132     extern "C"
2133#  endif
2134   int F77_DUMMY_MAIN() { return 1; }
2135
2136#endif
2137int
2138main ()
2139{
2140return $2 ();
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_link "$LINENO"; then :
2146  eval "$3=yes"
2147else
2148  eval "$3=no"
2149fi
2150rm -f core conftest.err conftest.$ac_objext \
2151    conftest$ac_exeext conftest.$ac_ext
2152fi
2153eval ac_res=\$$3
2154               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155$as_echo "$ac_res" >&6; }
2156  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158} # ac_fn_c_check_func
2159
2160# ac_fn_cxx_try_cpp LINENO
2161# ------------------------
2162# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2163ac_fn_cxx_try_cpp ()
2164{
2165  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166  if { { ac_try="$ac_cpp conftest.$ac_ext"
2167case "(($ac_try" in
2168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169  *) ac_try_echo=$ac_try;;
2170esac
2171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172$as_echo "$ac_try_echo"; } >&5
2173  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2174  ac_status=$?
2175  if test -s conftest.err; then
2176    grep -v '^ *+' conftest.err >conftest.er1
2177    cat conftest.er1 >&5
2178    mv -f conftest.er1 conftest.err
2179  fi
2180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181  test $ac_status = 0; } > conftest.i && {
2182         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2183         test ! -s conftest.err
2184       }; then :
2185  ac_retval=0
2186else
2187  $as_echo "$as_me: failed program was:" >&5
2188sed 's/^/| /' conftest.$ac_ext >&5
2189
2190    ac_retval=1
2191fi
2192  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193  as_fn_set_status $ac_retval
2194
2195} # ac_fn_cxx_try_cpp
2196
2197# ac_fn_f77_try_link LINENO
2198# -------------------------
2199# Try to link conftest.$ac_ext, and return whether this succeeded.
2200ac_fn_f77_try_link ()
2201{
2202  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203  rm -f conftest.$ac_objext conftest$ac_exeext
2204  if { { ac_try="$ac_link"
2205case "(($ac_try" in
2206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207  *) ac_try_echo=$ac_try;;
2208esac
2209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2210$as_echo "$ac_try_echo"; } >&5
2211  (eval "$ac_link") 2>conftest.err
2212  ac_status=$?
2213  if test -s conftest.err; then
2214    grep -v '^ *+' conftest.err >conftest.er1
2215    cat conftest.er1 >&5
2216    mv -f conftest.er1 conftest.err
2217  fi
2218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2219  test $ac_status = 0; } && {
2220         test -z "$ac_f77_werror_flag" ||
2221         test ! -s conftest.err
2222       } && test -s conftest$ac_exeext && {
2223         test "$cross_compiling" = yes ||
2224         test -x conftest$ac_exeext
2225       }; then :
2226  ac_retval=0
2227else
2228  $as_echo "$as_me: failed program was:" >&5
2229sed 's/^/| /' conftest.$ac_ext >&5
2230
2231        ac_retval=1
2232fi
2233  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2234  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2235  # interfere with the next link command; also delete a directory that is
2236  # left behind by Apple's compiler.  We do this before executing the actions.
2237  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2238  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239  as_fn_set_status $ac_retval
2240
2241} # ac_fn_f77_try_link
2242
2243# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2244# ---------------------------------------------------------
2245# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2246# the include files in INCLUDES and setting the cache variable VAR
2247# accordingly.
2248ac_fn_cxx_check_header_mongrel ()
2249{
2250  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251  if eval \${$3+:} false; then :
2252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253$as_echo_n "checking for $2... " >&6; }
2254if eval \${$3+:} false; then :
2255  $as_echo_n "(cached) " >&6
2256fi
2257eval ac_res=\$$3
2258               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259$as_echo "$ac_res" >&6; }
2260else
2261  # Is the header compilable?
2262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2263$as_echo_n "checking $2 usability... " >&6; }
2264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265/* end confdefs.h.  */
2266$4
2267#include <$2>
2268_ACEOF
2269if ac_fn_cxx_try_compile "$LINENO"; then :
2270  ac_header_compiler=yes
2271else
2272  ac_header_compiler=no
2273fi
2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2276$as_echo "$ac_header_compiler" >&6; }
2277
2278# Is the header present?
2279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2280$as_echo_n "checking $2 presence... " >&6; }
2281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h.  */
2283#include <$2>
2284_ACEOF
2285if ac_fn_cxx_try_cpp "$LINENO"; then :
2286  ac_header_preproc=yes
2287else
2288  ac_header_preproc=no
2289fi
2290rm -f conftest.err conftest.i conftest.$ac_ext
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2292$as_echo "$ac_header_preproc" >&6; }
2293
2294# So?  What about this header?
2295case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2296  yes:no: )
2297    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2298$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2299    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2300$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2301    ;;
2302  no:yes:* )
2303    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2304$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2305    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2306$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2307    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2308$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2309    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2310$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2311    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2312$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2313( $as_echo "## ----------------------------------- ##
2314## Report this to clp@list.coin-or.org ##
2315## ----------------------------------- ##"
2316     ) | sed "s/^/$as_me: WARNING:     /" >&2
2317    ;;
2318esac
2319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2320$as_echo_n "checking for $2... " >&6; }
2321if eval \${$3+:} false; then :
2322  $as_echo_n "(cached) " >&6
2323else
2324  eval "$3=\$ac_header_compiler"
2325fi
2326eval ac_res=\$$3
2327               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328$as_echo "$ac_res" >&6; }
2329fi
2330  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331
2332} # ac_fn_cxx_check_header_mongrel
2333
2334# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2335# ---------------------------------------------------------
2336# Tests whether HEADER exists and can be compiled using the include files in
2337# INCLUDES, setting the cache variable VAR accordingly.
2338ac_fn_cxx_check_header_compile ()
2339{
2340  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342$as_echo_n "checking for $2... " >&6; }
2343if eval \${$3+:} false; then :
2344  $as_echo_n "(cached) " >&6
2345else
2346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347/* end confdefs.h.  */
2348$4
2349#include <$2>
2350_ACEOF
2351if ac_fn_cxx_try_compile "$LINENO"; then :
2352  eval "$3=yes"
2353else
2354  eval "$3=no"
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357fi
2358eval ac_res=\$$3
2359               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360$as_echo "$ac_res" >&6; }
2361  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362
2363} # ac_fn_cxx_check_header_compile
2364cat >config.log <<_ACEOF
2365This file contains any messages produced by compilers while
2366running configure, to aid debugging if configure makes a mistake.
2367
2368It was created by Clp $as_me trunk, which was
2369generated by GNU Autoconf 2.69.  Invocation command line was
2370
2371  $ $0 $@
2372
2373_ACEOF
2374exec 5>>config.log
2375{
2376cat <<_ASUNAME
2377## --------- ##
2378## Platform. ##
2379## --------- ##
2380
2381hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2382uname -m = `(uname -m) 2>/dev/null || echo unknown`
2383uname -r = `(uname -r) 2>/dev/null || echo unknown`
2384uname -s = `(uname -s) 2>/dev/null || echo unknown`
2385uname -v = `(uname -v) 2>/dev/null || echo unknown`
2386
2387/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2388/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2389
2390/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2391/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2392/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2393/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2394/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2395/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2396/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2397
2398_ASUNAME
2399
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403  IFS=$as_save_IFS
2404  test -z "$as_dir" && as_dir=.
2405    $as_echo "PATH: $as_dir"
2406  done
2407IFS=$as_save_IFS
2408
2409} >&5
2410
2411cat >&5 <<_ACEOF
2412
2413
2414## ----------- ##
2415## Core tests. ##
2416## ----------- ##
2417
2418_ACEOF
2419
2420
2421# Keep a trace of the command line.
2422# Strip out --no-create and --no-recursion so they do not pile up.
2423# Strip out --silent because we don't want to record it for future runs.
2424# Also quote any args containing shell meta-characters.
2425# Make two passes to allow for proper duplicate-argument suppression.
2426ac_configure_args=
2427ac_configure_args0=
2428ac_configure_args1=
2429ac_must_keep_next=false
2430for ac_pass in 1 2
2431do
2432  for ac_arg
2433  do
2434    case $ac_arg in
2435    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2436    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2437    | -silent | --silent | --silen | --sile | --sil)
2438      continue ;;
2439    *\'*)
2440      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2441    esac
2442    case $ac_pass in
2443    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2444    2)
2445      as_fn_append ac_configure_args1 " '$ac_arg'"
2446      if test $ac_must_keep_next = true; then
2447        ac_must_keep_next=false # Got value, back to normal.
2448      else
2449        case $ac_arg in
2450          *=* | --config-cache | -C | -disable-* | --disable-* \
2451          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2452          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2453          | -with-* | --with-* | -without-* | --without-* | --x)
2454            case "$ac_configure_args0 " in
2455              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2456            esac
2457            ;;
2458          -* ) ac_must_keep_next=true ;;
2459        esac
2460      fi
2461      as_fn_append ac_configure_args " '$ac_arg'"
2462      ;;
2463    esac
2464  done
2465done
2466{ ac_configure_args0=; unset ac_configure_args0;}
2467{ ac_configure_args1=; unset ac_configure_args1;}
2468
2469# When interrupted or exit'd, cleanup temporary files, and complete
2470# config.log.  We remove comments because anyway the quotes in there
2471# would cause problems or look ugly.
2472# WARNING: Use '\'' to represent an apostrophe within the trap.
2473# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2474trap 'exit_status=$?
2475  # Save into config.log some information that might help in debugging.
2476  {
2477    echo
2478
2479    $as_echo "## ---------------- ##
2480## Cache variables. ##
2481## ---------------- ##"
2482    echo
2483    # The following way of writing the cache mishandles newlines in values,
2484(
2485  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2486    eval ac_val=\$$ac_var
2487    case $ac_val in #(
2488    *${as_nl}*)
2489      case $ac_var in #(
2490      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2491$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2492      esac
2493      case $ac_var in #(
2494      _ | IFS | as_nl) ;; #(
2495      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2496      *) { eval $ac_var=; unset $ac_var;} ;;
2497      esac ;;
2498    esac
2499  done
2500  (set) 2>&1 |
2501    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2502    *${as_nl}ac_space=\ *)
2503      sed -n \
2504        "s/'\''/'\''\\\\'\'''\''/g;
2505          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2506      ;; #(
2507    *)
2508      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2509      ;;
2510    esac |
2511    sort
2512)
2513    echo
2514
2515    $as_echo "## ----------------- ##
2516## Output variables. ##
2517## ----------------- ##"
2518    echo
2519    for ac_var in $ac_subst_vars
2520    do
2521      eval ac_val=\$$ac_var
2522      case $ac_val in
2523      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524      esac
2525      $as_echo "$ac_var='\''$ac_val'\''"
2526    done | sort
2527    echo
2528
2529    if test -n "$ac_subst_files"; then
2530      $as_echo "## ------------------- ##
2531## File substitutions. ##
2532## ------------------- ##"
2533      echo
2534      for ac_var in $ac_subst_files
2535      do
2536        eval ac_val=\$$ac_var
2537        case $ac_val in
2538        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539        esac
2540        $as_echo "$ac_var='\''$ac_val'\''"
2541      done | sort
2542      echo
2543    fi
2544
2545    if test -s confdefs.h; then
2546      $as_echo "## ----------- ##
2547## confdefs.h. ##
2548## ----------- ##"
2549      echo
2550      cat confdefs.h
2551      echo
2552    fi
2553    test "$ac_signal" != 0 &&
2554      $as_echo "$as_me: caught signal $ac_signal"
2555    $as_echo "$as_me: exit $exit_status"
2556  } >&5
2557  rm -f core *.core core.conftest.* &&
2558    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2559    exit $exit_status
2560' 0
2561for ac_signal in 1 2 13 15; do
2562  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2563done
2564ac_signal=0
2565
2566# confdefs.h avoids OS command line length limits that DEFS can exceed.
2567rm -f -r conftest* confdefs.h
2568
2569$as_echo "/* confdefs.h */" > confdefs.h
2570
2571# Predefined preprocessor variables.
2572
2573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_NAME "$PACKAGE_NAME"
2575_ACEOF
2576
2577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2579_ACEOF
2580
2581cat >>confdefs.h <<_ACEOF
2582#define PACKAGE_VERSION "$PACKAGE_VERSION"
2583_ACEOF
2584
2585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_STRING "$PACKAGE_STRING"
2587_ACEOF
2588
2589cat >>confdefs.h <<_ACEOF
2590#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2591_ACEOF
2592
2593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_URL "$PACKAGE_URL"
2595_ACEOF
2596
2597
2598# Let the site file select an alternate cache file if it wants to.
2599# Prefer an explicitly selected file to automatically selected ones.
2600ac_site_file1=NONE
2601ac_site_file2=NONE
2602if test -n "$CONFIG_SITE"; then
2603  # We do not want a PATH search for config.site.
2604  case $CONFIG_SITE in #((
2605    -*)  ac_site_file1=./$CONFIG_SITE;;
2606    */*) ac_site_file1=$CONFIG_SITE;;
2607    *)   ac_site_file1=./$CONFIG_SITE;;
2608  esac
2609elif test "x$prefix" != xNONE; then
2610  ac_site_file1=$prefix/share/config.site
2611  ac_site_file2=$prefix/etc/config.site
2612else
2613  ac_site_file1=$ac_default_prefix/share/config.site
2614  ac_site_file2=$ac_default_prefix/etc/config.site
2615fi
2616for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2617do
2618  test "x$ac_site_file" = xNONE && continue
2619  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2620    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2621$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2622    sed 's/^/| /' "$ac_site_file" >&5
2623    . "$ac_site_file" \
2624      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2626as_fn_error $? "failed to load site script $ac_site_file
2627See \`config.log' for more details" "$LINENO" 5; }
2628  fi
2629done
2630
2631if test -r "$cache_file"; then
2632  # Some versions of bash will fail to source /dev/null (special files
2633  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2634  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2635    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2636$as_echo "$as_me: loading cache $cache_file" >&6;}
2637    case $cache_file in
2638      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2639      *)                      . "./$cache_file";;
2640    esac
2641  fi
2642else
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2644$as_echo "$as_me: creating cache $cache_file" >&6;}
2645  >$cache_file
2646fi
2647
2648# Check that the precious variables saved in the cache have kept the same
2649# value.
2650ac_cache_corrupted=false
2651for ac_var in $ac_precious_vars; do
2652  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653  eval ac_new_set=\$ac_env_${ac_var}_set
2654  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655  eval ac_new_val=\$ac_env_${ac_var}_value
2656  case $ac_old_set,$ac_new_set in
2657    set,)
2658      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660      ac_cache_corrupted=: ;;
2661    ,set)
2662      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664      ac_cache_corrupted=: ;;
2665    ,);;
2666    *)
2667      if test "x$ac_old_val" != "x$ac_new_val"; then
2668        # differences in whitespace do not lead to failure.
2669        ac_old_val_w=`echo x $ac_old_val`
2670        ac_new_val_w=`echo x $ac_new_val`
2671        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674          ac_cache_corrupted=:
2675        else
2676          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678          eval $ac_var=\$ac_old_val
2679        fi
2680        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2681$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2682        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2683$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2684      fi;;
2685  esac
2686  # Pass precious variables to config.status.
2687  if test "$ac_new_set" = set; then
2688    case $ac_new_val in
2689    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690    *) ac_arg=$ac_var=$ac_new_val ;;
2691    esac
2692    case " $ac_configure_args " in
2693      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2694      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695    esac
2696  fi
2697done
2698if $ac_cache_corrupted; then
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2704fi
2705## -------------------- ##
2706## Main body of script. ##
2707## -------------------- ##
2708
2709ac_ext=c
2710ac_cpp='$CPP $CPPFLAGS'
2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714
2715
2716
2717
2718
2719# List one file in the package so that the configure script can test
2720# whether the package is actually there
2721
2722
2723
2724# Do some initialization work (version numbers, change prefix default, ...)
2725
2726
2727  # Check whether --enable-msvc was given.
2728if test "${enable_msvc+set}" = set; then :
2729  enableval=$enable_msvc; enable_msvc=$enableval
2730else
2731  enable_msvc=no
2732fi
2733
2734
2735
2736# We want --enable-msvc setup and checked
2737
2738
2739
2740# This macro should run before the compiler checks (doesn't seem to be
2741# sufficient for CFLAGS)
2742
2743
2744
2745
2746
2747
2748# change default compiler flags (TODO bring back --enable-debug)
2749# - disable debugging (remove -g, set -DNDEBUG)
2750# - enable exceptions for (i)cl
2751
2752  if test "$enable_msvc" = yes ; then
2753    : ${FFLAGS:=""}
2754    : ${FCFLAGS:=""}
2755    : ${CFLAGS:="-DNDEBUG -nologo"}
2756    : ${CXXFLAGS:="-DNDEBUG -EHsc -nologo"}
2757    : ${AR:="lib"}
2758    : ${AR_FLAGS:="-nologo -out:"}
2759  else
2760    : ${FFLAGS:=""}
2761    : ${FCFLAGS:=""}
2762    : ${CFLAGS:="-DNDEBUG"}
2763    : ${CXXFLAGS:="-DNDEBUG"}
2764  fi
2765
2766ac_aux_dir=
2767for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2768  if test -f "$ac_dir/install-sh"; then
2769    ac_aux_dir=$ac_dir
2770    ac_install_sh="$ac_aux_dir/install-sh -c"
2771    break
2772  elif test -f "$ac_dir/install.sh"; then
2773    ac_aux_dir=$ac_dir
2774    ac_install_sh="$ac_aux_dir/install.sh -c"
2775    break
2776  elif test -f "$ac_dir/shtool"; then
2777    ac_aux_dir=$ac_dir
2778    ac_install_sh="$ac_aux_dir/shtool install -c"
2779    break
2780  fi
2781done
2782if test -z "$ac_aux_dir"; then
2783  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2784fi
2785
2786# These three variables are undocumented and unsupported,
2787# and are intended to be withdrawn in a future Autoconf release.
2788# They can cause serious problems if a builder's source tree is in a directory
2789# whose full name contains unusual characters.
2790ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2791ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2792ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2793
2794
2795# Make sure we can run config.sub.
2796$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2797  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2800$as_echo_n "checking build system type... " >&6; }
2801if ${ac_cv_build+:} false; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  ac_build_alias=$build_alias
2805test "x$ac_build_alias" = x &&
2806  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2807test "x$ac_build_alias" = x &&
2808  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2809ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2810  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2811
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2814$as_echo "$ac_cv_build" >&6; }
2815case $ac_cv_build in
2816*-*-*) ;;
2817*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2818esac
2819build=$ac_cv_build
2820ac_save_IFS=$IFS; IFS='-'
2821set x $ac_cv_build
2822shift
2823build_cpu=$1
2824build_vendor=$2
2825shift; shift
2826# Remember, the first character of IFS is used to create $*,
2827# except with old shells:
2828build_os=$*
2829IFS=$ac_save_IFS
2830case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2831
2832
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2834$as_echo_n "checking host system type... " >&6; }
2835if ${ac_cv_host+:} false; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test "x$host_alias" = x; then
2839  ac_cv_host=$ac_cv_build
2840else
2841  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2842    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2843fi
2844
2845fi
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2847$as_echo "$ac_cv_host" >&6; }
2848case $ac_cv_host in
2849*-*-*) ;;
2850*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2851esac
2852host=$ac_cv_host
2853ac_save_IFS=$IFS; IFS='-'
2854set x $ac_cv_host
2855shift
2856host_cpu=$1
2857host_vendor=$2
2858shift; shift
2859# Remember, the first character of IFS is used to create $*,
2860# except with old shells:
2861host_os=$*
2862IFS=$ac_save_IFS
2863case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2864
2865
2866am__api_version='1.15'
2867
2868# Find a good install program.  We prefer a C program (faster),
2869# so one script is as good as another.  But avoid the broken or
2870# incompatible versions:
2871# SysV /etc/install, /usr/sbin/install
2872# SunOS /usr/etc/install
2873# IRIX /sbin/install
2874# AIX /bin/install
2875# AmigaOS /C/install, which installs bootblocks on floppy discs
2876# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2877# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2878# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2879# OS/2's system install, which has a completely different semantic
2880# ./install, which can be erroneously created by make from ./install.sh.
2881# Reject install programs that cannot install multiple files.
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2883$as_echo_n "checking for a BSD-compatible install... " >&6; }
2884if test -z "$INSTALL"; then
2885if ${ac_cv_path_install+:} false; then :
2886  $as_echo_n "(cached) " >&6
2887else
2888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  test -z "$as_dir" && as_dir=.
2893    # Account for people who put trailing slashes in PATH elements.
2894case $as_dir/ in #((
2895  ./ | .// | /[cC]/* | \
2896  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2897  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2898  /usr/ucb/* ) ;;
2899  *)
2900    # OSF1 and SCO ODT 3.0 have their own names for install.
2901    # Don't use installbsd from OSF since it installs stuff as root
2902    # by default.
2903    for ac_prog in ginstall scoinst install; do
2904      for ac_exec_ext in '' $ac_executable_extensions; do
2905        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2906          if test $ac_prog = install &&
2907            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908            # AIX install.  It has an incompatible calling convention.
2909            :
2910          elif test $ac_prog = install &&
2911            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2912            # program-specific install script used by HP pwplus--don't use.
2913            :
2914          else
2915            rm -rf conftest.one conftest.two conftest.dir
2916            echo one > conftest.one
2917            echo two > conftest.two
2918            mkdir conftest.dir
2919            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2920              test -s conftest.one && test -s conftest.two &&
2921              test -s conftest.dir/conftest.one &&
2922              test -s conftest.dir/conftest.two
2923            then
2924              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2925              break 3
2926            fi
2927          fi
2928        fi
2929      done
2930    done
2931    ;;
2932esac
2933
2934  done
2935IFS=$as_save_IFS
2936
2937rm -rf conftest.one conftest.two conftest.dir
2938
2939fi
2940  if test "${ac_cv_path_install+set}" = set; then
2941    INSTALL=$ac_cv_path_install
2942  else
2943    # As a last resort, use the slow shell script.  Don't cache a
2944    # value for INSTALL within a source directory, because that will
2945    # break other packages using the cache if that directory is
2946    # removed, or if the value is a relative name.
2947    INSTALL=$ac_install_sh
2948  fi
2949fi
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2951$as_echo "$INSTALL" >&6; }
2952
2953# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2954# It thinks the first close brace ends the variable substitution.
2955test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2956
2957test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2958
2959test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2960
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2962$as_echo_n "checking whether build environment is sane... " >&6; }
2963# Reject unsafe characters in $srcdir or the absolute working directory
2964# name.  Accept space and tab only in the latter.
2965am_lf='
2966'
2967case `pwd` in
2968  *[\\\"\#\$\&\'\`$am_lf]*)
2969    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2970esac
2971case $srcdir in
2972  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2973    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2974esac
2975
2976# Do 'set' in a subshell so we don't clobber the current shell's
2977# arguments.  Must try -L first in case configure is actually a
2978# symlink; some systems play weird games with the mod time of symlinks
2979# (eg FreeBSD returns the mod time of the symlink's containing
2980# directory).
2981if (
2982   am_has_slept=no
2983   for am_try in 1 2; do
2984     echo "timestamp, slept: $am_has_slept" > conftest.file
2985     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2986     if test "$*" = "X"; then
2987        # -L didn't work.
2988        set X `ls -t "$srcdir/configure" conftest.file`
2989     fi
2990     if test "$*" != "X $srcdir/configure conftest.file" \
2991        && test "$*" != "X conftest.file $srcdir/configure"; then
2992
2993        # If neither matched, then we have a broken ls.  This can happen
2994        # if, for instance, CONFIG_SHELL is bash and it inherits a
2995        # broken ls alias from the environment.  This has actually
2996        # happened.  Such a system could not be considered "sane".
2997        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2998  alias in your environment" "$LINENO" 5
2999     fi
3000     if test "$2" = conftest.file || test $am_try -eq 2; then
3001       break
3002     fi
3003     # Just in case.
3004     sleep 1
3005     am_has_slept=yes
3006   done
3007   test "$2" = conftest.file
3008   )
3009then
3010   # Ok.
3011   :
3012else
3013   as_fn_error $? "newly created file is older than distributed files!
3014Check your system clock" "$LINENO" 5
3015fi
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017$as_echo "yes" >&6; }
3018# If we didn't sleep, we still need to ensure time stamps of config.status and
3019# generated files are strictly newer.
3020am_sleep_pid=
3021if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3022  ( sleep 1 ) &
3023  am_sleep_pid=$!
3024fi
3025
3026rm -f conftest.file
3027
3028test "$program_prefix" != NONE &&
3029  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3030# Use a double $ so make ignores it.
3031test "$program_suffix" != NONE &&
3032  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3033# Double any \ or $.
3034# By default was `s,x,x', remove it if useless.
3035ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3036program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3037
3038# Expand $ac_aux_dir to an absolute path.
3039am_aux_dir=`cd "$ac_aux_dir" && pwd`
3040
3041if test x"${MISSING+set}" != xset; then
3042  case $am_aux_dir in
3043  *\ * | *\     *)
3044    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3045  *)
3046    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3047  esac
3048fi
3049# Use eval to expand $SHELL
3050if eval "$MISSING --is-lightweight"; then
3051  am_missing_run="$MISSING "
3052else
3053  am_missing_run=
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3055$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3056fi
3057
3058if test x"${install_sh+set}" != xset; then
3059  case $am_aux_dir in
3060  *\ * | *\     *)
3061    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3062  *)
3063    install_sh="\${SHELL} $am_aux_dir/install-sh"
3064  esac
3065fi
3066
3067# Installed binaries are usually stripped using 'strip' when the user
3068# run "make install-strip".  However 'strip' might not be the right
3069# tool to use in cross-compilation environments, therefore Automake
3070# will honor the 'STRIP' environment variable to overrule this program.
3071if test "$cross_compiling" != no; then
3072  if test -n "$ac_tool_prefix"; then
3073  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3074set dummy ${ac_tool_prefix}strip; ac_word=$2
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if ${ac_cv_prog_STRIP+:} false; then :
3078  $as_echo_n "(cached) " >&6
3079else
3080  if test -n "$STRIP"; then
3081  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088    for ac_exec_ext in '' $ac_executable_extensions; do
3089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095  done
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100STRIP=$ac_cv_prog_STRIP
3101if test -n "$STRIP"; then
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3103$as_echo "$STRIP" >&6; }
3104else
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109
3110fi
3111if test -z "$ac_cv_prog_STRIP"; then
3112  ac_ct_STRIP=$STRIP
3113  # Extract the first word of "strip", so it can be a program name with args.
3114set dummy strip; ac_word=$2
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116$as_echo_n "checking for $ac_word... " >&6; }
3117if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3118  $as_echo_n "(cached) " >&6
3119else
3120  if test -n "$ac_ct_STRIP"; then
3121  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3122else
3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126  IFS=$as_save_IFS
3127  test -z "$as_dir" && as_dir=.
3128    for ac_exec_ext in '' $ac_executable_extensions; do
3129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130    ac_cv_prog_ac_ct_STRIP="strip"
3131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132    break 2
3133  fi
3134done
3135  done
3136IFS=$as_save_IFS
3137
3138fi
3139fi
3140ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3141if test -n "$ac_ct_STRIP"; then
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3143$as_echo "$ac_ct_STRIP" >&6; }
3144else
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147fi
3148
3149  if test "x$ac_ct_STRIP" = x; then
3150    STRIP=":"
3151  else
3152    case $cross_compiling:$ac_tool_warned in
3153yes:)
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3156ac_tool_warned=yes ;;
3157esac
3158    STRIP=$ac_ct_STRIP
3159  fi
3160else
3161  STRIP="$ac_cv_prog_STRIP"
3162fi
3163
3164fi
3165INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3166
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3168$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3169if test -z "$MKDIR_P"; then
3170  if ${ac_cv_path_mkdir+:} false; then :
3171  $as_echo_n "(cached) " >&6
3172else
3173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3175do
3176  IFS=$as_save_IFS
3177  test -z "$as_dir" && as_dir=.
3178    for ac_prog in mkdir gmkdir; do
3179         for ac_exec_ext in '' $ac_executable_extensions; do
3180           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3181           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3182             'mkdir (GNU coreutils) '* | \
3183             'mkdir (coreutils) '* | \
3184             'mkdir (fileutils) '4.1*)
3185               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3186               break 3;;
3187           esac
3188         done
3189       done
3190  done
3191IFS=$as_save_IFS
3192
3193fi
3194
3195  test -d ./--version && rmdir ./--version
3196  if test "${ac_cv_path_mkdir+set}" = set; then
3197    MKDIR_P="$ac_cv_path_mkdir -p"
3198  else
3199    # As a last resort, use the slow shell script.  Don't cache a
3200    # value for MKDIR_P within a source directory, because that will
3201    # break other packages using the cache if that directory is
3202    # removed, or if the value is a relative name.
3203    MKDIR_P="$ac_install_sh -d"
3204  fi
3205fi
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3207$as_echo "$MKDIR_P" >&6; }
3208
3209for ac_prog in gawk mawk nawk awk
3210do
3211  # Extract the first word of "$ac_prog", so it can be a program name with args.
3212set dummy $ac_prog; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if ${ac_cv_prog_AWK+:} false; then :
3216  $as_echo_n "(cached) " >&6
3217else
3218  if test -n "$AWK"; then
3219  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  test -z "$as_dir" && as_dir=.
3226    for ac_exec_ext in '' $ac_executable_extensions; do
3227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228    ac_cv_prog_AWK="$ac_prog"
3229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230    break 2
3231  fi
3232done
3233  done
3234IFS=$as_save_IFS
3235
3236fi
3237fi
3238AWK=$ac_cv_prog_AWK
3239if test -n "$AWK"; then
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3241$as_echo "$AWK" >&6; }
3242else
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248  test -n "$AWK" && break
3249done
3250
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3252$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3253set x ${MAKE-make}
3254ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3255if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3256  $as_echo_n "(cached) " >&6
3257else
3258  cat >conftest.make <<\_ACEOF
3259SHELL = /bin/sh
3260all:
3261        @echo '@@@%%%=$(MAKE)=@@@%%%'
3262_ACEOF
3263# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3264case `${MAKE-make} -f conftest.make 2>/dev/null` in
3265  *@@@%%%=?*=@@@%%%*)
3266    eval ac_cv_prog_make_${ac_make}_set=yes;;
3267  *)
3268    eval ac_cv_prog_make_${ac_make}_set=no;;
3269esac
3270rm -f conftest.make
3271fi
3272if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3274$as_echo "yes" >&6; }
3275  SET_MAKE=
3276else
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279  SET_MAKE="MAKE=${MAKE-make}"
3280fi
3281
3282rm -rf .tst 2>/dev/null
3283mkdir .tst 2>/dev/null
3284if test -d .tst; then
3285  am__leading_dot=.
3286else
3287  am__leading_dot=_
3288fi
3289rmdir .tst 2>/dev/null
3290
3291
3292# Enforce the required autoconf version
3293
3294
3295
3296# Set the project's version numbers
3297
3298
3299
3300cat >>confdefs.h <<_ACEOF
3301#define CLP_VERSION "$PACKAGE_VERSION"
3302_ACEOF
3303
3304
3305# Parse package version, assuming major.minor.release. PACKAGE_VERSION is set
3306# by AC_INIT. Force components to 9999 if they're empty; this deals with
3307# things like `trunk' and other nonstandard forms.
3308
3309  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
3310  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
3311  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
3312  test -z "$coin_majorver"   && coin_majorver=9999
3313  test -z "$coin_minorver"   && coin_minorver=9999
3314  test -z "$coin_releasever" && coin_releasever=9999
3315
3316cat >>confdefs.h <<_ACEOF
3317#define CLP_VERSION_MAJOR $coin_majorver
3318_ACEOF
3319
3320
3321cat >>confdefs.h <<_ACEOF
3322#define CLP_VERSION_MINOR $coin_minorver
3323_ACEOF
3324
3325
3326cat >>confdefs.h <<_ACEOF
3327#define CLP_VERSION_RELEASE $coin_releasever
3328_ACEOF
3329
3330
3331# Create a variable set to the upper case version of the project name
3332
3333  COIN_PRJCT=CLP
3334
3335# Set the project's SVN revision number. The complicated sed expression
3336# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
3337# as a single number.
3338
3339  # Extract the first word of "svnversion", so it can be a program name with args.
3340set dummy svnversion; ac_word=$2
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342$as_echo_n "checking for $ac_word... " >&6; }
3343if ${ac_cv_prog_have_svnversion+:} false; then :
3344  $as_echo_n "(cached) " >&6
3345else
3346  if test -n "$have_svnversion"; then
3347  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352  IFS=$as_save_IFS
3353  test -z "$as_dir" && as_dir=.
3354    for ac_exec_ext in '' $ac_executable_extensions; do
3355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356    ac_cv_prog_have_svnversion="yes"
3357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358    break 2
3359  fi
3360done
3361  done
3362IFS=$as_save_IFS
3363
3364  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
3365fi
3366fi
3367have_svnversion=$ac_cv_prog_have_svnversion
3368if test -n "$have_svnversion"; then
3369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_svnversion" >&5
3370$as_echo "$have_svnversion" >&6; }
3371else
3372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374fi
3375
3376
3377  if test "x$have_svnversion" = xyes; then
3378
3379    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
3380    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
3381      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
3382
3383cat >>confdefs.h <<_ACEOF
3384#define CLP_SVN_REV $CLP_SVN_REV
3385_ACEOF
3386
3387    fi
3388  fi
3389
3390
3391
3392# Capture the libtool library version, if given.
3393
3394
3395
3396
3397# A useful makefile conditional that is always false
3398
3399   if false; then
3400  ALWAYS_FALSE_TRUE=
3401  ALWAYS_FALSE_FALSE='#'
3402else
3403  ALWAYS_FALSE_TRUE='#'
3404  ALWAYS_FALSE_FALSE=
3405fi
3406
3407
3408# Where should everything be installed by default?  The COIN default is to
3409# install directly into subdirectories of the directory where configure is
3410# run. The default would be to install under /usr/local.
3411
3412
3413
3414# Change the default compiler flags. This needs to run before
3415# AC_CANONICAL_BUILD.
3416
3417
3418
3419# Get the build and host types
3420
3421
3422
3423
3424# libtool has some magic for host_os=mingw, but doesn't know about msys
3425
3426  if test $host_os = msys ; then
3427    host_os=mingw
3428    host=`echo $host | sed -e 's/msys/mingw/'`
3429  fi
3430
3431# Make silent build rules the default (https://www.gnu.org/software/automake/
3432# manual/html_node/Automake-Silent-Rules.html). Run before AM_INIT_AUTOMAKE,
3433# which will AC_REQUIRE it anyway.
3434
3435  # Check whether --enable-silent-rules was given.
3436if test "${enable_silent_rules+set}" = set; then :
3437  enableval=$enable_silent_rules;
3438fi
3439
3440case $enable_silent_rules in # (((
3441  yes) AM_DEFAULT_VERBOSITY=0;;
3442   no) AM_DEFAULT_VERBOSITY=1;;
3443    *) AM_DEFAULT_VERBOSITY=0;;
3444esac
3445am_make=${MAKE-make}
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3447$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3448if ${am_cv_make_support_nested_variables+:} false; then :
3449  $as_echo_n "(cached) " >&6
3450else
3451  if $as_echo 'TRUE=$(BAR$(V))
3452BAR0=false
3453BAR1=true
3454V=1
3455am__doit:
3456        @$(TRUE)
3457.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3458  am_cv_make_support_nested_variables=yes
3459else
3460  am_cv_make_support_nested_variables=no
3461fi
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3464$as_echo "$am_cv_make_support_nested_variables" >&6; }
3465if test $am_cv_make_support_nested_variables = yes; then
3466    AM_V='$(V)'
3467  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3468else
3469  AM_V=$AM_DEFAULT_VERBOSITY
3470  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3471fi
3472AM_BACKSLASH='\'
3473
3474
3475# Initialize automake
3476# - don't AC_DEFINE PACKAGE or VERSION (but there're still defined as shell
3477#   variables in configure, and as make variables).
3478# - disable dist target
3479# - enable all automake warnings
3480
3481  if test "`cd $srcdir && pwd`" != "`pwd`"; then
3482  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3483  # is not polluted with repeated "-I."
3484  am__isrc=' -I$(srcdir)'
3485  # test to see if srcdir already configured
3486  if test -f $srcdir/config.status; then
3487    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3488  fi
3489fi
3490
3491# test whether we have cygpath
3492if test -z "$CYGPATH_W"; then
3493  if (cygpath --version) >/dev/null 2>/dev/null; then
3494    CYGPATH_W='cygpath -w'
3495  else
3496    CYGPATH_W=echo
3497  fi
3498fi
3499
3500
3501# Define the identity of the package.
3502 PACKAGE='coin-or-clp'
3503 VERSION='trunk'
3504
3505
3506# Some tools Automake needs.
3507
3508ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3509
3510
3511AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3512
3513
3514AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3515
3516
3517AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3518
3519
3520MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3521
3522# For better backward compatibility.  To be removed once Automake 1.9.x
3523# dies out for good.  For more background, see:
3524# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3525# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3526mkdir_p='$(MKDIR_P)'
3527
3528# We need awk for the "check" target (and possibly the TAP driver).  The
3529# system "awk" is bad on some platforms.
3530# Always define AMTAR for backward compatibility.  Yes, it's still used
3531# in the wild :-(  We should find a proper way to deprecate it ...
3532AMTAR='$${TAR-tar}'
3533
3534
3535# We'll loop over all known methods to create a tar archive until one works.
3536_am_tools='gnutar  pax cpio none'
3537
3538am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3539
3540
3541
3542
3543
3544
3545# POSIX will say in a future version that running "rm -f" with no argument
3546# is OK; and we want to be able to make that assumption in our Makefile
3547# recipes.  So use an aggressive probe to check that the usage we want is
3548# actually supported "in the wild" to an acceptable degree.
3549# See automake bug#10828.
3550# To make any issue more visible, cause the running configure to be aborted
3551# by default if the 'rm' program in use doesn't match our expectations; the
3552# user can still override this though.
3553if rm -f && rm -fr && rm -rf; then : OK; else
3554  cat >&2 <<'END'
3555Oops!
3556
3557Your 'rm' program seems unable to run without file operands specified
3558on the command line, even when the '-f' option is present.  This is contrary
3559to the behaviour of most rm programs out there, and not conforming with
3560the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3561
3562Please tell bug-automake@gnu.org about your system, including the value
3563of your $PATH and any error possibly output before this message.  This
3564can help us improve future automake versions.
3565
3566END
3567  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3568    echo 'Configuration will proceed anyway, since you have set the' >&2
3569    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3570    echo >&2
3571  else
3572    cat >&2 <<'END'
3573Aborting the configuration process, to ensure you take notice of the issue.
3574
3575You can download and install GNU coreutils to get an 'rm' implementation
3576that behaves properly: <http://www.gnu.org/software/coreutils/>.
3577
3578If you want to complete the configuration process using your problematic
3579'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3580to "yes", and re-run configure.
3581
3582END
3583    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3584  fi
3585fi
3586
3587
3588# Disable automatic rebuild of configure/Makefile. Use run_autotools.
3589
3590
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3592$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3593    # Check whether --enable-maintainer-mode was given.
3594if test "${enable_maintainer_mode+set}" = set; then :
3595  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3596else
3597  USE_MAINTAINER_MODE=no
3598fi
3599
3600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3601$as_echo "$USE_MAINTAINER_MODE" >&6; }
3602   if test $USE_MAINTAINER_MODE = yes; then
3603  MAINTAINER_MODE_TRUE=
3604  MAINTAINER_MODE_FALSE='#'
3605else
3606  MAINTAINER_MODE_TRUE='#'
3607  MAINTAINER_MODE_FALSE=
3608fi
3609
3610  MAINT=$MAINTAINER_MODE_TRUE
3611
3612
3613
3614
3615#############################################################################
3616#                         Standard build tool stuff                         #
3617#############################################################################
3618
3619# Get the name of the C++ compiler and appropriate compiler options.
3620
3621DEPDIR="${am__leading_dot}deps"
3622
3623ac_config_commands="$ac_config_commands depfiles"
3624
3625
3626am_make=${MAKE-make}
3627cat > confinc << 'END'
3628am__doit:
3629        @echo this is the am__doit target
3630.PHONY: am__doit
3631END
3632# If we don't find an include directive, just comment out the code.
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3634$as_echo_n "checking for style of include used by $am_make... " >&6; }
3635am__include="#"
3636am__quote=
3637_am_result=none
3638# First try GNU make style include.
3639echo "include confinc" > confmf
3640# Ignore all kinds of additional output from 'make'.
3641case `$am_make -s -f confmf 2> /dev/null` in #(
3642*the\ am__doit\ target*)
3643  am__include=include
3644  am__quote=
3645  _am_result=GNU
3646  ;;
3647esac
3648# Now try BSD make style include.
3649if test "$am__include" = "#"; then
3650   echo '.include "confinc"' > confmf
3651   case `$am_make -s -f confmf 2> /dev/null` in #(
3652   *the\ am__doit\ target*)
3653     am__include=.include
3654     am__quote="\""
3655     _am_result=BSD
3656     ;;
3657   esac
3658fi
3659
3660
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3662$as_echo "$_am_result" >&6; }
3663rm -f confinc confmf
3664
3665# Check whether --enable-dependency-tracking was given.
3666if test "${enable_dependency_tracking+set}" = set; then :
3667  enableval=$enable_dependency_tracking;
3668fi
3669
3670if test "x$enable_dependency_tracking" != xno; then
3671  am_depcomp="$ac_aux_dir/depcomp"
3672  AMDEPBACKSLASH='\'
3673  am__nodep='_no'
3674fi
3675 if test "x$enable_dependency_tracking" != xno; then
3676  AMDEP_TRUE=
3677  AMDEP_FALSE='#'
3678else
3679  AMDEP_TRUE='#'
3680  AMDEP_FALSE=
3681fi
3682
3683
3684
3685
3686
3687# Setting up libtool with LT_INIT will AC_REQUIRE AC_PROG_CC, but we want
3688# to invoke it from this macro first so that we can supply a parameter.
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# only shared libraries.
9854
9855# (lh, 180302) Sadly, we can't use the obvious libtool macros
9856# (AC_{ENABLE,DISABLE}_{SHARED,STATIC}, nor parameters to LT_INIT,
9857# precisely because these macros record the default behaviour by defining
9858# a macro, _LT_ENABLE_{SHARED,STATIC}_DEFAULT. No shell code involved, hence
9859# any shell conditional has no effect. Either we trust libtool or we need
9860# something more inventive. The relevant libtool macros are in ltoptions.m4,
9861# _LT_ENABLE_SHARED and _LT_ENABLE_STATIC.
9862
9863# case $host_os in
9864#   cygwin* | mingw* | msys* )
9865#     AC_DISABLE_SHARED
9866#     ;;
9867#   *)
9868#     AC_DISABLE_STATIC
9869#     ;;
9870# esac
9871
9872# Create libtool.
9873
9874
9875
9876
9877
9878# Set options
9879
9880
9881
9882        enable_dlopen=no
9883
9884
9885  enable_win32_dll=no
9886
9887
9888            # Check whether --enable-shared was given.
9889if test "${enable_shared+set}" = set; then :
9890  enableval=$enable_shared; p=${PACKAGE-default}
9891    case $enableval in
9892    yes) enable_shared=yes ;;
9893    no) enable_shared=no ;;
9894    *)
9895      enable_shared=no
9896      # Look at the argument we got.  We use all the common list separators.
9897      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9898      for pkg in $enableval; do
9899        IFS=$lt_save_ifs
9900        if test "X$pkg" = "X$p"; then
9901          enable_shared=yes
9902        fi
9903      done
9904      IFS=$lt_save_ifs
9905      ;;
9906    esac
9907else
9908  enable_shared=yes
9909fi
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919  # Check whether --enable-static was given.
9920if test "${enable_static+set}" = set; then :
9921  enableval=$enable_static; p=${PACKAGE-default}
9922    case $enableval in
9923    yes) enable_static=yes ;;
9924    no) enable_static=no ;;
9925    *)
9926     enable_static=no
9927      # Look at the argument we got.  We use all the common list separators.
9928      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9929      for pkg in $enableval; do
9930        IFS=$lt_save_ifs
9931        if test "X$pkg" = "X$p"; then
9932          enable_static=yes
9933        fi
9934      done
9935      IFS=$lt_save_ifs
9936      ;;
9937    esac
9938else
9939  enable_static=yes
9940fi
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951# Check whether --with-pic was given.
9952if test "${with_pic+set}" = set; then :
9953  withval=$with_pic; lt_p=${PACKAGE-default}
9954    case $withval in
9955    yes|no) pic_mode=$withval ;;
9956    *)
9957      pic_mode=default
9958      # Look at the argument we got.  We use all the common list separators.
9959      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9960      for lt_pkg in $withval; do
9961        IFS=$lt_save_ifs
9962        if test "X$lt_pkg" = "X$lt_p"; then
9963          pic_mode=yes
9964        fi
9965      done
9966      IFS=$lt_save_ifs
9967      ;;
9968    esac
9969else
9970  pic_mode=default
9971fi
9972
9973
9974
9975
9976
9977
9978
9979
9980  # Check whether --enable-fast-install was given.
9981if test "${enable_fast_install+set}" = set; then :
9982  enableval=$enable_fast_install; p=${PACKAGE-default}
9983    case $enableval in
9984    yes) enable_fast_install=yes ;;
9985    no) enable_fast_install=no ;;
9986    *)
9987      enable_fast_install=no
9988      # Look at the argument we got.  We use all the common list separators.
9989      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9990      for pkg in $enableval; do
9991        IFS=$lt_save_ifs
9992        if test "X$pkg" = "X$p"; then
9993          enable_fast_install=yes
9994        fi
9995      done
9996      IFS=$lt_save_ifs
9997      ;;
9998    esac
9999else
10000  enable_fast_install=yes
10001fi
10002
10003
10004
10005
10006
10007
10008
10009
10010  shared_archive_member_spec=
10011case $host,$enable_shared in
10012power*-*-aix[5-9]*,yes)
10013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10014$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10015
10016# Check whether --with-aix-soname was given.
10017if test "${with_aix_soname+set}" = set; then :
10018  withval=$with_aix_soname; case $withval in
10019    aix|svr4|both)
10020      ;;
10021    *)
10022      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10023      ;;
10024    esac
10025    lt_cv_with_aix_soname=$with_aix_soname
10026else
10027  if ${lt_cv_with_aix_soname+:} false; then :
10028  $as_echo_n "(cached) " >&6
10029else
10030  lt_cv_with_aix_soname=aix
10031fi
10032
10033    with_aix_soname=$lt_cv_with_aix_soname
10034fi
10035
10036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10037$as_echo "$with_aix_soname" >&6; }
10038  if test aix != "$with_aix_soname"; then
10039    # For the AIX way of multilib, we name the shared archive member
10040    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10041    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10042    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10043    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10044    if test 64 = "${OBJECT_MODE-32}"; then
10045      shared_archive_member_spec=shr_64
10046    else
10047      shared_archive_member_spec=shr
10048    fi
10049  fi
10050  ;;
10051*)
10052  with_aix_soname=aix
10053  ;;
10054esac
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065# This can be used to rebuild libtool when needed
10066LIBTOOL_DEPS=$ltmain
10067
10068# Always use our own libtool.
10069LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100test -z "$LN_S" && LN_S="ln -s"
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115if test -n "${ZSH_VERSION+set}"; then
10116   setopt NO_GLOB_SUBST
10117fi
10118
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10120$as_echo_n "checking for objdir... " >&6; }
10121if ${lt_cv_objdir+:} false; then :
10122  $as_echo_n "(cached) " >&6
10123else
10124  rm -f .libs 2>/dev/null
10125mkdir .libs 2>/dev/null
10126if test -d .libs; then
10127  lt_cv_objdir=.libs
10128else
10129  # MS-DOS does not allow filenames that begin with a dot.
10130  lt_cv_objdir=_libs
10131fi
10132rmdir .libs 2>/dev/null
10133fi
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10135$as_echo "$lt_cv_objdir" >&6; }
10136objdir=$lt_cv_objdir
10137
10138
10139
10140
10141
10142cat >>confdefs.h <<_ACEOF
10143#define LT_OBJDIR "$lt_cv_objdir/"
10144_ACEOF
10145
10146
10147
10148
10149case $host_os in
10150aix3*)
10151  # AIX sometimes has problems with the GCC collect2 program.  For some
10152  # reason, if we set the COLLECT_NAMES environment variable, the problems
10153  # vanish in a puff of smoke.
10154  if test set != "${COLLECT_NAMES+set}"; then
10155    COLLECT_NAMES=
10156    export COLLECT_NAMES
10157  fi
10158  ;;
10159esac
10160
10161# Global variables:
10162ofile=libtool
10163can_build_shared=yes
10164
10165# All known linkers require a '.a' archive for static linking (except MSVC,
10166# which needs '.lib').
10167libext=a
10168
10169with_gnu_ld=$lt_cv_prog_gnu_ld
10170
10171old_CC=$CC
10172old_CFLAGS=$CFLAGS
10173
10174# Set sane defaults for various variables
10175test -z "$CC" && CC=cc
10176test -z "$LTCC" && LTCC=$CC
10177test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10178test -z "$LD" && LD=ld
10179test -z "$ac_objext" && ac_objext=o
10180
10181func_cc_basename $compiler
10182cc_basename=$func_cc_basename_result
10183
10184
10185# Only perform the check for file, if the check method requires it
10186test -z "$MAGIC_CMD" && MAGIC_CMD=file
10187case $deplibs_check_method in
10188file_magic*)
10189  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10191$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10192if ${lt_cv_path_MAGIC_CMD+:} false; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195  case $MAGIC_CMD in
10196[\\/*] |  ?:[\\/]*)
10197  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10198  ;;
10199*)
10200  lt_save_MAGIC_CMD=$MAGIC_CMD
10201  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10202  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10203  for ac_dir in $ac_dummy; do
10204    IFS=$lt_save_ifs
10205    test -z "$ac_dir" && ac_dir=.
10206    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10207      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10208      if test -n "$file_magic_test_file"; then
10209        case $deplibs_check_method in
10210        "file_magic "*)
10211          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10212          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10213          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10214            $EGREP "$file_magic_regex" > /dev/null; then
10215            :
10216          else
10217            cat <<_LT_EOF 1>&2
10218
10219*** Warning: the command libtool uses to detect shared libraries,
10220*** $file_magic_cmd, produces output that libtool cannot recognize.
10221*** The result is that libtool may fail to recognize shared libraries
10222*** as such.  This will affect the creation of libtool libraries that
10223*** depend on shared libraries, but programs linked with such libtool
10224*** libraries will work regardless of this problem.  Nevertheless, you
10225*** may want to report the problem to your system manager and/or to
10226*** bug-libtool@gnu.org
10227
10228_LT_EOF
10229          fi ;;
10230        esac
10231      fi
10232      break
10233    fi
10234  done
10235  IFS=$lt_save_ifs
10236  MAGIC_CMD=$lt_save_MAGIC_CMD
10237  ;;
10238esac
10239fi
10240
10241MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10242if test -n "$MAGIC_CMD"; then
10243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10244$as_echo "$MAGIC_CMD" >&6; }
10245else
10246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247$as_echo "no" >&6; }
10248fi
10249
10250
10251
10252
10253
10254if test -z "$lt_cv_path_MAGIC_CMD"; then
10255  if test -n "$ac_tool_prefix"; then
10256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10257$as_echo_n "checking for file... " >&6; }
10258if ${lt_cv_path_MAGIC_CMD+:} false; then :
10259  $as_echo_n "(cached) " >&6
10260else
10261  case $MAGIC_CMD in
10262[\\/*] |  ?:[\\/]*)
10263  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10264  ;;
10265*)
10266  lt_save_MAGIC_CMD=$MAGIC_CMD
10267  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10268  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10269  for ac_dir in $ac_dummy; do
10270    IFS=$lt_save_ifs
10271    test -z "$ac_dir" && ac_dir=.
10272    if test -f "$ac_dir/file"; then
10273      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10274      if test -n "$file_magic_test_file"; then
10275        case $deplibs_check_method in
10276        "file_magic "*)
10277          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10278          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10279          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10280            $EGREP "$file_magic_regex" > /dev/null; then
10281            :
10282          else
10283            cat <<_LT_EOF 1>&2
10284
10285*** Warning: the command libtool uses to detect shared libraries,
10286*** $file_magic_cmd, produces output that libtool cannot recognize.
10287*** The result is that libtool may fail to recognize shared libraries
10288*** as such.  This will affect the creation of libtool libraries that
10289*** depend on shared libraries, but programs linked with such libtool
10290*** libraries will work regardless of this problem.  Nevertheless, you
10291*** may want to report the problem to your system manager and/or to
10292*** bug-libtool@gnu.org
10293
10294_LT_EOF
10295          fi ;;
10296        esac
10297      fi
10298      break
10299    fi
10300  done
10301  IFS=$lt_save_ifs
10302  MAGIC_CMD=$lt_save_MAGIC_CMD
10303  ;;
10304esac
10305fi
10306
10307MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10308if test -n "$MAGIC_CMD"; then
10309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10310$as_echo "$MAGIC_CMD" >&6; }
10311else
10312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313$as_echo "no" >&6; }
10314fi
10315
10316
10317  else
10318    MAGIC_CMD=:
10319  fi
10320fi
10321
10322  fi
10323  ;;
10324esac
10325
10326# Use C for the default configuration in the libtool script
10327
10328lt_save_CC=$CC
10329ac_ext=c
10330ac_cpp='$CPP $CPPFLAGS'
10331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10333ac_compiler_gnu=$ac_cv_c_compiler_gnu
10334
10335
10336# Source file extension for C test sources.
10337ac_ext=c
10338
10339# Object file extension for compiled C test sources.
10340objext=o
10341objext=$objext
10342
10343# Code to be used in simple compile tests
10344lt_simple_compile_test_code="int some_variable = 0;"
10345
10346# Code to be used in simple link tests
10347lt_simple_link_test_code='int main(){return(0);}'
10348
10349
10350
10351
10352
10353
10354
10355# If no C compiler was specified, use CC.
10356LTCC=${LTCC-"$CC"}
10357
10358# If no C compiler flags were specified, use CFLAGS.
10359LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10360
10361# Allow CC to be a program name with arguments.
10362compiler=$CC
10363
10364# Save the default compiler, since it gets overwritten when the other
10365# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10366compiler_DEFAULT=$CC
10367
10368# save warnings/boilerplate of simple test code
10369ac_outfile=conftest.$ac_objext
10370echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10371eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10372_lt_compiler_boilerplate=`cat conftest.err`
10373$RM conftest*
10374
10375ac_outfile=conftest.$ac_objext
10376echo "$lt_simple_link_test_code" >conftest.$ac_ext
10377eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10378_lt_linker_boilerplate=`cat conftest.err`
10379$RM -r conftest*
10380
10381
10382if test -n "$compiler"; then
10383
10384lt_prog_compiler_no_builtin_flag=
10385
10386if test yes = "$GCC"; then
10387  case $cc_basename in
10388  nvcc*)
10389    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10390  *)
10391    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10392  esac
10393
10394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10395$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10396if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10397  $as_echo_n "(cached) " >&6
10398else
10399  lt_cv_prog_compiler_rtti_exceptions=no
10400   ac_outfile=conftest.$ac_objext
10401   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10402   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10403   # Insert the option either (1) after the last *FLAGS variable, or
10404   # (2) before a word containing "conftest.", or (3) at the end.
10405   # Note that $ac_compile itself does not contain backslashes and begins
10406   # with a dollar sign (not a hyphen), so the echo should work correctly.
10407   # The option is referenced via a variable to avoid confusing sed.
10408   lt_compile=`echo "$ac_compile" | $SED \
10409   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10410   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10411   -e 's:$: $lt_compiler_flag:'`
10412   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10413   (eval "$lt_compile" 2>conftest.err)
10414   ac_status=$?
10415   cat conftest.err >&5
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   if (exit $ac_status) && test -s "$ac_outfile"; then
10418     # The compiler can only warn and ignore the option if not recognized
10419     # So say no if there are warnings other than the usual output.
10420     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10421     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10422     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10423       lt_cv_prog_compiler_rtti_exceptions=yes
10424     fi
10425   fi
10426   $RM conftest*
10427
10428fi
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10430$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10431
10432if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10433    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10434else
10435    :
10436fi
10437
10438fi
10439
10440
10441
10442
10443
10444
10445  lt_prog_compiler_wl=
10446lt_prog_compiler_pic=
10447lt_prog_compiler_static=
10448
10449
10450  if test yes = "$GCC"; then
10451    lt_prog_compiler_wl='-Wl,'
10452    lt_prog_compiler_static='-static'
10453
10454    case $host_os in
10455      aix*)
10456      # All AIX code is PIC.
10457      if test ia64 = "$host_cpu"; then
10458        # AIX 5 now supports IA64 processor
10459        lt_prog_compiler_static='-Bstatic'
10460      fi
10461      lt_prog_compiler_pic='-fPIC'
10462      ;;
10463
10464    amigaos*)
10465      case $host_cpu in
10466      powerpc)
10467            # see comment about AmigaOS4 .so support
10468            lt_prog_compiler_pic='-fPIC'
10469        ;;
10470      m68k)
10471            # FIXME: we need at least 68020 code to build shared libraries, but
10472            # adding the '-m68020' flag to GCC prevents building anything better,
10473            # like '-m68040'.
10474            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10475        ;;
10476      esac
10477      ;;
10478
10479    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10480      # PIC is the default for these OSes.
10481      ;;
10482
10483    mingw* | cygwin* | pw32* | os2* | cegcc*)
10484      # This hack is so that the source file can tell whether it is being
10485      # built for inclusion in a dll (and should export symbols for example).
10486      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10487      # (--disable-auto-import) libraries
10488      lt_prog_compiler_pic='-DDLL_EXPORT'
10489      case $host_os in
10490      os2*)
10491        lt_prog_compiler_static='$wl-static'
10492        ;;
10493      esac
10494      ;;
10495
10496    darwin* | rhapsody*)
10497      # PIC is the default on this platform
10498      # Common symbols not allowed in MH_DYLIB files
10499      lt_prog_compiler_pic='-fno-common'
10500      ;;
10501
10502    haiku*)
10503      # PIC is the default for Haiku.
10504      # The "-static" flag exists, but is broken.
10505      lt_prog_compiler_static=
10506      ;;
10507
10508    hpux*)
10509      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10510      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10511      # sets the default TLS model and affects inlining.
10512      case $host_cpu in
10513      hppa*64*)
10514        # +Z the default
10515        ;;
10516      *)
10517        lt_prog_compiler_pic='-fPIC'
10518        ;;
10519      esac
10520      ;;
10521
10522    interix[3-9]*)
10523      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10524      # Instead, we relocate shared libraries at runtime.
10525      ;;
10526
10527    msdosdjgpp*)
10528      # Just because we use GCC doesn't mean we suddenly get shared libraries
10529      # on systems that don't support them.
10530      lt_prog_compiler_can_build_shared=no
10531      enable_shared=no
10532      ;;
10533
10534    *nto* | *qnx*)
10535      # QNX uses GNU C++, but need to define -shared option too, otherwise
10536      # it will coredump.
10537      lt_prog_compiler_pic='-fPIC -shared'
10538      ;;
10539
10540    sysv4*MP*)
10541      if test -d /usr/nec; then
10542        lt_prog_compiler_pic=-Kconform_pic
10543      fi
10544      ;;
10545
10546    *)
10547      lt_prog_compiler_pic='-fPIC'
10548      ;;
10549    esac
10550
10551    case $cc_basename in
10552    nvcc*) # Cuda Compiler Driver 2.2
10553      lt_prog_compiler_wl='-Xlinker '
10554      if test -n "$lt_prog_compiler_pic"; then
10555        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10556      fi
10557      ;;
10558    esac
10559  else
10560    # PORTME Check for flag to pass linker flags through the system compiler.
10561    case $host_os in
10562    aix*)
10563      lt_prog_compiler_wl='-Wl,'
10564      if test ia64 = "$host_cpu"; then
10565        # AIX 5 now supports IA64 processor
10566        lt_prog_compiler_static='-Bstatic'
10567      else
10568        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10569      fi
10570      ;;
10571
10572    darwin* | rhapsody*)
10573      # PIC is the default on this platform
10574      # Common symbols not allowed in MH_DYLIB files
10575      lt_prog_compiler_pic='-fno-common'
10576      case $cc_basename in
10577      nagfor*)
10578        # NAG Fortran compiler
10579        lt_prog_compiler_wl='-Wl,-Wl,,'
10580        lt_prog_compiler_pic='-PIC'
10581        lt_prog_compiler_static='-Bstatic'
10582        ;;
10583      esac
10584      ;;
10585
10586    mingw* | cygwin* | pw32* | os2* | cegcc*)
10587      # This hack is so that the source file can tell whether it is being
10588      # built for inclusion in a dll (and should export symbols for example).
10589      lt_prog_compiler_pic='-DDLL_EXPORT'
10590      case $host_os in
10591      os2*)
10592        lt_prog_compiler_static='$wl-static'
10593        ;;
10594      esac
10595      ;;
10596
10597    hpux9* | hpux10* | hpux11*)
10598      lt_prog_compiler_wl='-Wl,'
10599      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10600      # not for PA HP-UX.
10601      case $host_cpu in
10602      hppa*64*|ia64*)
10603        # +Z the default
10604        ;;
10605      *)
10606        lt_prog_compiler_pic='+Z'
10607        ;;
10608      esac
10609      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10610      lt_prog_compiler_static='$wl-a ${wl}archive'
10611      ;;
10612
10613    irix5* | irix6* | nonstopux*)
10614      lt_prog_compiler_wl='-Wl,'
10615      # PIC (with -KPIC) is the default.
10616      lt_prog_compiler_static='-non_shared'
10617      ;;
10618
10619    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10620      case $cc_basename in
10621      # old Intel for x86_64, which still supported -KPIC.
10622      ecc*)
10623        lt_prog_compiler_wl='-Wl,'
10624        lt_prog_compiler_pic='-KPIC'
10625        lt_prog_compiler_static='-static'
10626        ;;
10627      # icc used to be incompatible with GCC.
10628      # ICC 10 doesn't accept -KPIC any more.
10629      icc* | ifort*)
10630        lt_prog_compiler_wl='-Wl,'
10631        lt_prog_compiler_pic='-fPIC'
10632        lt_prog_compiler_static='-static'
10633        ;;
10634      # Lahey Fortran 8.1.
10635      lf95*)
10636        lt_prog_compiler_wl='-Wl,'
10637        lt_prog_compiler_pic='--shared'
10638        lt_prog_compiler_static='--static'
10639        ;;
10640      nagfor*)
10641        # NAG Fortran compiler
10642        lt_prog_compiler_wl='-Wl,-Wl,,'
10643        lt_prog_compiler_pic='-PIC'
10644        lt_prog_compiler_static='-Bstatic'
10645        ;;
10646      tcc*)
10647        # Fabrice Bellard et al's Tiny C Compiler
10648        lt_prog_compiler_wl='-Wl,'
10649        lt_prog_compiler_pic='-fPIC'
10650        lt_prog_compiler_static='-static'
10651        ;;
10652      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10653        # Portland Group compilers (*not* the Pentium gcc compiler,
10654        # which looks to be a dead project)
10655        lt_prog_compiler_wl='-Wl,'
10656        lt_prog_compiler_pic='-fpic'
10657        lt_prog_compiler_static='-Bstatic'
10658        ;;
10659      ccc*)
10660        lt_prog_compiler_wl='-Wl,'
10661        # All Alpha code is PIC.
10662        lt_prog_compiler_static='-non_shared'
10663        ;;
10664      xl* | bgxl* | bgf* | mpixl*)
10665        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10666        lt_prog_compiler_wl='-Wl,'
10667        lt_prog_compiler_pic='-qpic'
10668        lt_prog_compiler_static='-qstaticlink'
10669        ;;
10670      *)
10671        case `$CC -V 2>&1 | sed 5q` in
10672        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10673          # Sun Fortran 8.3 passes all unrecognized flags to the linker
10674          lt_prog_compiler_pic='-KPIC'
10675          lt_prog_compiler_static='-Bstatic'
10676          lt_prog_compiler_wl=''
10677          ;;
10678        *Sun\ F* | *Sun*Fortran*)
10679          lt_prog_compiler_pic='-KPIC'
10680          lt_prog_compiler_static='-Bstatic'
10681          lt_prog_compiler_wl='-Qoption ld '
10682          ;;
10683        *Sun\ C*)
10684          # Sun C 5.9
10685          lt_prog_compiler_pic='-KPIC'
10686          lt_prog_compiler_static='-Bstatic'
10687          lt_prog_compiler_wl='-Wl,'
10688          ;;
10689        *Intel*\ [CF]*Compiler*)
10690          lt_prog_compiler_wl='-Wl,'
10691          lt_prog_compiler_pic='-fPIC'
10692          lt_prog_compiler_static='-static'
10693          ;;
10694        *Portland\ Group*)
10695          lt_prog_compiler_wl='-Wl,'
10696          lt_prog_compiler_pic='-fpic'
10697          lt_prog_compiler_static='-Bstatic'
10698          ;;
10699        esac
10700        ;;
10701      esac
10702      ;;
10703
10704    newsos6)
10705      lt_prog_compiler_pic='-KPIC'
10706      lt_prog_compiler_static='-Bstatic'
10707      ;;
10708
10709    *nto* | *qnx*)
10710      # QNX uses GNU C++, but need to define -shared option too, otherwise
10711      # it will coredump.
10712      lt_prog_compiler_pic='-fPIC -shared'
10713      ;;
10714
10715    osf3* | osf4* | osf5*)
10716      lt_prog_compiler_wl='-Wl,'
10717      # All OSF/1 code is PIC.
10718      lt_prog_compiler_static='-non_shared'
10719      ;;
10720
10721    rdos*)
10722      lt_prog_compiler_static='-non_shared'
10723      ;;
10724
10725    solaris*)
10726      lt_prog_compiler_pic='-KPIC'
10727      lt_prog_compiler_static='-Bstatic'
10728      case $cc_basename in
10729      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10730        lt_prog_compiler_wl='-Qoption ld ';;
10731      *)
10732        lt_prog_compiler_wl='-Wl,';;
10733      esac
10734      ;;
10735
10736    sunos4*)
10737      lt_prog_compiler_wl='-Qoption ld '
10738      lt_prog_compiler_pic='-PIC'
10739      lt_prog_compiler_static='-Bstatic'
10740      ;;
10741
10742    sysv4 | sysv4.2uw2* | sysv4.3*)
10743      lt_prog_compiler_wl='-Wl,'
10744      lt_prog_compiler_pic='-KPIC'
10745      lt_prog_compiler_static='-Bstatic'
10746      ;;
10747
10748    sysv4*MP*)
10749      if test -d /usr/nec; then
10750        lt_prog_compiler_pic='-Kconform_pic'
10751        lt_prog_compiler_static='-Bstatic'
10752      fi
10753      ;;
10754
10755    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10756      lt_prog_compiler_wl='-Wl,'
10757      lt_prog_compiler_pic='-KPIC'
10758      lt_prog_compiler_static='-Bstatic'
10759      ;;
10760
10761    unicos*)
10762      lt_prog_compiler_wl='-Wl,'
10763      lt_prog_compiler_can_build_shared=no
10764      ;;
10765
10766    uts4*)
10767      lt_prog_compiler_pic='-pic'
10768      lt_prog_compiler_static='-Bstatic'
10769      ;;
10770
10771    *)
10772      lt_prog_compiler_can_build_shared=no
10773      ;;
10774    esac
10775  fi
10776
10777case $host_os in
10778  # For platforms that do not support PIC, -DPIC is meaningless:
10779  *djgpp*)
10780    lt_prog_compiler_pic=
10781    ;;
10782  *)
10783    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10784    ;;
10785esac
10786
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10788$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10789if ${lt_cv_prog_compiler_pic+:} false; then :
10790  $as_echo_n "(cached) " >&6
10791else
10792  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10793fi
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10795$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10796lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10797
10798#
10799# Check to make sure the PIC flag actually works.
10800#
10801if test -n "$lt_prog_compiler_pic"; then
10802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10803$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10804if ${lt_cv_prog_compiler_pic_works+:} false; then :
10805  $as_echo_n "(cached) " >&6
10806else
10807  lt_cv_prog_compiler_pic_works=no
10808   ac_outfile=conftest.$ac_objext
10809   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10810   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10811   # Insert the option either (1) after the last *FLAGS variable, or
10812   # (2) before a word containing "conftest.", or (3) at the end.
10813   # Note that $ac_compile itself does not contain backslashes and begins
10814   # with a dollar sign (not a hyphen), so the echo should work correctly.
10815   # The option is referenced via a variable to avoid confusing sed.
10816   lt_compile=`echo "$ac_compile" | $SED \
10817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819   -e 's:$: $lt_compiler_flag:'`
10820   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10821   (eval "$lt_compile" 2>conftest.err)
10822   ac_status=$?
10823   cat conftest.err >&5
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   if (exit $ac_status) && test -s "$ac_outfile"; then
10826     # The compiler can only warn and ignore the option if not recognized
10827     # So say no if there are warnings other than the usual output.
10828     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10829     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10830     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10831       lt_cv_prog_compiler_pic_works=yes
10832     fi
10833   fi
10834   $RM conftest*
10835
10836fi
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10838$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10839
10840if test yes = "$lt_cv_prog_compiler_pic_works"; then
10841    case $lt_prog_compiler_pic in
10842     "" | " "*) ;;
10843     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10844     esac
10845else
10846    lt_prog_compiler_pic=
10847     lt_prog_compiler_can_build_shared=no
10848fi
10849
10850fi
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862#
10863# Check to make sure the static flag actually works.
10864#
10865wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10867$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10868if ${lt_cv_prog_compiler_static_works+:} false; then :
10869  $as_echo_n "(cached) " >&6
10870else
10871  lt_cv_prog_compiler_static_works=no
10872   save_LDFLAGS=$LDFLAGS
10873   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10874   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10875   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10876     # The linker can only warn and ignore the option if not recognized
10877     # So say no if there are warnings
10878     if test -s conftest.err; then
10879       # Append any errors to the config.log.
10880       cat conftest.err 1>&5
10881       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10882       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10883       if diff conftest.exp conftest.er2 >/dev/null; then
10884         lt_cv_prog_compiler_static_works=yes
10885       fi
10886     else
10887       lt_cv_prog_compiler_static_works=yes
10888     fi
10889   fi
10890   $RM -r conftest*
10891   LDFLAGS=$save_LDFLAGS
10892
10893fi
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10895$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10896
10897if test yes = "$lt_cv_prog_compiler_static_works"; then
10898    :
10899else
10900    lt_prog_compiler_static=
10901fi
10902
10903
10904
10905
10906
10907
10908
10909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10910$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10911if ${lt_cv_prog_compiler_c_o+:} false; then :
10912  $as_echo_n "(cached) " >&6
10913else
10914  lt_cv_prog_compiler_c_o=no
10915   $RM -r conftest 2>/dev/null
10916   mkdir conftest
10917   cd conftest
10918   mkdir out
10919   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10920
10921   lt_compiler_flag="-o out/conftest2.$ac_objext"
10922   # Insert the option either (1) after the last *FLAGS variable, or
10923   # (2) before a word containing "conftest.", or (3) at the end.
10924   # Note that $ac_compile itself does not contain backslashes and begins
10925   # with a dollar sign (not a hyphen), so the echo should work correctly.
10926   lt_compile=`echo "$ac_compile" | $SED \
10927   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10928   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10929   -e 's:$: $lt_compiler_flag:'`
10930   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10931   (eval "$lt_compile" 2>out/conftest.err)
10932   ac_status=$?
10933   cat out/conftest.err >&5
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10936   then
10937     # The compiler can only warn and ignore the option if not recognized
10938     # So say no if there are warnings
10939     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10940     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10941     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10942       lt_cv_prog_compiler_c_o=yes
10943     fi
10944   fi
10945   chmod u+w . 2>&5
10946   $RM conftest*
10947   # SGI C++ compiler will create directory out/ii_files/ for
10948   # template instantiation
10949   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10950   $RM out/* && rmdir out
10951   cd ..
10952   $RM -r conftest
10953   $RM conftest*
10954
10955fi
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10957$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10958
10959
10960
10961
10962
10963
10964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10965$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10966if ${lt_cv_prog_compiler_c_o+:} false; then :
10967  $as_echo_n "(cached) " >&6
10968else
10969  lt_cv_prog_compiler_c_o=no
10970   $RM -r conftest 2>/dev/null
10971   mkdir conftest
10972   cd conftest
10973   mkdir out
10974   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10975
10976   lt_compiler_flag="-o out/conftest2.$ac_objext"
10977   # Insert the option either (1) after the last *FLAGS variable, or
10978   # (2) before a word containing "conftest.", or (3) at the end.
10979   # Note that $ac_compile itself does not contain backslashes and begins
10980   # with a dollar sign (not a hyphen), so the echo should work correctly.
10981   lt_compile=`echo "$ac_compile" | $SED \
10982   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10983   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10984   -e 's:$: $lt_compiler_flag:'`
10985   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10986   (eval "$lt_compile" 2>out/conftest.err)
10987   ac_status=$?
10988   cat out/conftest.err >&5
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10991   then
10992     # The compiler can only warn and ignore the option if not recognized
10993     # So say no if there are warnings
10994     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10995     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10996     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10997       lt_cv_prog_compiler_c_o=yes
10998     fi
10999   fi
11000   chmod u+w . 2>&5
11001   $RM conftest*
11002   # SGI C++ compiler will create directory out/ii_files/ for
11003   # template instantiation
11004   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11005   $RM out/* && rmdir out
11006   cd ..
11007   $RM -r conftest
11008   $RM conftest*
11009
11010fi
11011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11012$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11013
11014
11015
11016
11017hard_links=nottested
11018if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11019  # do not overwrite the value of need_locks provided by the user
11020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11021$as_echo_n "checking if we can lock with hard links... " >&6; }
11022  hard_links=yes
11023  $RM conftest*
11024  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11025  touch conftest.a
11026  ln conftest.a conftest.b 2>&5 || hard_links=no
11027  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11029$as_echo "$hard_links" >&6; }
11030  if test no = "$hard_links"; then
11031    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11032$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11033    need_locks=warn
11034  fi
11035else
11036  need_locks=no
11037fi
11038
11039
11040
11041
11042
11043
11044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11045$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11046
11047  runpath_var=
11048  allow_undefined_flag=
11049  always_export_symbols=no
11050  archive_cmds=
11051  archive_expsym_cmds=
11052  compiler_needs_object=no
11053  enable_shared_with_static_runtimes=no
11054  export_dynamic_flag_spec=
11055  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11056  hardcode_automatic=no
11057  hardcode_direct=no
11058  hardcode_direct_absolute=no
11059  hardcode_libdir_flag_spec=
11060  hardcode_libdir_separator=
11061  hardcode_minus_L=no
11062  hardcode_shlibpath_var=unsupported
11063  inherit_rpath=no
11064  link_all_deplibs=unknown
11065  module_cmds=
11066  module_expsym_cmds=
11067  old_archive_from_new_cmds=
11068  old_archive_from_expsyms_cmds=
11069  thread_safe_flag_spec=