source: branches/autotools-update/Cbc/configure @ 2414

Last change on this file since 2414 was 2414, checked in by lou, 2 years ago

Remove COIN_INIT_LIBVARS.

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