source: ThirdParty/Mumps/trunk/configure @ 4170

Last change on this file since 4170 was 4170, checked in by stefan, 13 months ago

check for Metis from Fortran

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