source: ThirdParty/Mumps/branches/mumps5/configure @ 4008

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

use win32-dll, as we can define MUMPS_CALL to do a proper dllex/import

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