source: ThirdParty/ASL/branches/autotools-update/configure

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

rerun autotools

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