source: trunk/configure

Last change on this file was 3010, checked in by stefan, 2 months ago

fixup pc; rerun autotools

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