source: ThirdParty/Mumps/trunk/configure @ 4177

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

fixup pc; rerun autotools

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