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

Last change on this file since 2339 was 2338, checked in by lou, 18 months ago

Tweaks to doxygen.conf.in. Collateral damage from BuildTools r3852.

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