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

Last change on this file since 2391 was 2391, checked in by lou, 12 months ago

Fix up handling of nauty now that COIN_CHK_LIB has a functioning link check.

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