source: trunk/configure

Last change on this file was 2707, checked in by stefan, 20 months ago

fixup pc; rerun autotools

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