1e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#! /bin/sh
2e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Guess values for system-dependent variables and create Makefiles.
3e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Generated by GNU Autoconf 2.69.
4e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
5e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
6e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
8e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
9e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This configure script is free software; the Free Software Foundation
10e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# gives unlimited permission to copy, distribute and modify it.
11e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## -------------------- ##
12e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## M4sh Initialization. ##
13e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## -------------------- ##
14e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Be more Bourne compatible
16e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDUALCASE=1; export DUALCASE # for MKS sh
17e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  emulate sh
19e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  NULLCMD=:
20e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # is contrary to our usage.  Disable this feature.
22e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  alias -g '${1+"$@"}'='"$@"'
23e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  setopt NO_GLOB_SUBST
24e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
25e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case `(set -o) 2>/dev/null` in #(
26e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *posix*) :
27e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    set -o posix ;; #(
28e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) :
29e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ;;
30e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
31e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
32e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
33e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
34e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_nl='
35e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley'
36e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport as_nl
37e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Printing a long string crashes Solaris 7 /usr/bin/printf.
38e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Prefer a ksh shell builtin over an external printf program on Solaris,
42e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# but without wasting forks for bash or zsh.
43e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$BASH_VERSION$ZSH_VERSION" \
44e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo='print -r --'
46e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo_n='print -rn --'
47e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo='printf %s\n'
49e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo_n='printf %s'
50e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
51e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_n='/usr/ucb/echo -n'
54e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
55e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_n_body='eval
57e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      arg=$1;
58e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $arg in #(
59e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *"$as_nl"*)
60e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	expr "X$arg" : "X\\(.*\\)$as_nl";
61e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac;
63e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    '
65e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    export as_echo_n_body
66e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_n='sh -c $as_echo_n_body as_echo'
67e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
68e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  export as_echo_body
69e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo='sh -c $as_echo_body as_echo'
70e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
71e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
72e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The user is always right.
73e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${PATH_SEPARATOR+set}" != set; then
74e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  PATH_SEPARATOR=:
75e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      PATH_SEPARATOR=';'
78e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
79e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
80e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
81e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
82e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# IFS
83e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We need space, tab and new line, in precisely that order.  Quoting is
84e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# there to prevent editors from complaining about space-tab.
85e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# splitting by setting IFS to empty value.)
87e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=" ""	$as_nl"
88e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
89e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Find who we are.  Look in the path if we contain no directory separator.
90e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_myself=
91e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $0 in #((
92e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *[\\/]* ) as_myself=$0 ;;
93e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
95e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
96e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
97e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
98e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
100e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ;;
103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We did not find ourselves, most probably we were run as `sh COMMAND'
105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# in which case we are not to be found in the path.
106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$as_myself" = x; then
107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_myself=$0
108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test ! -f "$as_myself"; then
110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exit 1
112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Unset variables that we do not need and which cause bugs (e.g. in
115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# suppresses any "Segmentation fault" message there.  '((' could
117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# trigger a bug in pdksh 5.2.14.
118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_var in BASH_ENV ENV MAIL MAILPATH
119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo eval test x\${$as_var+set} = xset \
120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
122e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPS1='$ '
123e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPS2='> '
124e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPS4='+ '
125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# NLS nuisances.
127e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLC_ALL=C
128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport LC_ALL
129e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLANGUAGE=C
130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport LANGUAGE
131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# CDPATH.
133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Use a proper internal environment variable to ensure we don't fall
136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # into an infinite loop, continuously re-executing ourselves.
137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    _as_can_reexec=no; export _as_can_reexec;
139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # We cannot yet assume a decent shell, so we have to provide a
140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# neutralization value for shells without unset; and this also
141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# works around shells that cannot unset nonexistent variables.
142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Preserve -v and -x to the replacement shell.
143e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBASH_ENV=/dev/null
144e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyENV=/dev/null
145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $- in # ((((
147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *v*x* | *x*v* ) as_opts=-vx ;;
148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *v* ) as_opts=-v ;;
149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *x* ) as_opts=-x ;;
150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  * ) as_opts= ;;
151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Admittedly, this is quite paranoid, since all the known shells bail
154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# out after a failed `exec'.
155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_exit 255
157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # We don't want this to propagate to other subprocesses.
159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          { _as_can_reexec=; unset _as_can_reexec;}
160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$CONFIG_SHELL" = x; then
161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  emulate sh
163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  NULLCMD=:
164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # is contrary to our usage.  Disable this feature.
166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  setopt NO_GLOB_SUBST
168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case \`(set -o) 2>/dev/null\` in #(
170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *posix*) :
171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    set -o posix ;; #(
172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) :
173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ;;
174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_required="as_fn_return () { (exit \$1); }
178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_success () { as_fn_return 0; }
179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_failure () { as_fn_return 1; }
180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_ret_success () { return 0; }
181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_ret_failure () { return 1; }
182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexitcode=0
184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_success || { exitcode=1; echo as_fn_success failed.; }
185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exitcode=1; echo positional parameters were not saved.
192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest x\$exitcode = x0 || exit 1
194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -x / || exit 1"
195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest \$(( 1 + 1 )) = 2 || exit 1
200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    PATH=/empty FPATH=/empty; export PATH FPATH
206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (eval "$as_required") 2>/dev/null; then :
209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_have_required=yes
210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_have_required=no
212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_found=false
218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_found=:
223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $as_dir in #(
224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 /*)
225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   for as_base in sh bash ksh sh5; do
226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     # Try only shells that exist, to save several forks.
227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     as_shell=$as_dir/$as_base
228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CONFIG_SHELL=$as_shell as_have_required=yes
231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break 2
233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   done;;
236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       esac
237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_found=false
238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CONFIG_SHELL=$SHELL as_have_required=yes
242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi; }
243e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "x$CONFIG_SHELL" != x; then :
247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  export CONFIG_SHELL
248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley             # We cannot yet assume a decent shell, so we have to provide a
249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# neutralization value for shells without unset; and this also
250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# works around shells that cannot unset nonexistent variables.
251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Preserve -v and -x to the replacement shell.
252e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBASH_ENV=/dev/null
253e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyENV=/dev/null
254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $- in # ((((
256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *v*x* | *x*v* ) as_opts=-vx ;;
257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *v* ) as_opts=-v ;;
258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *x* ) as_opts=-x ;;
259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  * ) as_opts= ;;
260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Admittedly, this is quite paranoid, since all the known shells bail
263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# out after a failed `exec'.
264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexit 255
266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test x$as_have_required = xno; then :
269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$0: This script requires a shell more modern than all"
270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$0: the shells that I found on your system."
271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x${ZSH_VERSION+set} = xset ; then
272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$0: including any error possibly output before this
277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$0: message. Then install a modern shell, or manually run
278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$0: the script under such a shell if you do have one."
279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exit 1
281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
284e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySHELL=${CONFIG_SHELL-/bin/sh}
285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport SHELL
286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Unset more variables known to interfere with behavior of common tools.
287e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCLICOLOR_FORCE= GREP_OPTIONS=
288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyunset CLICOLOR_FORCE GREP_OPTIONS
289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## --------------------- ##
291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## M4sh Shell Functions. ##
292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## --------------------- ##
293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_unset VAR
294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ---------------
295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Portably unset VAR.
296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_unset ()
297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { eval $1=; unset $1;}
299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_unset=as_fn_unset
301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_set_status STATUS
303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -----------------------
304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set $? to STATUS, without forking.
305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_set_status ()
306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return $1
308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_set_status
309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_exit STATUS
311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -----------------
312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_exit ()
314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  set +e
316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_set_status $1
317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exit $1
318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_exit
319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_mkdir_p
321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -------------
322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Create "$as_dir" as a directory, including parents if necessary.
323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_mkdir_p ()
324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $as_dir in #(
327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -*) as_dir=./$as_dir;;
328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -d "$as_dir" || eval $as_mkdir_p || {
330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_dirs=
331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    while :; do
332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $as_dir in #(
333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) as_qdir=$as_dir;;
335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_dirs="'$as_qdir' $as_dirs"
337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_dir=`$as_dirname -- "$as_dir" ||
338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$as_dir" : 'X\(//\)[^/]' \| \
340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$as_dir" : 'X\(//\)$' \| \
341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo X"$as_dir" |
343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)[^/].*/{
348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)$/{
352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\).*/{
356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/.*/./; q'`
360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test -d "$as_dir" && break
361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -z "$as_dirs" || eval "mkdir $as_dirs"
363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_mkdir_p
367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_executable_p FILE
369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -----------------------
370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Test if FILE is an executable regular file.
371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_executable_p ()
372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -f "$1" && test -x "$1"
374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_executable_p
375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_append VAR VALUE
376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ----------------------
377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Append the text in VALUE to the end of the definition contained in VAR. Take
378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# advantage of any shell optimizations that allow amortized linear growth over
379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# repeated appends, instead of the typical quadratic growth present in naive
380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# implementations.
381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval 'as_fn_append ()
383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval $1+=\$2
385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }'
386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_append ()
388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval $1=\$$1\$2
390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi # as_fn_append
392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_arith ARG...
394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ------------------
395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Perform arithmetic evaluation on the ARGs, and store the result in the
396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# global $as_val. Take advantage of shells that can avoid forks. The arguments
397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# must be portable across $(()) and expr.
398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval 'as_fn_arith ()
400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_val=$(( $* ))
402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }'
403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_arith ()
405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_val=`expr "$@" || test $? -eq 1`
407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi # as_fn_arith
409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_error STATUS ERROR [LINENO LOG_FD]
412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ----------------------------------------
413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# script with STATUS, using 1 if that was 0.
416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error ()
417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_status=$1; test $as_status -eq 0 && as_status=1
419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$4"; then
420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me: error: $2" >&2
424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_exit $as_status
425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_error
426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif expr a : '\(a\)' >/dev/null 2>&1 &&
428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_expr=expr
430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_expr=false
432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_basename=basename
436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_basename=false
438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_dirname=dirname
442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_dirname=false
444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_me=`$as_basename -- "$0" ||
447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$0" : 'X\(//\)$' \| \
449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo X/"$0" |
451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '/^.*\/\([^/][^/]*\)\/*$/{
452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\/\(\/\/\)$/{
456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\/\(\/\).*/{
460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/.*/./; q'`
464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Avoid depending upon Character Ranges.
466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_letters='abcdefghijklmnopqrstuvwxyz'
467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_Letters=$as_cr_letters$as_cr_LETTERS
469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_digits='0123456789'
470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_alnum=$as_cr_Letters$as_cr_digits
471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -n '
479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    p
480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    /[$]LINENO/=
481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ' <$as_myself |
482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '
483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      s/[$]LINENO.*/&-/
484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      t lineno
485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      b
486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      :lineno
487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      N
488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      :loop
489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      t loop
491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      s/-\n.*//
492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ' >$as_me.lineno &&
493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  chmod +x "$as_me.lineno" ||
494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # already done that, so ensure we don't try to do so again and fall
498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # in an infinite loop.  This has already happened in practice.
499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  _as_can_reexec=no; export _as_can_reexec
500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Don't try to exec as it changes $[0], causing all sort of problems
501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # (the dirname of $[0] is not the place where we might find the
502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # original and so on.  Autoconf is especially sensitive to this).
503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  . "./$as_me.lineno"
504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Exit status is that of the last command.
505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exit
506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
508e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO_C= ECHO_N= ECHO_T=
509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `echo -n x` in #(((((
510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley-n*)
511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case `echo 'xy\c'` in
512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  xy)  ECHO_C='\c';;
514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       ECHO_T='	';;
516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac;;
517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ECHO_N='-n';;
519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conf$$ conf$$.exe conf$$.file
522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -d conf$$.dir; then
523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conf$$.dir/conf$$.file
524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conf$$.dir
526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  mkdir conf$$.dir 2>/dev/null
527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (echo >conf$$.file) 2>/dev/null; then
529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ln -s conf$$.file conf$$ 2>/dev/null; then
530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_ln_s='ln -s'
531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # ... but there are two gotchas:
532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # In both cases, we have to default to `cp -pR'.
535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_ln_s='cp -pR'
537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  elif ln conf$$.file conf$$ 2>/dev/null; then
538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_ln_s=ln
539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_ln_s='cp -pR'
541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_ln_s='cp -pR'
544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrmdir conf$$.dir 2>/dev/null
547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif mkdir -p . 2>/dev/null; then
549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_mkdir_p='mkdir -p "$as_dir"'
550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -d ./-p && rmdir ./-p
552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_mkdir_p=false
553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_test_x='test -x'
556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_executable_p=as_fn_executable_p
557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Sed expression to map a string onto a valid CPP name.
559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Sed expression to map a string onto a valid variable name.
562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
564e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySHELL=${CONFIG_SHELL-/bin/sh}
565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -n "$DJDIR" || exec 7<&0 </dev/null
568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexec 6>&1
569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Name of the host.
571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# so uname gets run too.
573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Initializations.
577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_default_prefix=/usr/local
579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_clean_files=
580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_config_libobj_dir=.
581e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBOBJS=
582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycross_compiling=no
583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysubdirs=
584e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMFLAGS=
585e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMAKEFLAGS=
586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Identity of this package.
588e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_NAME=
589e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_TARNAME=
590e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_VERSION=
591e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_STRING=
592e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_BUGREPORT=
593e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_URL=
594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_unique_file="event.c"
596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Factoring default headers for most tests.
597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_includes_default="\
598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdio.h>
599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_TYPES_H
600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <sys/types.h>
601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_STAT_H
603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <sys/stat.h>
604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef STDC_HEADERS
606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <stdlib.h>
607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <stddef.h>
608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ifdef HAVE_STDLIB_H
610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  include <stdlib.h>
611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# endif
612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_STRING_H
614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  include <memory.h>
616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# endif
617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <string.h>
618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_STRINGS_H
620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <strings.h>
621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_INTTYPES_H
623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <inttypes.h>
624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_STDINT_H
626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <stdint.h>
627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_UNISTD_H
629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <unistd.h>
630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif"
631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_subst_vars='am__EXEEXT_FALSE
633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__EXEEXT_TRUE
634e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTLIBOBJS
635e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyINSTALL_LIBEVENT_FALSE
636e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyINSTALL_LIBEVENT_TRUE
637e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBEVENT_GC_SECTIONS
638e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOPENSSL_FALSE
639e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOPENSSL_TRUE
640e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPTHREADS_FALSE
641e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPTHREADS_TRUE
642e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPTHREAD_CFLAGS
643e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPTHREAD_LIBS
644e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPTHREAD_CC
645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyacx_pthread_config
646e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySIGNAL_SUPPORT_FALSE
647e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySIGNAL_SUPPORT_TRUE
648e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEVPORT_BACKEND_FALSE
649e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEVPORT_BACKEND_TRUE
650e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEPOLL_BACKEND_FALSE
651e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEPOLL_BACKEND_TRUE
652e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBOBJS
653e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyKQUEUE_BACKEND_FALSE
654e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyKQUEUE_BACKEND_TRUE
655e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDEVPOLL_BACKEND_FALSE
656e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDEVPOLL_BACKEND_TRUE
657e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPOLL_BACKEND_FALSE
658e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPOLL_BACKEND_TRUE
659e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySELECT_BACKEND_FALSE
660e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySELECT_BACKEND_TRUE
661e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBUILD_WITH_NO_UNDEFINED_FALSE
662e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBUILD_WITH_NO_UNDEFINED_TRUE
663e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBUILD_CYGWIN_FALSE
664e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBUILD_CYGWIN_TRUE
665e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBUILD_WIN32_FALSE
666e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBUILD_WIN32_TRUE
667e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOPENSSL_LIBS
668e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOPENSSL_LIBADD
669e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEV_LIB_GDI
670e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEV_LIB_WS32
671e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyZLIB_REGRESS_FALSE
672e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyZLIB_REGRESS_TRUE
673e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyZLIB_LIBS
674e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBUILD_REGRESS_FALSE
675e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBUILD_REGRESS_TRUE
676e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBTOOL_DEPS
677e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL64
678e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL
679e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIPO
680e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNMEDIT
681e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDSYMUTIL
682e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMANIFEST_TOOL
683e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyRANLIB
684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_AR
685e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAR
686e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDLLTOOL
687e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOBJDUMP
688e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNM
689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_DUMPBIN
690e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDUMPBIN
691e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLD
692e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyFGREP
693e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBTOOL
694e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEGREP
695e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyGREP
696e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCPP
697e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySED
698e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLN_S
699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__fastdepCC_FALSE
700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__fastdepCC_TRUE
701e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCCDEPMODE
702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__nodep
703e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAMDEPBACKSLASH
704e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAMDEP_FALSE
705e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAMDEP_TRUE
706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__quote
707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__include
708e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDEPDIR
709e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOBJEXT
710e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEXEEXT
711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_CC
712e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCPPFLAGS
713e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLDFLAGS
714e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCFLAGS
715e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC
716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_os
717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_vendor
718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_cpu
719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost
720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_os
721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_vendor
722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_cpu
723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild
724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__untar
725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__tar
726e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAMTAR
727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__leading_dot
728e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySET_MAKE
729e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAWK
730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymkdir_p
731e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMKDIR_P
732e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyINSTALL_STRIP_PROGRAM
733e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySTRIP
734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinstall_sh
735e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMAKEINFO
736e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAUTOHEADER
737e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAUTOMAKE
738e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAUTOCONF
739e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyACLOCAL
740e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyVERSION
741e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE
742e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCYGPATH_W
743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__isrc
744e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyINSTALL_DATA
745e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyINSTALL_SCRIPT
746e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyINSTALL_PROGRAM
747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytarget_alias
748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_alias
749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_alias
750e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS
751e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO_T
752e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO_N
753e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO_C
754e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDEFS
755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymandir
756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylocaledir
757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibdir
758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypsdir
759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypdfdir
760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydvidir
761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhtmldir
762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinfodir
763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydocdir
764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyoldincludedir
765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyincludedir
766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylocalstatedir
767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysharedstatedir
768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysconfdir
769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydatadir
770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydatarootdir
771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibexecdir
772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysbindir
773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybindir
774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprogram_transform_name
775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprefix
776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexec_prefix
777e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_URL
778e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_BUGREPORT
779e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_STRING
780e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_VERSION
781e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_TARNAME
782e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPACKAGE_NAME
783e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPATH_SEPARATOR
784e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySHELL'
785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_subst_files=''
786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_user_opts='
787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_option_checking
788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_dependency_tracking
789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_gcc_warnings
790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_thread_support
791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_malloc_replacement
792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_openssl
793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_debug_mode
794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_libevent_install
795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_libevent_regress
796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_function_sections
797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_shared
798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_static
799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_pic
800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_fast_install
801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_gnu_ld
802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_sysroot
803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_libtool_lock
804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley'
805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_precious_vars='build_alias
806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_alias
807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytarget_alias
808e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC
809e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCFLAGS
810e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLDFLAGS
811e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS
812e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCPPFLAGS
813e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCPP'
814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Initialize some variables set by options.
817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_init_help=
818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_init_version=false
819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_unrecognized_opts=
820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_unrecognized_sep=
821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The variables have the same names as the options, with
822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# dashes changed to underlines.
823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycache_file=/dev/null
824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexec_prefix=NONE
825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyno_create=
826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyno_recursion=
827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprefix=NONE
828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprogram_prefix=NONE
829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprogram_suffix=NONE
830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprogram_transform_name=s,x,x,
831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysilent=
832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysite=
833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysrcdir=
834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyverbose=
835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyx_includes=NONE
836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyx_libraries=NONE
837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Installation directory options.
839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# These are left unexpanded so users can "make install exec_prefix=/foo"
840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# and all the variables that are supposed to be based on exec_prefix
841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# by default will actually change.
842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Use braces instead of parens because sh, perl, etc. also accept them.
843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# (The list follows the same order as the GNU Coding Standards.)
844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybindir='${exec_prefix}/bin'
845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysbindir='${exec_prefix}/sbin'
846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibexecdir='${exec_prefix}/libexec'
847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydatarootdir='${prefix}/share'
848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydatadir='${datarootdir}'
849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysconfdir='${prefix}/etc'
850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysharedstatedir='${prefix}/com'
851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylocalstatedir='${prefix}/var'
852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyincludedir='${prefix}/include'
853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyoldincludedir='/usr/include'
854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydocdir='${datarootdir}/doc/${PACKAGE}'
855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinfodir='${datarootdir}/info'
856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhtmldir='${docdir}'
857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydvidir='${docdir}'
858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypdfdir='${docdir}'
859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypsdir='${docdir}'
860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibdir='${exec_prefix}/lib'
861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylocaledir='${datarootdir}/locale'
862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymandir='${datarootdir}/man'
863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_prev=
865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_dashdash=
866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_option
867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # If the previous option needs an argument, assign it.
869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_prev"; then
870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval $ac_prev=\$ac_option
871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=
872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    continue
873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_option in
876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *=)   ac_optarg= ;;
878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)    ac_optarg=yes ;;
879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Accept the important Cygnus configure options, so we can diagnose typos.
882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_dashdash$ac_option in
884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --)
885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_dashdash=yes ;;
886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -bindir | --bindir | --bindi | --bind | --bin | --bi)
888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=bindir ;;
889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    bindir=$ac_optarg ;;
891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -build | --build | --buil | --bui | --bu)
893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=build_alias ;;
894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    build_alias=$ac_optarg ;;
896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -cache-file | --cache-file | --cache-fil | --cache-fi \
898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=cache_file ;;
900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cache_file=$ac_optarg ;;
903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --config-cache | -C)
905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cache_file=config.cache ;;
906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -datadir | --datadir | --datadi | --datad)
908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=datadir ;;
909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -datadir=* | --datadir=* | --datadi=* | --datad=*)
910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    datadir=$ac_optarg ;;
911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --dataroo | --dataro | --datar)
914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=datarootdir ;;
915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    datarootdir=$ac_optarg ;;
918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -disable-* | --disable-*)
920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Reject names that are not valid shell variable names.
922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_error $? "invalid feature name: $ac_useropt"
924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt_orig=$ac_useropt
925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_user_opts in
927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *"
928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"enable_$ac_useropt"
929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"*) ;;
930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 ac_unrecognized_sep=', ';;
932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval enable_$ac_useropt=no ;;
934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -docdir | --docdir | --docdi | --doc | --do)
936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=docdir ;;
937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    docdir=$ac_optarg ;;
939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=dvidir ;;
942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dvidir=$ac_optarg ;;
944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -enable-* | --enable-*)
946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Reject names that are not valid shell variable names.
948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_error $? "invalid feature name: $ac_useropt"
950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt_orig=$ac_useropt
951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_user_opts in
953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *"
954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"enable_$ac_useropt"
955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"*) ;;
956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 ac_unrecognized_sep=', ';;
958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval enable_$ac_useropt=\$ac_optarg ;;
960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --exec | --exe | --ex)
964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=exec_prefix ;;
965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --exec=* | --exe=* | --ex=*)
968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    exec_prefix=$ac_optarg ;;
969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -gas | --gas | --ga | --g)
971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Obsolete; use --with-gas.
972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    with_gas=yes ;;
973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -help | --help | --hel | --he | -h)
975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_init_help=long ;;
976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_init_help=recursive ;;
978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_init_help=short ;;
980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -host | --host | --hos | --ho)
982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=host_alias ;;
983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -host=* | --host=* | --hos=* | --ho=*)
984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    host_alias=$ac_optarg ;;
985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=htmldir ;;
988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --ht=*)
990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    htmldir=$ac_optarg ;;
991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -includedir | --includedir | --includedi | --included | --include \
993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --includ | --inclu | --incl | --inc)
994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=includedir ;;
995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --includ=* | --inclu=* | --incl=* | --inc=*)
997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    includedir=$ac_optarg ;;
998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -infodir | --infodir | --infodi | --infod | --info | --inf)
1000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=infodir ;;
1001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    infodir=$ac_optarg ;;
1003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -libdir | --libdir | --libdi | --libd)
1005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=libdir ;;
1006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    libdir=$ac_optarg ;;
1008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --libexe | --libex | --libe)
1011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=libexecdir ;;
1012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --libexe=* | --libex=* | --libe=*)
1014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    libexecdir=$ac_optarg ;;
1015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -localedir | --localedir | --localedi | --localed | --locale)
1017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=localedir ;;
1018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    localedir=$ac_optarg ;;
1020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -localstatedir | --localstatedir | --localstatedi | --localstated \
1022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --localstate | --localstat | --localsta | --localst | --locals)
1023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=localstatedir ;;
1024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    localstatedir=$ac_optarg ;;
1027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=mandir ;;
1030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mandir=$ac_optarg ;;
1032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -nfp | --nfp | --nf)
1034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Obsolete; use --without-fp.
1035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    with_fp=no ;;
1036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --no-cr | --no-c | -n)
1039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    no_create=yes ;;
1040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    no_recursion=yes ;;
1044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --oldin | --oldi | --old | --ol | --o)
1048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=oldincludedir ;;
1049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    oldincludedir=$ac_optarg ;;
1053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=prefix ;;
1056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    prefix=$ac_optarg ;;
1058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-pre | --program-pr | --program-p)
1061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=program_prefix ;;
1062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    program_prefix=$ac_optarg ;;
1065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-suf | --program-su | --program-s)
1068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=program_suffix ;;
1069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    program_suffix=$ac_optarg ;;
1072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -program-transform-name | --program-transform-name \
1074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-transform-nam | --program-transform-na \
1075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-transform-n | --program-transform- \
1076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-transform | --program-transfor \
1077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-transfo | --program-transf \
1078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-trans | --program-tran \
1079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --progr-tra | --program-tr | --program-t)
1080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=program_transform_name ;;
1081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -program-transform-name=* | --program-transform-name=* \
1082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-transform-nam=* | --program-transform-na=* \
1083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-transform-n=* | --program-transform-=* \
1084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-transform=* | --program-transfor=* \
1085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-transfo=* | --program-transf=* \
1086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --program-trans=* | --program-tran=* \
1087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --progr-tra=* | --program-tr=* | --program-t=*)
1088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    program_transform_name=$ac_optarg ;;
1089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=pdfdir ;;
1092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    pdfdir=$ac_optarg ;;
1094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -psdir | --psdir | --psdi | --psd | --ps)
1096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=psdir ;;
1097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    psdir=$ac_optarg ;;
1099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | -silent | --silent | --silen | --sile | --sil)
1102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    silent=yes ;;
1103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=sbindir ;;
1106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --sbi=* | --sb=*)
1108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sbindir=$ac_optarg ;;
1109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --sharedst | --shareds | --shared | --share | --shar \
1113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --sha | --sh)
1114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=sharedstatedir ;;
1115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --sha=* | --sh=*)
1119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sharedstatedir=$ac_optarg ;;
1120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -site | --site | --sit)
1122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=site ;;
1123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -site=* | --site=* | --sit=*)
1124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    site=$ac_optarg ;;
1125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=srcdir ;;
1128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    srcdir=$ac_optarg ;;
1130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --syscon | --sysco | --sysc | --sys | --sy)
1133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=sysconfdir ;;
1134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysconfdir=$ac_optarg ;;
1137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -target | --target | --targe | --targ | --tar | --ta | --t)
1139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=target_alias ;;
1140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    target_alias=$ac_optarg ;;
1142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    verbose=yes ;;
1145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -version | --version | --versio | --versi | --vers | -V)
1147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_init_version=: ;;
1148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -with-* | --with-*)
1150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Reject names that are not valid shell variable names.
1152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_error $? "invalid package name: $ac_useropt"
1154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt_orig=$ac_useropt
1155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_user_opts in
1157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *"
1158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"with_$ac_useropt"
1159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"*) ;;
1160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 ac_unrecognized_sep=', ';;
1162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
1163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval with_$ac_useropt=\$ac_optarg ;;
1164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -without-* | --without-*)
1166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Reject names that are not valid shell variable names.
1168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_error $? "invalid package name: $ac_useropt"
1170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt_orig=$ac_useropt
1171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_user_opts in
1173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *"
1174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"with_$ac_useropt"
1175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"*) ;;
1176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 ac_unrecognized_sep=', ';;
1178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
1179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval with_$ac_useropt=no ;;
1180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --x)
1182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Obsolete; use --with-x.
1183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    with_x=yes ;;
1184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --x-incl | --x-inc | --x-in | --x-i)
1187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=x_includes ;;
1188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    x_includes=$ac_optarg ;;
1191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prev=x_libraries ;;
1195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    x_libraries=$ac_optarg ;;
1198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyTry \`$0 --help' for more information"
1201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
1202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *=*)
1204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Reject names that are not valid shell variable names.
1206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_envvar in #(
1207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
1210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval $ac_envvar=\$ac_optarg
1211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    export $ac_envvar ;;
1212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
1214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # FIXME: should be removed in autoconf 3.0.
1215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
1220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
1222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
1223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_prev"; then
1225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "missing argument to $ac_option"
1227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_unrecognized_opts"; then
1230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $enable_option_checking in
1231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    no) ;;
1232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
1235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check all directory arguments for consistency.
1238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		datadir sysconfdir sharedstatedir localstatedir includedir \
1240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		libdir localedir mandir
1242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
1243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_val=\$$ac_var
1244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Remove trailing slashes.
1245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_val in
1246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    */ )
1247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      eval $ac_var=\$ac_val;;
1249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
1250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Be sure to have absolute directory names.
1251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_val in
1252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    [\\/$]* | ?:[\\/]* )  continue;;
1253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
1255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
1257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# There might be people who depend on the old broken behavior: `$host'
1259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# used to hold the argument of --host etc.
1260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# FIXME: To remove some day.
1261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild=$build_alias
1262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost=$host_alias
1263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytarget=$target_alias
1264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# FIXME: To remove some day.
1266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$host_alias" != x; then
1267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$build_alias" = x; then
1268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cross_compiling=maybe
1269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  elif test "x$build_alias" != "x$host_alias"; then
1270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cross_compiling=yes
1271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
1272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_prefix=
1275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -n "$host_alias" && ac_tool_prefix=$host_alias-
1276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "$silent" = yes && exec 6>/dev/null
1278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_pwd=`pwd` && test -n "$ac_pwd" &&
1281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ls_di=`ls -di .` &&
1282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "working directory cannot be determined"
1284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "pwd does not report name of working directory"
1286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Find the source files, if location was not specified.
1289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$srcdir"; then
1290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_srcdir_defaulted=yes
1291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Try the directory containing this script, then the parent directory.
1292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_confdir=`$as_dirname -- "$as_myself" ||
1293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$as_myself" : 'X\(//\)[^/]' \| \
1295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$as_myself" : 'X\(//\)$' \| \
1296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo X"$as_myself" |
1298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
1300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
1301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
1302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)[^/].*/{
1303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
1304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
1305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
1306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)$/{
1307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
1308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
1309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
1310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\).*/{
1311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
1312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
1313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
1314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/.*/./; q'`
1315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  srcdir=$ac_confdir
1316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test ! -r "$srcdir/$ac_unique_file"; then
1317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    srcdir=..
1318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
1319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_srcdir_defaulted=no
1321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test ! -r "$srcdir/$ac_unique_file"; then
1323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_abs_confdir=`(
1328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	pwd)`
1330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# When building in place, set srcdir=.
1331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_abs_confdir" = "$ac_pwd"; then
1332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  srcdir=.
1333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Remove unnecessary trailing slashes from srcdir.
1335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Double slashes in file names in object file debugging info
1336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# mess up M-x gdb in Emacs.
1337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $srcdir in
1338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
1340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_var in $ac_precious_vars; do
1341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_env_${ac_var}_value=\$${ac_var}
1343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
1346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
1348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Report the --help message.
1349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
1350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_init_help" = "long"; then
1351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Omit some internal or obsolete options to make the list less imposing.
1352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # This message is too long to be a string in the A/UX 3.1 sh.
1353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat <<_ACEOF
1354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\`configure' configures this package to adapt to many kinds of systems.
1355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1356e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsage: $0 [OPTION]... [VAR=VALUE]...
1357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1358e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1359e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyVAR=VALUE.  See below for descriptions of some of the useful variables.
1360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1361e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDefaults for the options are specified in brackets.
1362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1363e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyConfiguration:
1364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -h, --help              display this help and exit
1365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      --help=short        display options specific to this package
1366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      --help=recursive    display the short help of all the included packages
1367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -V, --version           display version information and exit
1368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -q, --quiet, --silent   do not print \`checking ...' messages
1369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      --cache-file=FILE   cache test results in FILE [disabled]
1370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -C, --config-cache      alias for \`--cache-file=config.cache'
1371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -n, --no-create         do not create output files
1372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1374e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyInstallation directories:
1375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --prefix=PREFIX         install architecture-independent files in PREFIX
1376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                          [$ac_default_prefix]
1377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                          [PREFIX]
1379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1380e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBy default, \`make install' will install all the files in
1381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor instance \`--prefix=\$HOME'.
1384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1385e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyFor better control, use the options below.
1386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1387e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyFine tuning of the installation directories:
1388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --bindir=DIR            user executables [EPREFIX/bin]
1389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --libexecdir=DIR        program executables [EPREFIX/libexec]
1391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --libdir=DIR            object code libraries [EPREFIX/lib]
1395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --includedir=DIR        C header files [PREFIX/include]
1396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --infodir=DIR           info documentation [DATAROOTDIR/info]
1400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --mandir=DIR            man documentation [DATAROOTDIR/man]
1402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --htmldir=DIR           html documentation [DOCDIR]
1404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --dvidir=DIR            dvi documentation [DOCDIR]
1405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --pdfdir=DIR            pdf documentation [DOCDIR]
1406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --psdir=DIR             ps documentation [DOCDIR]
1407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat <<\_ACEOF
1410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1411e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyProgram names:
1412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --program-prefix=PREFIX            prepend PREFIX to installed program names
1413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --program-suffix=SUFFIX            append SUFFIX to installed program names
1414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1416e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySystem types:
1417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --build=BUILD     configure for building on BUILD [guessed]
1418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_init_help"; then
1423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat <<\_ACEOF
1425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1426e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOptional Features:
1427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-option-checking  ignore unrecognized --enable/--with options
1428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --enable-dependency-tracking
1431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                          do not reject slow dependency extractors
1432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-dependency-tracking
1433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                          speeds up one-time build
1434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --enable-gcc-warnings   enable verbose warnings with GCC
1435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-thread-support
1436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                          disable support for threading
1437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-malloc-replacement
1438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                          disable support for replacing the memory mgt
1439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                          functions
1440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-openssl       disable support for openssl encryption
1441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-debug-mode    disable support for running in debug mode
1442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-libevent-install, disable installation of libevent
1443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-libevent-regress, skip regress in make check
1445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --enable-function-sections, make static library allow smaller binaries with --gc-sections
1447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --enable-shared[=PKGS]  build shared libraries [default=yes]
1449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --enable-static[=PKGS]  build static libraries [default=yes]
1450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --enable-fast-install[=PKGS]
1451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                          optimize for fast installation [default=yes]
1452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --disable-libtool-lock  avoid locking (might break parallel builds)
1453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1454e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOptional Packages:
1455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                          both]
1459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --with-sysroot=DIR Search for dependent libraries within DIR
1461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                        (or the compiler's sysroot if not specified).
1462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1463e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySome influential environment variables:
1464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CC          C compiler command
1465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CFLAGS      C compiler flags
1466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley              nonstandard directory <lib dir>
1468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  LIBS        libraries to pass to the linker, e.g. -l<library>
1469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley              you have headers in a nonstandard directory <include dir>
1471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CPP         C preprocessor
1472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1473e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUse these variables to override the choices made by `configure' or to help
1474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyit to find libraries and programs with nonstandard names/locations.
1475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1476e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyReport bugs to the package provider.
1477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_status=$?
1479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_init_help" = "recursive"; then
1482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # If there are subdirs, report their specific --help.
1483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -d "$ac_dir" ||
1485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      continue
1487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_builddir=.
1488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "$ac_dir" in
1490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
1492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # A ".." for each directory in $ac_dir_suffix.
1494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_top_builddir_sub in
1496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac ;;
1499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
1500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_abs_top_builddir=$ac_pwd
1501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_abs_builddir=$ac_pwd$ac_dir_suffix
1502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# for backward compatibility:
1503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_top_builddir=$ac_top_build_prefix
1504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $srcdir in
1506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  .)  # We are building in place.
1507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_srcdir=.
1508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_top_srcdir=$ac_top_builddir_sub
1509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_abs_top_srcdir=$ac_pwd ;;
1510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  [\\/]* | ?:[\\/]* )  # Absolute name.
1511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_srcdir=$srcdir$ac_dir_suffix;
1512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_top_srcdir=$srcdir
1513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_abs_top_srcdir=$srcdir ;;
1514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) # Relative name.
1515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_top_srcdir=$ac_top_build_prefix$srcdir
1517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
1519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cd "$ac_dir" || { ac_status=$?; continue; }
1522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Check for guested configure.
1523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -f "$ac_srcdir/configure.gnu"; then
1524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo &&
1525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    elif test -f "$ac_srcdir/configure"; then
1527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo &&
1528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $SHELL "$ac_srcdir/configure" --help=recursive
1529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
1530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi || ac_status=$?
1532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cd "$ac_pwd" || { ac_status=$?; break; }
1533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
1534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -n "$ac_init_help" && exit $ac_status
1537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif $ac_init_version; then
1538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat <<\_ACEOF
1539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyconfigure
1540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileygenerated by GNU Autoconf 2.69
1541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1542e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCopyright (C) 2012 Free Software Foundation, Inc.
1543e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyThis configure script is free software; the Free Software Foundation
1544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileygives unlimited permission to copy, distribute and modify it.
1545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exit
1547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ------------------------ ##
1550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## Autoconf initialization. ##
1551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ------------------------ ##
1552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_try_compile LINENO
1554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# --------------------------
1555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_try_compile ()
1557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.$ac_objext
1560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { ac_try="$ac_compile"
1561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "(($ac_try" in
1562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
1564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
1565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
1567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_compile") 2>conftest.err
1568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
1569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -s conftest.err; then
1570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    grep -v '^ *+' conftest.err >conftest.er1
1571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat conftest.er1 >&5
1572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mv -f conftest.er1 conftest.err
1573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
1574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } && {
1576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test -z "$ac_c_werror_flag" ||
1577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test ! -s conftest.err
1578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       } && test -s conftest.$ac_objext; then :
1579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_retval=0
1580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me: failed program was:" >&5
1582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed 's/^/| /' conftest.$ac_ext >&5
1583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ac_retval=1
1585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_set_status $ac_retval
1588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_try_compile
1590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_try_cpp LINENO
1592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ----------------------
1593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_try_cpp ()
1595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { ac_try="$ac_cpp conftest.$ac_ext"
1598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "(($ac_try" in
1599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
1601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
1602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
1604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
1606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -s conftest.err; then
1607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    grep -v '^ *+' conftest.err >conftest.er1
1608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat conftest.er1 >&5
1609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mv -f conftest.er1 conftest.err
1610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
1611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } > conftest.i && {
1613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test ! -s conftest.err
1615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       }; then :
1616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_retval=0
1617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me: failed program was:" >&5
1619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed 's/^/| /' conftest.$ac_ext >&5
1620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_retval=1
1622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_set_status $ac_retval
1625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_try_cpp
1627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_try_link LINENO
1629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -----------------------
1630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Try to link conftest.$ac_ext, and return whether this succeeded.
1631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_try_link ()
1632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.$ac_objext conftest$ac_exeext
1635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { ac_try="$ac_link"
1636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "(($ac_try" in
1637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
1639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
1640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
1642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_link") 2>conftest.err
1643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
1644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -s conftest.err; then
1645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    grep -v '^ *+' conftest.err >conftest.er1
1646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat conftest.er1 >&5
1647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mv -f conftest.er1 conftest.err
1648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
1649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } && {
1651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test -z "$ac_c_werror_flag" ||
1652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test ! -s conftest.err
1653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       } && test -s conftest$ac_exeext && {
1654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test "$cross_compiling" = yes ||
1655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test -x conftest$ac_exeext
1656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       }; then :
1657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_retval=0
1658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me: failed program was:" >&5
1660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed 's/^/| /' conftest.$ac_ext >&5
1661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ac_retval=1
1663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # interfere with the next link command; also delete a directory that is
1667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # left behind by Apple's compiler.  We do this before executing the actions.
1668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_set_status $ac_retval
1671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_try_link
1673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -------------------------------------------------------
1676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tests whether HEADER exists and can be compiled using the include files in
1677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# INCLUDES, setting the cache variable VAR accordingly.
1678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_header_compile ()
1679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $2... " >&6; }
1683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval \${$3+:} false; then :
1684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
1685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
1688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
1689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <$2>
1690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
1692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$3=yes"
1693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$3=no"
1695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_res=\$$3
1699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_res" >&6; }
1701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_check_header_compile
1704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_try_run LINENO
1706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ----------------------
1707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# that executables *can* be run.
1709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_try_run ()
1710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { ac_try="$ac_link"
1713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "(($ac_try" in
1714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
1716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
1717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
1719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_link") 2>&5
1720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
1721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { { case "(($ac_try" in
1724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
1726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
1727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
1729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_try") 2>&5
1730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
1731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; }; then :
1733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_retval=0
1734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me: program exited with status $ac_status" >&5
1736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       $as_echo "$as_me: failed program was:" >&5
1737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed 's/^/| /' conftest.$ac_ext >&5
1738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       ac_retval=$ac_status
1740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_set_status $ac_retval
1744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_try_run
1746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_check_func LINENO FUNC VAR
1748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ----------------------------------
1749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tests whether FUNC exists, setting the cache variable VAR accordingly
1750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_func ()
1751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $2... " >&6; }
1755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval \${$3+:} false; then :
1756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
1757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
1760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define $2 innocuous_$2
1763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* System header to define __stub macros and hopefully few prototypes,
1765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    which can conflict with char $2 (); below.
1766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    <limits.h> exists even on freestanding compilers.  */
1768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __STDC__
1770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <limits.h>
1771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
1772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <assert.h>
1773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
1774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#undef $2
1776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
1778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
1779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
1780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
1781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
1782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
1783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar $2 ();
1784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* The GNU C library defines this for functions which it implements
1785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    to always fail with ENOSYS.  Some functions are actually named
1786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    something starting with __ and the normal name is an alias.  */
1787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined __stub_$2 || defined __stub___$2
1788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychoke me
1789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
1790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
1792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
1793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn $2 ();
1795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
1796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
1797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
1798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
1800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$3=yes"
1801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$3=no"
1803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
1805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
1806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_res=\$$3
1808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_res" >&6; }
1810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_check_func
1813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -------------------------------------------------------
1816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# the include files in INCLUDES and setting the cache variable VAR
1818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# accordingly.
1819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_header_mongrel ()
1820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if eval \${$3+:} false; then :
1823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $2... " >&6; }
1825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval \${$3+:} false; then :
1826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
1827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_res=\$$3
1829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_res" >&6; }
1831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Is the header compilable?
1833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking $2 usability... " >&6; }
1835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
1837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
1838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <$2>
1839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
1841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_header_compiler=yes
1842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_header_compiler=no
1844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_header_compiler" >&6; }
1848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Is the header present?
1850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking $2 presence... " >&6; }
1852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
1854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <$2>
1855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_cpp "$LINENO"; then :
1857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_header_preproc=yes
1858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_header_preproc=no
1860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.err conftest.i conftest.$ac_ext
1862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_header_preproc" >&6; }
1864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# So?  What about this header?
1866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  yes:no: )
1868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
1873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  no:yes:* )
1874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
1885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
1886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $2... " >&6; }
1888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval \${$3+:} false; then :
1889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
1890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$3=\$ac_header_compiler"
1892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_res=\$$3
1894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_res" >&6; }
1896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_check_header_mongrel
1900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ---------------------------------------------
1903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# accordingly.
1905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_decl ()
1906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_decl_name=`echo $2|sed 's/ *(.*//'`
1909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval \${$3+:} false; then :
1913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
1914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
1917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
1918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
1919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
1920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifndef $as_decl_name
1922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
1923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (void) $as_decl_use;
1924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
1925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (void) $as_decl_name;
1926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
1927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
1928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
1930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
1931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
1932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
1934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$3=yes"
1935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$3=no"
1937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_res=\$$3
1941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_res" >&6; }
1943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_check_decl
1946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# --------------------------------------------
1949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tries to find the compile-time value of EXPR in a program that includes
1950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# INCLUDES, setting VAR accordingly. Returns whether the value could be
1951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# computed
1952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_compute_int ()
1953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$cross_compiling" = yes; then
1956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Depending upon the size, compute the lo and hi bounds.
1957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
1959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
1960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
1961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
1962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic int test_array [1 - 2 * !(($2) >= 0)];
1964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest_array [0] = 0;
1965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn test_array [0];
1966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
1968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
1969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
1970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
1972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_lo=0 ac_mid=0
1973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  while :; do
1974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
1976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
1977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
1978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
1979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
1980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
1981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest_array [0] = 0;
1982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn test_array [0];
1983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
1984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
1985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
1986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
1987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
1988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
1989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_hi=$ac_mid; break
1990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
1991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			if test $ac_lo -le $ac_mid; then
1993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			  ac_lo= ac_hi=
1994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			  break
1995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			fi
1996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
1998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
2003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
2004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
2005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
2006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic int test_array [1 - 2 * !(($2) < 0)];
2008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest_array [0] = 0;
2009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn test_array [0];
2010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
2012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
2013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
2014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
2016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_hi=-1 ac_mid=-1
2017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  while :; do
2018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
2020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
2021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
2022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
2023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic int test_array [1 - 2 * !(($2) >= $ac_mid)];
2025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest_array [0] = 0;
2026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn test_array [0];
2027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
2029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
2030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
2031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
2033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_lo=$ac_mid; break
2034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			if test $ac_mid -le $ac_hi; then
2037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			  ac_lo= ac_hi=
2038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			  break
2039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			fi
2040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_lo= ac_hi=
2046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Binary search between lo and hi bounds.
2051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywhile test "x$ac_lo" != "x$ac_hi"; do
2052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
2055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
2056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
2057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
2058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest_array [0] = 0;
2061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn test_array [0];
2062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
2064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
2065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
2066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
2068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_hi=$ac_mid
2069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
2074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $ac_lo in #((
2075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley'') ac_retval=1 ;;
2077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
2078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
2079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
2081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
2082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic long int longval () { return $2; }
2083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic unsigned long int ulongval () { return $2; }
2084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdio.h>
2085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdlib.h>
2086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
2087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
2088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  FILE *f = fopen ("conftest.val", "w");
2091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (! f)
2092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    return 1;
2093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (($2) < 0)
2094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    {
2095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      long int i = longval ();
2096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if (i != ($2))
2097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	return 1;
2098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fprintf (f, "%ld", i);
2099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    }
2100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
2101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    {
2102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      unsigned long int i = ulongval ();
2103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if (i != ($2))
2104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	return 1;
2105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fprintf (f, "%lu", i);
2106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    }
2107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  /* Do not output a trailing newline, as this causes \r\n confusion
2108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     on some platforms.  */
2109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return ferror (f) || fclose (f) != 0;
2110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
2112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
2113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
2114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_run "$LINENO"; then :
2116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_retval=1
2119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  conftest.$ac_objext conftest.beam conftest.$ac_ext
2122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.val
2123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_set_status $ac_retval
2127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_compute_int
2129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -------------------------------------------
2132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tests whether TYPE exists after having included INCLUDES, setting cache
2133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# variable VAR accordingly.
2134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type ()
2135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $2... " >&6; }
2139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval \${$3+:} false; then :
2140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
2141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$3=no"
2143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
2145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
2146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
2147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
2148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (sizeof ($2))
2150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 return 0;
2151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
2152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
2153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
2154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
2156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
2158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$4
2159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
2160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
2161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (sizeof (($2)))
2163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    return 0;
2164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
2165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
2166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
2167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
2169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$3=yes"
2172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_res=\$$3
2178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_res" >&6; }
2180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_check_type
2183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ----------------------------------------------------
2186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tries to find if the field MEMBER exists in type AGGR, after including
2187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# INCLUDES, setting cache variable VAR accordingly.
2188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_member ()
2189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $2.$3... " >&6; }
2193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval \${$4+:} false; then :
2194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
2195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
2198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$5
2199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
2200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
2201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic $2 ac_aggr;
2203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (ac_aggr.$3)
2204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn 0;
2205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
2206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
2207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
2208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
2210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$4=yes"
2211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
2214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$5
2215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
2216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
2217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic $2 ac_aggr;
2219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (sizeof ac_aggr.$3)
2220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn 0;
2221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
2222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
2223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
2224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
2226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$4=yes"
2227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval "$4=no"
2229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_res=\$$4
2235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_res" >&6; }
2237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # ac_fn_c_check_member
2240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >config.log <<_ACEOF
2241e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyThis file contains any messages produced by compilers while
2242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrunning configure, to aid debugging if configure makes a mistake.
2243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2244e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIt was created by $as_me, which was
2245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileygenerated by GNU Autoconf 2.69.  Invocation command line was
2246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $ $0 $@
2248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexec 5>>config.log
2251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
2252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat <<_ASUNAME
2253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## --------- ##
2254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## Platform. ##
2255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## --------- ##
2256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyuname -m = `(uname -m) 2>/dev/null || echo unknown`
2259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyuname -r = `(uname -r) 2>/dev/null || echo unknown`
2260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyuname -s = `(uname -s) 2>/dev/null || echo unknown`
2261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyuname -v = `(uname -v) 2>/dev/null || echo unknown`
2262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ASUNAME
2275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
2278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
2279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
2280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
2281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "PATH: $as_dir"
2282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2283e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
2284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} >&5
2286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >&5 <<_ACEOF
2288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ----------- ##
2291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## Core tests. ##
2292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ----------- ##
2293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Keep a trace of the command line.
2298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Strip out --no-create and --no-recursion so they do not pile up.
2299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Strip out --silent because we don't want to record it for future runs.
2300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Also quote any args containing shell meta-characters.
2301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Make two passes to allow for proper duplicate-argument suppression.
2302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_configure_args=
2303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_configure_args0=
2304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_configure_args1=
2305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_must_keep_next=false
2306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_pass in 1 2
2307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
2308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_arg
2309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
2310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_arg in
2311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    | -silent | --silent | --silen | --sile | --sil)
2314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      continue ;;
2315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *\'*)
2316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
2318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_pass in
2319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    2)
2321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_append ac_configure_args1 " '$ac_arg'"
2322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test $ac_must_keep_next = true; then
2323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ac_must_keep_next=false # Got value, back to normal.
2324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
2325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $ac_arg in
2326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  *=* | --config-cache | -C | -disable-* | --disable-* \
2327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  | -with-* | --with-* | -without-* | --without-* | --x)
2330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    case "$ac_configure_args0 " in
2331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    esac
2333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
2334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  -* ) ac_must_keep_next=true ;;
2335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
2336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
2337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_append ac_configure_args " '$ac_arg'"
2338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
2339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
2340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
2342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ ac_configure_args0=; unset ac_configure_args0;}
2343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ ac_configure_args1=; unset ac_configure_args1;}
2344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# When interrupted or exit'd, cleanup temporary files, and complete
2346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# config.log.  We remove comments because anyway the quotes in there
2347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# would cause problems or look ugly.
2348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# WARNING: Use '\'' to represent an apostrophe within the trap.
2349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytrap 'exit_status=$?
2351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Save into config.log some information that might help in debugging.
2352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
2353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    echo
2354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "## ---------------- ##
2356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## Cache variables. ##
2357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ---------------- ##"
2358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    echo
2359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # The following way of writing the cache mishandles newlines in values,
2360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley(
2361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval ac_val=\$$ac_var
2363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_val in #(
2364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *${as_nl}*)
2365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $ac_var in #(
2366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
2369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $ac_var in #(
2370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _ | IFS | as_nl) ;; #(
2371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) { eval $ac_var=; unset $ac_var;} ;;
2373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac ;;
2374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
2375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (set) 2>&1 |
2377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *${as_nl}ac_space=\ *)
2379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sed -n \
2380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	"s/'\''/'\''\\\\'\'''\''/g;
2381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;; #(
2383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
2384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
2386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac |
2387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sort
2388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley)
2389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    echo
2390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "## ----------------- ##
2392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## Output variables. ##
2393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ----------------- ##"
2394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    echo
2395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_var in $ac_subst_vars
2396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    do
2397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      eval ac_val=\$$ac_var
2398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $ac_val in
2399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
2401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $as_echo "$ac_var='\''$ac_val'\''"
2402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done | sort
2403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    echo
2404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$ac_subst_files"; then
2406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $as_echo "## ------------------- ##
2407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## File substitutions. ##
2408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ------------------- ##"
2409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo
2410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      for ac_var in $ac_subst_files
2411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      do
2412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	eval ac_val=\$$ac_var
2413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $ac_val in
2414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
2416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	$as_echo "$ac_var='\''$ac_val'\''"
2417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done | sort
2418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo
2419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
2420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -s confdefs.h; then
2422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $as_echo "## ----------- ##
2423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## confdefs.h. ##
2424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ----------- ##"
2425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo
2426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      cat confdefs.h
2427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo
2428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
2429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test "$ac_signal" != 0 &&
2430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $as_echo "$as_me: caught signal $ac_signal"
2431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me: exit $exit_status"
2432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  } >&5
2433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f core *.core core.conftest.* &&
2434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    exit $exit_status
2436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley' 0
2437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_signal in 1 2 13 15; do
2438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
2440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_signal=0
2441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# confdefs.h avoids OS command line length limits that DEFS can exceed.
2443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f -r conftest* confdefs.h
2444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "/* confdefs.h */" > confdefs.h
2446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Predefined preprocessor variables.
2448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
2450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define PACKAGE_NAME "$PACKAGE_NAME"
2451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
2454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
2458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define PACKAGE_VERSION "$PACKAGE_VERSION"
2459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
2462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define PACKAGE_STRING "$PACKAGE_STRING"
2463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
2466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
2470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define PACKAGE_URL "$PACKAGE_URL"
2471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
2472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Let the site file select an alternate cache file if it wants to.
2475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Prefer an explicitly selected file to automatically selected ones.
2476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_site_file1=NONE
2477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_site_file2=NONE
2478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$CONFIG_SITE"; then
2479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # We do not want a PATH search for config.site.
2480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $CONFIG_SITE in #((
2481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    -*)  ac_site_file1=./$CONFIG_SITE;;
2482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    */*) ac_site_file1=$CONFIG_SITE;;
2483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)   ac_site_file1=./$CONFIG_SITE;;
2484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
2485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelif test "x$prefix" != xNONE; then
2486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_site_file1=$prefix/share/config.site
2487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_site_file2=$prefix/etc/config.site
2488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_site_file1=$ac_default_prefix/share/config.site
2490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_site_file2=$ac_default_prefix/etc/config.site
2491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
2494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "x$ac_site_file" = xNONE && continue
2495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed 's/^/| /' "$ac_site_file" >&5
2499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    . "$ac_site_file" \
2500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error $? "failed to load site script $ac_site_file
2503e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
2504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
2506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -r "$cache_file"; then
2508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Some versions of bash will fail to source /dev/null (special files
2509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: loading cache $cache_file" >&6;}
2513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cache_file in
2514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)                      . "./$cache_file";;
2516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
2517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: creating cache $cache_file" >&6;}
2521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  >$cache_file
2522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check that the precious variables saved in the cache have kept the same
2525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# value.
2526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cache_corrupted=false
2527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_var in $ac_precious_vars; do
2528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_new_set=\$ac_env_${ac_var}_set
2530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_new_val=\$ac_env_${ac_var}_value
2532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_old_set,$ac_new_set in
2533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    set,)
2534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_cache_corrupted=: ;;
2537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ,set)
2538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_cache_corrupted=: ;;
2541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ,);;
2542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
2543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "x$ac_old_val" != "x$ac_new_val"; then
2544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# differences in whitespace do not lead to failure.
2545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ac_old_val_w=`echo x $ac_old_val`
2546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ac_new_val_w=`echo x $ac_new_val`
2547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ac_cache_corrupted=:
2551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
2552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  eval $ac_var=\$ac_old_val
2555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
2556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi;;
2561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
2562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Pass precious variables to config.status.
2563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_new_set" = set; then
2564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_new_val in
2565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *) ac_arg=$ac_var=$ac_new_val ;;
2567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
2568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case " $ac_configure_args " in
2569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
2572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
2574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif $ac_cache_corrupted; then
2575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## -------------------- ##
2582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## Main body of script. ##
2583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## -------------------- ##
2584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
2586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
2587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
2590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__api_version='1.12'
2596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_aux_dir=
2598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -f "$ac_dir/install-sh"; then
2600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_aux_dir=$ac_dir
2601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_install_sh="$ac_aux_dir/install-sh -c"
2602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break
2603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  elif test -f "$ac_dir/install.sh"; then
2604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_aux_dir=$ac_dir
2605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_install_sh="$ac_aux_dir/install.sh -c"
2606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break
2607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  elif test -f "$ac_dir/shtool"; then
2608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_aux_dir=$ac_dir
2609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_install_sh="$ac_aux_dir/shtool install -c"
2610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break
2611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
2613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_aux_dir"; then
2614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# These three variables are undocumented and unsupported,
2618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# and are intended to be withdrawn in a future Autoconf release.
2619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# They can cause serious problems if a builder's source tree is in a directory
2620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# whose full name contains unusual characters.
2621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Find a good install program.  We prefer a C program (faster),
2627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# so one script is as good as another.  But avoid the broken or
2628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# incompatible versions:
2629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# SysV /etc/install, /usr/sbin/install
2630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# SunOS /usr/etc/install
2631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# IRIX /sbin/install
2632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# AIX /bin/install
2633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# AmigaOS /C/install, which installs bootblocks on floppy discs
2634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# OS/2's system install, which has a completely different semantic
2638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ./install, which can be erroneously created by make from ./install.sh.
2639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Reject install programs that cannot install multiple files.
2640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for a BSD-compatible install... " >&6; }
2642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$INSTALL"; then
2643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_path_install+:} false; then :
2644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
2645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
2648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
2649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
2650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
2651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Account for people who put trailing slashes in PATH elements.
2652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $as_dir/ in #((
2653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ./ | .// | /[cC]/* | \
2654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  /usr/ucb/* ) ;;
2657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
2658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # OSF1 and SCO ODT 3.0 have their own names for install.
2659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Don't use installbsd from OSF since it installs stuff as root
2660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # by default.
2661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_prog in ginstall scoinst install; do
2662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      for ac_exec_ext in '' $ac_executable_extensions; do
2663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if test $ac_prog = install &&
2665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    # AIX install.  It has an incompatible calling convention.
2667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    :
2668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  elif test $ac_prog = install &&
2669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    # program-specific install script used by HP pwplus--don't use.
2671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    :
2672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  else
2673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    rm -rf conftest.one conftest.two conftest.dir
2674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    echo one > conftest.one
2675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    echo two > conftest.two
2676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    mkdir conftest.dir
2677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      test -s conftest.one && test -s conftest.two &&
2679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      test -s conftest.dir/conftest.one &&
2680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      test -s conftest.dir/conftest.two
2681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    then
2682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      break 3
2684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    fi
2685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi
2686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
2687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done
2688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
2689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
2690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
2691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2693e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
2694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -rf conftest.one conftest.two conftest.dir
2696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "${ac_cv_path_install+set}" = set; then
2699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    INSTALL=$ac_cv_path_install
2700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
2701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # As a last resort, use the slow shell script.  Don't cache a
2702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # value for INSTALL within a source directory, because that will
2703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # break other packages using the cache if that directory is
2704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # removed, or if the value is a relative name.
2705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    INSTALL=$ac_install_sh
2706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$INSTALL" >&6; }
2710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# It thinks the first close brace ends the variable substitution.
2713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether build environment is sane... " >&6; }
2721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Reject unsafe characters in $srcdir or the absolute working directory
2722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# name.  Accept space and tab only in the latter.
2723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam_lf='
2724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley'
2725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `pwd` in
2726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *[\\\"\#\$\&\'\`$am_lf]*)
2727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
2729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $srcdir in
2730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
2733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Do 'set' in a subshell so we don't clobber the current shell's
2735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# arguments.  Must try -L first in case configure is actually a
2736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# symlink; some systems play weird games with the mod time of symlinks
2737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# (eg FreeBSD returns the mod time of the symlink's containing
2738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# directory).
2739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (
2740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   am_has_slept=no
2741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   for am_try in 1 2; do
2742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     echo "timestamp, slept: $am_has_slept" > conftest.file
2743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test "$*" = "X"; then
2745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# -L didn't work.
2746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	set X `ls -t "$srcdir/configure" conftest.file`
2747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
2748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test "$*" != "X $srcdir/configure conftest.file" \
2749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	&& test "$*" != "X conftest.file $srcdir/configure"; then
2750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# If neither matched, then we have a broken ls.  This can happen
2752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# if, for instance, CONFIG_SHELL is bash and it inherits a
2753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# broken ls alias from the environment.  This has actually
2754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# happened.  Such a system could not be considered "sane".
2755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  alias in your environment" "$LINENO" 5
2757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
2758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test "$2" = conftest.file || test $am_try -eq 2; then
2759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       break
2760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
2761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # Just in case.
2762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     sleep 1
2763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     am_has_slept=yes
2764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   done
2765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test "$2" = conftest.file
2766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   )
2767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileythen
2768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Ok.
2769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   :
2770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   as_fn_error $? "newly created file is older than distributed files!
2772e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCheck your system clock" "$LINENO" 5
2773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
2776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If we didn't sleep, we still need to ensure time stamps of config.status and
2777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# generated files are strictly newer.
2778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam_sleep_pid=
2779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ( sleep 1 ) &
2781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am_sleep_pid=$!
2782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.file
2785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "$program_prefix" != NONE &&
2787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Use a double $ so make ignores it.
2789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "$program_suffix" != NONE &&
2790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Double any \ or $.
2792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# By default was `s,x,x', remove it if useless.
2793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# expand $ac_aux_dir to an absolute path
2797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam_aux_dir=`cd $ac_aux_dir && pwd`
2798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"${MISSING+set}" != xset; then
2800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $am_aux_dir in
2801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\ * | *\	*)
2802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
2804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
2806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Use eval to expand $SHELL
2808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval "$MISSING --run true"; then
2809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am_missing_run="$MISSING --run "
2810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am_missing_run=
2812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"${install_sh}" != xset; then
2817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $am_aux_dir in
2818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\ * | *\	*)
2819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
2821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    install_sh="\${SHELL} $am_aux_dir/install-sh"
2822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
2823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Installed binaries are usually stripped using 'strip' when the user
2826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# run "make install-strip".  However 'strip' might not be the right
2827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# tool to use in cross-compilation environments, therefore Automake
2828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# will honor the 'STRIP' environment variable to overrule this program.
2829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$cross_compiling" != no; then
2830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_tool_prefix"; then
2831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}strip; ac_word=$2
2833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
2835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_STRIP+:} false; then :
2836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
2837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$STRIP"; then
2839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
2843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
2844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
2845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
2846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
2847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
2851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
2853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2854e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
2855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2858e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySTRIP=$ac_cv_prog_STRIP
2859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$STRIP"; then
2860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$STRIP" >&6; }
2862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
2865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_STRIP"; then
2870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_STRIP=$STRIP
2871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "strip", so it can be a program name with args.
2872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy strip; ac_word=$2
2873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
2875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
2877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_STRIP"; then
2879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
2883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
2884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
2885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
2886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
2887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_STRIP="strip"
2889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
2891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
2893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2894e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
2895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_STRIP"; then
2900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_STRIP" >&6; }
2902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
2905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_STRIP" = x; then
2908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    STRIP=":"
2909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
2910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
2911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
2912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
2915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
2916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    STRIP=$ac_ct_STRIP
2917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  STRIP="$ac_cv_prog_STRIP"
2920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2923e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$MKDIR_P"; then
2928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_path_mkdir+:} false; then :
2929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
2930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
2934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
2935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
2936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_prog in mkdir gmkdir; do
2937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 for ac_exec_ext in '' $ac_executable_extensions; do
2938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     'mkdir (GNU coreutils) '* | \
2941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     'mkdir (coreutils) '* | \
2942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     'mkdir (fileutils) '4.1*)
2943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	       break 3;;
2945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   esac
2946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 done
2947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       done
2948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2949e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
2950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -d ./--version && rmdir ./--version
2954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "${ac_cv_path_mkdir+set}" = set; then
2955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    MKDIR_P="$ac_cv_path_mkdir -p"
2956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
2957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # As a last resort, use the slow shell script.  Don't cache a
2958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # value for MKDIR_P within a source directory, because that will
2959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # break other packages using the cache if that directory is
2960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # removed, or if the value is a relative name.
2961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    MKDIR_P="$ac_install_sh -d"
2962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$MKDIR_P" >&6; }
2966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_prog in gawk mawk nawk awk
2968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
2969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "$ac_prog", so it can be a program name with args.
2970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $ac_prog; ac_word=$2
2971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
2973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_AWK+:} false; then :
2974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
2975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$AWK"; then
2977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
2979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
2981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
2982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
2983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
2984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
2985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_AWK="$ac_prog"
2987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
2989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
2990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
2991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
2992e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
2993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
2994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
2996e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAWK=$ac_cv_prog_AWK
2997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$AWK"; then
2998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$AWK" >&6; }
3000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
3003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -n "$AWK" && break
3007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset x ${MAKE-make}
3012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >conftest.make <<\_ACEOF
3017e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySHELL = /bin/sh
3018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyall:
3019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	@echo '@@@%%%=$(MAKE)=@@@%%%'
3020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `${MAKE-make} -f conftest.make 2>/dev/null` in
3023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *@@@%%%=?*=@@@%%%*)
3024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval ac_cv_prog_make_${ac_make}_set=yes;;
3025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
3026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval ac_cv_prog_make_${ac_make}_set=no;;
3027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.make
3029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
3033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SET_MAKE=
3034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
3037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SET_MAKE="MAKE=${MAKE-make}"
3038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -rf .tst 2>/dev/null
3041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymkdir .tst 2>/dev/null
3042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -d .tst; then
3043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__leading_dot=.
3044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__leading_dot=_
3046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrmdir .tst 2>/dev/null
3048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "`cd $srcdir && pwd`" != "`pwd`"; then
3050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # is not polluted with repeated "-I."
3052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__isrc=' -I$(srcdir)'
3053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # test to see if srcdir already configured
3054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -f $srcdir/config.status; then
3055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# test whether we have cygpath
3060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$CYGPATH_W"; then
3061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (cygpath --version) >/dev/null 2>/dev/null; then
3062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CYGPATH_W='cygpath -w'
3063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
3064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CYGPATH_W=echo
3065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Define the identity of the package.
3070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley PACKAGE=libevent
3072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley VERSION=2.0.22-stable
3073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
3076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define PACKAGE "$PACKAGE"
3077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
3081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define VERSION "$VERSION"
3082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Some tools Automake needs.
3085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3086e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3089e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3092e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3095e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3098e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# For better backward compatibility.  To be removed once Automake 1.9.x
3101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# dies out for good.  For more background, see:
3102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymkdir_p='$(MKDIR_P)'
3105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We need awk for the "check" target.  The system "awk" is bad on
3107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# some platforms.
3108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Always define AMTAR for backward compatibility.  Yes, it's still used
3109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# in the wild :-(  We should find a proper way to deprecate it ...
3110e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAMTAR='$${TAR-tar}'
3111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_config_headers="$ac_config_headers config.h"
3119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define NUMERIC_VERSION 0x02001600" >>confdefs.h
3122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$prefix" = "NONE"; then
3125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   prefix="/usr/local"
3126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Make sure we can run config.sub.
3129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking build system type... " >&6; }
3134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_build+:} false; then :
3135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_build_alias=$build_alias
3138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "x$ac_build_alias" = x &&
3139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "x$ac_build_alias" = x &&
3141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_build" >&6; }
3148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $ac_cv_build in
3149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*-*-*) ;;
3150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild=$ac_cv_build
3153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_save_IFS=$IFS; IFS='-'
3154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset x $ac_cv_build
3155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshift
3156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_cpu=$1
3157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_vendor=$2
3158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshift; shift
3159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Remember, the first character of IFS is used to create $*,
3160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# except with old shells:
3161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_os=$*
3162e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$ac_save_IFS
3163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking host system type... " >&6; }
3168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_host+:} false; then :
3169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$host_alias" = x; then
3172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_host=$ac_cv_build
3173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_host" >&6; }
3181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $ac_cv_host in
3182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*-*-*) ;;
3183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost=$ac_cv_host
3186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_save_IFS=$IFS; IFS='-'
3187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset x $ac_cv_host
3188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshift
3189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_cpu=$1
3190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_vendor=$2
3191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshift; shift
3192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Remember, the first character of IFS is used to create $*,
3193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# except with old shells:
3194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_os=$*
3195e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$ac_save_IFS
3196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "$host_os" in
3201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley osf5*)
3203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="$CFLAGS -D_OSF_SOURCE"
3204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
3205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
3208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
3209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
3212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_tool_prefix"; then
3213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}gcc; ac_word=$2
3215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
3217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_CC+:} false; then :
3218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$CC"; then
3221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_CC="$CC" # Let the user override the test.
3222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
3225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
3227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
3228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
3229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
3233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
3236e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
3237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3240e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC=$ac_cv_prog_CC
3241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$CC"; then
3242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$CC" >&6; }
3244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
3247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_CC"; then
3252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_CC=$CC
3253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "gcc", so it can be a program name with args.
3254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy gcc; ac_word=$2
3255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
3257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_CC+:} false; then :
3258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_CC"; then
3261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
3265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
3267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
3268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
3269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_CC="gcc"
3271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
3273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
3276e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
3277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_CC=$ac_cv_prog_ac_ct_CC
3281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_CC"; then
3282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_CC" >&6; }
3284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
3287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_CC" = x; then
3290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CC=""
3291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
3292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
3293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
3294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
3297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CC=$ac_ct_CC
3299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CC="$ac_cv_prog_CC"
3302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$CC"; then
3305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          if test -n "$ac_tool_prefix"; then
3306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}cc; ac_word=$2
3308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
3310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_CC+:} false; then :
3311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$CC"; then
3314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_CC="$CC" # Let the user override the test.
3315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
3318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
3320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
3321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
3322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_CC="${ac_tool_prefix}cc"
3324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
3326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
3329e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
3330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3333e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC=$ac_cv_prog_CC
3334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$CC"; then
3335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$CC" >&6; }
3337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
3340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$CC"; then
3346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "cc", so it can be a program name with args.
3347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy cc; ac_word=$2
3348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
3350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_CC+:} false; then :
3351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$CC"; then
3354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_CC="$CC" # Let the user override the test.
3355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_prog_rejected=no
3357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
3359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
3361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
3362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
3363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       ac_prog_rejected=yes
3366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       continue
3367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
3368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_CC="cc"
3369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
3371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
3374e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
3375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_prog_rejected = yes; then
3377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # We found a bogon in the path, so make sure we never use it.
3378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  set dummy $ac_cv_prog_CC
3379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shift
3380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test $# != 0; then
3381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # We chose a different compiler from the bogus one.
3382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # However, it has the same basename, so the bogon will be chosen
3383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # first if we set CC to just the basename; use the full file name.
3384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shift
3385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3390e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC=$ac_cv_prog_CC
3391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$CC"; then
3392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$CC" >&6; }
3394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
3397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$CC"; then
3402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_tool_prefix"; then
3403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_prog in cl.exe
3404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
3405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
3409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_CC+:} false; then :
3410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$CC"; then
3413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_CC="$CC" # Let the user override the test.
3414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
3417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
3419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
3420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
3421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
3425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
3428e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
3429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3432e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC=$ac_cv_prog_CC
3433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$CC"; then
3434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$CC" >&6; }
3436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
3439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -n "$CC" && break
3443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
3444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$CC"; then
3446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_CC=$CC
3447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_prog in cl.exe
3448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "$ac_prog", so it can be a program name with args.
3450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $ac_prog; ac_word=$2
3451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
3453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_CC+:} false; then :
3454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_CC"; then
3457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
3461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
3463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
3464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
3465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_CC="$ac_prog"
3467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
3469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
3472e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
3473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_CC=$ac_cv_prog_ac_ct_CC
3477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_CC"; then
3478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_CC" >&6; }
3480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
3483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -n "$ac_ct_CC" && break
3487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_CC" = x; then
3490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CC=""
3491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
3492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
3493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
3494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
3497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CC=$ac_ct_CC
3499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error $? "no acceptable C compiler found in \$PATH
3508e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
3509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Provide some information about the compiler.
3511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset X $ac_compile
3513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler=$2
3514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_option in --version -v -V -qversion; do
3515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { { ac_try="$ac_compiler $ac_option >&5"
3516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "(($ac_try" in
3517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
3519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
3522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
3524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -s conftest.err; then
3525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '10a\
3526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley... rest of stderr output deleted ...
3527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley         10q' conftest.err >conftest.er1
3528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat conftest.er1 >&5
3529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.er1 conftest.err
3531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }
3533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
3537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
3539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
3540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
3543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
3544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_clean_files_save=$ac_clean_files
3547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Try to create an executable without -o first, disregard a.out.
3549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# It will help us diagnose broken compilers, and finding out an intuition
3550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# of exeext.
3551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether the C compiler works... " >&6; }
3553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The possible output files:
3556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_rmfiles=
3559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_file in $ac_files
3560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_file in
3562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
3565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f $ac_rmfiles
3567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif { { ac_try="$ac_link_default"
3569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "(($ac_try" in
3570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
3572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
3575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_link_default") 2>&5
3576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
3577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; then :
3579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# so that the user can short-circuit this test for compilers unknown to
3583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Autoconf.
3584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_file in $ac_files ''
3585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -f "$ac_file" || continue
3587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_file in
3588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
3590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    [ab].out )
3591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# We found the default executable, but exeext='' is most
3592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# certainly right.
3593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	break;;
3594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *.* )
3595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	then :; else
3597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
3599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# We set ac_cv_exeext here because the later test for it is not
3600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# safe: cross compilers may not add the suffix if given an `-o'
3601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# argument, so we may need to know it at that point already.
3602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Even if this section looks crufty: it has the advantage of
3603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# actually working.
3604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	break;;
3605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    * )
3606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	break;;
3607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
3608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "$ac_cv_exeext" = no && ac_cv_exeext=
3610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_file=''
3613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_file"; then :
3615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
3617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: failed program was:" >&5
3618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed 's/^/| /' conftest.$ac_ext >&5
3619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "C compiler cannot create executables
3623e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
3624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
3627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for C compiler default output file name... " >&6; }
3630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_file" >&6; }
3632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_exeext=$ac_cv_exeext
3633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_clean_files=$ac_clean_files_save
3636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for suffix of executables... " >&6; }
3638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif { { ac_try="$ac_link"
3639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "(($ac_try" in
3640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
3642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
3645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_link") 2>&5
3646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
3647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; then :
3649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# work properly (i.e., refer to `conftest.exe'), while it won't with
3652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# `rm'.
3653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_file in conftest.exe conftest conftest.*; do
3654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -f "$ac_file" || continue
3655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_file in
3656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  break;;
3659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    * ) break;;
3660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
3661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3666e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
3667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest conftest$ac_cv_exeext
3669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_exeext" >&6; }
3671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.$ac_ext
3673e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEXEEXT=$ac_cv_exeext
3674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_exeext=$EXEEXT
3675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
3677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdio.h>
3678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
3679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
3680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3681e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyFILE *f = fopen ("conftest.out", "w");
3682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley return ferror (f) || fclose (f) != 0;
3683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
3685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
3686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_clean_files="$ac_clean_files conftest.out"
3689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check that the compiler produces executables we can run.  If not, either
3690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# the compiler is broken, or we cross compile.
3691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether we are cross compiling... " >&6; }
3693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$cross_compiling" != yes; then
3694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { { ac_try="$ac_link"
3695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "(($ac_try" in
3696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
3698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
3701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_link") 2>&5
3702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
3703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }
3705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { ac_try='./conftest$ac_cv_exeext'
3706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { { case "(($ac_try" in
3707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
3709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
3712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_try") 2>&5
3713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
3714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; }; then
3716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cross_compiling=no
3717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
3718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$cross_compiling" = maybe; then
3719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cross_compiling=yes
3720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
3721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error $? "cannot run C compiled programs.
3724e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIf you meant to cross compile, use \`--host'.
3725e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
3726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
3727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$cross_compiling" >&6; }
3731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_clean_files=$ac_clean_files_save
3734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for suffix of object files... " >&6; }
3736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_objext+:} false; then :
3737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
3741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
3743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
3744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
3747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
3748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.o conftest.obj
3751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif { { ac_try="$ac_compile"
3752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "(($ac_try" in
3753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
3755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
3758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_compile") 2>&5
3759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
3760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; then :
3762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_file in conftest.o conftest.obj conftest.*; do
3763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -f "$ac_file" || continue;
3764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_file in
3765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       break;;
3768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
3769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me: failed program was:" >&5
3772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed 's/^/| /' conftest.$ac_ext >&5
3773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error $? "cannot compute suffix of object files: cannot compile
3777e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
3778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.$ac_cv_objext conftest.$ac_ext
3780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_objext" >&6; }
3783e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOBJEXT=$ac_cv_objext
3784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_objext=$OBJEXT
3785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_c_compiler_gnu+:} false; then :
3788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
3792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
3794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
3795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifndef __GNUC__
3797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       choke me
3798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
3799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
3801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
3802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
3805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_compiler_gnu=yes
3806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_compiler_gnu=no
3808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cv_c_compiler_gnu=$ac_compiler_gnu
3811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_compiler_gnu = yes; then
3816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  GCC=yes
3817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  GCC=
3819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_test_CFLAGS=${CFLAGS+set}
3821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_save_CFLAGS=$CFLAGS
3822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether $CC accepts -g... " >&6; }
3824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_cc_g+:} false; then :
3825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_save_c_werror_flag=$ac_c_werror_flag
3828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ac_c_werror_flag=yes
3829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ac_cv_prog_cc_g=no
3830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   CFLAGS="-g"
3831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
3833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
3835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
3836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
3839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
3840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
3843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_cc_g=yes
3844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CFLAGS=""
3846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
3848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
3850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
3851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
3854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
3855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
3858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_c_werror_flag=$ac_save_c_werror_flag
3861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 CFLAGS="-g"
3862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
3864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
3866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
3867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
3870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
3871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
3874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_cc_g=yes
3875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ac_c_werror_flag=$ac_save_c_werror_flag
3882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_prog_cc_g" >&6; }
3885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_test_CFLAGS" = set; then
3886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CFLAGS=$ac_save_CFLAGS
3887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelif test $ac_cv_prog_cc_g = yes; then
3888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$GCC" = yes; then
3889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="-g -O2"
3890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
3891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="-g"
3892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$GCC" = yes; then
3895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="-O2"
3896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
3897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS=
3898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
3899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_cc_c89+:} false; then :
3903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
3904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
3905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_cc_c89=no
3906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_save_CC=$CC
3907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
3909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdarg.h>
3910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdio.h>
3911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystruct stat;
3912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystruct buf { int x; };
3914e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyFILE * (*rcsopen) (struct buf *, struct stat *, int);
3915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic char *e (p, i)
3916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     char **p;
3917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     int i;
3918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return p[i];
3920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic char *f (char * (*g) (char **, int), char **p, ...)
3922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  char *s;
3924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  va_list v;
3925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  va_start (v,p);
3926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  s = g (p, va_arg (v,int));
3927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  va_end (v);
3928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return s;
3929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   function prototypes and stuff, but not '\xHH' hex character constants.
3933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   These don't provoke an error unfortunately, instead are silently treated
3934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   as 'x'.  The following induces an error, until -std is added to get
3935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   array size at least.  It's necessary to write '\x00'==0 to get something
3937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   that's true only with -std.  */
3938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   inside strings and character constants.  */
3942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define FOO(x) 'x'
3943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint test (int i, double x);
3946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystruct s1 {int (*f) (int a);};
3947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystruct s2 {int (*f) (double a);};
3948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint argc;
3950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar **argv;
3951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
3952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
3953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
3954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
3956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
3957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
3958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
3959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
3962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CC="$ac_save_CC $ac_arg"
3963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_try_compile "$LINENO"; then :
3964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_cc_c89=$ac_arg
3965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext
3967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "x$ac_cv_prog_cc_c89" != "xno" && break
3968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
3969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.$ac_ext
3970e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC=$ac_save_CC
3971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# AC_CACHE_VAL
3974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "x$ac_cv_prog_cc_c89" in
3975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  x)
3976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "none needed" >&6; } ;;
3978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  xno)
3979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "unsupported" >&6; } ;;
3981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
3982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CC="$CC $ac_cv_prog_cc_c89"
3983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
3986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_prog_cc_c89" != xno; then :
3987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
3989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
3991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
3992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
3995e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDEPDIR="${am__leading_dot}deps"
3996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_config_commands="$ac_config_commands depfiles"
3998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
3999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam_make=${MAKE-make}
4001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat > confinc << 'END'
4002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__doit:
4003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	@echo this is the am__doit target
4004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley.PHONY: am__doit
4005e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEND
4006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If we don't find an include directive, just comment out the code.
4007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for style of include used by $am_make... " >&6; }
4009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__include="#"
4010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam__quote=
4011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_am_result=none
4012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# First try GNU make style include.
4013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyecho "include confinc" > confmf
4014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Ignore all kinds of additional output from 'make'.
4015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `$am_make -s -f confmf 2> /dev/null` in #(
4016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*the\ am__doit\ target*)
4017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__include=include
4018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__quote=
4019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  _am_result=GNU
4020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
4021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Now try BSD make style include.
4023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$am__include" = "#"; then
4024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo '.include "confinc"' > confmf
4025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   case `$am_make -s -f confmf 2> /dev/null` in #(
4026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   *the\ am__doit\ target*)
4027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     am__include=.include
4028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     am__quote="\""
4029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     _am_result=BSD
4030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ;;
4031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   esac
4032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$_am_result" >&6; }
4037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f confinc confmf
4038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-dependency-tracking was given.
4040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_dependency_tracking+set}" = set; then :
4041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_dependency_tracking;
4042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$enable_dependency_tracking" != xno; then
4045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am_depcomp="$ac_aux_dir/depcomp"
4046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  AMDEPBACKSLASH='\'
4047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__nodep='_no'
4048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "x$enable_dependency_tracking" != xno; then
4050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  AMDEP_TRUE=
4051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  AMDEP_FALSE='#'
4052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  AMDEP_TRUE='#'
4054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  AMDEP_FALSE=
4055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydepcc="$CC"   am_compiler_list=
4060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking dependency style of $depcc... " >&6; }
4063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${am_cv_CC_dependencies_compiler_type+:} false; then :
4064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
4065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # We make a subdir and do the tests there.  Otherwise we can end up
4068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # making bogus files that we don't know about and never remove.  For
4069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # instance it was reported that on HP-UX the gcc test will end up
4070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # making a dummy file named 'D' -- because '-MD' means "put the output
4071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # in D".
4072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -rf conftest.dir
4073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  mkdir conftest.dir
4074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Copy depcomp to subdir because otherwise we won't find it if we're
4075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # using a relative directory.
4076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cp "$am_depcomp" conftest.dir
4077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cd conftest.dir
4078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # We will build objects and dependencies in a subdirectory because
4079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # it helps to detect inapplicable dependency modes.  For instance
4080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # both Tru64's cc and ICC support -MD to output dependencies as a
4081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # side effect of compilation, but ICC will put the dependencies in
4082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # the current directory while Tru64 will put them in the object
4083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # directory.
4084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  mkdir sub
4085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am_cv_CC_dependencies_compiler_type=none
4087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$am_compiler_list" = ""; then
4088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
4090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__universal=false
4091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case " $depcc " in #(
4092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     esac
4094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for depmode in $am_compiler_list; do
4096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Setup a source with many dependencies, because some compilers
4097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # like to wrap large dependency lists on column 80 (with \), and
4098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # we should not choose a depcomp mode which is confused by this.
4099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    #
4100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # We need to recreate these files for each test, as the compiler may
4101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # overwrite some of them when testing with obscure command lines.
4102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # This happens at least with the AIX C compiler.
4103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    : > sub/conftest.c
4104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for i in 1 2 3 4 5 6; do
4105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Solaris 10 /bin/sh.
4108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo '/* dummy */' > sub/conftst$i.h
4109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
4110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # mode.  It turns out that the SunPro C++ compiler does not properly
4114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # handle '-M -o', and we need to detect this.  Also, some Intel
4115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # versions had trouble with output in subdirs.
4116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    am__obj=sub/conftest.${OBJEXT-o}
4117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    am__minus_obj="-o $am__obj"
4118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $depmode in
4119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    gcc)
4120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # This depmode causes a compiler race in universal mode.
4121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test "$am__universal" = false || continue
4122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
4123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    nosideeffect)
4124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # After this tag, mechanisms are not by side-effect, so they'll
4125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # only be used when explicitly requested.
4126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "x$enable_dependency_tracking" = xyes; then
4127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	continue
4128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
4129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	break
4130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
4131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
4132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # This compiler won't grok '-c -o', but also, the minuso test has
4134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # not run yet.  These depmodes are late enough in the game, and
4135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # so weak that their functioning should not be impacted.
4136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      am__obj=conftest.${OBJEXT-o}
4137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      am__minus_obj=
4138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
4139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    none) break ;;
4140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
4141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if depmode=$depmode \
4142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       source=sub/conftest.c object=$am__obj \
4143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley         >/dev/null 2>conftest.err &&
4146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # icc doesn't choke on unknown options, it will just issue warnings
4151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # or remarks (even with -Werror).  So we grep stderr for any message
4152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # that says an option was ignored or not supported.
4153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # When given -MP, icc 7.0 and 7.1 complain thusly:
4154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      #   icc: Command line warning: ignoring option '-M'; no argument required
4155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # The diagnosis changed in icc 8.0:
4156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      #   icc: Command line remark: option '-MP' not supported
4157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if (grep 'ignoring option' conftest.err ||
4158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        am_cv_CC_dependencies_compiler_type=$depmode
4160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        break
4161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
4162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
4163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cd ..
4166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -rf conftest.dir
4167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am_cv_CC_dependencies_compiler_type=none
4169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4174e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if
4177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "x$enable_dependency_tracking" != xno \
4178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__fastdepCC_TRUE=
4180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__fastdepCC_FALSE='#'
4181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__fastdepCC_TRUE='#'
4183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__fastdepCC_FALSE=
4184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$CC" != xcc; then
4188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $CC; ac_cc=`$as_echo "$2" |
4195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
4198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
4201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
4203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
4204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
4205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
4207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
4208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
4209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
4210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Make sure it works both with $CC and with simple cc.
4211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We do the test twice because some compilers refuse to overwrite an
4212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# existing .o file with -o, though they will create one.
4213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest2.*
4215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif { { case "(($ac_try" in
4216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
4218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
4221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_try") 2>&5
4222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
4223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } &&
4225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
4228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
4231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_try") 2>&5
4232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
4233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; };
4235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileythen
4236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$CC" != xcc; then
4238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Test first that cc exists at all.
4239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if { ac_try='cc -c conftest.$ac_ext >&5'
4240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { { case "(($ac_try" in
4241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
4243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
4246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_try") 2>&5
4247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
4248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; }; then
4250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      rm -f conftest2.*
4252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if { { case "(($ac_try" in
4253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
4255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
4258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_try") 2>&5
4259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
4260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } &&
4262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_try_echo=$ac_try;;
4265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_try_echo"; } >&5
4268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_try") 2>&5
4269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
4270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; };
4272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      then
4273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# cc works too.
4274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	:
4275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
4276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# cc exists but doesn't like -o.
4277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
4279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
4280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
4281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest*
4285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
4290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
4293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# FIXME: we rely on the cache variable name because
4299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# there is no other way.
4300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $CC
4301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyam_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$am_t" != yes; then
4304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Losing compiler, so override with the script.
4305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # FIXME: It is wrong to rewrite CC.
4306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # But if we don't then we get into trouble of one sort or another.
4307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # A longer-term fix would be to have automake use am__CC in this case,
4308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   CC="$am_aux_dir/compile $CC"
4310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether ln -s works... " >&6; }
4316e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLN_S=$as_ln_s
4317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$LN_S" = "ln -s"; then
4318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
4320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no, using $LN_S" >&6; }
4323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# versions
4329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_path_SED+:} false; then :
4332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
4333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     for ac_i in 1 2 3 4 5 6 7; do
4336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       ac_script="$ac_script$as_nl$ac_script"
4337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     done
4338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { ac_script=; unset ac_script;}
4340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test -z "$SED"; then
4341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_path_SED_found=false
4342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Loop through the user's path and test for each of PROGNAME-LIST
4343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
4345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
4346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
4347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
4348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_prog in sed gsed; do
4349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
4350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_executable_p "$ac_path_SED" || continue
4352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check for GNU ac_path_SED and select it if it is found.
4353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check for GNU $ac_path_SED
4354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `"$ac_path_SED" --version 2>&1` in
4355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*GNU*)
4356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
4358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_count=0
4359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n 0123456789 >"conftest.in"
4360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  while :
4361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
4362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat "conftest.in" "conftest.in" >"conftest.tmp"
4363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mv "conftest.tmp" "conftest.in"
4364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cp "conftest.in" "conftest.nl"
4365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo '' >> "conftest.nl"
4366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_arith $ac_count + 1 && ac_count=$as_val
4369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test $ac_count -gt ${ac_path_SED_max-0}; then
4370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Best one so far, save it but keep looking for a better one
4371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_cv_path_SED="$ac_path_SED"
4372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_SED_max=$ac_count
4373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
4374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # 10*(2^10) chars as input seems more than enough
4375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test $ac_count -gt 10 && break
4376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $ac_path_SED_found && break 3
4381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
4382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4384e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
4385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_cv_path_SED"; then
4386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
4388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_SED=$SED
4390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_path_SED" >&6; }
4395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley SED="$ac_cv_path_SED"
4396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.sed
4397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
4401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
4402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
4405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking how to run the C preprocessor... " >&6; }
4407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# On Suns, sometimes $CPP names a directory.
4408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$CPP" && test -d "$CPP"; then
4409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CPP=
4410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$CPP"; then
4412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_prog_CPP+:} false; then :
4413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
4414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Double quotes because CPP needs to be expanded
4416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    do
4418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_preproc_ok=false
4419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_c_preproc_warn_flag in '' yes
4420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
4421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Use a header file that comes with gcc, so configuring glibc
4422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # with a fresh cross-compiler works.
4423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # <limits.h> exists even on freestanding compilers.
4425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # On the NeXT, cc -E runs the code through the compiler's parser,
4426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # not just through cpp. "Syntax error" is here to catch this case.
4427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
4429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __STDC__
4430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <limits.h>
4431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
4432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <assert.h>
4433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
4434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		     Syntax error
4435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
4436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_cpp "$LINENO"; then :
4437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Broken: fails on valid input.
4440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycontinue
4441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.err conftest.i conftest.$ac_ext
4443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # OK, works on sane cases.  Now check whether nonexistent headers
4445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # can be detected and how.
4446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
4448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ac_nonexistent.h>
4449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
4450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_cpp "$LINENO"; then :
4451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Broken: success on invalid input.
4452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycontinue
4453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Passes both tests.
4455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_preproc_ok=:
4456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybreak
4457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.err conftest.i conftest.$ac_ext
4459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
4461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.i conftest.err conftest.$ac_ext
4463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif $ac_preproc_ok; then :
4464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break
4465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
4468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_CPP=$CPP
4469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CPP=$ac_cv_prog_CPP
4472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_CPP=$CPP
4474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$CPP" >&6; }
4477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_preproc_ok=false
4478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_c_preproc_warn_flag in '' yes
4479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
4480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Use a header file that comes with gcc, so configuring glibc
4481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # with a fresh cross-compiler works.
4482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # <limits.h> exists even on freestanding compilers.
4484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # On the NeXT, cc -E runs the code through the compiler's parser,
4485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # not just through cpp. "Syntax error" is here to catch this case.
4486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
4488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __STDC__
4489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <limits.h>
4490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
4491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# include <assert.h>
4492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
4493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		     Syntax error
4494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
4495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_cpp "$LINENO"; then :
4496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Broken: fails on valid input.
4499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycontinue
4500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.err conftest.i conftest.$ac_ext
4502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # OK, works on sane cases.  Now check whether nonexistent headers
4504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # can be detected and how.
4505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
4507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ac_nonexistent.h>
4508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
4509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_cpp "$LINENO"; then :
4510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Broken: success on invalid input.
4511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycontinue
4512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Passes both tests.
4514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_preproc_ok=:
4515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybreak
4516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.err conftest.i conftest.$ac_ext
4518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
4520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest.i conftest.err conftest.$ac_ext
4522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif $ac_preproc_ok; then :
4523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4528e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
4529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
4532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
4533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
4536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_path_GREP+:} false; then :
4541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
4542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$GREP"; then
4544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_path_GREP_found=false
4545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Loop through the user's path and test for each of PROGNAME-LIST
4546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
4549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
4550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
4551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_prog in grep ggrep; do
4552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
4553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_executable_p "$ac_path_GREP" || continue
4555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check for GNU ac_path_GREP and select it if it is found.
4556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check for GNU $ac_path_GREP
4557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `"$ac_path_GREP" --version 2>&1` in
4558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*GNU*)
4559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
4561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_count=0
4562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n 0123456789 >"conftest.in"
4563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  while :
4564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
4565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat "conftest.in" "conftest.in" >"conftest.tmp"
4566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mv "conftest.tmp" "conftest.in"
4567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cp "conftest.in" "conftest.nl"
4568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo 'GREP' >> "conftest.nl"
4569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_arith $ac_count + 1 && ac_count=$as_val
4572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Best one so far, save it but keep looking for a better one
4574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_cv_path_GREP="$ac_path_GREP"
4575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_GREP_max=$ac_count
4576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
4577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # 10*(2^10) chars as input seems more than enough
4578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test $ac_count -gt 10 && break
4579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $ac_path_GREP_found && break 3
4584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
4585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4587e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
4588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_cv_path_GREP"; then
4589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
4591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_GREP=$GREP
4593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_path_GREP" >&6; }
4598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley GREP="$ac_cv_path_GREP"
4599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for egrep... " >&6; }
4603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_path_EGREP+:} false; then :
4604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
4605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   then ac_cv_path_EGREP="$GREP -E"
4608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
4609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test -z "$EGREP"; then
4610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_path_EGREP_found=false
4611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Loop through the user's path and test for each of PROGNAME-LIST
4612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
4615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
4616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
4617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_prog in egrep; do
4618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
4619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_executable_p "$ac_path_EGREP" || continue
4621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check for GNU ac_path_EGREP and select it if it is found.
4622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check for GNU $ac_path_EGREP
4623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `"$ac_path_EGREP" --version 2>&1` in
4624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*GNU*)
4625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
4627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_count=0
4628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n 0123456789 >"conftest.in"
4629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  while :
4630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
4631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat "conftest.in" "conftest.in" >"conftest.tmp"
4632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mv "conftest.tmp" "conftest.in"
4633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cp "conftest.in" "conftest.nl"
4634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo 'EGREP' >> "conftest.nl"
4635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_arith $ac_count + 1 && ac_count=$as_val
4638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Best one so far, save it but keep looking for a better one
4640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_cv_path_EGREP="$ac_path_EGREP"
4641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_EGREP_max=$ac_count
4642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
4643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # 10*(2^10) chars as input seems more than enough
4644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test $ac_count -gt 10 && break
4645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $ac_path_EGREP_found && break 3
4650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
4651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4653e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
4654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_cv_path_EGREP"; then
4655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
4657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_EGREP=$EGREP
4659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
4662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_path_EGREP" >&6; }
4665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley EGREP="$ac_cv_path_EGREP"
4666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_c_compiler_gnu = yes; then
4669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_gcc_traditional+:} false; then :
4672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
4673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_pattern="Autoconf.*'x'"
4675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
4677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sgtty.h>
4678e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAutoconf TIOCGETP
4679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
4680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_gcc_traditional=yes
4683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_gcc_traditional=no
4685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
4687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test $ac_cv_prog_gcc_traditional = no; then
4690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
4692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <termio.h>
4693e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAutoconf TCGETA
4694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
4695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_gcc_traditional=yes
4698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
4700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
4702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test $ac_cv_prog_gcc_traditional = yes; then
4706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CC="$CC -traditional"
4707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
4708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We need to test for at least gcc 2.95 here, because older versions don't
4712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# have -fno-strict-aliasing
4713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
4715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
4717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
4718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
4719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#error
4722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
4723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
4724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
4725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
4726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
4727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
4728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_gcc295=yes
4729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_gcc295=no
4731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$GCC" = "yes" ; then
4735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # Enable many gcc warnings by default...
4736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        CFLAGS="$CFLAGS -Wall"
4737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# And disable the strict-aliasing optimization, since it breaks
4738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# our sockaddr-handling code in strange ways.
4739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test x$have_gcc295 = xyes; then
4740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		CFLAGS="$CFLAGS -fno-strict-aliasing"
4741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
4742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# OS X Lion started deprecating the system openssl. Let's just disable
4745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# all deprecation warnings on OS X.
4746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "$host_os" in
4747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley darwin*)
4749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
4751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-gcc-warnings was given.
4754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_gcc_warnings+set}" = set; then :
4755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_gcc_warnings;
4756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-thread-support was given.
4759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_thread_support+set}" = set; then :
4760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_thread_support;
4761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_thread_support=yes
4763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-malloc-replacement was given.
4766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_malloc_replacement+set}" = set; then :
4767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_malloc_replacement;
4768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_malloc_replacement=yes
4770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-openssl was given.
4773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_openssl+set}" = set; then :
4774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_openssl;
4775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_openssl=yes
4777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-debug-mode was given.
4780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_debug_mode+set}" = set; then :
4781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_debug_mode;
4782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_debug_mode=yes
4784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-libevent-install was given.
4787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_libevent_install+set}" = set; then :
4788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_libevent_install;
4789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_libevent_install=yes
4791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-libevent-regress was given.
4794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_libevent_regress+set}" = set; then :
4795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_libevent_regress;
4796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_libevent_regress=yes
4798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-function-sections was given.
4801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_function_sections+set}" = set; then :
4802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_function_sections;
4803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_function_sections=no
4805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `pwd` in
4810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\ * | *\	*)
4811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymacro_version='2.4.2'
4818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymacro_revision='1.3337'
4819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyltmain="$ac_aux_dir/ltmain.sh"
4833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Backslashify metacharacters that are still active within
4835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# double-quoted strings.
4836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Same as above, but do not quote variable references.
4839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydouble_quote_subst='s/\(["`\\]\)/\\\1/g'
4840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Sed substitution to delay expansion of an escaped shell variable in a
4842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# double_quote_subst'ed string.
4843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Sed substitution to delay expansion of an escaped single quote.
4846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Sed substitution to avoid accidental globbing in evaled expressions
4849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyno_glob_subst='s/\*/\\\*/g'
4850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4851e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4852e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4853e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking how to print strings... " >&6; }
4857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Test print first, because it will be a builtin if present.
4858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ECHO='print -r --'
4861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ECHO='printf %s\n'
4863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Use this function as a fallback that always works.
4865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  func_fallback_echo ()
4866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
4867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval 'cat <<_LTECHO_EOF
4868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$1
4869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LTECHO_EOF'
4870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
4871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ECHO='func_fallback_echo'
4872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# func_echo_all arg...
4875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Invoke $ECHO with all args, space-separated.
4876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_echo_all ()
4877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
4878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $ECHO ""
4879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
4880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "$ECHO" in
4882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "printf" >&6; } ;;
4884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "print -r" >&6; } ;;
4886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "cat" >&6; } ;;
4888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_path_SED+:} false; then :
4906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
4907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     for ac_i in 1 2 3 4 5 6 7; do
4910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       ac_script="$ac_script$as_nl$ac_script"
4911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     done
4912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { ac_script=; unset ac_script;}
4914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test -z "$SED"; then
4915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_path_SED_found=false
4916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Loop through the user's path and test for each of PROGNAME-LIST
4917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
4919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
4920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
4921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
4922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_prog in sed gsed; do
4923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
4924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_executable_p "$ac_path_SED" || continue
4926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check for GNU ac_path_SED and select it if it is found.
4927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check for GNU $ac_path_SED
4928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `"$ac_path_SED" --version 2>&1` in
4929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*GNU*)
4930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
4932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_count=0
4933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n 0123456789 >"conftest.in"
4934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  while :
4935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
4936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat "conftest.in" "conftest.in" >"conftest.tmp"
4937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mv "conftest.tmp" "conftest.in"
4938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cp "conftest.in" "conftest.nl"
4939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo '' >> "conftest.nl"
4940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_arith $ac_count + 1 && ac_count=$as_val
4943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test $ac_count -gt ${ac_path_SED_max-0}; then
4944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Best one so far, save it but keep looking for a better one
4945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_cv_path_SED="$ac_path_SED"
4946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_SED_max=$ac_count
4947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
4948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # 10*(2^10) chars as input seems more than enough
4949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test $ac_count -gt 10 && break
4950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
4953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $ac_path_SED_found && break 3
4955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
4956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
4958e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
4959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_cv_path_SED"; then
4960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
4962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_SED=$SED
4964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
4967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_path_SED" >&6; }
4969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley SED="$ac_cv_path_SED"
4970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.sed
4971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$SED" && SED=sed
4973e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyXsed="$SED -e 1s/^X//"
4974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
4985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for fgrep... " >&6; }
4987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_path_FGREP+:} false; then :
4988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
4989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
4990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   then ac_cv_path_FGREP="$GREP -F"
4992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
4993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test -z "$FGREP"; then
4994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_path_FGREP_found=false
4995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Loop through the user's path and test for each of PROGNAME-LIST
4996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
4999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
5000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
5001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_prog in fgrep; do
5002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
5003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_executable_p "$ac_path_FGREP" || continue
5005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check for GNU ac_path_FGREP and select it if it is found.
5006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check for GNU $ac_path_FGREP
5007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `"$ac_path_FGREP" --version 2>&1` in
5008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*GNU*)
5009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
5011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_count=0
5012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n 0123456789 >"conftest.in"
5013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  while :
5014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
5015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat "conftest.in" "conftest.in" >"conftest.tmp"
5016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mv "conftest.tmp" "conftest.in"
5017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cp "conftest.in" "conftest.nl"
5018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo 'FGREP' >> "conftest.nl"
5019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_arith $ac_count + 1 && ac_count=$as_val
5022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Best one so far, save it but keep looking for a better one
5024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_cv_path_FGREP="$ac_path_FGREP"
5025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_path_FGREP_max=$ac_count
5026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
5027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # 10*(2^10) chars as input seems more than enough
5028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test $ac_count -gt 10 && break
5029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
5032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $ac_path_FGREP_found && break 3
5034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
5035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5037e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
5038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_cv_path_FGREP"; then
5039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_path_FGREP=$FGREP
5043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
5046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_path_FGREP" >&6; }
5049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley FGREP="$ac_cv_path_FGREP"
5050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$GREP" && GREP=grep
5053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --with-gnu-ld was given.
5073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${with_gnu_ld+set}" = set; then :
5074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  with_gnu_ld=no
5077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_prog=ld
5080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$GCC" = yes; then
5081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check if gcc -print-prog-name=ld gives a path.
5082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for ld used by $CC... " >&6; }
5084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host in
5085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *-*-mingw*)
5086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # gcc leaves a trailing carriage return which upsets mingw
5087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
5089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
5091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_prog in
5092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Accept absolute paths.
5093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    [\\/]* | ?:[\\/]*)
5094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      re_direlt='/[^/][^/]*/\.\./'
5095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Canonicalize the pathname of ld
5096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done
5100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test -z "$LD" && LD="$ac_prog"
5101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
5102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  "")
5103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # If it fails, then pretend we aren't using GCC.
5104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_prog=ld
5105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
5107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # If it is relative, then search for the first ld in PATH.
5108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    with_gnu_ld=unknown
5109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
5111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelif test "$with_gnu_ld" = yes; then
5112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for GNU ld... " >&6; }
5114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for non-GNU ld... " >&6; }
5117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_path_LD+:} false; then :
5119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$LD"; then
5122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_dir in $PATH; do
5124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    IFS="$lt_save_ifs"
5125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -z "$ac_dir" && ac_dir=.
5126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_path_LD="$ac_dir/$ac_prog"
5128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Check to see if the program is GNU ld.  I'd rather use --version,
5129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # but apparently some variants of GNU ld only accept -v.
5130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Break only if it was the GNU/non-GNU ld that we prefer.
5131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *GNU* | *'with BFD'*)
5133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	test "$with_gnu_ld" != no && break
5134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
5135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
5136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	test "$with_gnu_ld" != yes && break
5137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
5138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
5139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
5140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS="$lt_save_ifs"
5142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5147e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLD="$lt_cv_path_LD"
5148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$LD"; then
5149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$LD" >&6; }
5151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
5154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_prog_gnu_ld+:} false; then :
5159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `$LD -v 2>&1 </dev/null` in
5163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*GNU* | *'with BFD'*)
5164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_prog_gnu_ld=yes
5165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
5167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_prog_gnu_ld=no
5168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
5170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_gnu_ld=$lt_cv_prog_gnu_ld
5174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_path_NM+:} false; then :
5186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$NM"; then
5189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Let the user override the test.
5190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_path_NM="$NM"
5191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_nm_to_check="${ac_tool_prefix}nm"
5193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_nm_to_check="$lt_nm_to_check nm"
5195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for lt_tmp_nm in $lt_nm_to_check; do
5197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      IFS="$lt_save_ifs"
5200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test -z "$ac_dir" && ac_dir=.
5201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      tmp_nm="$ac_dir/$lt_tmp_nm"
5202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Check to see if the nm accepts a BSD-compat flag.
5204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	#   nm: unknown option "B" ignored
5206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Tru64's nm complains that /dev/null is an invalid object file
5207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*/dev/null* | *'Invalid file or object type'*)
5209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_cv_path_NM="$tmp_nm -B"
5210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  break
5211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
5212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*)
5213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  */dev/null*)
5215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    lt_cv_path_NM="$tmp_nm -p"
5216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    break
5217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
5218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  *)
5219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    continue # so that we can try to find one that supports BSD flags
5221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
5222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  esac
5223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
5224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
5225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
5226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
5227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    IFS="$lt_save_ifs"
5228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  : ${lt_cv_path_NM=no}
5230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_path_NM" >&6; }
5234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$lt_cv_path_NM" != "no"; then
5235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  NM="$lt_cv_path_NM"
5236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Didn't find any BSD compatible name lister, look for dumpbin.
5238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$DUMPBIN"; then :
5239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Let the user override the test.
5240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
5241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$ac_tool_prefix"; then
5242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_prog in dumpbin "link -dump"
5243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
5244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $ac_tool_prefix$ac_prog; ac_word=$2
5246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
5248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_DUMPBIN+:} false; then :
5249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$DUMPBIN"; then
5252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
5256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
5257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
5258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
5259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
5260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
5264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
5266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5267e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
5268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5271e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDUMPBIN=$ac_cv_prog_DUMPBIN
5272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$DUMPBIN"; then
5273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$DUMPBIN" >&6; }
5275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
5278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -n "$DUMPBIN" && break
5282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$DUMPBIN"; then
5285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_DUMPBIN=$DUMPBIN
5286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_prog in dumpbin "link -dump"
5287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
5288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "$ac_prog", so it can be a program name with args.
5289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $ac_prog; ac_word=$2
5290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
5292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_DUMPBIN"; then
5296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
5300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
5301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
5302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
5303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
5304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
5308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
5310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5311e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
5312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_DUMPBIN"; then
5317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_DUMPBIN" >&6; }
5319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
5322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -n "$ac_ct_DUMPBIN" && break
5326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
5327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_DUMPBIN" = x; then
5329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    DUMPBIN=":"
5330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
5331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
5332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
5333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
5336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
5337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    DUMPBIN=$ac_ct_DUMPBIN
5338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *COFF*)
5343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      DUMPBIN="$DUMPBIN -symbols"
5344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
5345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
5346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      DUMPBIN=:
5347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
5348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
5349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$DUMPBIN" != ":"; then
5352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    NM="$DUMPBIN"
5353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$NM" && NM=nm
5356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_nm_interface+:} false; then :
5365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_nm_interface="BSD nm"
5368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo "int some_variable = 0;" > conftest.$ac_ext
5369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$ac_compile" 2>conftest.err)
5371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat conftest.err >&5
5372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat conftest.err >&5
5375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat conftest.out >&5
5377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_nm_interface="MS dumpbin"
5379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest*
5381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_nm_interface" >&6; }
5384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# find the maximum length of command line arguments
5386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_sys_max_cmd_len+:} false; then :
5389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    i=0
5392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  teststring="ABCD"
5393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $build_os in
5395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  msdosdjgpp*)
5396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # On DJGPP, this test can blow up pretty badly due to problems in libc
5397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # (any single argument exceeding 2000 bytes causes a buffer overrun
5398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # during glob expansion).  Even if it were fixed, the result of this
5399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # check would be larger than it should be.
5400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  gnu*)
5404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Under GNU Hurd, this test is not required because there is
5405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # no limit to the length of command line arguments.
5406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Libtool will interpret -1 as no limit whatsoever
5407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=-1;
5408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cygwin* | mingw* | cegcc*)
5411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # On Win9x/ME, this test blows up -- it succeeds, but takes
5412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # about 5 minutes as the teststring grows exponentially.
5413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Worse, since 9x/ME are not pre-emptively multitasking,
5414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # you end up with a "frozen" computer, even though with patience
5415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # the test eventually succeeds (with a max line length of 256k).
5416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Instead, let's just punt: use the minimum linelength reported by
5417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # all of the supported platforms: 8192 (on NT/2K/XP).
5418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=8192;
5419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  mint*)
5422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # On MiNT this can take a long time and run out of memory.
5423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=8192;
5424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  amigaos*)
5427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # On AmigaOS with pdksh, this test takes hours, literally.
5428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # So we just punt and use a minimum line length of 8192.
5429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=8192;
5430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # This has been around since 386BSD, at least.  Likely further.
5434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -x /sbin/sysctl; then
5435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    elif test -x /usr/sbin/sysctl; then
5437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
5439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
5441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # And add a safety zone
5442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  interix*)
5447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=196608
5449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  os2*)
5452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # The test takes a long time on OS/2.
5453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=8192
5454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  osf*)
5457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # nice to cause kernel panics so lets avoid the loop below.
5460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # First set a reasonable default.
5461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=16384
5462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    #
5463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -x /sbin/sysconfig; then
5464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
5467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
5468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sco3.2v5*)
5470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=102400
5471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sysv5* | sco5v6* | sysv4.2uw2*)
5473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$kargmax"; then
5475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
5477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_sys_max_cmd_len=32768
5478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
5479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
5481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$lt_cv_sys_max_cmd_len"; then
5483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
5486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Make teststring a little bigger before we do anything with it.
5487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # a 1K string should be a reasonable start.
5488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      for i in 1 2 3 4 5 6 7 8 ; do
5489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        teststring=$teststring$teststring
5490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done
5491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # If test is not a shell built-in, we'll probably end up computing a
5493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # maximum length that is only half of the actual maximum length, but
5494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # we can't tell.
5495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      test $i != 17 # 1/2 MB should be enough
5498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      do
5499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        i=`expr $i + 1`
5500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        teststring=$teststring$teststring
5501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done
5502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Only check the string length outside the loop.
5503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      teststring=
5505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Add a significant safety factor because C++ compilers can tack on
5506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # massive amounts of additional arguments before passing them to the
5507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # linker.  It appears as though 1/2 is a usable value.
5508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
5510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
5512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n $lt_cv_sys_max_cmd_len ; then
5516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "none" >&6; }
5521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymax_cmd_len=$lt_cv_sys_max_cmd_len
5523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley: ${CP="cp -f"}
5530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley: ${MV="mv -f"}
5531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley: ${RM="rm -f"}
5532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Try some XSI features
5536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyxsi_shell=no
5537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley( _lt_dummy="a/b/c"
5538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      = c,a/b,b/c, \
5540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    && eval 'test $(( 1 + 1 )) -eq 2 \
5541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && xsi_shell=yes
5543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$xsi_shell" >&6; }
5545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_shell_append=no
5550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    >/dev/null 2>&1 \
5552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && lt_shell_append=yes
5553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_shell_append" >&6; }
5555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_unset=unset
5559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_unset=false
5561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# test EBCDIC or ASCII
5568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `echo X|tr X '\101'` in
5569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley A) # ASCII based system
5570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_SP2NL='tr \040 \012'
5572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_NL2SP='tr \015\012 \040\040'
5573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley *) # EBCDIC based system
5575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_SP2NL='tr \100 \n'
5576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_NL2SP='tr \r\n \100\100'
5577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
5579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_to_host_file_cmd+:} false; then :
5591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host in
5594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *-*-mingw* )
5595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $build in
5596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *-*-mingw* ) # actually msys
5597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
5599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *-*-cygwin* )
5600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
5602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      * ) # otherwise, assume *nix
5603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
5605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
5606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *-*-cygwin* )
5608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $build in
5609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *-*-mingw* ) # actually msys
5610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
5612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *-*-cygwin* )
5613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_cv_to_host_file_cmd=func_convert_file_noop
5614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
5615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      * ) # otherwise, assume *nix
5616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
5618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
5619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  * ) # unhandled hosts (and "normal" native builds)
5621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_to_host_file_cmd=func_convert_file_noop
5622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
5624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyto_host_file_cmd=$lt_cv_to_host_file_cmd
5628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_to_tool_file_cmd+:} false; then :
5638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  #assume ordinary cross tools, or native build.
5641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_to_tool_file_cmd=func_convert_file_noop
5642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host in
5643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *-*-mingw* )
5644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $build in
5645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *-*-mingw* ) # actually msys
5646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
5648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
5649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
5651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyto_tool_file_cmd=$lt_cv_to_tool_file_cmd
5655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $LD option to reload object files... " >&6; }
5664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_ld_reload_flag+:} false; then :
5665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_ld_reload_flag='-r'
5668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_ld_reload_flag" >&6; }
5671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreload_flag=$lt_cv_ld_reload_flag
5672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $reload_flag in
5673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"" | " "*) ;;
5674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*) reload_flag=" $reload_flag" ;;
5675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
5676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreload_cmds='$LD$reload_flag -o $output$reload_objs'
5677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host_os in
5678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cygwin* | mingw* | pw32* | cegcc*)
5679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$GCC" != yes; then
5680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      reload_cmds=false
5681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
5682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  darwin*)
5684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$GCC" = yes; then
5685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
5687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
5689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
5691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_tool_prefix"; then
5701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}objdump; ac_word=$2
5703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
5705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_OBJDUMP+:} false; then :
5706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$OBJDUMP"; then
5709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
5713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
5714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
5715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
5716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
5717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
5721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
5723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5724e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
5725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5728e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOBJDUMP=$ac_cv_prog_OBJDUMP
5729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$OBJDUMP"; then
5730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$OBJDUMP" >&6; }
5732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
5735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_OBJDUMP"; then
5740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_OBJDUMP=$OBJDUMP
5741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "objdump", so it can be a program name with args.
5742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy objdump; ac_word=$2
5743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
5745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_OBJDUMP"; then
5749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
5753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
5754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
5755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
5756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
5757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
5761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
5763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
5764e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
5765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_OBJDUMP"; then
5770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_OBJDUMP" >&6; }
5772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
5775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_OBJDUMP" = x; then
5778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    OBJDUMP="false"
5779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
5780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
5781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
5782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
5785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
5786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    OBJDUMP=$ac_ct_OBJDUMP
5787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  OBJDUMP="$ac_cv_prog_OBJDUMP"
5790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
5791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$OBJDUMP" && OBJDUMP=objdump
5793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_deplibs_check_method+:} false; then :
5805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
5806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
5807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_file_magic_cmd='$MAGIC_CMD'
5808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_file_magic_test_file=
5809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_deplibs_check_method='unknown'
5810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Need to set the preceding variable on all platforms that support
5811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# interlibrary dependencies.
5812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# 'none' -- dependencies not supported.
5813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# `unknown' -- same as none, but documents that we really don't know.
5814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# 'pass_all' -- all dependencies passed with no checks.
5815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# 'test_compile' -- check by making test program.
5816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# 'file_magic [[regex]]' -- check by looking for files in library path
5817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# which responds to the $file_magic_cmd with a given extended regex.
5818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If you have `file' or equivalent on your system and you're not sure
5819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# whether `pass_all' will *always* work, you probably want this one.
5820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host_os in
5822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyaix[4-9]*)
5823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybeos*)
5827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybsdi[45]*)
5831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_file_magic_cmd='/usr/bin/file -L'
5833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_file_magic_test_file=/shlib/libc.so
5834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycygwin*)
5837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # func_win32_libid is a shell function defined in ltmain.sh
5838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_file_magic_cmd='func_win32_libid'
5840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymingw* | pw32*)
5843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Base MSYS/MinGW do not provide the 'file' command needed by
5844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # unless we find 'file', for example because we are cross-compiling.
5846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_file_magic_cmd='func_win32_libid'
5850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
5851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Keep this pattern in sync with the one in func_win32_libid.
5852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_file_magic_cmd='$OBJDUMP -f'
5854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycegcc*)
5858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # use the weaker test based on 'objdump'. See mingw*.
5859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_file_magic_cmd='$OBJDUMP -f'
5861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydarwin* | rhapsody*)
5864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfreebsd* | dragonfly*)
5868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_cpu in
5870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    i*86 )
5871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Not sure whether the presence of OpenBSD here was a mistake.
5872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Let's accept both of them until this is cleared up.
5873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_file_magic_cmd=/usr/bin/file
5875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
5877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
5878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
5879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method=pass_all
5880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileygnu*)
5884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhaiku*)
5888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhpux10.20* | hpux11*)
5892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_file_magic_cmd=/usr/bin/file
5893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_cpu in
5894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ia64*)
5895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hppa*64*)
5899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    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]'
5900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
5903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
5907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinterix[3-9]*)
5910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyirix5* | irix6* | nonstopux*)
5915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $LD in
5916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *-32|*"-32 ") libmagic=32-bit;;
5917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *-n32|*"-n32 ") libmagic=N32;;
5918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *-64|*"-64 ") libmagic=64-bit;;
5919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) libmagic=never-match;;
5920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
5921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This must be glibc/ELF.
5925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylinux* | k*bsd*-gnu | kopensolaris*-gnu)
5926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileynetbsd*)
5930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
5933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileynewos6*)
5938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_file_magic_cmd=/usr/bin/file
5940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*nto* | *qnx*)
5944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyopenbsd*)
5948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
5951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
5953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyosf3* | osf4* | osf5*)
5956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrdos*)
5960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysolaris*)
5964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
5969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysv4 | sysv4.3*)
5972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_vendor in
5973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  motorola)
5974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    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]'
5975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ncr)
5978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method=pass_all
5979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sequent)
5981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_file_magic_cmd='/bin/file'
5982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sni)
5985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_file_magic_cmd='/bin/file'
5986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_file_magic_test_file=/lib/libc.so
5988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  siemens)
5990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method=pass_all
5991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  pc)
5993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_deplibs_check_method=pass_all
5994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
5995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
5996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
5997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
5998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytpf*)
5999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_deplibs_check_method=pass_all
6000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_deplibs_check_method" >&6; }
6006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_magic_glob=
6008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywant_nocaseglob=no
6009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$build" = "$host"; then
6010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
6011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  mingw* | pw32*)
6012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      want_nocaseglob=yes
6014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
6015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
6017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
6018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
6019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_magic_cmd=$lt_cv_file_magic_cmd
6022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydeplibs_check_method=$lt_cv_deplibs_check_method
6023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$deplibs_check_method" && deplibs_check_method=unknown
6024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_tool_prefix"; then
6047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}dlltool; ac_word=$2
6049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
6051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_DLLTOOL+:} false; then :
6052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$DLLTOOL"; then
6055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
6059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
6060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
6061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
6062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
6063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
6067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
6070e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
6071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6074e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDLLTOOL=$ac_cv_prog_DLLTOOL
6075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$DLLTOOL"; then
6076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$DLLTOOL" >&6; }
6078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
6081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_DLLTOOL"; then
6086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_DLLTOOL=$DLLTOOL
6087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "dlltool", so it can be a program name with args.
6088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy dlltool; ac_word=$2
6089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
6091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_DLLTOOL"; then
6095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
6099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
6100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
6101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
6102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
6103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
6107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
6110e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
6111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_DLLTOOL"; then
6116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_DLLTOOL" >&6; }
6118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
6121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_DLLTOOL" = x; then
6124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    DLLTOOL="false"
6125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
6126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
6127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
6128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
6131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    DLLTOOL=$ac_ct_DLLTOOL
6133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  DLLTOOL="$ac_cv_prog_DLLTOOL"
6136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$DLLTOOL" && DLLTOOL=dlltool
6139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_sharedlib_from_linklib_cmd='unknown'
6155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host_os in
6157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycygwin* | mingw* | pw32* | cegcc*)
6158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # two different shell functions defined in ltmain.sh
6159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # decide which to use based on capabilities of $DLLTOOL
6160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case `$DLLTOOL --help 2>&1` in
6161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *--identify-strict*)
6162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
6164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
6165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
6167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
6168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
6170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # fallback: assume linklib IS sharedlib
6171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_tool_prefix"; then
6188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_prog in ar
6189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
6190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $ac_tool_prefix$ac_prog; ac_word=$2
6192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
6194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_AR+:} false; then :
6195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$AR"; then
6198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_AR="$AR" # Let the user override the test.
6199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
6202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
6203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
6204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
6205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
6206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
6210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
6213e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
6214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6217e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAR=$ac_cv_prog_AR
6218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$AR"; then
6219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$AR" >&6; }
6221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
6224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -n "$AR" && break
6228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
6229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$AR"; then
6231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_AR=$AR
6232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_prog in ar
6233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
6234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "$ac_prog", so it can be a program name with args.
6235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $ac_prog; ac_word=$2
6236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
6238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_AR+:} false; then :
6239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_AR"; then
6242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
6246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
6247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
6248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
6249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
6250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_AR="$ac_prog"
6252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
6254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
6257e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
6258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_AR=$ac_cv_prog_ac_ct_AR
6262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_AR"; then
6263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_AR" >&6; }
6265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
6268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -n "$ac_ct_AR" && break
6272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_AR" = x; then
6275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    AR="false"
6276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
6277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
6278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
6279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
6282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    AR=$ac_ct_AR
6284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley: ${AR=ar}
6288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley: ${AR_FLAGS=cru}
6289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for archiver @FILE support... " >&6; }
6302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_ar_at_file+:} false; then :
6303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_ar_at_file=no
6306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
6308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
6310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
6311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
6312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
6314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
6315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
6316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
6317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
6318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo conftest.$ac_objext > conftest.lst
6319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $lt_ar_try) 2>&5
6322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
6323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }
6325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$ac_status" -eq 0; then
6326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Ensure the archiver fails upon bogus file names.
6327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	rm -f conftest.$ac_objext libconftest.a
6328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $lt_ar_try) 2>&5
6330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
6331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }
6333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "$ac_status" -ne 0; then
6334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          lt_cv_ar_at_file=@
6335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        fi
6336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
6337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      rm -f conftest.* libconftest.a
6338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_ar_at_file" >&6; }
6345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$lt_cv_ar_at_file" = xno; then
6347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  archiver_list_spec=
6348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  archiver_list_spec=$lt_cv_ar_at_file
6350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_tool_prefix"; then
6359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}strip; ac_word=$2
6361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
6363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_STRIP+:} false; then :
6364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$STRIP"; then
6367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
6371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
6372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
6373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
6374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
6375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
6379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
6382e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
6383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6386e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySTRIP=$ac_cv_prog_STRIP
6387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$STRIP"; then
6388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$STRIP" >&6; }
6390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
6393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_STRIP"; then
6398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_STRIP=$STRIP
6399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "strip", so it can be a program name with args.
6400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy strip; ac_word=$2
6401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
6403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_STRIP"; then
6407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
6411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
6412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
6413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
6414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
6415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_STRIP="strip"
6417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
6419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
6422e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
6423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_STRIP"; then
6428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_STRIP" >&6; }
6430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
6433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_STRIP" = x; then
6436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    STRIP=":"
6437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
6438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
6439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
6440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
6443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    STRIP=$ac_ct_STRIP
6445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  STRIP="$ac_cv_prog_STRIP"
6448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$STRIP" && STRIP=:
6451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_tool_prefix"; then
6458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}ranlib; ac_word=$2
6460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
6462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_RANLIB+:} false; then :
6463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$RANLIB"; then
6466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
6470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
6471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
6472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
6473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
6474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
6478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
6481e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
6482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6485e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyRANLIB=$ac_cv_prog_RANLIB
6486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$RANLIB"; then
6487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$RANLIB" >&6; }
6489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
6492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_RANLIB"; then
6497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_RANLIB=$RANLIB
6498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "ranlib", so it can be a program name with args.
6499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ranlib; ac_word=$2
6500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
6502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_RANLIB"; then
6506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
6510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
6511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
6512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
6513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
6514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_RANLIB="ranlib"
6516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
6518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
6521e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
6522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_RANLIB"; then
6527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_RANLIB" >&6; }
6529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
6532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_RANLIB" = x; then
6535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    RANLIB=":"
6536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
6537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
6538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
6539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
6542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    RANLIB=$ac_ct_RANLIB
6544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  RANLIB="$ac_cv_prog_RANLIB"
6547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$RANLIB" && RANLIB=:
6550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Determine commands to create old-style static archives.
6557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_postinstall_cmds='chmod 644 $oldlib'
6559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_postuninstall_cmds=
6560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$RANLIB"; then
6562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
6563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  openbsd*)
6564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
6566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
6567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
6569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
6570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host_os in
6574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  darwin*)
6575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lock_old_archive_extraction=yes ;;
6576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
6577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lock_old_archive_extraction=no ;;
6578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If no C compiler was specified, use CC.
6619e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTCC=${LTCC-"$CC"}
6620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If no C compiler flags were specified, use CFLAGS.
6622e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Allow CC to be a program name with arguments.
6625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler=$CC
6626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check for command to grab the raw symbol name followed by C symbol from nm.
6629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_sys_global_symbol_pipe+:} false; then :
6632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
6633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# These are sane defaults that work on at least a few old systems.
6636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Character class describing NM global symbol codes.
6639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysymcode='[BCDEGRST]'
6640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Regexp to match symbols that can be accessed directly from C.
6642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Define system-specific variables.
6645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host_os in
6646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyaix*)
6647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[BCDT]'
6648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycygwin* | mingw* | pw32* | cegcc*)
6650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[ABCDGISTW]'
6651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhpux*)
6653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$host_cpu" = ia64; then
6654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    symcode='[ABCDEGRST]'
6655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyirix* | nonstopux*)
6658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[BCDEGRST]'
6659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyosf*)
6661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[BCDEGQRST]'
6662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysolaris*)
6664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[BDRT]'
6665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysco3.2v5*)
6667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[DT]'
6668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysv4.2uw2*)
6670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[DT]'
6671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysv5* | sco5v6* | unixware* | OpenUNIX*)
6673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[ABDT]'
6674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysv4)
6676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[DFNSTU]'
6677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If we're using GNU nm, then use its standard symbol codes.
6681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `$NM -V 2>&1` in
6682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*GNU* | *'with BFD'*)
6683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symcode='[ABCDGIRSTW]' ;;
6684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Transform an extracted symbol line into a proper C declaration.
6687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Some systems (esp. on ia64) link data and code symbols differently,
6688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# so use this general approach.
6689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Transform an extracted symbol line into symbol name and symbol address
6692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Handle CRLF in mingw tool chain
6696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyopt_cr=
6697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $build_os in
6698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymingw*)
6699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Try without a prefix underscore, then with it.
6704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_symprfx in "" "_"; do
6705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  symxfrm="\\1 $ac_symprfx\\2 \\2"
6708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Write the raw and C identifiers.
6710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Fake it for dumpbin and say T for any non-static function
6712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # and D for any global variable.
6713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Also find C++ and __fastcall symbols from MSVC++,
6714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # which start with @ or ?.
6715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_global_symbol_pipe="$AWK '"\
6716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     {last_section=section; section=\$ 3};"\
6717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     \$ 0!~/External *\|/{next};"\
6720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     {if(hide[section]) next};"\
6722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"     ' prfx=^$ac_symprfx"
6727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
6728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check to see that the pipe works correctly.
6733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  pipe_works=no
6734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest*
6736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat > conftest.$ac_ext <<_LT_EOF
6737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
6738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C" {
6739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
6740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar nm_test_var;
6741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyvoid nm_test_func(void);
6742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyvoid nm_test_func(void){}
6743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
6744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
6745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
6746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint main(){nm_test_var='a';nm_test_func();return(0);}
6747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
6748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $ac_compile) 2>&5
6751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
6752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; then
6754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Now try to grab the symbols.
6755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    nlist=conftest.nm
6756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
6759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } && test -s "$nlist"; then
6761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Try sorting and uniquifying the output.
6762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if sort "$nlist" | uniq > "$nlist"T; then
6763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	mv -f "$nlist"T "$nlist"
6764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
6765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	rm -f "$nlist"T
6766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
6767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Make sure that we snagged all the symbols we need.
6769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  cat <<_LT_EOF > conftest.$ac_ext
6772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* DATA imports from DLLs on WIN32 con't be const, because runtime
6775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define LT_DLSYM_CONST
6777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#elif defined(__osf__)
6778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* This system does not cope well with relocations in const data.  */
6779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define LT_DLSYM_CONST
6780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
6781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define LT_DLSYM_CONST const
6782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
6783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
6785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C" {
6786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
6787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
6789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # Now generate the symbol file.
6790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  cat <<_LT_EOF >> conftest.$ac_ext
6793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* The mapping between symbol names and symbols.  */
6795e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLT_DLSYM_CONST struct {
6796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  const char *name;
6797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  void       *address;
6798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
6799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt__PROGRAM__LTX_preloaded_symbols[] =
6800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
6801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { "@PROGRAM@", (void *) 0 },
6802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
6803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  cat <<\_LT_EOF >> conftest.$ac_ext
6805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {0, (void *) 0}
6806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley};
6807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* This works around a problem in FreeBSD linker */
6809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef FREEBSD_WORKAROUND
6810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic const void *lt_preloaded_setup() {
6811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return lt__PROGRAM__LTX_preloaded_symbols;
6812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
6813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
6814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
6816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
6817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
6818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
6819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # Now try linking the two files.
6820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  mv conftest.$ac_objext conftstm.$ac_objext
6821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_globsym_save_LIBS=$LIBS
6822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_globsym_save_CFLAGS=$CFLAGS
6823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  LIBS="conftstm.$ac_objext"
6824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $ac_link) 2>&5
6827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
6828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    pipe_works=yes
6831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi
6832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  LIBS=$lt_globsym_save_LIBS
6833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  CFLAGS=$lt_globsym_save_CFLAGS
6834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
6835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  echo "cannot find nm_test_func in $nlist" >&5
6836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
6837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
6838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	echo "cannot find nm_test_var in $nlist" >&5
6839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
6840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
6841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
6843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
6844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    echo "$progname: failed program was:" >&5
6845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat conftest.$ac_ext >&5
6846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -rf conftest* conftst*
6848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Do not use the global_symbol_pipe unless it works.
6850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$pipe_works" = yes; then
6851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break
6852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
6853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_sys_global_symbol_pipe=
6854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
6856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$lt_cv_sys_global_symbol_pipe"; then
6860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_sys_global_symbol_to_cdecl=
6861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "failed" >&6; }
6865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "ok" >&6; }
6868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Response file support.
6871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$lt_cv_nm_interface" = "MS dumpbin"; then
6872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  nm_file_list_spec='@'
6873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  nm_file_list_spec='@'
6875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for sysroot... " >&6; }
6905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --with-sysroot was given.
6907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${with_sysroot+set}" = set; then :
6908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  withval=$with_sysroot;
6909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
6910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  with_sysroot=no
6911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_sysroot=
6915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase ${with_sysroot} in #(
6916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley yes)
6917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   if test "$GCC" = yes; then
6918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
6920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ;; #(
6921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley /*)
6922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ;; #(
6924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley no|'')
6925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ;; #(
6926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley *)
6927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "${with_sysroot}" >&6; }
6929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ;;
6931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
6932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "${lt_sysroot:-no}" >&6; }
6935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --enable-libtool-lock was given.
6941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_libtool_lock+set}" = set; then :
6942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_libtool_lock;
6943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
6944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
6947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Some flags need to be propagated to the compiler or linker for good
6948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# libtool support.
6949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host in
6950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyia64-*-hpux*)
6951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Find out which ABI we are using.
6952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo 'int i;' > conftest.$ac_ext
6953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $ac_compile) 2>&5
6955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
6956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; then
6958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case `/usr/bin/file conftest.$ac_objext` in
6959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *ELF-32*)
6960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	HPUX_IA64_MODE="32"
6961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
6962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *ELF-64*)
6963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	HPUX_IA64_MODE="64"
6964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
6965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
6966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
6967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -rf conftest*
6968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
6969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*-*-irix6*)
6970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Find out which ABI we are using.
6971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $ac_compile) 2>&5
6974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
6975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; then
6977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$lt_cv_prog_gnu_ld" = yes; then
6978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case `/usr/bin/file conftest.$ac_objext` in
6979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*32-bit*)
6980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  LD="${LD-ld} -melf32bsmip"
6981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
6982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*N32*)
6983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  LD="${LD-ld} -melf32bmipn32"
6984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
6985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*64-bit*)
6986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  LD="${LD-ld} -melf64bmip"
6987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
6988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
6989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
6990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case `/usr/bin/file conftest.$ac_objext` in
6991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*32-bit*)
6992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  LD="${LD-ld} -32"
6993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
6994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*N32*)
6995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  LD="${LD-ld} -n32"
6996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
6997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*64-bit*)
6998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  LD="${LD-ld} -64"
6999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
7000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
7001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
7002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -rf conftest*
7004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
7005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Find out which ABI we are using.
7009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo 'int i;' > conftest.$ac_ext
7010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $ac_compile) 2>&5
7012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
7013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; then
7015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case `/usr/bin/file conftest.o` in
7016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *32-bit*)
7017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $host in
7018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  x86_64-*kfreebsd*-gnu)
7019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf_i386_fbsd"
7020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  x86_64-*linux*)
7022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf_i386"
7023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ppc64-*linux*|powerpc64-*linux*)
7025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf32ppclinux"
7026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s390x-*linux*)
7028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf_s390"
7029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  sparc64-*linux*)
7031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf32_sparc"
7032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
7034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
7035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *64-bit*)
7036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $host in
7037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  x86_64-*kfreebsd*-gnu)
7038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf_x86_64_fbsd"
7039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  x86_64-*linux*)
7041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf_x86_64"
7042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ppc*-*linux*|powerpc*-*linux*)
7044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf64ppc"
7045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s390*-*linux*|s390*-*tpf*)
7047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf64_s390"
7048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  sparc*-*linux*)
7050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    LD="${LD-ld} -m elf64_sparc"
7051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
7052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
7053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
7054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
7055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -rf conftest*
7057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
7058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*-*-sco3.2v5*)
7060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SAVE_CFLAGS="$CFLAGS"
7062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CFLAGS="$CFLAGS -belf"
7063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_cc_needs_belf+:} false; then :
7066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ext=c
7069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
7070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
7073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
7076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
7078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
7079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
7080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
7082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
7083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
7084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
7085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
7086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_cc_needs_belf=yes
7087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_cc_needs_belf=no
7089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
7091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
7092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_ext=c
7093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
7094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
7097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_cc_needs_belf" >&6; }
7101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="$SAVE_CFLAGS"
7104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
7106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*-*solaris*)
7107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Find out which ABI we are using.
7108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo 'int i;' > conftest.$ac_ext
7109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $ac_compile) 2>&5
7111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
7112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }; then
7114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case `/usr/bin/file conftest.o` in
7115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *64-bit*)
7116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $lt_cv_prog_gnu_ld in
7117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      yes*)
7118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        case $host in
7119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        i?86-*-solaris*)
7120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          LD="${LD-ld} -m elf_x86_64"
7121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          ;;
7122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        sparc*-*-solaris*)
7123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          LD="${LD-ld} -m elf64_sparc"
7124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          ;;
7125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        esac
7126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          LD="${LD-ld}_sol2"
7129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        fi
7130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
7131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
7132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  LD="${LD-ld} -64"
7134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
7135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
7136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
7137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
7138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
7139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -rf conftest*
7141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
7142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
7143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_locks="$enable_libtool_lock"
7145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_tool_prefix"; then
7147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}mt; ac_word=$2
7149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$MANIFEST_TOOL"; then
7155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7170e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7174e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$MANIFEST_TOOL"; then
7176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$MANIFEST_TOOL" >&6; }
7178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "mt", so it can be a program name with args.
7188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy mt; ac_word=$2
7189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_MANIFEST_TOOL"; then
7195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7210e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_MANIFEST_TOOL"; then
7216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    MANIFEST_TOOL=":"
7225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
7226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
7227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
7228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
7231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
7232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_path_mainfest_tool+:} false; then :
7242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_path_mainfest_tool=no
7245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat conftest.err >&5
7248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_path_mainfest_tool=yes
7250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conftest*
7252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$lt_cv_path_mainfest_tool" != xyes; then
7256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  MANIFEST_TOOL=:
7257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
7265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    rhapsody* | darwin*)
7266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$ac_tool_prefix"; then
7267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_DSYMUTIL+:} false; then :
7272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$DSYMUTIL"; then
7275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7290e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7294e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDSYMUTIL=$ac_cv_prog_DSYMUTIL
7295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$DSYMUTIL"; then
7296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$DSYMUTIL" >&6; }
7298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_DSYMUTIL"; then
7306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_DSYMUTIL=$DSYMUTIL
7307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "dsymutil", so it can be a program name with args.
7308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy dsymutil; ac_word=$2
7309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_DSYMUTIL"; then
7315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7330e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_DSYMUTIL"; then
7336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_DSYMUTIL" >&6; }
7338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_DSYMUTIL" = x; then
7344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    DSYMUTIL=":"
7345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
7346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
7347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
7348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
7351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
7352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    DSYMUTIL=$ac_ct_DSYMUTIL
7353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$ac_tool_prefix"; then
7359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}nmedit; ac_word=$2
7361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_NMEDIT+:} false; then :
7364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$NMEDIT"; then
7367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7382e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7386e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNMEDIT=$ac_cv_prog_NMEDIT
7387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$NMEDIT"; then
7388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$NMEDIT" >&6; }
7390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_NMEDIT"; then
7398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_NMEDIT=$NMEDIT
7399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "nmedit", so it can be a program name with args.
7400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy nmedit; ac_word=$2
7401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_NMEDIT"; then
7407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7422e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_NMEDIT"; then
7428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_NMEDIT" >&6; }
7430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_NMEDIT" = x; then
7436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    NMEDIT=":"
7437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
7438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
7439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
7440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
7443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
7444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    NMEDIT=$ac_ct_NMEDIT
7445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  NMEDIT="$ac_cv_prog_NMEDIT"
7448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$ac_tool_prefix"; then
7451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}lipo; ac_word=$2
7453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_LIPO+:} false; then :
7456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$LIPO"; then
7459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7474e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7478e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIPO=$ac_cv_prog_LIPO
7479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$LIPO"; then
7480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$LIPO" >&6; }
7482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_LIPO"; then
7490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_LIPO=$LIPO
7491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "lipo", so it can be a program name with args.
7492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy lipo; ac_word=$2
7493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_LIPO"; then
7499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_LIPO="lipo"
7509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7514e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_LIPO"; then
7520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_LIPO" >&6; }
7522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_LIPO" = x; then
7528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIPO=":"
7529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
7530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
7531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
7532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
7535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
7536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIPO=$ac_ct_LIPO
7537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  LIPO="$ac_cv_prog_LIPO"
7540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$ac_tool_prefix"; then
7543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}otool; ac_word=$2
7545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_OTOOL+:} false; then :
7548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$OTOOL"; then
7551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7566e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7570e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL=$ac_cv_prog_OTOOL
7571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$OTOOL"; then
7572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$OTOOL" >&6; }
7574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_OTOOL"; then
7582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_OTOOL=$OTOOL
7583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "otool", so it can be a program name with args.
7584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy otool; ac_word=$2
7585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_OTOOL"; then
7591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_OTOOL="otool"
7601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7606e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_OTOOL"; then
7612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_OTOOL" >&6; }
7614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_OTOOL" = x; then
7620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    OTOOL=":"
7621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
7622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
7623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
7624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
7627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
7628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    OTOOL=$ac_ct_OTOOL
7629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  OTOOL="$ac_cv_prog_OTOOL"
7632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$ac_tool_prefix"; then
7635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy ${ac_tool_prefix}otool64; ac_word=$2
7637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_OTOOL64+:} false; then :
7640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$OTOOL64"; then
7643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7658e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7662e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL64=$ac_cv_prog_OTOOL64
7663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$OTOOL64"; then
7664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$OTOOL64" >&6; }
7666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$ac_cv_prog_OTOOL64"; then
7674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_ct_OTOOL64=$OTOOL64
7675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "otool64", so it can be a program name with args.
7676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy otool64; ac_word=$2
7677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
7679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_ct_OTOOL64"; then
7683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
7687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
7688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
7689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
7690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
7691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_ac_ct_OTOOL64="otool64"
7693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
7695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
7697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
7698e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
7699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_ct_OTOOL64"; then
7704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_ct_OTOOL64" >&6; }
7706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
7709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$ac_ct_OTOOL64" = x; then
7712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    OTOOL64=":"
7713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
7714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cross_compiling:$ac_tool_warned in
7715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes:)
7716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tool_warned=yes ;;
7719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
7720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    OTOOL64=$ac_ct_OTOOL64
7721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
7722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  OTOOL64="$ac_cv_prog_OTOOL64"
7724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for -single_module linker flag... " >&6; }
7754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_apple_cc_single_mod+:} false; then :
7755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_apple_cc_single_mod=no
7758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -z "${LT_MULTI_MODULE}"; then
7759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# By default we will add the -single_module flag. You can override
7760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# by either setting the environment variable LT_MULTI_MODULE
7761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# non-empty at configure time, or by adding -multi_module to the
7762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# link flags.
7763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	rm -rf libconftest.dylib*
7764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	echo "int foo(void){return 1;}" > conftest.c
7765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley-dynamiclib -Wl,-single_module conftest.c" >&5
7767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        _lt_result=$?
7770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# If there is a non-empty error log, and "single_module"
7771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# appears in it, assume the flag caused a linker warning
7772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if test -s conftest.err && $GREP single_module conftest.err; then
7773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  cat conftest.err >&5
7774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Otherwise, if the output was created with a 0 exit code from
7775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# the compiler, it worked.
7776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_cv_apple_cc_single_mod=yes
7778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
7779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  cat conftest.err >&5
7780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
7781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	rm -rf libconftest.dylib*
7782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	rm -f conftest.*
7783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
7784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_ld_exported_symbols_list+:} false; then :
7791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_ld_exported_symbols_list=no
7794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      save_LDFLAGS=$LDFLAGS
7795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo "_main" > conftest.sym
7796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
7799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
7801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
7802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
7803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
7805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
7806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
7807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
7808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
7809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_ld_exported_symbols_list=yes
7810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_ld_exported_symbols_list=no
7812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
7814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
7815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	LDFLAGS="$save_LDFLAGS"
7816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for -force_load linker flag... " >&6; }
7823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_ld_force_load+:} false; then :
7824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_ld_force_load=no
7827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      cat > conftest.c << _LT_EOF
7828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint forced_loaded() { return 2;}
7829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
7830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo "$AR cru libconftest.a conftest.o" >&5
7833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $AR cru libconftest.a conftest.o 2>&5
7834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo "$RANLIB libconftest.a" >&5
7835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $RANLIB libconftest.a 2>&5
7836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      cat > conftest.c << _LT_EOF
7837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint main() { return 0;}
7838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
7839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _lt_result=$?
7842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -s conftest.err && $GREP force_load conftest.err; then
7843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat conftest.err >&5
7844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_cv_ld_force_load=yes
7846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
7847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat conftest.err >&5
7848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
7849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        rm -f conftest.err libconftest.a conftest conftest.c
7850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        rm -rf conftest.dSYM
7851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_ld_force_load" >&6; }
7855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
7856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    rhapsody* | darwin1.[012])
7857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    darwin1.*)
7859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    darwin*) # darwin 5.x on
7861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # if running on 10.5 or later, the deployment target defaults
7862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # to the OS version, if on x86, and 10.4, the deployment
7863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # target defaults to 10.4. Don't you love it?
7864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	10.[012]*)
7868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	10.*)
7870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
7872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
7873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
7874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _lt_dar_single_mod='$single_module'
7876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
7877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
7880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
7882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _lt_dsymutil='~$DSYMUTIL $lib || :'
7884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
7885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _lt_dsymutil=
7886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
7887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
7888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
7889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for ANSI C header files... " >&6; }
7892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_header_stdc+:} false; then :
7893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
7894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
7897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdlib.h>
7898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdarg.h>
7899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <string.h>
7900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <float.h>
7901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
7903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
7904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
7905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
7907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
7908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
7909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
7910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
7911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=yes
7912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=no
7914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_header_stdc = yes; then
7918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
7921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <string.h>
7922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
7924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "memchr" >/dev/null 2>&1; then :
7926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=no
7929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
7931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_header_stdc = yes; then
7935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
7938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdlib.h>
7939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
7941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "free" >/dev/null 2>&1; then :
7943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=no
7946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
7948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_header_stdc = yes; then
7952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$cross_compiling" = yes; then :
7954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :
7955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
7958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ctype.h>
7959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdlib.h>
7960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if ((' ' & 0x0FF) == 0x020)
7961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
7964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define ISLOWER(c) \
7965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		   (('a' <= (c) && (c) <= 'i') \
7966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		     || ('j' <= (c) && (c) <= 'r') \
7967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		     || ('s' <= (c) && (c) <= 'z'))
7968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
7970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
7973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
7974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
7975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  int i;
7976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for (i = 0; i < 256; i++)
7977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if (XOR (islower (i), ISLOWER (i))
7978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	|| toupper (i) != TOUPPER (i))
7979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      return 2;
7980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
7981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
7982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
7983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_run "$LINENO"; then :
7984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
7986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=no
7987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  conftest.$ac_objext conftest.beam conftest.$ac_ext
7990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
7994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_header_stdc" >&6; }
7996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_header_stdc = yes; then
7997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
7998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		  inttypes.h stdint.h unistd.h
8005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
8006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
8009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
8011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
8013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
8017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_header in dlfcn.h
8020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
8021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
8023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_dlfcn_h" = xyes; then :
8024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
8025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_DLFCN_H 1
8026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
8027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
8031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set options
8037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        enable_dlopen=no
8041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_win32_dll=no
8044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            # Check whether --enable-shared was given.
8047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_shared+set}" = set; then :
8048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_shared; p=${PACKAGE-default}
8049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $enableval in
8050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    yes) enable_shared=yes ;;
8051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    no) enable_shared=no ;;
8052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
8053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      enable_shared=no
8054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Look at the argument we got.  We use all the common list separators.
8055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      for pkg in $enableval; do
8057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	IFS="$lt_save_ifs"
8058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "X$pkg" = "X$p"; then
8059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  enable_shared=yes
8060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
8061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done
8062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      IFS="$lt_save_ifs"
8063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
8065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_shared=yes
8067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check whether --enable-static was given.
8078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_static+set}" = set; then :
8079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_static; p=${PACKAGE-default}
8080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $enableval in
8081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    yes) enable_static=yes ;;
8082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    no) enable_static=no ;;
8083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
8084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     enable_static=no
8085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Look at the argument we got.  We use all the common list separators.
8086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      for pkg in $enableval; do
8088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	IFS="$lt_save_ifs"
8089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "X$pkg" = "X$p"; then
8090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  enable_static=yes
8091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
8092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done
8093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      IFS="$lt_save_ifs"
8094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
8096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_static=yes
8098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check whether --with-pic was given.
8110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${with_pic+set}" = set; then :
8111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  withval=$with_pic; lt_p=${PACKAGE-default}
8112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $withval in
8113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    yes|no) pic_mode=$withval ;;
8114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
8115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      pic_mode=default
8116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Look at the argument we got.  We use all the common list separators.
8117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      for lt_pkg in $withval; do
8119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	IFS="$lt_save_ifs"
8120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "X$lt_pkg" = "X$lt_p"; then
8121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  pic_mode=yes
8122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
8123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done
8124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      IFS="$lt_save_ifs"
8125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
8127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  pic_mode=default
8129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$pic_mode" && pic_mode=default
8133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check whether --enable-fast-install was given.
8141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${enable_fast_install+set}" = set; then :
8142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enableval=$enable_fast_install; p=${PACKAGE-default}
8143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $enableval in
8144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    yes) enable_fast_install=yes ;;
8145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    no) enable_fast_install=no ;;
8146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
8147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      enable_fast_install=no
8148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Look at the argument we got.  We use all the common list separators.
8149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      for pkg in $enableval; do
8151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	IFS="$lt_save_ifs"
8152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "X$pkg" = "X$p"; then
8153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  enable_fast_install=yes
8154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
8155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done
8156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      IFS="$lt_save_ifs"
8157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
8159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_fast_install=yes
8161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This can be used to rebuild libtool when needed
8174e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBTOOL_DEPS="$ltmain"
8175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Always use our own libtool.
8177e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBTOOL='$(SHELL) $(top_builddir)/libtool'
8178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$LN_S" && LN_S="ln -s"
8209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "${ZSH_VERSION+set}" ; then
8224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   setopt NO_GLOB_SUBST
8225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for objdir... " >&6; }
8229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_objdir+:} false; then :
8230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
8231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f .libs 2>/dev/null
8233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymkdir .libs 2>/dev/null
8234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -d .libs; then
8235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_objdir=.libs
8236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # MS-DOS does not allow filenames that begin with a dot.
8238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_objdir=_libs
8239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrmdir .libs 2>/dev/null
8241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_objdir" >&6; }
8244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyobjdir=$lt_cv_objdir
8245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
8251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define LT_OBJDIR "$lt_cv_objdir/"
8252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
8253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host_os in
8258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyaix3*)
8259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # AIX sometimes has problems with the GCC collect2 program.  For some
8260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # reason, if we set the COLLECT_NAMES environment variable, the problems
8261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # vanish in a puff of smoke.
8262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "X${COLLECT_NAMES+set}" != Xset; then
8263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    COLLECT_NAMES=
8264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    export COLLECT_NAMES
8265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
8266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
8267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
8268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Global variables:
8270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyofile=libtool
8271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycan_build_shared=yes
8272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# All known linkers require a `.a' archive for static linking (except MSVC,
8274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# which needs '.lib').
8275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibext=a
8276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_gnu_ld="$lt_cv_prog_gnu_ld"
8278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_CC="$CC"
8280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_CFLAGS="$CFLAGS"
8281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set sane defaults for various variables
8283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$CC" && CC=cc
8284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$LTCC" && LTCC=$CC
8285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$LD" && LD=ld
8287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$ac_objext" && ac_objext=o
8288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor cc_temp in $compiler""; do
8290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $cc_temp in
8291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    \-*) ;;
8294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *) break;;
8295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
8296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
8297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Only perform the check for file, if the check method requires it
8301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$MAGIC_CMD" && MAGIC_CMD=file
8302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $deplibs_check_method in
8303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_magic*)
8304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_path_MAGIC_CMD+:} false; then :
8308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
8309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $MAGIC_CMD in
8311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley[\\/*] |  ?:[\\/]*)
8312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
8314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
8315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_save_MAGIC_CMD="$MAGIC_CMD"
8316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_dir in $ac_dummy; do
8319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    IFS="$lt_save_ifs"
8320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -z "$ac_dir" && ac_dir=.
8321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -f $ac_dir/${ac_tool_prefix}file; then
8322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -n "$file_magic_test_file"; then
8324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $deplibs_check_method in
8325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	"file_magic "*)
8326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    $EGREP "$file_magic_regex" > /dev/null; then
8330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    :
8331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  else
8332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    cat <<_LT_EOF 1>&2
8333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** Warning: the command libtool uses to detect shared libraries,
8335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** $file_magic_cmd, produces output that libtool cannot recognize.
8336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** The result is that libtool may fail to recognize shared libraries
8337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** as such.  This will affect the creation of libtool libraries that
8338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** depend on shared libraries, but programs linked with such libtool
8339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** libraries will work regardless of this problem.  Nevertheless, you
8340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** may want to report the problem to your system manager and/or to
8341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** bug-libtool@gnu.org
8342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
8344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi ;;
8345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
8346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
8347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      break
8348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
8349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
8350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS="$lt_save_ifs"
8351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  MAGIC_CMD="$lt_save_MAGIC_CMD"
8352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
8353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
8354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8356e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$MAGIC_CMD"; then
8358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$MAGIC_CMD" >&6; }
8360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
8363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$lt_cv_path_MAGIC_CMD"; then
8370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$ac_tool_prefix"; then
8371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for file... " >&6; }
8373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_path_MAGIC_CMD+:} false; then :
8374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
8375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $MAGIC_CMD in
8377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley[\\/*] |  ?:[\\/]*)
8378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
8380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
8381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_save_MAGIC_CMD="$MAGIC_CMD"
8382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_dir in $ac_dummy; do
8385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    IFS="$lt_save_ifs"
8386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -z "$ac_dir" && ac_dir=.
8387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -f $ac_dir/file; then
8388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -n "$file_magic_test_file"; then
8390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $deplibs_check_method in
8391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	"file_magic "*)
8392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    $EGREP "$file_magic_regex" > /dev/null; then
8396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    :
8397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  else
8398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    cat <<_LT_EOF 1>&2
8399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** Warning: the command libtool uses to detect shared libraries,
8401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** $file_magic_cmd, produces output that libtool cannot recognize.
8402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** The result is that libtool may fail to recognize shared libraries
8403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** as such.  This will affect the creation of libtool libraries that
8404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** depend on shared libraries, but programs linked with such libtool
8405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** libraries will work regardless of this problem.  Nevertheless, you
8406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** may want to report the problem to your system manager and/or to
8407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** bug-libtool@gnu.org
8408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
8410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi ;;
8411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
8412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
8413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      break
8414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
8415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
8416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS="$lt_save_ifs"
8417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  MAGIC_CMD="$lt_save_MAGIC_CMD"
8418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
8419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
8420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8422e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$MAGIC_CMD"; then
8424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$MAGIC_CMD" >&6; }
8426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
8429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
8433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    MAGIC_CMD=:
8434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
8435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
8438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
8439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
8440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Use C for the default configuration in the libtool script
8442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_save_CC="$CC"
8444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
8445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
8446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
8449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Source file extension for C test sources.
8452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
8453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Object file extension for compiled C test sources.
8455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyobjext=o
8456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyobjext=$objext
8457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Code to be used in simple compile tests
8459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_simple_compile_test_code="int some_variable = 0;"
8460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Code to be used in simple link tests
8462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_simple_link_test_code='int main(){return(0);}'
8463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If no C compiler was specified, use CC.
8471e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTCC=${LTCC-"$CC"}
8472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If no C compiler flags were specified, use CFLAGS.
8474e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Allow CC to be a program name with arguments.
8477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler=$CC
8478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Save the default compiler, since it gets overwritten when the other
8480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler_DEFAULT=$CC
8482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# save warnings/boilerplate of simple test code
8484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_outfile=conftest.$ac_objext
8485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyecho "$lt_simple_compile_test_code" >conftest.$ac_ext
8486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_lt_compiler_boilerplate=`cat conftest.err`
8488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$RM conftest*
8489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_outfile=conftest.$ac_objext
8491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyecho "$lt_simple_link_test_code" >conftest.$ac_ext
8492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_lt_linker_boilerplate=`cat conftest.err`
8494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$RM -r conftest*
8495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## CAVEAT EMPTOR:
8498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## There is no encapsulation within the following macros, do not change
8499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## the running order or otherwise move them around unless you know exactly
8500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## what you are doing...
8501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$compiler"; then
8502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_no_builtin_flag=
8504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$GCC" = yes; then
8506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $cc_basename in
8507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  nvcc*)
8508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
8510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
8512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
8517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_prog_compiler_rtti_exceptions=no
8519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ac_outfile=conftest.$ac_objext
8520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   lt_compiler_flag="-fno-rtti -fno-exceptions"
8522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Insert the option either (1) after the last *FLAGS variable, or
8523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # (2) before a word containing "conftest.", or (3) at the end.
8524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Note that $ac_compile itself does not contain backslashes and begins
8525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # with a dollar sign (not a hyphen), so the echo should work correctly.
8526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # The option is referenced via a variable to avoid confusing sed.
8527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   lt_compile=`echo "$ac_compile" | $SED \
8528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's:$: $lt_compiler_flag:'`
8531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   (eval "$lt_compile" 2>conftest.err)
8533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ac_status=$?
8534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cat conftest.err >&5
8535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   if (exit $ac_status) && test -s "$ac_outfile"; then
8537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # The compiler can only warn and ignore the option if not recognized
8538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # So say no if there are warnings other than the usual output.
8539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       lt_cv_prog_compiler_rtti_exceptions=yes
8543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
8544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
8545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM conftest*
8546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    :
8555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_prog_compiler_wl=
8565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_pic=
8566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_static=
8567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$GCC" = yes; then
8570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_prog_compiler_wl='-Wl,'
8571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_prog_compiler_static='-static'
8572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
8574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      aix*)
8575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # All AIX code is PIC.
8576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$host_cpu" = ia64; then
8577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# AIX 5 now supports IA64 processor
8578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='-Bstatic'
8579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
8580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    amigaos*)
8583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $host_cpu in
8584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      powerpc)
8585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            # see comment about AmigaOS4 .so support
8586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            lt_prog_compiler_pic='-fPIC'
8587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
8588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      m68k)
8589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            # FIXME: we need at least 68020 code to build shared libraries, but
8590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            # adding the `-m68020' flag to GCC prevents building anything better,
8591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            # like `-m68040'.
8592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
8594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
8595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # PIC is the default for these OSes.
8599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mingw* | cygwin* | pw32* | os2* | cegcc*)
8602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # This hack is so that the source file can tell whether it is being
8603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # built for inclusion in a dll (and should export symbols for example).
8604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # (--disable-auto-import) libraries
8606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-DDLL_EXPORT'
8607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    darwin* | rhapsody*)
8610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # PIC is the default on this platform
8611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Common symbols not allowed in MH_DYLIB files
8612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-fno-common'
8613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    haiku*)
8616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # PIC is the default for Haiku.
8617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # The "-static" flag exists, but is broken.
8618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static=
8619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hpux*)
8622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # sets the default TLS model and affects inlining.
8625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $host_cpu in
8626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hppa*64*)
8627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# +Z the default
8628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
8629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
8630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic='-fPIC'
8631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
8632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
8633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    interix[3-9]*)
8636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Instead, we relocate shared libraries at runtime.
8638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    msdosdjgpp*)
8641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Just because we use GCC doesn't mean we suddenly get shared libraries
8642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # on systems that don't support them.
8643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_can_build_shared=no
8644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      enable_shared=no
8645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *nto* | *qnx*)
8648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # QNX uses GNU C++, but need to define -shared option too, otherwise
8649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # it will coredump.
8650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-fPIC -shared'
8651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv4*MP*)
8654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -d /usr/nec; then
8655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic=-Kconform_pic
8656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
8657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
8660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-fPIC'
8661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
8663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $cc_basename in
8665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    nvcc*) # Cuda Compiler Driver 2.2
8666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_wl='-Xlinker '
8667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -n "$lt_prog_compiler_pic"; then
8668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
8670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
8672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
8673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # PORTME Check for flag to pass linker flags through the system compiler.
8674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
8675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    aix*)
8676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_wl='-Wl,'
8677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$host_cpu" = ia64; then
8678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# AIX 5 now supports IA64 processor
8679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='-Bstatic'
8680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
8681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
8683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mingw* | cygwin* | pw32* | os2* | cegcc*)
8686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # This hack is so that the source file can tell whether it is being
8687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # built for inclusion in a dll (and should export symbols for example).
8688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-DDLL_EXPORT'
8689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hpux9* | hpux10* | hpux11*)
8692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_wl='-Wl,'
8693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # not for PA HP-UX.
8695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $host_cpu in
8696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hppa*64*|ia64*)
8697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# +Z the default
8698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
8699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
8700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic='+Z'
8701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
8702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
8703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='${wl}-a ${wl}archive'
8705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    irix5* | irix6* | nonstopux*)
8708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_wl='-Wl,'
8709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # PIC (with -KPIC) is the default.
8710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='-non_shared'
8711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $cc_basename in
8715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # old Intel for x86_64 which still supported -KPIC.
8716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ecc*)
8717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_wl='-Wl,'
8718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic='-KPIC'
8719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='-static'
8720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
8721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # icc used to be incompatible with GCC.
8722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # ICC 10 doesn't accept -KPIC any more.
8723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      icc* | ifort*)
8724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_wl='-Wl,'
8725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic='-fPIC'
8726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='-static'
8727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
8728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Lahey Fortran 8.1.
8729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lf95*)
8730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_wl='-Wl,'
8731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic='--shared'
8732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='--static'
8733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
8734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      nagfor*)
8735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# NAG Fortran compiler
8736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_wl='-Wl,-Wl,,'
8737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic='-PIC'
8738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='-Bstatic'
8739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
8740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # Portland Group compilers (*not* the Pentium gcc compiler,
8742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# which looks to be a dead project)
8743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_wl='-Wl,'
8744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic='-fpic'
8745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='-Bstatic'
8746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
8747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ccc*)
8748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_prog_compiler_wl='-Wl,'
8749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # All Alpha code is PIC.
8750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_prog_compiler_static='-non_shared'
8751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
8752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      xl* | bgxl* | bgf* | mpixl*)
8753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_wl='-Wl,'
8755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic='-qpic'
8756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='-qstaticlink'
8757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
8758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
8759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case `$CC -V 2>&1 | sed 5q` in
8760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_pic='-KPIC'
8763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_static='-Bstatic'
8764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_wl=''
8765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
8766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*Sun\ F* | *Sun*Fortran*)
8767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_pic='-KPIC'
8768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_static='-Bstatic'
8769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_wl='-Qoption ld '
8770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
8771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*Sun\ C*)
8772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # Sun C 5.9
8773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_pic='-KPIC'
8774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_static='-Bstatic'
8775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_wl='-Wl,'
8776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
8777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        *Intel*\ [CF]*Compiler*)
8778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_wl='-Wl,'
8779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_pic='-fPIC'
8780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_static='-static'
8781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
8782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*Portland\ Group*)
8783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_wl='-Wl,'
8784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_pic='-fpic'
8785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_prog_compiler_static='-Bstatic'
8786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
8787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
8788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
8789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
8790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    newsos6)
8793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-KPIC'
8794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='-Bstatic'
8795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *nto* | *qnx*)
8798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # QNX uses GNU C++, but need to define -shared option too, otherwise
8799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # it will coredump.
8800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-fPIC -shared'
8801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    osf3* | osf4* | osf5*)
8804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_wl='-Wl,'
8805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # All OSF/1 code is PIC.
8806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='-non_shared'
8807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    rdos*)
8810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='-non_shared'
8811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    solaris*)
8814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-KPIC'
8815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='-Bstatic'
8816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $cc_basename in
8817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_wl='-Qoption ld ';;
8819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
8820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_wl='-Wl,';;
8821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
8822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sunos4*)
8825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_wl='-Qoption ld '
8826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-PIC'
8827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='-Bstatic'
8828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv4 | sysv4.2uw2* | sysv4.3*)
8831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_wl='-Wl,'
8832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-KPIC'
8833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='-Bstatic'
8834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv4*MP*)
8837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -d /usr/nec ;then
8838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_pic='-Kconform_pic'
8839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_prog_compiler_static='-Bstatic'
8840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
8841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_wl='-Wl,'
8845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-KPIC'
8846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='-Bstatic'
8847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    unicos*)
8850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_wl='-Wl,'
8851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_can_build_shared=no
8852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    uts4*)
8855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_pic='-pic'
8856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_static='-Bstatic'
8857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
8860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_prog_compiler_can_build_shared=no
8861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
8862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
8863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
8864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host_os in
8866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # For platforms which do not support PIC, -DPIC is meaningless:
8867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *djgpp*)
8868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_prog_compiler_pic=
8869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
8870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
8871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
8873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
8874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_prog_compiler_pic+:} false; then :
8878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
8879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
8887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check to make sure the PIC flag actually works.
8888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
8889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$lt_prog_compiler_pic"; then
8890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_prog_compiler_pic_works+:} false; then :
8893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
8894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_prog_compiler_pic_works=no
8896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ac_outfile=conftest.$ac_objext
8897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Insert the option either (1) after the last *FLAGS variable, or
8900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # (2) before a word containing "conftest.", or (3) at the end.
8901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Note that $ac_compile itself does not contain backslashes and begins
8902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # with a dollar sign (not a hyphen), so the echo should work correctly.
8903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # The option is referenced via a variable to avoid confusing sed.
8904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   lt_compile=`echo "$ac_compile" | $SED \
8905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's:$: $lt_compiler_flag:'`
8908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   (eval "$lt_compile" 2>conftest.err)
8910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ac_status=$?
8911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cat conftest.err >&5
8912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   if (exit $ac_status) && test -s "$ac_outfile"; then
8914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # The compiler can only warn and ignore the option if not recognized
8915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # So say no if there are warnings other than the usual output.
8916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       lt_cv_prog_compiler_pic_works=yes
8920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
8921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
8922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM conftest*
8923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $lt_prog_compiler_pic in
8930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     "" | " "*) ;;
8931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     esac
8933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_prog_compiler_pic=
8935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     lt_prog_compiler_can_build_shared=no
8936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
8951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check to make sure the static flag actually works.
8952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
8953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_prog_compiler_static_works+:} false; then :
8957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
8958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_prog_compiler_static_works=no
8960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   save_LDFLAGS="$LDFLAGS"
8961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # The linker can only warn and ignore the option if not recognized
8965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # So say no if there are warnings
8966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test -s conftest.err; then
8967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       # Append any errors to the config.log.
8968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       cat conftest.err 1>&5
8969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       if diff conftest.exp conftest.er2 >/dev/null; then
8972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley         lt_cv_prog_compiler_static_works=yes
8973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       fi
8974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     else
8975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       lt_cv_prog_compiler_static_works=yes
8976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
8977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
8978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM -r conftest*
8979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   LDFLAGS="$save_LDFLAGS"
8980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"$lt_cv_prog_compiler_static_works" = xyes; then
8986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    :
8987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
8988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_prog_compiler_static=
8989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
8990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
8997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_prog_compiler_c_o+:} false; then :
9000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
9001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
9002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_prog_compiler_c_o=no
9003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM -r conftest 2>/dev/null
9004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   mkdir conftest
9005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cd conftest
9006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   mkdir out
9007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   lt_compiler_flag="-o out/conftest2.$ac_objext"
9010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Insert the option either (1) after the last *FLAGS variable, or
9011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # (2) before a word containing "conftest.", or (3) at the end.
9012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Note that $ac_compile itself does not contain backslashes and begins
9013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # with a dollar sign (not a hyphen), so the echo should work correctly.
9014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   lt_compile=`echo "$ac_compile" | $SED \
9015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's:$: $lt_compiler_flag:'`
9018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   (eval "$lt_compile" 2>out/conftest.err)
9020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ac_status=$?
9021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cat out/conftest.err >&5
9022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   then
9025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # The compiler can only warn and ignore the option if not recognized
9026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # So say no if there are warnings
9027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       lt_cv_prog_compiler_c_o=yes
9031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
9032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
9033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   chmod u+w . 2>&5
9034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM conftest*
9035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # SGI C++ compiler will create directory out/ii_files/ for
9036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # template instantiation
9037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM out/* && rmdir out
9039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cd ..
9040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM -r conftest
9041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM conftest*
9042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_prog_compiler_c_o+:} false; then :
9055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
9056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
9057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_prog_compiler_c_o=no
9058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM -r conftest 2>/dev/null
9059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   mkdir conftest
9060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cd conftest
9061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   mkdir out
9062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   lt_compiler_flag="-o out/conftest2.$ac_objext"
9065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Insert the option either (1) after the last *FLAGS variable, or
9066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # (2) before a word containing "conftest.", or (3) at the end.
9067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # Note that $ac_compile itself does not contain backslashes and begins
9068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # with a dollar sign (not a hyphen), so the echo should work correctly.
9069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   lt_compile=`echo "$ac_compile" | $SED \
9070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   -e 's:$: $lt_compiler_flag:'`
9073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   (eval "$lt_compile" 2>out/conftest.err)
9075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   ac_status=$?
9076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cat out/conftest.err >&5
9077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   then
9080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # The compiler can only warn and ignore the option if not recognized
9081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # So say no if there are warnings
9082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       lt_cv_prog_compiler_c_o=yes
9086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
9087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
9088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   chmod u+w . 2>&5
9089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM conftest*
9090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # SGI C++ compiler will create directory out/ii_files/ for
9091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   # template instantiation
9092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM out/* && rmdir out
9094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   cd ..
9095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM -r conftest
9096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM conftest*
9097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhard_links="nottested"
9106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # do not overwrite the value of need_locks provided by the user
9108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if we can lock with hard links... " >&6; }
9110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hard_links=yes
9111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $RM conftest*
9112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  touch conftest.a
9114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ln conftest.a conftest.b 2>&5 || hard_links=no
9115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$hard_links" >&6; }
9118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$hard_links" = no; then
9119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    need_locks=warn
9122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
9123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
9124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_locks=no
9125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  runpath_var=
9136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  allow_undefined_flag=
9137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  always_export_symbols=no
9138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  archive_cmds=
9139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  archive_expsym_cmds=
9140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  compiler_needs_object=no
9141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_shared_with_static_runtimes=no
9142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  export_dynamic_flag_spec=
9143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_automatic=no
9145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_direct=no
9146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_direct_absolute=no
9147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_libdir_flag_spec=
9148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_libdir_separator=
9149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_minus_L=no
9150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_shlibpath_var=unsupported
9151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  inherit_rpath=no
9152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  link_all_deplibs=unknown
9153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  module_cmds=
9154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  module_expsym_cmds=
9155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  old_archive_from_new_cmds=
9156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  old_archive_from_expsyms_cmds=
9157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  thread_safe_flag_spec=
9158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  whole_archive_flag_spec=
9159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # include_expsyms should be a list of space-separated symbols to be *always*
9160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # included in the symbol list
9161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  include_expsyms=
9162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # exclude_expsyms can be an extended regexp of symbols to exclude
9163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # as well as any symbol that contains `d'.
9166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # platforms (ab)use it in PIC code, but their linkers get confused if
9169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # the symbol is explicitly referenced.  Since portable code cannot
9170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # rely on this symbol name, it's probably fine to never include it in
9171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # preloaded symbol tables.
9172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Exclude shared library initialization/finalization symbols.
9173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  extract_expsyms_cmds=
9174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
9176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cygwin* | mingw* | pw32* | cegcc*)
9177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # When not using gcc, we currently assume that we are using
9179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Microsoft Visual C++.
9180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$GCC" != yes; then
9181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      with_gnu_ld=no
9182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
9183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
9184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  interix*)
9185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # we just hope/assume this is gcc and not c89 (= MSVC++)
9186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    with_gnu_ld=yes
9187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
9188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  openbsd*)
9189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    with_gnu_ld=no
9190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
9191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
9192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ld_shlibs=yes
9194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # On some targets, GNU ld is compatible enough with the native linker
9196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # that we're better off using the native interface for both.
9197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_use_gnu_ld_interface=no
9198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$with_gnu_ld" = yes; then
9199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
9200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      aix*)
9201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# The AIX port of GNU ld has always aspired to compatibility
9202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# with the native linker.  However, as the warning in the GNU ld
9203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# block says, versions before 2.19.5* couldn't really create working
9204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# shared libraries, regardless of the interface used.
9205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case `$LD -v 2>&1` in
9206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  *)
9210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    lt_use_gnu_ld_interface=yes
9211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ;;
9212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
9214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
9215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_use_gnu_ld_interface=yes
9216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
9217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
9218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
9219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$lt_use_gnu_ld_interface" = yes; then
9221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # If archive_cmds runs LD, not CC, wlarc should be empty
9222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    wlarc='${wl}'
9223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Set some defaults for GNU ld with shared library support. These
9225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # are reset later if shared libraries are not supported. Putting them
9226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # here allows them to be overridden if necessary.
9227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    runpath_var=LD_RUN_PATH
9228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    export_dynamic_flag_spec='${wl}--export-dynamic'
9230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # ancient GNU ld didn't support --whole-archive et. al.
9231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
9234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      whole_archive_flag_spec=
9235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
9236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    supports_anon_versioning=no
9237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case `$LD -v 2>&1` in
9238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *GNU\ gold*) supports_anon_versioning=yes ;;
9239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *\ 2.11.*) ;; # other 2.11 versions
9243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) supports_anon_versioning=yes ;;
9244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
9245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # See if GNU ld supports shared libraries.
9247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
9248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    aix[3-9]*)
9249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # On AIX/PPC, the GNU linker is very broken
9250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$host_cpu" != ia64; then
9251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ld_shlibs=no
9252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat <<_LT_EOF 1>&2
9253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** Warning: the GNU linker, at least up to release 2.19, is reported
9255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** to be unable to reliably create shared libraries on AIX.
9256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** Therefore, libtool is disabling shared libraries support.  If you
9257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** really care for shared libraries, you may want to install binutils
9258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** You will then need to restart the configuration process.
9260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
9262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    amigaos*)
9266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $host_cpu in
9267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      powerpc)
9268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            # see comment about AmigaOS4 .so support
9269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            archive_expsym_cmds=''
9271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
9272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      m68k)
9273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            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)'
9274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            hardcode_libdir_flag_spec='-L$libdir'
9275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            hardcode_minus_L=yes
9276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
9277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
9278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    beos*)
9281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	allow_undefined_flag=unsupported
9283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# support --undefined.  This deserves some investigation.  FIXME
9285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ld_shlibs=no
9288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cygwin* | mingw* | pw32* | cegcc*)
9292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # as there is no search path for DLLs.
9294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='-L$libdir'
9295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      export_dynamic_flag_spec='${wl}--export-all-symbols'
9296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      allow_undefined_flag=unsupported
9297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      always_export_symbols=no
9298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      enable_shared_with_static_runtimes=yes
9299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      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'
9300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# If the export-symbols file already is a .def file (1st line
9305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# is EXPORTS), use it as is; otherwise, prepend...
9306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  cp $export_symbols $output_objdir/$soname.def;
9308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
9309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  echo EXPORTS > $output_objdir/$soname.def;
9310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  cat $export_symbols >> $output_objdir/$soname.def;
9311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi~
9312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ld_shlibs=no
9315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    haiku*)
9319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      link_all_deplibs=yes
9321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    interix[3-9]*)
9324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=no
9325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
9326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      export_dynamic_flag_spec='${wl}-E'
9328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Instead, shared libraries are loaded at an image base (0x10000000 by
9330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # default) and relocated if they conflict, which is a slow very memory
9331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # consuming and fragmenting process.  To avoid this, we pick a random,
9332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      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'
9336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      tmp_diet=no
9340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$host_os" = linux-dietlibc; then
9341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $cc_basename in
9342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 && test "$tmp_diet" = no
9347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      then
9348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	tmp_addflag=' $pic_flag'
9349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	tmp_sharedflag='-shared'
9350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $cc_basename,$host_cpu in
9351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        pgcc*)				# Portland Group C compiler
9352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  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'
9353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_addflag=' $pic_flag'
9354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	pgf77* | pgf90* | pgf95* | pgfortran*)
9356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley					# Portland Group f77 and f90 compilers
9357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  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'
9358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_addflag=' $pic_flag -Mnomain' ;;
9359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_addflag=' -i_dynamic' ;;
9361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ifc* | ifort*)			# Intel Fortran compiler
9364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_addflag=' -nofor_main' ;;
9365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lf95*)				# Lahey Fortran 8.1
9366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  whole_archive_flag_spec=
9367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_sharedflag='--shared' ;;
9368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_sharedflag='-qmkshrobj'
9370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_addflag= ;;
9371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	nvcc*)	# Cuda Compiler Driver 2.2
9372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  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'
9373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  compiler_needs_object=yes
9374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case `$CC -V 2>&1 | sed 5q` in
9377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*Sun\ C*)			# Sun C 5.9
9378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  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'
9379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  compiler_needs_object=yes
9380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_sharedflag='-G' ;;
9381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*Sun\ F*)			# Sun Fortran 8.3
9382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  tmp_sharedflag='-G' ;;
9383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if test "x$supports_anon_versioning" = xyes; then
9387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    echo "local: *; };" >> $output_objdir/$libname.ver~
9390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        fi
9392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $cc_basename in
9394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	xlf* | bgf* | bgxlf* | mpixlf*)
9395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if test "x$supports_anon_versioning" = xyes; then
9400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      echo "local: *; };" >> $output_objdir/$libname.ver~
9403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi
9405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ld_shlibs=no
9409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    netbsd*)
9413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	wlarc=
9416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    solaris*)
9423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ld_shlibs=no
9425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat <<_LT_EOF 1>&2
9426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** create shared libraries on Solaris systems.  Therefore, libtool
9429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** is disabling shared libraries support.  We urge you to upgrade GNU
9430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** binutils to release 2.9.1 or newer.  Another option is to modify
9431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** your PATH or compiler configuration so that the native linker is
9432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** used, and then restart.
9433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
9435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ld_shlibs=no
9440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case `$LD -v 2>&1` in
9445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ld_shlibs=no
9447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat <<_LT_EOF 1>&2
9448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** reliably create shared libraries on SCO systems.  Therefore, libtool
9451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** is disabling shared libraries support.  We urge you to upgrade GNU
9452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** your PATH or compiler configuration so that the native linker is
9454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*** used, and then restart.
9455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
9457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
9458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*)
9459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # For security reasons, it is highly recommended that you always
9460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # use absolute paths for naming shared libraries, and exclude the
9461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # DT_RUNPATH tag from executables and libraries.  But doing so
9462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # requires that you compile everything twice, which is a pain.
9463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  else
9468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    ld_shlibs=no
9469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi
9470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
9471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
9472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sunos4*)
9475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      wlarc=
9477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=yes
9478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
9479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
9482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ld_shlibs=no
9487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
9490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$ld_shlibs" = no; then
9492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      runpath_var=
9493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec=
9494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      export_dynamic_flag_spec=
9495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      whole_archive_flag_spec=
9496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
9497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
9498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # PORTME fill in a description of your system's linker (not GNU ld)
9499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
9500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    aix3*)
9501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      allow_undefined_flag=unsupported
9502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      always_export_symbols=yes
9503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      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'
9504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Note: this linker hardcodes the directories in LIBPATH if there
9505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # are no directories specified by -L.
9506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_minus_L=yes
9507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Neither direct hardcoding nor static linking is supported with a
9509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# broken collect2.
9510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_direct=unsupported
9511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    aix[4-9]*)
9515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$host_cpu" = ia64; then
9516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# On IA64, the linker does run time linking by default, so we don't
9517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# have to do anything special.
9518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	aix_use_runtimelinking=no
9519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	exp_sym_flag='-Bexport'
9520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	no_entry_flag=""
9521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# If we're using GNU nm, then we don't want the "-C" option.
9523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Also, AIX nm treats weak defined symbols like other global
9525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# defined symbols, whereas GNU nm marks them as "W".
9526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
9529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
9531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	aix_use_runtimelinking=no
9532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Test if we are trying to use run time linking or normal
9534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# need to do runtime linking.
9536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  for ld_flag in $LDFLAGS; do
9538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    aix_use_runtimelinking=yes
9540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    break
9541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi
9542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  done
9543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	exp_sym_flag='-bexport'
9547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	no_entry_flag='-bnoentry'
9548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # When large executables or shared objects are built, AIX ld can
9551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # have problems creating the table of contents.  If linking a library
9552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # or program results in "error TOC overflow" add -mminimal-toc to
9553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds=''
9557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=yes
9558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct_absolute=yes
9559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_separator=':'
9560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      link_all_deplibs=yes
9561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      file_list_spec='${wl}-f,'
9562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes; then
9564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $host_os in aix4.[012]|aix4.[012].*)
9565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# We only want to do this on AIX 4.2 and lower, the check
9566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# below for broken collect2 doesn't work under 4.3+
9567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  collect2name=`${CC} -print-prog-name=collect2`
9568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if test -f "$collect2name" &&
9569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  then
9571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # We have reworked collect2
9572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  :
9573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  else
9574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # We have old collect2
9575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_direct=unsupported
9576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # It fails to find uninstalled libraries when the uninstalled
9577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # path is not listed in the libpath.  Setting hardcode_minus_L
9578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # to unsupported forces relinking
9579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_minus_L=yes
9580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_libdir_flag_spec='-L$libdir'
9581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_libdir_separator=
9582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi
9583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	shared_flag='-shared'
9586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "$aix_use_runtimelinking" = yes; then
9587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  shared_flag="$shared_flag "'${wl}-G'
9588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
9589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# not using gcc
9591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "$host_cpu" = ia64; then
9592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# chokes on -Wl,-G. The following line is correct:
9594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  shared_flag='-G'
9595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
9596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if test "$aix_use_runtimelinking" = yes; then
9597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    shared_flag='${wl}-G'
9598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  else
9599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    shared_flag='${wl}-bM:SRE'
9600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi
9601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
9602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      export_dynamic_flag_spec='${wl}-bexpall'
9605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # It seems that -bexpall does not export symbols beginning with
9606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # underscore (_), so it is better to generate a list of symbols to export.
9607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      always_export_symbols=yes
9608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$aix_use_runtimelinking" = yes; then
9609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Warning - without using the other runtime loading flags (-brtl),
9610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# -berok will link without error, but may produce a broken library.
9611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	allow_undefined_flag='-berok'
9612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # Determine the default libpath from the value encoded in an
9613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # empty executable.
9614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if test "${lt_cv_aix_libpath+set}" = set; then
9615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  aix_libpath=$lt_cv_aix_libpath
9616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
9617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${lt_cv_aix_libpath_+:} false; then :
9618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
9619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
9620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
9622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
9624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
9625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
9626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
9628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
9629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
9630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
9631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
9632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_aix_libpath_sed='
9634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      /Import File Strings/,/^$/ {
9635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^0/ {
9636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      s/^0  *\([^ ]*\) *$/\1/
9637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      p
9638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
9639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      }'
9640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check for a 64-bit object if we didn't find anything.
9642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$lt_cv_aix_libpath_"; then
9643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
9645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
9647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
9648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$lt_cv_aix_libpath_"; then
9649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_aix_libpath_="/usr/lib:/lib"
9650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
9651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  aix_libpath=$lt_cv_aix_libpath_
9655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "$host_cpu" = ia64; then
9661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  allow_undefined_flag="-z nodefs"
9663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  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"
9664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
9665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 # Determine the default libpath from the value encoded in an
9666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 # empty executable.
9667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 if test "${lt_cv_aix_libpath+set}" = set; then
9668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  aix_libpath=$lt_cv_aix_libpath
9669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
9670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${lt_cv_aix_libpath_+:} false; then :
9671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
9672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
9673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
9675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
9677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
9678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
9679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
9681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
9682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
9683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
9684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
9685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_aix_libpath_sed='
9687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      /Import File Strings/,/^$/ {
9688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^0/ {
9689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      s/^0  *\([^ ]*\) *$/\1/
9690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      p
9691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
9692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      }'
9693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Check for a 64-bit object if we didn't find anything.
9695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$lt_cv_aix_libpath_"; then
9696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
9698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
9700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
9701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$lt_cv_aix_libpath_"; then
9702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_aix_libpath_="/usr/lib:/lib"
9703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
9704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  aix_libpath=$lt_cv_aix_libpath_
9708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # Warning - without using the other run time loading flags,
9712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # -berok will link without error, but may produce a broken library.
9713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  no_undefined_flag=' ${wl}-bernotok'
9714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  allow_undefined_flag=' ${wl}-berok'
9715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if test "$with_gnu_ld" = yes; then
9716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    # We only use this code for GNU lds that support --whole-archive.
9717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  else
9719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    # Exported symbols can be pulled into shared objects from archives
9720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    whole_archive_flag_spec='$convenience'
9721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi
9722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds_need_lc=yes
9723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # This is similar to how AIX traditionally builds its shared libraries.
9724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
9726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    amigaos*)
9730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $host_cpu in
9731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      powerpc)
9732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            # see comment about AmigaOS4 .so support
9733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            archive_expsym_cmds=''
9735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
9736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      m68k)
9737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            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)'
9738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            hardcode_libdir_flag_spec='-L$libdir'
9739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            hardcode_minus_L=yes
9740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
9741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
9742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    bsdi[45]*)
9745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      export_dynamic_flag_spec=-rdynamic
9746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cygwin* | mingw* | pw32* | cegcc*)
9749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # When not using gcc, we currently assume that we are using
9750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Microsoft Visual C++.
9751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # hardcode_libdir_flag_spec is actually meaningless, as there is
9752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # no search path for DLLs.
9753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $cc_basename in
9754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      cl*)
9755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Native MSVC
9756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_libdir_flag_spec=' '
9757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	allow_undefined_flag=unsupported
9758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	always_export_symbols=yes
9759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	file_list_spec='@'
9760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Tell ltmain to make .lib files, not .a files.
9761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	libext=lib
9762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Tell ltmain to make .dll files, not .so files.
9763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	shrext_cmds=".dll"
9764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# FIXME: Setting linknames here is a bad hack.
9765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  else
9769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi~
9771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  linknames='
9773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# The linker will not automatically build a static lib if we build a DLL.
9774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	enable_shared_with_static_runtimes=yes
9776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Don't use ranlib
9779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	old_postinstall_cmds='chmod 644 $oldlib'
9780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	postlink_cmds='lt_outputfile="@OUTPUT@"~
9781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  case $lt_outputfile in
9783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    *.exe|*.EXE) ;;
9784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    *)
9785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      lt_outputfile="$lt_outputfile.exe"
9786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	      ;;
9788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  esac~
9789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    $RM "$lt_outputfile.manifest";
9792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi'
9793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
9794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
9795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Assume MSVC wrapper
9796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_libdir_flag_spec=' '
9797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	allow_undefined_flag=unsupported
9798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Tell ltmain to make .lib files, not .a files.
9799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	libext=lib
9800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Tell ltmain to make .dll files, not .so files.
9801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	shrext_cmds=".dll"
9802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# FIXME: Setting linknames here is a bad hack.
9803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# The linker will automatically build a .lib file if we build a DLL.
9805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	old_archive_from_new_cmds='true'
9806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# FIXME: Should let the user specify the lib program.
9807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	enable_shared_with_static_runtimes=yes
9809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
9810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
9811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    darwin* | rhapsody*)
9814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  archive_cmds_need_lc=no
9817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_direct=no
9818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_automatic=yes
9819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_shlibpath_var=unsupported
9820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$lt_cv_ld_force_load" = "yes"; then
9821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    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\"`'
9822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
9824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    whole_archive_flag_spec=''
9825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
9826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  link_all_deplibs=yes
9827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  allow_undefined_flag="$_lt_dar_allow_undefined"
9828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $cc_basename in
9829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ifort*) _lt_dar_can_shared=yes ;;
9830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     *) _lt_dar_can_shared=$GCC ;;
9831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
9832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$_lt_dar_can_shared" = "yes"; then
9833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    output_verbose_link_cmd=func_echo_all
9834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    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}"
9837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    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}"
9838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
9840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ld_shlibs=no
9841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
9842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dgux*)
9846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='-L$libdir'
9848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
9849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # support.  Future versions do this automatically, but an explicit c++rt0.o
9853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # does not break anything, and helps significantly (at the cost of a little
9854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # extra space).
9855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    freebsd2.2*)
9856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='-R$libdir'
9858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=yes
9859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
9860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    freebsd2.*)
9864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=yes
9866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_minus_L=yes
9867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
9868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    freebsd* | dragonfly*)
9872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='-R$libdir'
9874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=yes
9875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
9876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hpux9*)
9879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes; then
9880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_separator=:
9886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=yes
9887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # hardcode_minus_L: Not really in the search PATH,
9889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # but as the default location of the library.
9890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_minus_L=yes
9891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      export_dynamic_flag_spec='${wl}-E'
9892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hpux10*)
9895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$with_gnu_ld" = no; then
9901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_libdir_separator=:
9903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_direct=yes
9904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_direct_absolute=yes
9905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	export_dynamic_flag_spec='${wl}-E'
9906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# hardcode_minus_L: Not really in the search PATH,
9907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# but as the default location of the library.
9908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_minus_L=yes
9909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hpux11*)
9913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $host_cpu in
9915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hppa*64*)
9916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ia64*)
9919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*)
9922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
9926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $host_cpu in
9927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hppa*64*)
9928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ia64*)
9931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*)
9934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # Older versions of the 11.00 compiler do not understand -b yet
9936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if $CC understands -b... " >&6; }
9939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_prog_compiler__b+:} false; then :
9940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
9941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
9942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_prog_compiler__b=no
9943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   save_LDFLAGS="$LDFLAGS"
9944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   LDFLAGS="$LDFLAGS -b"
9945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # The linker can only warn and ignore the option if not recognized
9948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # So say no if there are warnings
9949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     if test -s conftest.err; then
9950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       # Append any errors to the config.log.
9951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       cat conftest.err 1>&5
9952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       if diff conftest.exp conftest.er2 >/dev/null; then
9955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley         lt_cv_prog_compiler__b=yes
9956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       fi
9957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     else
9958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       lt_cv_prog_compiler__b=yes
9959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     fi
9960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
9961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   $RM -r conftest*
9962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   LDFLAGS="$save_LDFLAGS"
9963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_prog_compiler__b" >&6; }
9967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"$lt_cv_prog_compiler__b" = xyes; then
9969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
9971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
9973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$with_gnu_ld" = no; then
9978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_libdir_separator=:
9980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case $host_cpu in
9982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hppa*64*|ia64*)
9983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_direct=no
9984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_shlibpath_var=no
9985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*)
9987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_direct=yes
9988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_direct_absolute=yes
9989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  export_dynamic_flag_spec='${wl}-E'
9990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # hardcode_minus_L: Not really in the search PATH,
9992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  # but as the default location of the library.
9993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_minus_L=yes
9994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
9995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
9996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
9997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
9998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
9999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    irix5* | irix6* | nonstopux*)
10000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes; then
10001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	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'
10002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Try to use the -exported_symbol ld option, if it does not
10003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# work, assume that -exports_file does not work either and
10004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# implicitly export all symbols.
10005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# This should be the same for all languages, so no per-tag cache variable.
10006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_irix_exported_symbol+:} false; then :
10009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
10010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
10011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  save_LDFLAGS="$LDFLAGS"
10012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
10015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint foo (void) { return 0; }
10016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
10017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
10018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_irix_exported_symbol=yes
10019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
10020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_irix_exported_symbol=no
10021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
10022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
10023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
10024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley           LDFLAGS="$save_LDFLAGS"
10025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
10026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "$lt_cv_irix_exported_symbol" = yes; then
10029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          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'
10030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
10031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	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'
10033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	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'
10034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds_need_lc='no'
10036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_separator=:
10038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      inherit_rpath=yes
10039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      link_all_deplibs=yes
10040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    netbsd*)
10043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='-R$libdir'
10049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=yes
10050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
10051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    newsos6)
10054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=yes
10056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_separator=:
10058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
10059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *nto* | *qnx*)
10062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    openbsd*)
10065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -f /usr/libexec/ld.so; then
10066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_direct=yes
10067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_shlibpath_var=no
10068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_direct_absolute=yes
10069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  export_dynamic_flag_spec='${wl}-E'
10074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
10075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  case $host_os in
10076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     hardcode_libdir_flag_spec='-R$libdir'
10079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     ;;
10080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   *)
10081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     ;;
10084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  esac
10085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
10086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ld_shlibs=no
10088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    os2*)
10092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='-L$libdir'
10093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_minus_L=yes
10094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      allow_undefined_flag=unsupported
10095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    osf3*)
10100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes; then
10101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	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'
10103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	allow_undefined_flag=' -expect_unresolved \*'
10105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	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'
10106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds_need_lc='no'
10108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_separator=:
10110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes; then
10114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	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'
10116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	allow_undefined_flag=' -expect_unresolved \*'
10119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	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'
10120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	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~
10121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	$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'
10122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Both c and cxx compiler support -rpath directly
10124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_libdir_flag_spec='-rpath $libdir'
10125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds_need_lc='no'
10127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_separator=:
10128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    solaris*)
10131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      no_undefined_flag=' -z defs'
10132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes; then
10133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	wlarc='${wl}'
10134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  $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'
10137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	case `$CC -V 2>&1` in
10139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*"Compilers 5.0"*)
10140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  wlarc=''
10141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
10145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	*)
10146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  wlarc='${wl}'
10147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ;;
10151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
10152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='-R$libdir'
10154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
10155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $host_os in
10156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      solaris2.[0-5] | solaris2.[0-5].*) ;;
10157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
10158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# The compiler driver will combine and reorder linker options,
10159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# but is careful enough not to reorder.
10161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Supported since Solaris 2.6 (maybe 2.5.1?)
10162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "$GCC" = yes; then
10163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
10165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
10167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
10168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
10169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      link_all_deplibs=yes
10170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sunos4*)
10173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "x$host_vendor" = xsequent; then
10174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# Use $CC to link under sequent, because it throws in some extra .o
10175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	# files that make .init and .fini sections work.
10176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='-L$libdir'
10181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_direct=yes
10182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_minus_L=yes
10183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
10184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv4)
10187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $host_vendor in
10188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	sni)
10189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_direct=yes # is this really true???
10191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
10192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	siemens)
10193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ## LD is ld it makes a PLAMLIB
10194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  ## CC just makes a GrossModule.
10195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  reload_cmds='$CC -r -o $output$reload_objs'
10197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_direct=no
10198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
10199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	motorola)
10200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
10203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
10204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      runpath_var='LD_RUN_PATH'
10205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
10206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv4.3*)
10209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
10211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      export_dynamic_flag_spec='-Bexport'
10212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv4*MP*)
10215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -d /usr/nec; then
10216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_shlibpath_var=no
10218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	runpath_var=LD_RUN_PATH
10219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	hardcode_runpath_var=yes
10220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ld_shlibs=yes
10221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      no_undefined_flag='${wl}-z,text'
10226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds_need_lc=no
10227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
10228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      runpath_var='LD_RUN_PATH'
10229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes; then
10231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sysv5* | sco3.2v5* | sco5v6*)
10240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Note: We can NOT use -z defs as we might desire, because we do not
10241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # link with -lc, and that would cause any symbols used from libc to
10242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # always be unresolved, which means just about no library would
10243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # ever link correctly.  If we're not using GNU ld we use -z text
10244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # though, which does catch some bad symbols but isn't as heavy-handed
10245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # as -z defs.
10246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      no_undefined_flag='${wl}-z,text'
10247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      allow_undefined_flag='${wl}-z,nodefs'
10248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds_need_lc=no
10249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
10250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_separator=':'
10252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      link_all_deplibs=yes
10253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      export_dynamic_flag_spec='${wl}-Bexport'
10254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      runpath_var='LD_RUN_PATH'
10255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test "$GCC" = yes; then
10257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    uts4*)
10266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_libdir_flag_spec='-L$libdir'
10268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      hardcode_shlibpath_var=no
10269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
10272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ld_shlibs=no
10273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
10275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test x$host_vendor = xsni; then
10277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $host in
10278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	export_dynamic_flag_spec='${wl}-Blargedynsym'
10280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
10281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
10282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
10283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
10284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ld_shlibs" >&6; }
10287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "$ld_shlibs" = no && can_build_shared=no
10288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_gnu_ld=$with_gnu_ld
10290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
10306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Do we need to explicitly link libc?
10307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
10308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "x$archive_cmds_need_lc" in
10309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyx|xyes)
10310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Assume -lc should be added
10311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  archive_cmds_need_lc=yes
10312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$enable_shared" = yes && test "$GCC" = yes; then
10314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $archive_cmds in
10315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *'~'*)
10316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # FIXME: we may have to deal with multi-command sequences.
10317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    '$CC '*)
10319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Test whether the compiler implicitly links with -lc since on some
10320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # to ld, don't add -lc before -lgcc.
10322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_archive_cmds_need_lc+:} false; then :
10325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
10326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
10327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $RM conftest*
10328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $ac_compile) 2>&5
10332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
10333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } 2>conftest.err; then
10335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  soname=conftest
10336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lib=conftest
10337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  libobjs=conftest.$ac_objext
10338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  deplibs=
10339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  wl=$lt_prog_compiler_wl
10340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  pic_flag=$lt_prog_compiler_pic
10341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  compiler_flags=-v
10342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  linker_flags=-v
10343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  verstring=
10344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  output_objdir=.
10345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  libname=conftest
10346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  lt_save_allow_undefined_flag=$allow_undefined_flag
10347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  allow_undefined_flag=
10348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
10351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; }
10353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  then
10354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    lt_cv_archive_cmds_need_lc=no
10355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  else
10356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    lt_cv_archive_cmds_need_lc=yes
10357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  fi
10358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  allow_undefined_flag=$lt_save_allow_undefined_flag
10359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
10360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  cat conftest.err 1>&5
10361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
10362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	$RM conftest*
10363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
10365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
10370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
10371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
10373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking dynamic linker characteristics... " >&6; }
10527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$GCC" = yes; then
10529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
10530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *) lt_awk_arg="/^libraries:/" ;;
10532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
10534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *) lt_sed_strip_eq="s,=/,/,g" ;;
10536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $lt_search_path_spec in
10539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\;*)
10540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # if the path contains ";" then we assume it to be the separator
10541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # otherwise default to the standard path separator (i.e. ":") - it is
10542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # assumed that no part of a normal pathname contains ";" but that should
10543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # okay in the real world where ";" in dirpaths is itself problematic.
10544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
10547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Ok, now we have the path, separated by spaces, we can step through it
10551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # and add multilib dir if necessary.
10552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_tmp_lt_search_path_spec=
10553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for lt_sys_path in $lt_search_path_spec; do
10555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
10558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test -d "$lt_sys_path" && \
10559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
10561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
10562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10563e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBEGIN {RS=" "; FS="/|\n";} {
10564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_foo="";
10565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_count=0;
10566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for (lt_i = NF; lt_i > 0; lt_i--) {
10567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if ($lt_i != "" && $lt_i != ".") {
10568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if ($lt_i == "..") {
10569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_count++;
10570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      } else {
10571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if (lt_count == 0) {
10572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          lt_foo="/" $lt_i lt_foo;
10573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        } else {
10574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          lt_count--;
10575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        }
10576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      }
10577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    }
10578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
10579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (lt_foo != "") { lt_freq[lt_foo]++; }
10580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}'`
10582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # AWK program above erroneously prepends '/' to C:/dos/paths
10583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # for these hosts.
10584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
10585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
10590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
10592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibrary_names_spec=
10593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibname_spec='lib$name'
10594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysoname_spec=
10595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshrext_cmds=".so"
10596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostinstall_cmds=
10597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostuninstall_cmds=
10598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfinish_cmds=
10599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfinish_eval=
10600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshlibpath_var=
10601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshlibpath_overrides_runpath=unknown
10602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyversion_type=none
10603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydynamic_linker="$host_os ld.so"
10604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysys_lib_dlsearch_path_spec="/lib /usr/lib"
10605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_lib_prefix=unknown
10606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_into_libs=no
10607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# when you set need_version to no, make sure it does not cause -set_version
10609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# flags to be left without arguments
10610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_version=unknown
10611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $host_os in
10613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyaix3*)
10614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
10615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LIBPATH
10617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # AIX 3 has no versioning support, so we append a major version to the name.
10619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
10620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyaix[4-9]*)
10623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
10624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
10625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
10627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$host_cpu" = ia64; then
10628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # AIX 5 supports IA64
10629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_var=LD_LIBRARY_PATH
10631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
10632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # With GCC up to 2.95.x, collect2 would create an import file
10633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # for dependence libraries.  The import file would start with
10634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # the line `#! .'.  This would cause the generated library to
10635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # depend on `.', always an invalid library.  This was fixed in
10636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # development snapshots of GCC prior to 3.0.
10637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
10638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      aix4 | aix4.[01] | aix4.[01].*)
10639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   echo ' yes '
10641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	:
10643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	can_build_shared=no
10645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
10648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # soname into executable. Probably we can add versioning support to
10650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # collect2, so additional links can be useful in future.
10651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$aix_use_runtimelinking" = yes; then
10652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # instead of lib<name>.a to let people know that these are not
10654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # typical AIX shared libraries.
10655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
10657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # We preserve .a as extension for shared libraries through AIX4.2
10658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # and later when we are not doing run time linking.
10659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      library_names_spec='${libname}${release}.a $libname.a'
10660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      soname_spec='${libname}${release}${shared_ext}$major'
10661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
10662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_var=LIBPATH
10663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
10664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyamigaos*)
10667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_cpu in
10668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  powerpc)
10669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Since July 2007 AmigaOS4 officially supports .so libraries.
10670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  m68k)
10674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='$libname.ixlibrary $libname.a'
10675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybeos*)
10682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${shared_ext}'
10683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker="$host_os ld.so"
10684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LIBRARY_PATH
10685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybsdi[45]*)
10688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
10689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
10692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
10694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # the default ld.so.conf also contains /usr/contrib/lib and
10697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # libtool to hard-code these into programs
10699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycygwin* | mingw* | pw32* | cegcc*)
10702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=windows
10703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shrext_cmds=".dll"
10704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
10706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $GCC,$cc_basename in
10708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  yes,*)
10709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # gcc
10710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='$libname.dll.a'
10711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    postinstall_cmds='base_file=`basename \${file}`~
10713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      dldir=$destdir/`dirname \$dlpath`~
10715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test -d \$dldir || mkdir -p \$dldir~
10716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $install_prog $dir/$dlname \$dldir/$dlname~
10717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      chmod a+x \$dldir/$dlname~
10718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi'
10721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      dlpath=$dir/\$dldll~
10723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       $RM \$dlpath'
10724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=yes
10725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
10727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cygwin*)
10728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mingw* | cegcc*)
10734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # MinGW DLLs use traditional 'lib' prefix
10735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    pw32*)
10738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # pw32 DLLs use 'pw' prefix rather than 'lib'
10739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
10742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dynamic_linker='Win32 ld.exe'
10743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *,cl*)
10746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Native MSVC
10747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    libname_spec='$name'
10748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='${libname}.dll.lib'
10750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $build_os in
10752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mingw*)
10753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec=
10754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      lt_save_ifs=$IFS
10755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      IFS=';'
10756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      for lt_path in $LIB
10757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      do
10758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        IFS=$lt_save_ifs
10759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # Let DOS variable expansion print the short 8.3 style file name.
10760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      done
10763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      IFS=$lt_save_ifs
10764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Convert to MSYS style.
10765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cygwin*)
10768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Convert to unix form, then to dos form, then back to unix form
10769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # but this time dos style (no spaces!) so that the unix form looks
10770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # like /cygdrive/c/PROGRA~1:/cygdr...
10771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
10776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec="$LIB"
10777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # It is most probably a Windows format PATH.
10779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
10781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
10783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # FIXME: find the short name or the path components, as spaces are
10784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # common. (e.g. "Program Files" -> "PROGRA~1")
10785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
10787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    postinstall_cmds='base_file=`basename \${file}`~
10790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      dldir=$destdir/`dirname \$dlpath`~
10792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test -d \$dldir || mkdir -p \$dldir~
10793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $install_prog $dir/$dlname \$dldir/$dlname'
10794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      dlpath=$dir/\$dldll~
10796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       $RM \$dlpath'
10797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=yes
10798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dynamic_linker='Win32 link.exe'
10799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
10802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Assume MSVC wrapper
10803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dynamic_linker='Win32 ld.exe'
10805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # FIXME: first we should search . and the directory the executable is in
10808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=PATH
10809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydarwin* | rhapsody*)
10812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker="$host_os dyld"
10813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=darwin
10814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
10815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${major}$shared_ext'
10818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=yes
10819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=DYLD_LIBRARY_PATH
10820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydgux*)
10827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
10828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
10829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
10832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
10833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfreebsd* | dragonfly*)
10836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # DragonFly does not have aout.  When/if they implement a new
10837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # versioning mechanism, adjust this.
10838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -x /usr/bin/objformat; then
10839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    objformat=`/usr/bin/objformat`
10840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
10841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
10842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    freebsd[23].*) objformat=aout ;;
10843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *) objformat=elf ;;
10844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
10845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
10846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=freebsd-$objformat
10847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $version_type in
10848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    freebsd-elf*)
10849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      need_version=no
10851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      need_lib_prefix=no
10852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    freebsd-*)
10854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      need_version=yes
10856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
10857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
10859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
10860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  freebsd2.*)
10861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=yes
10862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  freebsd3.[01]* | freebsdelf3.[01]*)
10864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=yes
10865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hardcode_into_libs=yes
10866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=no
10870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hardcode_into_libs=yes
10871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) # from 4.6 on, and DragonFly
10873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=yes
10874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hardcode_into_libs=yes
10875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileygnu*)
10880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
10881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
10882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
10885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
10886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=no
10887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
10888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhaiku*)
10891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
10892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
10893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker="$host_os runtime_loader"
10895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
10897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LIBRARY_PATH
10898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=yes
10899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
10901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhpux9* | hpux10* | hpux11*)
10904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Give a soname corresponding to the major version so that dld.sl refuses to
10905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # link against other versions.
10906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=sunos
10907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
10908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_cpu in
10910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ia64*)
10911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shrext_cmds='.so'
10912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hardcode_into_libs=yes
10913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dynamic_linker="$host_os dld.so"
10914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_var=LD_LIBRARY_PATH
10915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    soname_spec='${libname}${release}${shared_ext}$major'
10918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "X$HPUX_IA64_MODE" = X32; then
10919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
10921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
10923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hppa*64*)
10926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shrext_cmds='.sl'
10927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hardcode_into_libs=yes
10928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dynamic_linker="$host_os dld.sl"
10929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    soname_spec='${libname}${release}${shared_ext}$major'
10933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
10937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shrext_cmds='.sl'
10938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dynamic_linker="$host_os dld.sl"
10939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_var=SHLIB_PATH
10940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    soname_spec='${libname}${release}${shared_ext}$major'
10943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  postinstall_cmds='chmod 555 $lib'
10947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # or fails outright, so override atomically:
10948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  install_override_mode=555
10949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinterix[3-9]*)
10952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
10953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
10954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
10957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
10959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=no
10960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
10961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
10963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyirix5* | irix6* | nonstopux*)
10964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
10965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    nonstopux*) version_type=nonstopux ;;
10966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
10967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "$lt_cv_prog_gnu_ld" = yes; then
10968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		version_type=linux # correct to gnu/linux during the next big refactor
10969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	else
10970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		version_type=irix
10971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi ;;
10972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
10974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
10975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
10976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
10978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  irix5* | nonstopux*)
10979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    libsuff= shlibsuff=
10980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
10982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $LD in # libtool.m4 will add one of these switches to LD
10983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      libsuff= shlibsuff= libmagic=32-bit;;
10985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      libsuff=32 shlibsuff=N32 libmagic=N32;;
10987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *) libsuff= shlibsuff= libmagic=never-match;;
10990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
10991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
10992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
10993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=no
10995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
10998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
10999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# No shared lib support for Linux oldld, aout, or coff.
11001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylinux*oldld* | linux*aout* | linux*coff*)
11002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker=no
11003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This must be glibc/ELF.
11006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylinux* | k*bsd*-gnu | kopensolaris*-gnu)
11007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
11008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
11009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
11010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
11012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=no
11015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Some binutils ld are patched to set DT_RUNPATH
11017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
11019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_shlibpath_overrides_runpath=no
11021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    save_LDFLAGS=$LDFLAGS
11022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    save_libdir=$libdir
11023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
11027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
11029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
11030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
11031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
11033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
11034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
11035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
11036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
11037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_shlibpath_overrides_runpath=yes
11039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
11042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
11043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LDFLAGS=$save_LDFLAGS
11044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    libdir=$save_libdir
11045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # This implies no fast_install, which is unacceptable.
11051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Some rework will be needed to allow for fast_install
11052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # before this can be enabled.
11053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
11054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Add ABI-specific directories to the system library path.
11056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Append ld.so.conf contents to the search path
11059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -f /etc/ld.so.conf; then
11060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # We used to test for /lib/ld.so.1 and disable shared libraries on
11066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # powerpc, because MkLinux only supported shared libraries with the
11067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # GNU dynamic linker.  Since this was broken with cross compilers,
11068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # most powerpc-linux boxes support dynamic linking these days and
11069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # people can always --disable-shared, the test was removed, and we
11070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # assume the GNU/Linux dynamic linker is in use.
11071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker='GNU/Linux ld.so'
11072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileynetbsd*)
11075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=sunos
11076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
11077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
11078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dynamic_linker='NetBSD (a.out) ld.so'
11082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
11083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    soname_spec='${libname}${release}${shared_ext}$major'
11085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    dynamic_linker='NetBSD ld.elf_so'
11086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=yes
11089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
11090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileynewsos6)
11093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
11094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=yes
11097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*nto* | *qnx*)
11100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=qnx
11101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
11102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
11103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
11105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=no
11107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
11108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker='ldqnx.so'
11109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyopenbsd*)
11112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=sunos
11113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_dlsearch_path_spec="/usr/lib"
11114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
11115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
11117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)				need_version=no  ;;
11119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
11120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
11125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      openbsd2.[89] | openbsd2.[89].*)
11126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	shlibpath_overrides_runpath=no
11127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
11128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *)
11129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	shlibpath_overrides_runpath=yes
11130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
11131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
11132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
11133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_overrides_runpath=yes
11134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyos2*)
11138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  libname_spec='$name'
11139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shrext_cmds=".dll"
11140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
11141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='$libname${shared_ext} $libname.a'
11142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker='OS/2 ld.exe'
11143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LIBPATH
11144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyosf3* | osf4* | osf5*)
11147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=osf
11148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
11149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
11150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
11151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrdos*)
11158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker=no
11159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysolaris*)
11162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
11163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
11164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
11165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
11167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=yes
11169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
11170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # ldd complains unless libraries are executable
11171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  postinstall_cmds='chmod +x $lib'
11172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysunos4*)
11175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=sunos
11176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=yes
11180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$with_gnu_ld" = yes; then
11181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    need_lib_prefix=no
11182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=yes
11184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysv4 | sysv4.3*)
11187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
11188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
11190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_vendor in
11192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sni)
11193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      shlibpath_overrides_runpath=no
11194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      need_lib_prefix=no
11195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      runpath_var=LD_RUN_PATH
11196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
11197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    siemens)
11198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      need_lib_prefix=no
11199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
11200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    motorola)
11201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      need_lib_prefix=no
11202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      need_version=no
11203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      shlibpath_overrides_runpath=no
11204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
11206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
11207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysv4*MP*)
11210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -d /usr/nec ;then
11211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    version_type=linux # correct to gnu/linux during the next big refactor
11212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    soname_spec='$libname${shared_ext}.$major'
11214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    shlibpath_var=LD_LIBRARY_PATH
11215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=freebsd-elf
11220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
11221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
11222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
11224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=yes
11226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
11227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$with_gnu_ld" = yes; then
11228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
11230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $host_os in
11232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sco3.2v5*)
11233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
11235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
11236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_dlsearch_path_spec='/usr/lib'
11238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytpf*)
11241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
11243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_lib_prefix=no
11244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  need_version=no
11245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_overrides_runpath=no
11248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_into_libs=yes
11249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyuts4*)
11252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  version_type=linux # correct to gnu/linux during the next big refactor
11253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  soname_spec='${libname}${release}${shared_ext}$major'
11255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shlibpath_var=LD_LIBRARY_PATH
11256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
11259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dynamic_linker=no
11260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;;
11261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
11262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$dynamic_linker" >&6; }
11264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "$dynamic_linker" = no && can_build_shared=no
11265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$GCC" = yes; then
11268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_action=
11372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$hardcode_libdir_flag_spec" ||
11373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test -n "$runpath_var" ||
11374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test "X$hardcode_automatic" = "Xyes" ; then
11375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # We can hardcode non-existent directories.
11377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$hardcode_direct" != no &&
11378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # have to relink, otherwise we might link with an installed library
11380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # when we should be linking with a yet-to-be-installed one
11381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     test "$hardcode_minus_L" != no; then
11383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Linking always hardcodes the temporary library directory.
11384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hardcode_action=relink
11385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
11386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    hardcode_action=immediate
11388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # We cannot hardcode anything, or else we can only hardcode existing
11391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # directories.
11392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  hardcode_action=unsupported
11393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$hardcode_action" >&6; }
11396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$hardcode_action" = relink ||
11398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test "$inherit_rpath" = yes; then
11399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Fast installation is not supported
11400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_fast_install=no
11401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelif test "$shlibpath_overrides_runpath" = yes ||
11402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     test "$enable_shared" = no; then
11403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Fast installation is not necessary
11404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_fast_install=needless
11405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$enable_dlopen" != xyes; then
11413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_dlopen=unknown
11414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_dlopen_self=unknown
11415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  enable_dlopen_self_static=unknown
11416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen=no
11418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen_libs=
11419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
11421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  beos*)
11422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen="load_add_on"
11423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen_libs=
11424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen_self=yes
11425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  mingw* | pw32* | cegcc*)
11428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen="LoadLibrary"
11429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen_libs=
11430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cygwin*)
11433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen="dlopen"
11434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen_libs=
11435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  darwin*)
11438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # if libdl is installed we need to link against it
11439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for dlopen in -ldl... " >&6; }
11441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_lib_dl_dlopen+:} false; then :
11442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
11443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_check_lib_save_LIBS=$LIBS
11445e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS="-ldl  $LIBS"
11446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
11448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
11450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
11451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
11452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
11453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
11454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar dlopen ();
11456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
11457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
11458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
11459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn dlopen ();
11460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
11461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
11462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
11463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
11464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
11465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_dl_dlopen=yes
11466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_dl_dlopen=no
11468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
11470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
11471e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_check_lib_save_LIBS
11472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen="dyld"
11480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen_libs=
11481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen_self=yes
11482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
11488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_shl_load" = xyes; then :
11490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen="shl_load"
11491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for shl_load in -ldld... " >&6; }
11494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_lib_dld_shl_load+:} false; then :
11495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
11496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_check_lib_save_LIBS=$LIBS
11498e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS="-ldld  $LIBS"
11499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
11501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
11503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
11504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
11505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
11506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
11507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar shl_load ();
11509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
11510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
11511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
11512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn shl_load ();
11513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
11514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
11515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
11516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
11517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
11518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_dld_shl_load=yes
11519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_dld_shl_load=no
11521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
11523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
11524e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_check_lib_save_LIBS
11525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_dlopen" = xyes; then :
11533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen="dlopen"
11534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for dlopen in -ldl... " >&6; }
11537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_lib_dl_dlopen+:} false; then :
11538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
11539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_check_lib_save_LIBS=$LIBS
11541e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS="-ldl  $LIBS"
11542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
11544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
11546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
11547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
11548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
11549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
11550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar dlopen ();
11552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
11553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
11554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
11555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn dlopen ();
11556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
11557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
11558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
11559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
11560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
11561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_dl_dlopen=yes
11562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_dl_dlopen=no
11564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
11566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
11567e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_check_lib_save_LIBS
11568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_lib_svld_dlopen+:} false; then :
11577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
11578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_check_lib_save_LIBS=$LIBS
11580e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS="-lsvld  $LIBS"
11581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
11583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
11585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
11586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
11587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
11588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
11589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar dlopen ();
11591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
11592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
11593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
11594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn dlopen ();
11595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
11596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
11597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
11598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
11599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
11600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_svld_dlopen=yes
11601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_svld_dlopen=no
11603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
11605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
11606e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_check_lib_save_LIBS
11607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for dld_link in -ldld... " >&6; }
11615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_lib_dld_dld_link+:} false; then :
11616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
11617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_check_lib_save_LIBS=$LIBS
11619e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS="-ldld  $LIBS"
11620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
11622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
11624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
11625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
11626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
11627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
11628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar dld_link ();
11630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
11631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
11632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
11633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn dld_link ();
11634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
11635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
11636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
11637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
11638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
11639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_dld_dld_link=yes
11640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_lib_dld_dld_link=no
11642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
11644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
11645e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_check_lib_save_LIBS
11646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
11670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "x$lt_cv_dlopen" != xno; then
11672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    enable_dlopen=yes
11673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
11674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    enable_dlopen=no
11675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $lt_cv_dlopen in
11678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  dlopen)
11679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    save_CPPFLAGS="$CPPFLAGS"
11680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    save_LDFLAGS="$LDFLAGS"
11683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    save_LIBS="$LIBS"
11686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="$lt_cv_dlopen_libs $LIBS"
11687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_dlopen_self+:} false; then :
11691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
11692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  	  if test "$cross_compiling" = yes; then :
11694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen_self=cross
11695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_status=$lt_dlunknown
11698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat > conftest.$ac_ext <<_LT_EOF
11699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#line $LINENO "configure"
11700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include "confdefs.h"
11701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if HAVE_DLFCN_H
11703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <dlfcn.h>
11704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdio.h>
11707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef RTLD_GLOBAL
11709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  define LT_DLGLOBAL		RTLD_GLOBAL
11710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
11711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  ifdef DL_GLOBAL
11712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    define LT_DLGLOBAL		DL_GLOBAL
11713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  else
11714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    define LT_DLGLOBAL		0
11715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  endif
11716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   find out it does not work in some platform. */
11720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifndef LT_DLLAZY_OR_NOW
11721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  ifdef RTLD_LAZY
11722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  else
11724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    ifdef DL_LAZY
11725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      define LT_DLLAZY_OR_NOW		DL_LAZY
11726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    else
11727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      ifdef RTLD_NOW
11728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      else
11730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#        ifdef DL_NOW
11731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#          define LT_DLLAZY_OR_NOW	DL_NOW
11732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#        else
11733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#          define LT_DLLAZY_OR_NOW	0
11734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#        endif
11735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      endif
11736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    endif
11737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  endif
11738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* When -fvisbility=hidden is used, assume the code has been annotated
11741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   correspondingly for the symbols needed.  */
11742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint fnord () __attribute__((visibility("default")));
11744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint fnord () { return 42; }
11747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint main ()
11748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
11749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  int status = $lt_dlunknown;
11751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (self)
11753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    {
11754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
11756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        {
11757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          else puts (dlerror ());
11759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	}
11760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      /* dlclose (self); */
11761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    }
11762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
11763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    puts (dlerror ());
11764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return status;
11766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
11767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
11768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $ac_link) 2>&5
11770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
11771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    (./conftest; exit; ) >&5 2>/dev/null
11774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_status=$?
11775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case x$lt_status in
11776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
11780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else :
11781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # compilation failed
11782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen_self=no
11783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -fr conftest*
11786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_dlopen_self" >&6; }
11791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "x$lt_cv_dlopen_self" = xyes; then
11793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${lt_cv_dlopen_self_static+:} false; then :
11797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
11798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  	  if test "$cross_compiling" = yes; then :
11800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_cv_dlopen_self_static=cross
11801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  lt_status=$lt_dlunknown
11804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat > conftest.$ac_ext <<_LT_EOF
11805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#line $LINENO "configure"
11806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include "confdefs.h"
11807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if HAVE_DLFCN_H
11809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <dlfcn.h>
11810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdio.h>
11813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef RTLD_GLOBAL
11815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  define LT_DLGLOBAL		RTLD_GLOBAL
11816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
11817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  ifdef DL_GLOBAL
11818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    define LT_DLGLOBAL		DL_GLOBAL
11819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  else
11820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    define LT_DLGLOBAL		0
11821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  endif
11822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   find out it does not work in some platform. */
11826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifndef LT_DLLAZY_OR_NOW
11827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  ifdef RTLD_LAZY
11828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  else
11830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    ifdef DL_LAZY
11831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      define LT_DLLAZY_OR_NOW		DL_LAZY
11832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    else
11833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      ifdef RTLD_NOW
11834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      else
11836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#        ifdef DL_NOW
11837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#          define LT_DLLAZY_OR_NOW	DL_NOW
11838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#        else
11839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#          define LT_DLLAZY_OR_NOW	0
11840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#        endif
11841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      endif
11842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#    endif
11843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#  endif
11844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* When -fvisbility=hidden is used, assume the code has been annotated
11847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   correspondingly for the symbols needed.  */
11848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint fnord () __attribute__((visibility("default")));
11850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
11851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint fnord () { return 42; }
11853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint main ()
11854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
11855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  int status = $lt_dlunknown;
11857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (self)
11859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    {
11860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
11862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        {
11863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          else puts (dlerror ());
11865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	}
11866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      /* dlclose (self); */
11867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    }
11868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
11869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    puts (dlerror ());
11870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return status;
11872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
11873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
11874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (eval $ac_link) 2>&5
11876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_status=$?
11877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    (./conftest; exit; ) >&5 2>/dev/null
11880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_status=$?
11881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case x$lt_status in
11882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
11886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else :
11887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # compilation failed
11888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    lt_cv_dlopen_self_static=no
11889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
11890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -fr conftest*
11892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$lt_cv_dlopen_self_static" >&6; }
11897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
11898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CPPFLAGS="$save_CPPFLAGS"
11900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LDFLAGS="$save_LDFLAGS"
11901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="$save_LIBS"
11902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
11904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $lt_cv_dlopen_self in
11906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) enable_dlopen_self=unknown ;;
11908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
11909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $lt_cv_dlopen_self_static in
11911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) enable_dlopen_self_static=unknown ;;
11913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
11914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystriplib=
11933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_striplib=
11934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
11941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
11942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# FIXME - insert some real tests, host_os isn't really good enough
11943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
11944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  darwin*)
11945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$STRIP" ; then
11946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      striplib="$STRIP -x"
11947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      old_striplib="$STRIP -S"
11948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
11950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
11951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
11953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
11954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
11956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
11958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
11960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
11961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Report which library types will actually be built
11974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$can_build_shared" >&6; }
11978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether to build shared libraries... " >&6; }
11981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$can_build_shared" = "no" && enable_shared=no
11982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # On AIX, shared libraries and static libraries use the same namespace, and
11984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # are all built from PIC.
11985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
11986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  aix3*)
11987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test "$enable_shared" = yes && enable_static=no
11988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "$RANLIB"; then
11989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      postinstall_cmds='$RANLIB $lib'
11991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
11992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
11994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  aix[4-9]*)
11995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test "$enable_shared" = yes && enable_static=no
11997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
11998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
11999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
12000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$enable_shared" >&6; }
12002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether to build static libraries... " >&6; }
12005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Make sure either enable_shared or enable_static is yes.
12006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$enable_shared" = yes || enable_static=yes
12007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$enable_static" >&6; }
12009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
12015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
12016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
12019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12020e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC="$lt_save_CC"
12021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ac_config_commands="$ac_config_commands libtool"
12037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Only expand once:
12042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "$enable_libevent_regress" = "yes"; then
12048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_REGRESS_TRUE=
12049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_REGRESS_FALSE='#'
12050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_REGRESS_TRUE='#'
12052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_REGRESS_FALSE=
12053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for library containing inet_ntoa... " >&6; }
12058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_inet_ntoa+:} false; then :
12059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
12060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_func_search_save_LIBS=$LIBS
12062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
12066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
12067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
12068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
12069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
12070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar inet_ntoa ();
12072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn inet_ntoa ();
12076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_lib in '' nsl; do
12081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_lib"; then
12082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res="none required"
12083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
12084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res=-l$ac_lib
12085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
12087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_try_link "$LINENO"; then :
12088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_inet_ntoa=$ac_res
12089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
12091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext
12092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_search_inet_ntoa+:} false; then :
12093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break
12094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_inet_ntoa+:} false; then :
12097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_inet_ntoa=no
12100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm conftest.$ac_ext
12102e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_func_search_save_LIBS
12103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_search_inet_ntoa" >&6; }
12106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_res=$ac_cv_search_inet_ntoa
12107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_res" != no; then :
12108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for library containing socket... " >&6; }
12114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_socket+:} false; then :
12115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
12116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_func_search_save_LIBS=$LIBS
12118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
12122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
12123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
12124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
12125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
12126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar socket ();
12128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn socket ();
12132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_lib in '' socket; do
12137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_lib"; then
12138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res="none required"
12139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
12140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res=-l$ac_lib
12141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
12143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_try_link "$LINENO"; then :
12144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_socket=$ac_res
12145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
12147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext
12148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_search_socket+:} false; then :
12149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break
12150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_socket+:} false; then :
12153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_socket=no
12156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm conftest.$ac_ext
12158e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_func_search_save_LIBS
12159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_search_socket" >&6; }
12162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_res=$ac_cv_search_socket
12163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_res" != no; then :
12164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for library containing inet_aton... " >&6; }
12170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_inet_aton+:} false; then :
12171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
12172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_func_search_save_LIBS=$LIBS
12174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
12178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
12179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
12180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
12181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
12182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar inet_aton ();
12184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn inet_aton ();
12188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_lib in '' resolv; do
12193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_lib"; then
12194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res="none required"
12195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
12196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res=-l$ac_lib
12197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
12199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_try_link "$LINENO"; then :
12200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_inet_aton=$ac_res
12201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
12203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext
12204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_search_inet_aton+:} false; then :
12205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break
12206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_inet_aton+:} false; then :
12209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_inet_aton=no
12212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm conftest.$ac_ext
12214e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_func_search_save_LIBS
12215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_search_inet_aton" >&6; }
12218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_res=$ac_cv_search_inet_aton
12219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_res" != no; then :
12220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for library containing clock_gettime... " >&6; }
12226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_clock_gettime+:} false; then :
12227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
12228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_func_search_save_LIBS=$LIBS
12230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
12234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
12235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
12236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
12237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
12238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar clock_gettime ();
12240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn clock_gettime ();
12244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_lib in '' rt; do
12249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_lib"; then
12250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res="none required"
12251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
12252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res=-l$ac_lib
12253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
12255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_try_link "$LINENO"; then :
12256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_clock_gettime=$ac_res
12257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
12259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext
12260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_search_clock_gettime+:} false; then :
12261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break
12262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_clock_gettime+:} false; then :
12265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_clock_gettime=no
12268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm conftest.$ac_ext
12270e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_func_search_save_LIBS
12271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_search_clock_gettime" >&6; }
12274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_res=$ac_cv_search_clock_gettime
12275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_res" != no; then :
12276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for library containing sendfile... " >&6; }
12282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_sendfile+:} false; then :
12283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
12284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_func_search_save_LIBS=$LIBS
12286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
12290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
12291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
12292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
12293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
12294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar sendfile ();
12296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn sendfile ();
12300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_lib in '' sendfile; do
12305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_lib"; then
12306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res="none required"
12307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
12308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res=-l$ac_lib
12309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
12311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_try_link "$LINENO"; then :
12312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_sendfile=$ac_res
12313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
12315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext
12316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_search_sendfile+:} false; then :
12317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break
12318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_sendfile+:} false; then :
12321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_sendfile=no
12324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm conftest.$ac_ext
12326e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_func_search_save_LIBS
12327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_search_sendfile" >&6; }
12330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_res=$ac_cv_search_sendfile
12331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_res" != no; then :
12332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for WIN32... " >&6; }
12339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifndef WIN32
12347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydie horribly
12348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
12355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
12357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
12360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for CYGWIN... " >&6; }
12365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifndef __CYGWIN__
12373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydie horribly
12374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
12381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
12383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
12386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_header in zlib.h
12390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
12391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_zlib_h" = xyes; then :
12393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
12394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_ZLIB_H 1
12395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_zlib_h" = "xyes"; then
12403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysave_LIBS="$LIBS"
12404e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=""
12405e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyZLIB_LIBS=""
12406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhave_zlib=no
12407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for library containing inflateEnd... " >&6; }
12409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_inflateEnd+:} false; then :
12410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
12411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_func_search_save_LIBS=$LIBS
12413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
12417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
12418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
12419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
12420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
12421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar inflateEnd ();
12423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn inflateEnd ();
12427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_lib in '' z; do
12432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_lib"; then
12433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res="none required"
12434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
12435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res=-l$ac_lib
12436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
12438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_try_link "$LINENO"; then :
12439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_inflateEnd=$ac_res
12440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
12442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext
12443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_search_inflateEnd+:} false; then :
12444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break
12445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_inflateEnd+:} false; then :
12448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_inflateEnd=no
12451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm conftest.$ac_ext
12453e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_func_search_save_LIBS
12454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_search_inflateEnd" >&6; }
12457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_res=$ac_cv_search_inflateEnd
12458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_res" != no; then :
12459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_zlib=yes
12461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ZLIB_LIBS="$LIBS"
12462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12467e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS="$save_LIBS"
12468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "$have_zlib" = "yes"; then
12471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ZLIB_REGRESS_TRUE=
12472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ZLIB_REGRESS_FALSE='#'
12473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ZLIB_REGRESS_TRUE='#'
12475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ZLIB_REGRESS_FALSE=
12476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$bwin32" = true; then
12480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EV_LIB_WS32=-lws2_32
12481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EV_LIB_GDI=-lgdi32
12482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EV_LIB_WS32=
12484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EV_LIB_GDI=
12485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_header in openssl/bio.h
12491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
12492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
12495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_OPENSSL_BIO_H 1
12496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$enable_openssl" = "yes"; then
12504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysave_LIBS="$LIBS"
12505e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=""
12506e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOPENSSL_LIBS=""
12507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhave_openssl=no
12508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for library containing SSL_new... " >&6; }
12510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_SSL_new+:} false; then :
12511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
12512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_func_search_save_LIBS=$LIBS
12514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
12518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
12519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
12520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
12521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
12522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar SSL_new ();
12524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn SSL_new ();
12528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_lib in '' ssl; do
12533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_lib"; then
12534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res="none required"
12535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
12536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res=-l$ac_lib
12537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
12539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_try_link "$LINENO"; then :
12540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_SSL_new=$ac_res
12541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
12543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext
12544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_search_SSL_new+:} false; then :
12545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break
12546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_SSL_new+:} false; then :
12549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_SSL_new=no
12552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm conftest.$ac_ext
12554e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_func_search_save_LIBS
12555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_search_SSL_new" >&6; }
12558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_res=$ac_cv_search_SSL_new
12559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_res" != no; then :
12560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_openssl=yes
12562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_openssl=no
12568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12570e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS="$save_LIBS"
12571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for ANSI C header files... " >&6; }
12576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_header_stdc+:} false; then :
12577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
12578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdlib.h>
12582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdarg.h>
12583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <string.h>
12584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <float.h>
12585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
12595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=yes
12596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=no
12598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_header_stdc = yes; then
12602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <string.h>
12606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "memchr" >/dev/null 2>&1; then :
12610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=no
12613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
12615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_header_stdc = yes; then
12619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdlib.h>
12623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "free" >/dev/null 2>&1; then :
12627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=no
12630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
12632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_header_stdc = yes; then
12636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$cross_compiling" = yes; then :
12638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :
12639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ctype.h>
12643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdlib.h>
12644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if ((' ' & 0x0FF) == 0x020)
12645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
12648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define ISLOWER(c) \
12649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		   (('a' <= (c) && (c) <= 'i') \
12650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		     || ('j' <= (c) && (c) <= 'r') \
12651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		     || ('s' <= (c) && (c) <= 'z'))
12652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  int i;
12660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for (i = 0; i < 256; i++)
12661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if (XOR (islower (i), ISLOWER (i))
12662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	|| toupper (i) != TOUPPER (i))
12663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      return 2;
12664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_run "$LINENO"; then :
12668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_stdc=no
12671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  conftest.$ac_objext conftest.beam conftest.$ac_ext
12674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_header_stdc" >&6; }
12680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_header_stdc = yes; then
12681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
12687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
12688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
12692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_header in sys/stat.h
12700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
12701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_stat_h" = xyes; then :
12703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
12704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_SYS_STAT_H 1
12705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_header in sys/sysctl.h
12712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
12713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_PARAM_H
12715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/param.h>
12716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
12719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
12721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_SYS_SYSCTL_H 1
12722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/queue.h>
12735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef TAILQ_FOREACH
12736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley yes
12737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "yes" >/dev/null 2>&1; then :
12742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
12744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
12750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
12753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_time_h" = "xyes"; then
12757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/time.h>
12763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef timeradd
12764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley yes
12765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "yes" >/dev/null 2>&1; then :
12770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
12775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
12778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
12781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_time_h" = "xyes"; then
12785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/time.h>
12791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef timercmp
12792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley yes
12793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "yes" >/dev/null 2>&1; then :
12798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
12803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
12806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
12809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_time_h" = "xyes"; then
12813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/time.h>
12819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef timerclear
12820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley yes
12821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "yes" >/dev/null 2>&1; then :
12826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
12831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
12834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
12837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_time_h" = "xyes"; then
12841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/time.h>
12847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef timerisset
12848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley yes
12849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "yes" >/dev/null 2>&1; then :
12854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
12859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
12862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
12865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     #include <sys/sysctl.h>
12871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
12873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_have_decl=1
12875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_have_decl=0
12877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
12880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_DECL_CTL_KERN $ac_have_decl
12881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     #include <sys/sysctl.h>
12884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
12886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_have_decl=1
12888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_have_decl=0
12890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
12893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_DECL_KERN_RANDOM $ac_have_decl
12894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     #include <sys/sysctl.h>
12897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
12899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_have_decl=1
12901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_have_decl=0
12903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
12906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_DECL_RANDOM_UUID $ac_have_decl
12907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	     #include <sys/sysctl.h>
12910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
12912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_have_decl=1
12914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_have_decl=0
12916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
12919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_DECL_KERN_ARND $ac_have_decl
12920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test x$bwin32 = xtrue; then
12925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_WIN32_TRUE=
12926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_WIN32_FALSE='#'
12927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_WIN32_TRUE='#'
12929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_WIN32_FALSE=
12930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test x$cygwin = xtrue; then
12933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_CYGWIN_TRUE=
12934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_CYGWIN_FALSE='#'
12935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_CYGWIN_TRUE='#'
12937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_CYGWIN_FALSE=
12938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_WITH_NO_UNDEFINED_TRUE=
12942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_WITH_NO_UNDEFINED_FALSE='#'
12943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_WITH_NO_UNDEFINED_TRUE='#'
12945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  BUILD_WITH_NO_UNDEFINED_FALSE=
12946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x$bwin32 = xtrue; then
12950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for library containing getservbyname... " >&6; }
12952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_getservbyname+:} false; then :
12953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
12954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_func_search_save_LIBS=$LIBS
12956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
12958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
12960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
12961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
12962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
12963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
12964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
12965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar getservbyname ();
12966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
12967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
12968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
12969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn getservbyname ();
12970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
12971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
12972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
12973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
12974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_lib in '' ws2_32; do
12975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_lib"; then
12976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res="none required"
12977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
12978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_res=-l$ac_lib
12979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
12981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_try_link "$LINENO"; then :
12982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_getservbyname=$ac_res
12983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
12985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext
12986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ${ac_cv_search_getservbyname+:} false; then :
12987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  break
12988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
12990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_search_getservbyname+:} false; then :
12991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
12992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
12993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_search_getservbyname=no
12994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm conftest.$ac_ext
12996e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBS=$ac_func_search_save_LIBS
12997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
12998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_search_getservbyname" >&6; }
13000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_res=$ac_cv_search_getservbyname
13001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_res" != no; then :
13002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_c_const+:} false; then :
13011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
13012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
13017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
13018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
13019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifndef __cplusplus
13021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  /* Ultrix mips cc rejects this sort of thing.  */
13022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  typedef int charset[2];
13023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  const charset cs = { 0, 0 };
13024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  /* SunOS 4.1.1 cc rejects this.  */
13025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  char const *const *pcpcc;
13026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  char **ppc;
13027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  /* NEC SVR4.0.2 mips cc rejects this.  */
13028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  struct point {int x, y;};
13029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  static struct point const zero = {0,0};
13030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  /* AIX XL C 1.02.0.0 rejects this.
13031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     It does not let you subtract one const X* pointer from another in
13032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     an arm of an if-expression whose if-part is not a constant
13033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     expression */
13034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  const char *g = "string";
13035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  pcpcc = &g + (g ? g-g : 0);
13036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  /* HPUX 7.0 cc rejects these. */
13037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ++pcpcc;
13038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ppc = (char**) pcpcc;
13039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  pcpcc = (char const *const *) ppc;
13040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    char tx;
13042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    char *t = &tx;
13043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    char const *s = 0 ? (char *) 0 : (char const *) 0;
13044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *t++ = 0;
13046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if (s) return 0;
13047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
13048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    int x[] = {25, 17};
13050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    const int *foo = &x[0];
13051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ++foo;
13052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
13053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    typedef const int *iptr;
13055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    iptr p = 0;
13056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ++p;
13057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
13058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    struct s { int j; const int *ap[3]; } bx;
13061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    struct s *b = &bx; b->j = 5;
13062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
13063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    const int foo = 10;
13065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if (!foo) return 0;
13066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
13067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return !cs[0] && !zero.x;
13068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
13071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
13072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
13073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
13075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_c_const=yes
13076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_c_const=no
13078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_c_const" >&6; }
13083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_c_const = no; then
13084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define const /**/" >>confdefs.h
13086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for inline... " >&6; }
13091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_c_inline+:} false; then :
13092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
13093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_c_inline=no
13095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_kw in inline __inline__ __inline; do
13096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifndef __cplusplus
13099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytypedef int foo_t;
13100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystatic $ac_kw foo_t static_foo () {return 0; }
13101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$ac_kw foo_t foo () {return 0; }
13102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
13106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_c_inline=$ac_kw
13107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$ac_cv_c_inline" != no && break
13110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_c_inline" >&6; }
13115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $ac_cv_c_inline in
13117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  inline | yes) ;;
13118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
13119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_cv_c_inline in
13120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      no) ac_val=;;
13121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) ac_val=$ac_cv_c_inline;;
13122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
13123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat >>confdefs.h <<_ACEOF
13124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifndef __cplusplus
13125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define inline $ac_val
13126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
13129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
13130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_header_time+:} false; then :
13134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
13135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
13139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/time.h>
13140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <time.h>
13141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
13143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
13144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
13145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ((struct tm *) 0)
13146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn 0;
13147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
13148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
13149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
13150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
13152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_time=yes
13153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_header_time=no
13155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_header_time" >&6; }
13160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test $ac_cv_header_time = yes; then
13161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
13169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
13173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
13180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
13181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
13185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_func in umask
13192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
13193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_umask" = xyes; then :
13195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
13196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_UMASK 1
13197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for getaddrinfo... " >&6; }
13205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${libevent_cv_getaddrinfo+:} false; then :
13206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
13207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		#ifdef HAVE_NETDB_H
13212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		#include <netdb.h>
13213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		#endif
13214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
13216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
13217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
13218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		getaddrinfo;
13220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
13223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
13224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
13225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
13227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  libevent_cv_getaddrinfo=yes
13228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  libevent_cv_getaddrinfo=no
13230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
13233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
13234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$libevent_cv_getaddrinfo" >&6; }
13238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$libevent_cv_getaddrinfo" = "yes" ; then
13239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_func in getservbyname
13245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
13246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_getservbyname" = xyes; then :
13248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
13249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_GETSERVBYNAME 1
13250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Check for gethostbyname_r in all its glorious incompatible versions.
13256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#   (This is cut-and-pasted from Tor, which based its logic on
13257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#   Python's configure.in.)
13258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  OLD_CFLAGS=$CFLAGS
13266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netdb.h>
13271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
13273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
13274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
13275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    char *cp1, *cp2;
13277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    struct hostent *h1, *h2;
13278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    int i1, i2;
13279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
13282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
13283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
13284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
13286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "6" >&6; }
13294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netdb.h>
13301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
13303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
13304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
13305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      char *cp1, *cp2;
13307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      struct hostent *h1;
13308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      int i1, i2;
13309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
13312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
13313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
13314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
13316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "5" >&6; }
13324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netdb.h>
13331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
13333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
13334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
13335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       char *cp1;
13337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       struct hostent *h1;
13338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       struct hostent_data hd;
13339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       (void) gethostbyname_r(cp1,h1,&hd);
13340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
13342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
13343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
13344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
13346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "3" >&6; }
13354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "0" >&6; }
13359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley CFLAGS=$OLD_CFLAGS
13369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The cast to long int works around a bug in the HP C Compiler
13376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This bug is HP SR number 8606223364.
13379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking size of long... " >&6; }
13381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_sizeof_long+:} false; then :
13382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
13383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_cv_type_long" = yes; then
13388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "cannot compute sizeof (long)
13391e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
13392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
13393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_cv_sizeof_long=0
13394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
13395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_sizeof_long" >&6; }
13400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define SIZEOF_LONG $ac_cv_sizeof_long
13405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _GNU_SOURCE
13415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <fcntl.h>
13416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef F_SETFD
13417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyyes
13418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $EGREP "yes" >/dev/null 2>&1; then :
13423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_SETFD 1" >>confdefs.h
13425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
13428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
13431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conftest*
13433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneedsignal=no
13436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhaveselect=no
13437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x$bwin32 != xtrue; then
13438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_func in select
13439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
13440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_select" = xyes; then :
13442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
13443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_SELECT 1
13444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley haveselect=yes
13446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "x$haveselect" = "xyes" ; then
13450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley 	needsignal=yes
13451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
13452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "x$haveselect" = "xyes"; then
13454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SELECT_BACKEND_TRUE=
13455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SELECT_BACKEND_FALSE='#'
13456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SELECT_BACKEND_TRUE='#'
13458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SELECT_BACKEND_FALSE=
13459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhavepoll=no
13463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_func in poll
13464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
13465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_poll" = xyes; then :
13467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
13468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_POLL 1
13469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley havepoll=yes
13471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$havepoll" = "xyes" ; then
13475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	needsignal=yes
13476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "x$havepoll" = "xyes"; then
13478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  POLL_BACKEND_TRUE=
13479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  POLL_BACKEND_FALSE='#'
13480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  POLL_BACKEND_TRUE='#'
13482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  POLL_BACKEND_FALSE=
13483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhavedevpoll=no
13487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  DEVPOLL_BACKEND_TRUE=
13494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  DEVPOLL_BACKEND_FALSE='#'
13495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  DEVPOLL_BACKEND_TRUE='#'
13497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  DEVPOLL_BACKEND_FALSE=
13498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhavekqueue=no
13502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_event_h" = "xyes"; then
13503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	for ac_func in kqueue
13504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
13505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_kqueue" = xyes; then :
13507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
13508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_KQUEUE 1
13509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley havekqueue=yes
13511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "x$havekqueue" = "xyes" ; then
13515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for working kqueue... " >&6; }
13517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		if test "$cross_compiling" = yes; then :
13518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
13520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
13524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/time.h>
13525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/event.h>
13526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdio.h>
13527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <unistd.h>
13528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <fcntl.h>
13529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
13531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain(int argc, char **argv)
13532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
13533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	int kq;
13534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	int n;
13535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	int fd[2];
13536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	struct kevent ev;
13537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	struct timespec ts;
13538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	char buf[8000];
13539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if (pipe(fd) == -1)
13541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		exit(1);
13542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		exit(1);
13544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		;
13547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if ((kq = kqueue()) == -1)
13549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		exit(1);
13550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	memset(&ev, 0, sizeof(ev));
13552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ev.ident = fd[1];
13553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ev.filter = EVFILT_WRITE;
13554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ev.flags = EV_ADD | EV_ENABLE;
13555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	n = kevent(kq, &ev, 1, NULL, 0, NULL);
13556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if (n == -1)
13557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		exit(1);
13558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	read(fd[0], buf, sizeof(buf));
13560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ts.tv_sec = 0;
13562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	ts.tv_nsec = 0;
13563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	n = kevent(kq, NULL, 0, &ev, 1, &ts);
13564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if (n == -1 || n == 0)
13565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		exit(1);
13566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	exit(0);
13568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
13569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_run "$LINENO"; then :
13571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
13573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    havekqueue=yes
13577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
13581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  conftest.$ac_objext conftest.beam conftest.$ac_ext
13584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
13587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "x$havekqueue" = "xyes"; then
13589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  KQUEUE_BACKEND_TRUE=
13590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  KQUEUE_BACKEND_FALSE='#'
13591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  KQUEUE_BACKEND_TRUE='#'
13593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  KQUEUE_BACKEND_FALSE=
13594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhaveepollsyscall=no
13598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhaveepoll=no
13599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_func in epoll_ctl
13600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
13601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_epoll_ctl" = xyes; then :
13603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
13604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_EPOLL_CTL 1
13605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley haveepoll=yes
13607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$haveepoll" = "xyes" ; then
13611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	needsignal=yes
13615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test "x$haveepoll" = "xno" ; then
13618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for epoll system call... " >&6; }
13620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		if test "$cross_compiling" = yes; then :
13621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
13623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
13626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdint.h>
13627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/param.h>
13628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
13629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/syscall.h>
13630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/epoll.h>
13631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <unistd.h>
13632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
13634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyepoll_create(int size)
13635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
13636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	return (syscall(__NR_epoll_create, size));
13637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
13638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
13640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain(int argc, char **argv)
13641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
13642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	int epfd;
13643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	epfd = epoll_create(256);
13645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	exit (epfd == -1 ? 1 : 0);
13646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
13647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_run "$LINENO"; then :
13649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
13651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    needsignal=yes
13655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    have_epoll=yes
13656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case " $LIBOBJS " in
13657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *" epoll_sub.$ac_objext "* ) ;;
13658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley ;;
13660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
13661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
13666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  conftest.$ac_objext conftest.beam conftest.$ac_ext
13669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
13672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "x$haveepoll" = "xyes"; then
13674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EPOLL_BACKEND_TRUE=
13675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EPOLL_BACKEND_FALSE='#'
13676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EPOLL_BACKEND_TRUE='#'
13678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EPOLL_BACKEND_FALSE=
13679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhaveeventports=no
13683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_func in port_create
13684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo :
13685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_func_port_create" = xyes; then :
13687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat >>confdefs.h <<_ACEOF
13688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_PORT_CREATE 1
13689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley haveeventports=yes
13691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
13693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$haveeventports" = "xyes" ; then
13695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	needsignal=yes
13699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "x$haveeventports" = "xyes"; then
13701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EVPORT_BACKEND_TRUE=
13702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EVPORT_BACKEND_FALSE='#'
13703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EVPORT_BACKEND_TRUE='#'
13705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  EVPORT_BACKEND_FALSE=
13706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$bwin32" = "xtrue"; then
13710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	needsignal=yes
13711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "x$needsignal" = "xyes"; then
13714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SIGNAL_SUPPORT_TRUE=
13715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SIGNAL_SUPPORT_FALSE='#'
13716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SIGNAL_SUPPORT_TRUE='#'
13718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  SIGNAL_SUPPORT_FALSE=
13719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_pid_t" = xyes; then :
13724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define pid_t int
13729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_size_t" = xyes; then :
13735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define size_t unsigned int
13740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_ssize_t" = xyes; then :
13746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define ssize_t int
13751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdint.h>
13758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#elif defined(HAVE_INTTYPES_H)
13759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <inttypes.h>
13760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_TYPES_H
13762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
13763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
13765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_uint64_t" = xyes; then :
13766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_UINT64_T 1
13769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdint.h>
13775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#elif defined(HAVE_INTTYPES_H)
13776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <inttypes.h>
13777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_TYPES_H
13779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
13780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
13782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_uint32_t" = xyes; then :
13783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_UINT32_T 1
13786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdint.h>
13792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#elif defined(HAVE_INTTYPES_H)
13793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <inttypes.h>
13794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_TYPES_H
13796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
13797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
13799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_uint16_t" = xyes; then :
13800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_UINT16_T 1
13803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdint.h>
13809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#elif defined(HAVE_INTTYPES_H)
13810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <inttypes.h>
13811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_TYPES_H
13813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
13814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
13816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_uint8_t" = xyes; then :
13817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_UINT8_T 1
13820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <stdint.h>
13826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#elif defined(HAVE_INTTYPES_H)
13827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <inttypes.h>
13828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_TYPES_H
13830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
13831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
13833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_uintptr_t" = xyes; then :
13834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_UINTPTR_T 1
13837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
13845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SELECT_H
13847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/select.h>
13848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
13849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
13850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_fd_mask" = xyes; then :
13851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_FD_MASK 1
13854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The cast to long int works around a bug in the HP C Compiler
13861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This bug is HP SR number 8606223364.
13864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking size of long long... " >&6; }
13866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_sizeof_long_long+:} false; then :
13867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
13868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_cv_type_long_long" = yes; then
13873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "cannot compute sizeof (long long)
13876e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
13877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
13878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_cv_sizeof_long_long=0
13879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
13880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_sizeof_long_long" >&6; }
13885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The cast to long int works around a bug in the HP C Compiler
13894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This bug is HP SR number 8606223364.
13897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking size of long... " >&6; }
13899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_sizeof_long+:} false; then :
13900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
13901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_cv_type_long" = yes; then
13906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "cannot compute sizeof (long)
13909e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
13910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
13911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_cv_sizeof_long=0
13912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
13913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_sizeof_long" >&6; }
13918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define SIZEOF_LONG $ac_cv_sizeof_long
13923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The cast to long int works around a bug in the HP C Compiler
13927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This bug is HP SR number 8606223364.
13930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking size of int... " >&6; }
13932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_sizeof_int+:} false; then :
13933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
13934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_cv_type_int" = yes; then
13939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "cannot compute sizeof (int)
13942e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
13943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
13944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_cv_sizeof_int=0
13945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
13946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_sizeof_int" >&6; }
13951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define SIZEOF_INT $ac_cv_sizeof_int
13956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The cast to long int works around a bug in the HP C Compiler
13960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This bug is HP SR number 8606223364.
13963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking size of short... " >&6; }
13965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_sizeof_short+:} false; then :
13966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
13967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
13971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_cv_type_short" = yes; then
13972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "cannot compute sizeof (short)
13975e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
13976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
13977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_cv_sizeof_short=0
13978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
13979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
13982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_sizeof_short" >&6; }
13984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
13988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define SIZEOF_SHORT $ac_cv_sizeof_short
13989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
13990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
13992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The cast to long int works around a bug in the HP C Compiler
13993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This bug is HP SR number 8606223364.
13996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking size of size_t... " >&6; }
13998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_sizeof_size_t+:} false; then :
13999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
14000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_cv_type_size_t" = yes; then
14005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "cannot compute sizeof (size_t)
14008e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
14009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
14010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_cv_sizeof_size_t=0
14011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
14012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_sizeof_size_t" >&6; }
14017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The cast to long int works around a bug in the HP C Compiler
14026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This bug is HP SR number 8606223364.
14029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking size of void *... " >&6; }
14031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_sizeof_void_p+:} false; then :
14032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
14033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_cv_type_void_p" = yes; then
14038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "cannot compute sizeof (void *)
14041e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
14042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
14043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_cv_sizeof_void_p=0
14044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
14045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_sizeof_void_p" >&6; }
14050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The cast to long int works around a bug in the HP C Compiler
14059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This bug is HP SR number 8606223364.
14062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking size of off_t... " >&6; }
14064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_sizeof_off_t+:} false; then :
14065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
14066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_cv_type_off_t" = yes; then
14071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "cannot compute sizeof (off_t)
14074e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
14075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
14076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_cv_sizeof_off_t=0
14077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
14078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_sizeof_off_t" >&6; }
14083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
14094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETDB_H
14104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netdb.h>
14105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_IN6_ADDR 1
14123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
14129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETDB_H
14139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netdb.h>
14140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_SOCKADDR_IN6 1
14158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
14164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETDB_H
14174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netdb.h>
14175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_sa_family_t" = xyes; then :
14190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_SA_FAMILY_T 1
14193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
14199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETDB_H
14209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netdb.h>
14210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_ADDRINFO 1
14228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/types.h>
14234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETDB_H
14244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netdb.h>
14245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_SOCKADDR_STORAGE 1
14263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN_H
14425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in.h>
14426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_NETINET_IN6_H
14428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <netinet/in6.h>
14429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef HAVE_SYS_SOCKET_H
14431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <sys/socket.h>
14432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef WIN32
14434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_WINNT 0x400
14435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define _WIN32_WINNT 0x400
14436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define WIN32_LEAN_AND_MEAN
14437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if defined(_MSC_VER) && (_MSC_VER < 1300)
14438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock.h>
14439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#else
14440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <winsock2.h>
14441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <ws2tcpip.h>
14442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
14446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for socklen_t... " >&6; }
14458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
14460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley #include <sys/types.h>
14462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley #include <sys/socket.h>
14463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
14464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
14465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
14466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysocklen_t x;
14467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
14468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
14469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
14470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
14472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
14474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
14477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define socklen_t unsigned int" >>confdefs.h
14479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether our compiler supports __func__... " >&6; }
14486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
14488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
14490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
14491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
14492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley const char *cp = __func__;
14493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
14494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
14495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
14496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
14498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
14500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
14503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
14507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
14509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
14510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
14511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley const char *cp = __FUNCTION__;
14512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
14513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
14514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
14515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
14517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "yes" >&6; }
14519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
14525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define __func__ __FILE__" >>confdefs.h
14527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# check if we can compile with pthreads
14535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhave_pthreads=no
14536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
14541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
14542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
14545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyacx_pthread_ok=no
14547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We used to check for pthread.h first, but this fails if pthread.h
14549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# requires special compiler flags (e.g. on True64 or Sequent).
14550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# It gets checked for in the link test anyway.
14551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# First of all, check if the user has set any of the PTHREAD_LIBS,
14553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# etcetera environment variables, and if threads linking works using
14554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# them:
14555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        save_CFLAGS="$CFLAGS"
14557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        save_LIBS="$LIBS"
14559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        LIBS="$PTHREAD_LIBS $LIBS"
14560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
14564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* Override any GCC internal prototype to avoid an error.
14566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   Use char because int might match the return type of a GCC
14567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   builtin and then its argument prototype would still apply.  */
14568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#ifdef __cplusplus
14569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextern "C"
14570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileychar pthread_join ();
14572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
14573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
14574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
14575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreturn pthread_join ();
14576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
14577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
14578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
14579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
14581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  acx_pthread_ok=yes
14582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
14584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
14585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$acx_pthread_ok" >&6; }
14587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if test x"$acx_pthread_ok" = xno; then
14588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                PTHREAD_LIBS=""
14589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                PTHREAD_CFLAGS=""
14590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        fi
14591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        LIBS="$save_LIBS"
14592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        CFLAGS="$save_CFLAGS"
14593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We must check for the threads library under a number of different
14596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# names; the ordering is very important because some systems
14597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# libraries is broken (non-POSIX).
14599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Create a list of thread flags to try.  Items starting with a "-" are
14601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# C compiler flags, and other items are library names, except for "none"
14602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# which indicates that we try without any flags at all, and "pthread-config"
14603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# which is a program returning the flags for the Pth emulation library.
14604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyacx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The ordering *is* (sometimes) important.  Some notes on the
14608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# individual items follow:
14609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# pthreads: AIX (must check this before -lpthread)
14611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# none: in case threads are in libc; should be tried before -Kthread and
14612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#       other compiler flags to prevent continual compiler warnings
14613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -pthreads: Solaris/gcc
14618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -mthreads: Mingw32/gcc, Lynx/gcc
14619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      doesn't hurt to check since this sometimes defines pthreads too;
14621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      also defines -D_REENTRANT)
14622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#      ... -mt is also the pthreads flag for HP/aCC
14623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# pthread: Linux, etcetera
14624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# --thread-safe: KAI C++
14625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# pthread-config: use pthread-config program (for GNU Pth library)
14626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "${host_cpu}-${host_os}" in
14628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        *solaris*)
14629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # On Solaris (at least, for some versions), libc contains stubbed
14631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # (non-functional) versions of the pthreads routines, so link-based
14632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # a function called by this macro, so we could check for that, but
14635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # who knows whether they'll stub that too in a future libc.)  So,
14636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # we'll just look for -pthreads and -lpthread first:
14637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
14640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
14641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"$acx_pthread_ok" = xno; then
14643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor flag in $acx_pthread_flags; do
14644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        case $flag in
14646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                none)
14647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                ;;
14650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                -*)
14652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                PTHREAD_CFLAGS="$flag"
14655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                ;;
14656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		pthread-config)
14658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		# Extract the first word of "pthread-config", so it can be a program name with args.
14659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy pthread-config; ac_word=$2
14660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
14662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_acx_pthread_config+:} false; then :
14663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
14664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$acx_pthread_config"; then
14666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
14670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
14671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
14672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
14673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
14674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_acx_pthread_config="yes"
14676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
14678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
14679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
14680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
14681e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
14682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyacx_pthread_config=$ac_cv_prog_acx_pthread_config
14687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$acx_pthread_config"; then
14688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$acx_pthread_config" >&6; }
14690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
14693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		if test x"$acx_pthread_config" = xno; then continue; fi
14697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		PTHREAD_CFLAGS="`pthread-config --cflags`"
14698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		;;
14700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                *)
14702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                PTHREAD_LIBS="-l$flag"
14705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                ;;
14706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        esac
14707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        save_LIBS="$LIBS"
14709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        save_CFLAGS="$CFLAGS"
14710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        LIBS="$PTHREAD_LIBS $LIBS"
14711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # Check for various functions.  We must include pthread.h,
14714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # since some functions may be macros.  (On the Sequent, we
14715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # need a special flag -Kthread to make this header compile.)
14716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # We check for pthread_join because it is in -lpthread on IRIX
14717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # while pthread_create is in libc.  We check for pthread_attr_init
14718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # due to DEC craziness with -lpthreads.  We check for
14719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # pthread_cleanup_push because it is one of the few pthread
14720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # functions on Solaris that doesn't have a non-functional libc stub.
14721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # We try pthread_create on general principles.
14722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
14724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <pthread.h>
14725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
14726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
14727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
14728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypthread_t th; pthread_join(th, 0);
14729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
14730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
14732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
14733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
14734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
14736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  acx_pthread_ok=yes
14737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
14739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
14740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        LIBS="$save_LIBS"
14742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        CFLAGS="$save_CFLAGS"
14743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$acx_pthread_ok" >&6; }
14746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if test "x$acx_pthread_ok" = xyes; then
14747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                break;
14748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        fi
14749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        PTHREAD_LIBS=""
14751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        PTHREAD_CFLAGS=""
14752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
14753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Various other checks:
14756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$acx_pthread_ok" = xyes; then
14757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        save_LIBS="$LIBS"
14758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        LIBS="$PTHREAD_LIBS $LIBS"
14759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        save_CFLAGS="$CFLAGS"
14760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for joinable pthread attribute... " >&6; }
14765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	attr_name=unknown
14766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
14769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#include <pthread.h>
14770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
14771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
14772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
14773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint attr=$attr; return attr;
14774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
14775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
14776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
14777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
14779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  attr_name=$attr; break
14780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
14782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
14783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	done
14784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$attr_name" >&6; }
14786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define PTHREAD_CREATE_JOINABLE $attr_name
14790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        fi
14793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        flag=no
14797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        case "${host_cpu}-${host_os}" in
14798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        esac
14801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "${flag}" >&6; }
14803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        if test "x$flag" != xno; then
14804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        fi
14806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        LIBS="$save_LIBS"
14808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        CFLAGS="$save_CFLAGS"
14809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        # More AIX lossage: must compile with xlc_r or cc_r
14811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	if test x"$GCC" != xyes; then
14812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          for ac_prog in xlc_r cc_r
14813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
14814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Extract the first word of "$ac_prog", so it can be a program name with args.
14815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyset dummy $ac_prog; ac_word=$2
14816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking for $ac_word... " >&6; }
14818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_prog_PTHREAD_CC+:} false; then :
14819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
14820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -n "$PTHREAD_CC"; then
14822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
14826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
14827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
14828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
14829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_exec_ext in '' $ac_executable_extensions; do
14830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cv_prog_PTHREAD_CC="$ac_prog"
14832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break 2
14834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
14835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
14836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
14837e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
14838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14841e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$PTHREAD_CC"; then
14843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$PTHREAD_CC" >&6; }
14845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "no" >&6; }
14848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -n "$PTHREAD_CC" && break
14852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
14853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        else
14856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley          PTHREAD_CC=$CC
14857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	fi
14858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        PTHREAD_CC="$CC"
14860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"$acx_pthread_ok" = xyes; then
14868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	have_pthreads=yes
14873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        :
14874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        acx_pthread_ok=no
14876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ext=c
14879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cpp='$CPP $CPPFLAGS'
14880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_compiler_gnu=$ac_cv_c_compiler_gnu
14883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # The cast to long int works around a bug in the HP C Compiler
14887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This bug is HP SR number 8606223364.
14890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking size of pthread_t... " >&6; }
14892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${ac_cv_sizeof_pthread_t+:} false; then :
14893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
14894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
14896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      #include <pthread.h>
14897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"; then :
14899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$ac_cv_type_pthread_t" = yes; then
14902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error 77 "cannot compute sizeof (pthread_t)
14905e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySee \`config.log' for more details" "$LINENO" 5; }
14906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   else
14907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_cv_sizeof_pthread_t=0
14908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
14909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>confdefs.h <<_ACEOF
14918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  PTHREADS_TRUE=
14925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  PTHREADS_FALSE='#'
14926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  PTHREADS_TRUE='#'
14928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  PTHREADS_FALSE=
14929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# check if we should compile locking into the library
14933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x$enable_thread_support = xno; then
14934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# check if we should hard-code the mm functions.
14940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x$enable_malloc_replacement = xno; then
14941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# check if we should hard-code debugging out
14947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x$enable_debug_mode = xno; then
14948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# check if we have and should use openssl
14954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  OPENSSL_TRUE=
14956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  OPENSSL_FALSE='#'
14957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  OPENSSL_TRUE='#'
14959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  OPENSSL_FALSE=
14960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Add some more warnings which we use in development but not in the
14964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# released versions.  (Some relevant gcc versions can't handle these.)
14965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
14969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
14971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
14972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
14973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if !defined(__GNUC__) || (__GNUC__ < 4)
14975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#error
14976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
14978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
14979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
14980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
14981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
14982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_gcc4=yes
14983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
14984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_gcc4=no
14985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
14986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
14990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
14992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
14993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
14994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
14995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#error
14997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
14998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
14999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
15000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
15001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
15003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_gcc42=yes
15004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_gcc42=no
15006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
15011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
15013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
15014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#error
15018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
15019e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
15020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
15021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
15022e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
15024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_gcc45=yes
15025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_gcc45=no
15027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
15032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
15034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
15035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#if !defined(__clang__)
15038e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#error
15039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#endif
15040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
15041e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
15042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
15043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_compile "$LINENO"; then :
15045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_clang=yes
15046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  have_clang=no
15048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
15052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x$have_gcc4 = xyes ; then
15055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    #CFLAGS="$CFLAGS -Wold-style-definition"
15058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
15059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x$have_gcc42 = xyes ; then
15061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # These warnings break gcc 4.0.2 and work on gcc 4.2
15062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="$CFLAGS -Waddress"
15063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
15064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
15069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x$have_gcc45 = xyes ; then
15071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # These warnings work on gcc 4.5
15072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="$CFLAGS -Wlogical-op"
15073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
15074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x$have_clang = xyes; then
15076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Disable the unused-function warnings, because these trigger
15077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # for minheap-internal.h related code.
15078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    CFLAGS="$CFLAGS -Wno-unused-function"
15079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # clang on macosx emits warnigns for each directory specified which
15081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # isn't "used" generating a lot of build noise (typically 3 warnings
15082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # per file
15083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case "$host_os" in
15084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        darwin*)
15085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley            CFLAGS="$CFLAGS -Qunused-arguments"
15086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        ;;
15087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
15088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
15089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley##This will break the world on some 64-bit architectures
15091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# CFLAGS="$CFLAGS -Winline"
15092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15095e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBEVENT_GC_SECTIONS=
15096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ${libevent_cv_gc_sections_runs+:} false; then :
15100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo_n "(cached) " >&6
15101e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
15104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    CFLAGS="$CFLAGS -Wl,--gc-sections"
15105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/* end confdefs.h.  */
15107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			#include <stdlib.h>
15109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			#include <stdio.h>
15110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyint
15112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymain ()
15113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			FILE *	fpC;
15116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			char	buf[32];
15117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			size_t	cch;
15118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			int	read_success_once;
15119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			fpC = fopen("conftest.c", "r");
15121e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			if (NULL == fpC)
15122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley				exit(1);
15123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			do {
15124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley				cch = fread(buf, sizeof(buf), 1, fpC);
15125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley				read_success_once |= (0 != cch);
15126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			} while (0 != cch);
15127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			if (!read_success_once)
15128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley				exit(2);
15129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			if (!feof(fpC))
15130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley				exit(3);
15131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			if (0 != fclose(fpC))
15132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley				exit(4);
15133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			exit(EXIT_SUCCESS);
15135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ;
15138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return 0;
15139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
15140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif ac_fn_c_try_link "$LINENO"; then :
15142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                                                            		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			libevent_cv_gc_sections_runs=no
15145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		    else
15146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			libevent_cv_gc_sections_runs=no
15147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley			./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley		    fi
15149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  libevent_cv_gc_sections_runs=no
15152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15154e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f core conftest.err conftest.$ac_objext \
15155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    conftest$ac_exeext conftest.$ac_ext
15156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    CFLAGS="$origCFLAGS"
15157e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    { origCFLAGS=; unset origCFLAGS;}
15158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$libevent_cv_gc_sections_runs" >&6; }
15163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case "$libevent_cv_gc_sections_runs" in
15164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     yes)
15165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	;;
15168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
15169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test "$enable_libevent_install" = "yes"; then
15173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  INSTALL_LIBEVENT_TRUE=
15174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  INSTALL_LIBEVENT_FALSE='#'
15175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  INSTALL_LIBEVENT_TRUE='#'
15177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  INSTALL_LIBEVENT_FALSE=
15178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >confcache <<\_ACEOF
15186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This file is a shell script that caches the results of configure
15187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# tests run on this system so they can be shared between configure
15188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# scripts and configure runs, see configure's option --config-cache.
15189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# It is not useful on other systems.  If it contains results you don't
15190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# want to keep, you may remove or edit it.
15191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
15192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# config.status only pays attention to the cache file if you give it
15193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# the --recheck option to rerun configure.
15194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
15195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# `ac_cv_env_foo' variables (set or unset) will be overridden when
15196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# loading this file, other *unset* `ac_cv_foo' will be assigned the
15197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# following values.
15198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The following way of writing the cache mishandles newlines in values,
15202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# but we know of no workaround that is simple, portable, and efficient.
15203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# So, we kill variables containing newlines.
15204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Ultrix sh set writes to stderr and can't be redirected directly,
15205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# and sets the high bit in the cache file unless we assign to the vars.
15206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley(
15207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval ac_val=\$$ac_var
15209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_val in #(
15210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *${as_nl}*)
15211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $ac_var in #(
15212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
15215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $ac_var in #(
15216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _ | IFS | as_nl) ;; #(
15217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) { eval $ac_var=; unset $ac_var;} ;;
15219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac ;;
15220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
15221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
15222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (set) 2>&1 |
15224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *${as_nl}ac_space=\ *)
15226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # `set' does not quote correctly, so add quotes: double-quote
15227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # substitution turns \\\\ into \\, and sed turns \\ into \.
15228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sed -n \
15229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	"s/'/'\\\\''/g;
15230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;; #(
15232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
15233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # `set' quotes correctly as required by POSIX, so do not add quotes.
15234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
15236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac |
15237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sort
15238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley) |
15239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed '
15240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     /^ac_cv_env_/b end
15241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     t clear
15242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     :clear
15243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     t end
15245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     :end' >>confcache
15247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -w "$cache_file"; then
15249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test "x$cache_file" != "x/dev/null"; then
15250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: updating cache $cache_file" >&6;}
15252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      if test ! -f "$cache_file" || test -h "$cache_file"; then
15253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	cat confcache >"$cache_file"
15254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      else
15255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        case $cache_file in #(
15256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        */* | ?:*)
15257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  mv -f confcache "$cache_file"$$ &&
15258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley        *)
15260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  mv -f confcache "$cache_file" ;;
15261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	esac
15262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fi
15263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
15264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
15265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
15268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f confcache
15270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "x$prefix" = xNONE && prefix=$ac_default_prefix
15272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Let make expand exec_prefix.
15273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15275e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDEFS=-DHAVE_CONFIG_H
15276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_libobjs=
15278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_ltlibobjs=
15279e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyU=
15280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # 1. Remove the extension, and $U if already installed.
15282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  #    will be set to the directory where LIBOBJS objects are built.
15286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
15289e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIBOBJS=$ac_libobjs
15290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15291e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTLIBOBJS=$ac_ltlibobjs
15292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo_n "checking that generated files are newer than configure... " >&6; }
15296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   if test -n "$am_sleep_pid"; then
15297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     # Hide warnings about reused PIDs.
15298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     wait $am_sleep_pid 2>/dev/null
15299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   fi
15300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "done" >&6; }
15302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley if test -n "$EXEEXT"; then
15303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__EXEEXT_TRUE=
15304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__EXEEXT_FALSE='#'
15305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__EXEEXT_TRUE='#'
15307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  am__EXEEXT_FALSE=
15308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"AMDEP\" was never defined.
15312e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15316e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15320e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15324e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15328e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15332e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15336e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15340e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15344e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15348e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15352e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15356e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15360e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15364e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"PTHREADS\" was never defined.
15368e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"OPENSSL\" was never defined.
15372e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15376e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsually this means the macro was only invoked conditionally." "$LINENO" 5
15377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley: "${CONFIG_STATUS=./config.status}"
15380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_write_fail=0
15381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_clean_files_save=$ac_clean_files
15382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_clean_files="$ac_clean_files $CONFIG_STATUS"
15383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_write_fail=0
15386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#! $SHELL
15388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Generated by $as_me.
15389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Run this file to recreate the current configuration.
15390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Compiler output produced by configure, useful for debugging
15391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# configure, is in config.log if it exists.
15392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydebug=false
15394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cs_recheck=false
15395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cs_silent=false
15396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15397e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySHELL=\${CONFIG_SHELL-$SHELL}
15398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport SHELL
15399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ASEOF
15400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## -------------------- ##
15402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## M4sh Initialization. ##
15403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## -------------------- ##
15404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Be more Bourne compatible
15406e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDUALCASE=1; export DUALCASE # for MKS sh
15407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  emulate sh
15409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  NULLCMD=:
15410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # is contrary to our usage.  Disable this feature.
15412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  alias -g '${1+"$@"}'='"$@"'
15413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  setopt NO_GLOB_SUBST
15414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case `(set -o) 2>/dev/null` in #(
15416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *posix*) :
15417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    set -o posix ;; #(
15418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) :
15419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ;;
15420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
15421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_nl='
15425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley'
15426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport as_nl
15427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Printing a long string crashes Solaris 7 /usr/bin/printf.
15428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Prefer a ksh shell builtin over an external printf program on Solaris,
15432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# but without wasting forks for bash or zsh.
15433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -z "$BASH_VERSION$ZSH_VERSION" \
15434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo='print -r --'
15436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo_n='print -rn --'
15437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo='printf %s\n'
15439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo_n='printf %s'
15440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_n='/usr/ucb/echo -n'
15444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
15445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_n_body='eval
15447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      arg=$1;
15448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $arg in #(
15449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *"$as_nl"*)
15450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	expr "X$arg" : "X\\(.*\\)$as_nl";
15451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac;
15453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    '
15455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    export as_echo_n_body
15456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_echo_n='sh -c $as_echo_n_body as_echo'
15457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
15458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  export as_echo_body
15459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_echo='sh -c $as_echo_body as_echo'
15460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The user is always right.
15463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "${PATH_SEPARATOR+set}" != set; then
15464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  PATH_SEPARATOR=:
15465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      PATH_SEPARATOR=';'
15468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
15469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# IFS
15473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We need space, tab and new line, in precisely that order.  Quoting is
15474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# there to prevent editors from complaining about space-tab.
15475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# splitting by setting IFS to empty value.)
15477e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=" ""	$as_nl"
15478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Find who we are.  Look in the path if we contain no directory separator.
15480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_myself=
15481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $0 in #((
15482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *[\\/]* ) as_myself=$0 ;;
15483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_dir in $PATH
15485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
15486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$as_save_IFS
15487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -z "$as_dir" && as_dir=.
15488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
15490e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyIFS=$as_save_IFS
15491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ;;
15493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
15494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We did not find ourselves, most probably we were run as `sh COMMAND'
15495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# in which case we are not to be found in the path.
15496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$as_myself" = x; then
15497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_myself=$0
15498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test ! -f "$as_myself"; then
15500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exit 1
15502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Unset variables that we do not need and which cause bugs (e.g. in
15505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# suppresses any "Segmentation fault" message there.  '((' could
15507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# trigger a bug in pdksh 5.2.14.
15508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor as_var in BASH_ENV ENV MAIL MAILPATH
15509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo eval test x\${$as_var+set} = xset \
15510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
15512e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPS1='$ '
15513e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPS2='> '
15514e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPS4='+ '
15515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# NLS nuisances.
15517e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLC_ALL=C
15518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport LC_ALL
15519e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLANGUAGE=C
15520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport LANGUAGE
15521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# CDPATH.
15523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_error STATUS ERROR [LINENO LOG_FD]
15527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ----------------------------------------
15528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# script with STATUS, using 1 if that was 0.
15531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_error ()
15532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_status=$1; test $as_status -eq 0 && as_status=1
15534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test "$4"; then
15535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
15538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$as_me: error: $2" >&2
15539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_exit $as_status
15540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_error
15541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_set_status STATUS
15544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -----------------------
15545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set $? to STATUS, without forking.
15546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_set_status ()
15547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  return $1
15549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_set_status
15550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_exit STATUS
15552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -----------------
15553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_exit ()
15555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  set +e
15557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_set_status $1
15558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exit $1
15559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_exit
15560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_unset VAR
15562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ---------------
15563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Portably unset VAR.
15564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_unset ()
15565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { eval $1=; unset $1;}
15567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
15568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_unset=as_fn_unset
15569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_append VAR VALUE
15570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ----------------------
15571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Append the text in VALUE to the end of the definition contained in VAR. Take
15572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# advantage of any shell optimizations that allow amortized linear growth over
15573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# repeated appends, instead of the typical quadratic growth present in naive
15574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# implementations.
15575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval 'as_fn_append ()
15577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
15578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval $1+=\$2
15579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }'
15580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_append ()
15582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
15583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval $1=\$$1\$2
15584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
15585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi # as_fn_append
15586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_arith ARG...
15588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ------------------
15589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Perform arithmetic evaluation on the ARGs, and store the result in the
15590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# global $as_val. Take advantage of shells that can avoid forks. The arguments
15591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# must be portable across $(()) and expr.
15592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval 'as_fn_arith ()
15594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
15595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_val=$(( $* ))
15596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }'
15597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_arith ()
15599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  {
15600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_val=`expr "$@" || test $? -eq 1`
15601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
15602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi # as_fn_arith
15603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif expr a : '\(a\)' >/dev/null 2>&1 &&
15606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_expr=expr
15608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_expr=false
15610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_basename=basename
15614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_basename=false
15616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_dirname=dirname
15620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_dirname=false
15622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_me=`$as_basename -- "$0" ||
15625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$0" : 'X\(//\)$' \| \
15627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo X/"$0" |
15629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '/^.*\/\([^/][^/]*\)\/*$/{
15630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
15631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
15632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
15633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\/\(\/\/\)$/{
15634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
15635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
15636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
15637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\/\(\/\).*/{
15638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
15639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
15640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
15641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/.*/./; q'`
15642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Avoid depending upon Character Ranges.
15644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_letters='abcdefghijklmnopqrstuvwxyz'
15645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_Letters=$as_cr_letters$as_cr_LETTERS
15647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_digits='0123456789'
15648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_cr_alnum=$as_cr_Letters$as_cr_digits
15649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15650e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO_C= ECHO_N= ECHO_T=
15651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `echo -n x` in #(((((
15652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley-n*)
15653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case `echo 'xy\c'` in
15654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  xy)  ECHO_C='\c';;
15656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       ECHO_T='	';;
15658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac;;
15659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
15660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ECHO_N='-n';;
15661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
15662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conf$$ conf$$.exe conf$$.file
15664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -d conf$$.dir; then
15665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conf$$.dir/conf$$.file
15666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f conf$$.dir
15668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  mkdir conf$$.dir 2>/dev/null
15669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif (echo >conf$$.file) 2>/dev/null; then
15671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if ln -s conf$$.file conf$$ 2>/dev/null; then
15672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_ln_s='ln -s'
15673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # ... but there are two gotchas:
15674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # In both cases, we have to default to `cp -pR'.
15677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_ln_s='cp -pR'
15679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  elif ln conf$$.file conf$$ 2>/dev/null; then
15680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_ln_s=ln
15681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
15682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_ln_s='cp -pR'
15683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
15684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_ln_s='cp -pR'
15686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrmdir conf$$.dir 2>/dev/null
15689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_mkdir_p
15692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -------------
15693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Create "$as_dir" as a directory, including parents if necessary.
15694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_mkdir_p ()
15695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $as_dir in #(
15698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -*) as_dir=./$as_dir;;
15699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
15700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -d "$as_dir" || eval $as_mkdir_p || {
15701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_dirs=
15702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    while :; do
15703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $as_dir in #(
15704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) as_qdir=$as_dir;;
15706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
15707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_dirs="'$as_qdir' $as_dirs"
15708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_dir=`$as_dirname -- "$as_dir" ||
15709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$as_dir" : 'X\(//\)[^/]' \| \
15711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$as_dir" : 'X\(//\)$' \| \
15712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo X"$as_dir" |
15714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
15716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
15717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
15718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)[^/].*/{
15719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
15720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
15721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
15722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)$/{
15723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
15724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
15725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
15726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\).*/{
15727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
15728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
15729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
15730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/.*/./; q'`
15731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test -d "$as_dir" && break
15732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
15733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -z "$as_dirs" || eval "mkdir $as_dirs"
15734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_mkdir_p
15738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif mkdir -p . 2>/dev/null; then
15739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_mkdir_p='mkdir -p "$as_dir"'
15740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
15741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -d ./-p && rmdir ./-p
15742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_mkdir_p=false
15743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# as_fn_executable_p FILE
15747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# -----------------------
15748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Test if FILE is an executable regular file.
15749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_executable_p ()
15750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -f "$1" && test -x "$1"
15752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # as_fn_executable_p
15753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_test_x='test -x'
15754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_executable_p=as_fn_executable_p
15755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Sed expression to map a string onto a valid CPP name.
15757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Sed expression to map a string onto a valid variable name.
15760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexec 6>&1
15764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ----------------------------------- ##
15765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## Main body of $CONFIG_STATUS script. ##
15766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## ----------------------------------- ##
15767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ASEOF
15768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Save the log message, to keep $0 and so on meaningful, and to
15772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# report actual input values of CONFIG_FILES etc. instead of their
15773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# values after options handling.
15774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_log="
15775e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyThis file was extended by $as_me, which was
15776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileygenerated by GNU Autoconf 2.69.  Invocation command line was
15777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CONFIG_FILES    = $CONFIG_FILES
15779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CONFIG_HEADERS  = $CONFIG_HEADERS
15780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CONFIG_LINKS    = $CONFIG_LINKS
15781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CONFIG_COMMANDS = $CONFIG_COMMANDS
15782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $ $0 $@
15783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyon `(hostname || uname -n) 2>/dev/null | sed 1q`
15785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
15786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $ac_config_files in *"
15790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"*) set x $ac_config_files; shift; ac_config_files=$*;;
15791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
15792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $ac_config_headers in *"
15794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
15796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Files that config.status was made for.
15800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyconfig_files="$ac_config_files"
15801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyconfig_headers="$ac_config_headers"
15802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyconfig_commands="$ac_config_commands"
15803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cs_usage="\
15808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\`$as_me' instantiates files and other configuration actions
15809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfrom templates according to the current configuration.  Unless the files
15810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyand actions are specified as TAGs, all are instantiated by default.
15811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15812e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyUsage: $0 [OPTION]... [TAG]...
15813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -h, --help       print this help, then exit
15815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -V, --version    print version number and configuration settings, then exit
15816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      --config     print configuration, then exit
15817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -q, --quiet, --silent
15818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                   do not print progress messages
15819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -d, --debug      don't remove temporary files
15820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      --recheck    update $as_me by reconfiguring in the same conditions
15821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      --file=FILE[:TEMPLATE]
15822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                   instantiate the configuration file FILE
15823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      --header=FILE[:TEMPLATE]
15824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley                   instantiate the configuration header FILE
15825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15826e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyConfiguration files:
15827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$config_files
15828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15829e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyConfiguration headers:
15830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$config_headers
15831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15832e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyConfiguration commands:
15833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$config_commands
15834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15835e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyReport bugs to the package provider."
15836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cs_version="\\
15841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyconfig.status
15842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyconfigured by $0, generated by GNU Autoconf 2.69,
15843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  with options \\"\$ac_cs_config\\"
15844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15845e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCopyright (C) 2012 Free Software Foundation, Inc.
15846e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyThis config.status script is free software; the Free Software Foundation
15847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileygives unlimited permission to copy, distribute and modify it."
15848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_pwd='$ac_pwd'
15850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysrcdir='$srcdir'
15851e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyINSTALL='$INSTALL'
15852e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMKDIR_P='$MKDIR_P'
15853e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAWK='$AWK'
15854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -n "\$AWK" || AWK=awk
15855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The default lists apply if the user does not specify any file.
15859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_need_defaults=:
15860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywhile test $# != 0
15861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
15862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $1 in
15863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --*=?*)
15864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_shift=:
15867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
15868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --*=)
15869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_optarg=
15871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_shift=:
15872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
15873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)
15874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_option=$1
15875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_optarg=$2
15876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_shift=shift
15877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
15878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
15879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_option in
15881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Handling of the options.
15882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cs_recheck=: ;;
15884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$ac_cs_version"; exit ;;
15886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --config | --confi | --conf | --con | --co | --c )
15887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$ac_cs_config"; exit ;;
15888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --debug | --debu | --deb | --de | --d | -d )
15889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    debug=: ;;
15890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --file | --fil | --fi | --f )
15891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $ac_shift
15892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_optarg in
15893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    '') as_fn_error $? "missing file argument" ;;
15895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
15896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_append CONFIG_FILES " '$ac_optarg'"
15897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_need_defaults=false;;
15898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --header | --heade | --head | --hea )
15899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $ac_shift
15900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_optarg in
15901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
15903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_need_defaults=false;;
15905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --he | --h)
15906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Conflict between --help and --header
15907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "ambiguous option: \`$1'
15908e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyTry \`$0 --help' for more information.";;
15909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  --help | --hel | -h )
15910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "$ac_cs_usage"; exit ;;
15911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_cs_silent=: ;;
15914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # This is an error.
15916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -*) as_fn_error $? "unrecognized option: \`$1'
15917e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyTry \`$0 --help' for more information." ;;
15918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) as_fn_append ac_config_targets " $1"
15920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     ac_need_defaults=false ;;
15921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
15923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shift
15924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
15925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_configure_extra_args=
15927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif $ac_cs_silent; then
15929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exec 6>/dev/null
15930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_configure_extra_args="$ac_configure_extra_args --silent"
15931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif \$ac_cs_recheck; then
15936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shift
15938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  CONFIG_SHELL='$SHELL'
15940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  export CONFIG_SHELL
15941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exec "\$@"
15942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
15943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexec 5>>config.log
15947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
15948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo
15949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley## Running $as_me. ##
15951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ASBOX
15952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $as_echo "$ac_log"
15953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} >&5
15954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
15956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
15958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# INIT-COMMANDS
15959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
15960e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The HP-UX ksh and POSIX shell print the target directory to stdout
15964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# if CDPATH is set.
15965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
15967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed_quote_subst='$sed_quote_subst'
15968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydouble_quote_subst='$double_quote_subst'
15969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydelay_variable_subst='$delay_variable_subst'
15970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15976e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15977e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15978e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15985e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15986e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15987e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15988e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15989e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15990e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15991e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15992e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16003e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16008e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16010e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16011e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16013e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16014e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16016e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16019e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16020e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16022e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileynm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16030e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16035e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16037e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16038e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16039e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16040e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16041e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16042e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16044e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16047e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16050e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16053e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16068e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16071e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16080e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16095e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16101e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTCC='$LTCC'
16102e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTCFLAGS='$LTCFLAGS'
16103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler='$compiler_DEFAULT'
16104e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# A function that is used when there is no print builtin or printf.
16106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_fallback_echo ()
16107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
16108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval 'cat <<_LTECHO_EOF
16109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\$1
16110e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LTECHO_EOF'
16111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
16112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16113e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Quote evaled strings.
16114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor var in SHELL \
16115e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO \
16116e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPATH_SEPARATOR \
16117e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySED \
16118e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyGREP \
16119e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEGREP \
16120e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyFGREP \
16121e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLD \
16122e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNM \
16123e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLN_S \
16124e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_SP2NL \
16125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_NL2SP \
16126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreload_flag \
16127e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOBJDUMP \
16128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydeplibs_check_method \
16129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_magic_cmd \
16130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_magic_glob \
16131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywant_nocaseglob \
16132e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDLLTOOL \
16133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysharedlib_from_linklib_cmd \
16134e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAR \
16135e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAR_FLAGS \
16136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchiver_list_spec \
16137e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySTRIP \
16138e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyRANLIB \
16139e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC \
16140e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCFLAGS \
16141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler \
16142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_pipe \
16143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_to_cdecl \
16144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_to_c_name_address \
16145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileynm_file_list_spec \
16147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_no_builtin_flag \
16148e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_pic \
16149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_wl \
16150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_prog_compiler_static \
16151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_cv_prog_compiler_c_o \
16152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_locks \
16153e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMANIFEST_TOOL \
16154e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDSYMUTIL \
16155e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNMEDIT \
16156e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIPO \
16157e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL \
16158e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL64 \
16159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshrext_cmds \
16160e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport_dynamic_flag_spec \
16161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywhole_archive_flag_spec \
16162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler_needs_object \
16163e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_gnu_ld \
16164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyallow_undefined_flag \
16165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyno_undefined_flag \
16166e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_libdir_flag_spec \
16167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_libdir_separator \
16168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexclude_expsyms \
16169e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinclude_expsyms \
16170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_list_spec \
16171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyvariables_saved_for_relink \
16172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibname_spec \
16173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibrary_names_spec \
16174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysoname_spec \
16175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinstall_override_mode \
16176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfinish_eval \
16177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_striplib \
16178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystriplib; do
16179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *[\\\\\\\`\\"\\\$]*)
16181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
16183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
16184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
16186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
16187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
16188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Double-quote double-evaled strings.
16190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor var in reload_cmds \
16191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_postinstall_cmds \
16192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_postuninstall_cmds \
16193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_cmds \
16194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextract_expsyms_cmds \
16195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_from_new_cmds \
16196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_from_expsyms_cmds \
16197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchive_cmds \
16198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchive_expsym_cmds \
16199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymodule_cmds \
16200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymodule_expsym_cmds \
16201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport_symbols_cmds \
16202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprelink_cmds \
16203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostlink_cmds \
16204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostinstall_cmds \
16205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostuninstall_cmds \
16206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfinish_cmds \
16207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysys_lib_search_path_spec \
16208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysys_lib_dlsearch_path_spec; do
16209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *[\\\\\\\`\\"\\\$]*)
16211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
16213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *)
16214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      ;;
16216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
16217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
16218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_aux_dir='$ac_aux_dir'
16220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyxsi_shell='$xsi_shell'
16221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_shell_append='$lt_shell_append'
16222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# See if we are running on zsh, and set the options which allow our
16224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# commands through without removal of \ escapes INIT.
16225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "\${ZSH_VERSION+set}" ; then
16226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   setopt NO_GLOB_SUBST
16227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
16228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    PACKAGE='$PACKAGE'
16231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    VERSION='$VERSION'
16232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    TIMESTAMP='$TIMESTAMP'
16233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    RM='$RM'
16234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ofile='$ofile'
16235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Handling of arguments.
16244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_config_target in $ac_config_targets
16245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
16246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_config_target in
16247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16252e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
16260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
16261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16262e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If the user did not use the arguments to specify the items to instantiate,
16264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# then the envvar interface is used.  Set only those that are not.
16265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# We use the long form for the default assignment because of an extremely
16266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# bizarre bug on SunOS 4.1.3.
16267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif $ac_need_defaults; then
16268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
16272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Have a temporary directory for convenience.  Make it in the build tree
16274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# simply because there is no reason against having it here, and in addition,
16275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# creating and moving files from /tmp can sometimes cause problems.
16276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Hook for its removal unless debugging.
16277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Note that there is a small window in which the directory will not be cleaned:
16278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# after its creation but before its name has been assigned to `$tmp'.
16279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$debug ||
16280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
16281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  tmp= ac_tmp=
16282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  trap 'exit_status=$?
16283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  : "${ac_tmp:=$tmp}"
16284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley' 0
16286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  trap 'as_fn_exit 1' 1 2 13 15
16287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
16288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Create a (secure) tmp directory for tmp files.
16289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
16291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test -d "$tmp"
16293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}  ||
16294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
16295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  tmp=./conf$$-$RANDOM
16296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  (umask 077 && mkdir "$tmp")
16297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_tmp=$tmp
16299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set up the scripts for CONFIG_FILES section.
16301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# No need to generate them if there are no CONFIG_FILES.
16302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This happens for instance with `./config.status config.h'.
16303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$CONFIG_FILES"; then
16304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cr=`echo X | tr X '\015'`
16307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# On cygwin, bash can eat \r inside `` if the user requested igncr.
16308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# But we know of no other shell where ac_cr would be empty at this
16309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# point, so we can use a bashism as a fallback.
16310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$ac_cr" = x; then
16311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  eval ac_cr=\$\'\\r\'
16312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
16313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cs_awk_cr='\\r'
16316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
16317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cs_awk_cr=$ac_cr
16318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
16319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
16325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo "cat >conf$$subs.awk <<_ACEOF" &&
16326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  echo "_ACEOF"
16328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} >conf$$subs.sh ||
16329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_delim='%!_!# '
16332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_last_try in false false false false false :; do
16333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  . ./conf$$subs.sh ||
16334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test $ac_delim_n = $ac_delim_num; then
16338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break
16339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  elif $ac_last_try; then
16340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
16342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
16344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
16345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conf$$subs.sh
16346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed -n '
16351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyh
16352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^/S["/; s/!.*/"]=/
16353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyp
16354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyg
16355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^[^!]*!//
16356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:repl
16357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt repl
16358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/'"$ac_delim"'$//
16359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt delim
16360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:nl
16361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyh
16362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/\(.\{148\}\)..*/\1/
16363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt more1
16364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyp
16366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyn
16367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyb repl
16368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:more1
16369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/["\\]/\\&/g; s/^/"/; s/$/"\\/
16370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyp
16371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyg
16372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/.\{148\}//
16373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt nl
16374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:delim
16375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyh
16376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/\(.\{148\}\)..*/\1/
16377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt more2
16378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/["\\]/\\&/g; s/^/"/; s/$/"/
16379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyp
16380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyb
16381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:more2
16382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/["\\]/\\&/g; s/^/"/; s/$/"\\/
16383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyp
16384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyg
16385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/.\{148\}//
16386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt delim
16387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley' <conf$$subs.awk | sed '
16388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/^[^""]/{
16389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  N
16390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  s/\n//
16391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
16392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley' >>$CONFIG_STATUS || ac_write_fail=1
16393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrm -f conf$$subs.awk
16394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACAWK
16396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for (key in S) S_is_set[key] = 1
16398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  FS = ""
16399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
16401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{
16402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  line = $ 0
16403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  nfields = split(line, field, "@")
16404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  substed = 0
16405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  len = length(field[1])
16406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for (i = 2; i < nfields; i++) {
16407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    key = field[i]
16408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    keylen = length(key)
16409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if (S_is_set[key]) {
16410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      value = S[key]
16411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      len += length(value) + length(field[++i])
16413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      substed = 1
16414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    } else
16415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      len += 1 + keylen
16416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
16417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  print line
16419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
16420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACAWK
16422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
16427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  cat
16428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# trailing colons and then remove the whole line if VPATH becomes empty
16435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# (actually we leave an empty line to preserve line numbers).
16436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "x$srcdir" = x.; then
16437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyh
16439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys///
16440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^/:/
16441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/[	 ]*$/:/
16442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/:\$(srcdir):/:/g
16443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/:\${srcdir}:/:/g
16444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/:@srcdir@:/:/g
16445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^:*//
16446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/:*$//
16447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyx
16448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/\(=[	 ]*\).*/\1/
16449e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyG
16450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/\n//
16451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^[^=]*=[	 ]*$//
16452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}'
16453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
16454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi # test -n "$CONFIG_FILES"
16457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set up the scripts for CONFIG_HEADERS section.
16459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# No need to generate them if there are no CONFIG_HEADERS.
16460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This happens for instance with `./config.status Makefile'.
16461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$CONFIG_HEADERS"; then
16462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16463e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyBEGIN {
16464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Transform confdefs.h into an awk script `defines.awk', embedded as
16467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# here-document in config.status, that substitutes the proper values into
16468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# config.h.in to produce config.h.
16469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Create a delimiter string that does not exist in confdefs.h, to ease
16471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# handling of long lines.
16472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_delim='%!_!# '
16473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_last_try in false false :; do
16474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test -z "$ac_tt"; then
16476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    break
16477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  elif $ac_last_try; then
16478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
16480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
16482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
16483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# For the awk script, D is an array of macro values keyed by name,
16485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# likewise P contains macro parameters if any.  Preserve backslash
16486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# newline sequences.
16487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysed -n '
16490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/.\{148\}/&'"$ac_delim"'/g
16491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt rset
16492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:rset
16493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt def
16495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyd
16496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:def
16497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/\\$//
16498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt bsnl
16499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/["\\]/\\&/g
16500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16501e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyD["\1"]=" \3"/p
16502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyd
16504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:bsnl
16505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/["\\]/\\&/g
16506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16507e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyD["\1"]=" \3\\\\\\n"\\/p
16508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt cont
16509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt cont
16511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyd
16512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:cont
16513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyn
16514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/.\{148\}/&'"$ac_delim"'/g
16515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt clear
16516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:clear
16517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/\\$//
16518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyt bsnlc
16519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/["\\]/\\&/g; s/^/"/; s/$/"/p
16520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyd
16521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:bsnlc
16522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyb cont
16524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley' <confdefs.h | sed '
16525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys/'"$ac_delim"'/"\\\
16526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"/g' >>$CONFIG_STATUS || ac_write_fail=1
16527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for (key in D) D_is_set[key] = 1
16530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  FS = ""
16531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
16532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  line = \$ 0
16534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  split(line, arg, " ")
16535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (arg[1] == "#") {
16536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    defundef = arg[2]
16537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mac1 = arg[3]
16538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  } else {
16539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    defundef = substr(arg[1], 2)
16540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mac1 = arg[2]
16541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
16542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  split(mac1, mac2, "(") #)
16543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  macro = mac2[1]
16544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  prefix = substr(line, 1, index(line, defundef) - 1)
16545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if (D_is_set[macro]) {
16546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Preserve the white space surrounding the "#".
16547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    print prefix "define", macro P[macro] D[macro]
16548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    next
16549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  } else {
16550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Replace #undef with comments.  This is necessary, for example,
16551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # in the case of _POSIX_SOURCE, which is predefined and required
16552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # on some systems where configure will not decide to define it.
16553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if (defundef == "undef") {
16554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      print "/*", prefix defundef, macro, "*/"
16555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      next
16556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    }
16557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  }
16558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
16559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{ print }
16560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACAWK
16561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi # test -n "$CONFIG_HEADERS"
16565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshift
16569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor ac_tag
16570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydo
16571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_tag in
16572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :[FHLC]) ac_mode=$ac_tag; continue;;
16573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
16574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_mode$ac_tag in
16575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :[FHL]*:*);;
16576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :[FH]-) ac_tag=-:-;;
16578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
16580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_save_IFS=$IFS
16581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=:
16582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  set x $ac_tag
16583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  IFS=$ac_save_IFS
16584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shift
16585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_file=$1
16586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shift
16587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_mode in
16589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :L) ac_source=$1;;
16590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :[FH])
16591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_file_inputs=
16592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for ac_f
16593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    do
16594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $ac_f in
16595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      -) ac_f="$ac_tmp/stdin";;
16596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      *) # Look for the file first in the build tree, then in the source tree
16597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 # because $ac_f cannot contain `:'.
16599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 test -f "$ac_f" ||
16600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   case $ac_f in
16601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   [\\/$]*) false;;
16602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   esac ||
16604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      esac
16606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_fn_append ac_file_inputs " '$ac_f'"
16608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
16609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Let's still pretend it is `configure' which instantiates (i.e., don't
16611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # use $as_me), people would be surprised to read:
16612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    #    /* config.h.  Generated by config.status.  */
16613e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    configure_input='Generated from '`
16614e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16615e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	`' by configure.'
16616e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test x"$ac_file" != x-; then
16617e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      configure_input="$ac_file.  $configure_input"
16618e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16619e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: creating $ac_file" >&6;}
16620e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
16621e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Neutralize special characters interpreted by sed in replacement strings.
16622e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $configure_input in #(
16623e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *\&* | *\|* | *\\* )
16624e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       ac_sed_conf_input=`$as_echo "$configure_input" |
16625e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16626e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *) ac_sed_conf_input=$configure_input;;
16627e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
16628e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16629e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    case $ac_tag in
16630e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16631e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16632e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    esac
16633e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
16634e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
16635e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16636e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_dir=`$as_dirname -- "$ac_file" ||
16637e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16638e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$ac_file" : 'X\(//\)[^/]' \| \
16639e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$ac_file" : 'X\(//\)$' \| \
16640e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16641e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo X"$ac_file" |
16642e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16643e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16644e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16645e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16646e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)[^/].*/{
16647e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16648e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16649e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16650e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)$/{
16651e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16652e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16653e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16654e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\).*/{
16655e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16656e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16657e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16658e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/.*/./; q'`
16659e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_dir="$ac_dir"; as_fn_mkdir_p
16660e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_builddir=.
16661e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16662e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase "$ac_dir" in
16663e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16664e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*)
16665e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16666e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # A ".." for each directory in $ac_dir_suffix.
16667e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16668e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_top_builddir_sub in
16669e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16670e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16671e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac ;;
16672e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
16673e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_abs_top_builddir=$ac_pwd
16674e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_abs_builddir=$ac_pwd$ac_dir_suffix
16675e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# for backward compatibility:
16676e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_top_builddir=$ac_top_build_prefix
16677e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16678e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase $srcdir in
16679e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  .)  # We are building in place.
16680e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_srcdir=.
16681e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_top_srcdir=$ac_top_builddir_sub
16682e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_abs_top_srcdir=$ac_pwd ;;
16683e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  [\\/]* | ?:[\\/]* )  # Absolute name.
16684e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_srcdir=$srcdir$ac_dir_suffix;
16685e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_top_srcdir=$srcdir
16686e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_abs_top_srcdir=$srcdir ;;
16687e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) # Relative name.
16688e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16689e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_top_srcdir=$ac_top_build_prefix$srcdir
16690e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16691e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
16692e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16693e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16694e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16695e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_mode in
16696e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :F)
16697e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  #
16698e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # CONFIG_FILE
16699e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  #
16700e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16701e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $INSTALL in
16702e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16703e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16704e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
16705e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_MKDIR_P=$MKDIR_P
16706e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $MKDIR_P in
16707e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  [\\/$]* | ?:[\\/]* ) ;;
16708e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16709e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
16710e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16711e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16712e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16713e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# If the template does not know about datarootdir, expand it.
16714e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# FIXME: This hack should be removed a few years after 2.60.
16715e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_datarootdir_hack=; ac_datarootdir_seen=
16716e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_sed_dataroot='
16717e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/datarootdir/ {
16718e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  p
16719e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  q
16720e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
16721e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/@datadir@/p
16722e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/@docdir@/p
16723e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/@infodir@/p
16724e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/@localedir@/p
16725e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/@mandir@/p'
16726e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16727e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*datarootdir*) ac_datarootdir_seen=yes;;
16728e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16729e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16730e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16731e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16732e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_datarootdir_hack='
16734e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  s&@datadir@&$datadir&g
16735e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  s&@docdir@&$docdir&g
16736e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  s&@infodir@&$infodir&g
16737e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  s&@localedir@&$localedir&g
16738e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  s&@mandir@&$mandir&g
16739e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  s&\\\${datarootdir}&$datarootdir&g' ;;
16740e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyesac
16741e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16742e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16743e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Neutralize VPATH when `$srcdir' = `.'.
16744e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Shell code in configure.ac might set extrasub.
16745e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# FIXME: do we really want to maintain this feature?
16746e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16747e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_sed_extra="$ac_vpsub
16748e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$extrasub
16749e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
16750e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16751e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley:t
16752e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16753e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys|@configure_input@|$ac_sed_conf_input|;t t
16754e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@top_builddir@&$ac_top_builddir_sub&;t t
16755e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@top_build_prefix@&$ac_top_build_prefix&;t t
16756e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@srcdir@&$ac_srcdir&;t t
16757e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@abs_srcdir@&$ac_abs_srcdir&;t t
16758e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@top_srcdir@&$ac_top_srcdir&;t t
16759e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16760e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@builddir@&$ac_builddir&;t t
16761e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@abs_builddir@&$ac_abs_builddir&;t t
16762e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16763e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@INSTALL@&$ac_INSTALL&;t t
16764e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileys&@MKDIR_P@&$ac_MKDIR_P&;t t
16765e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$ac_datarootdir_hack
16766e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley"
16767e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16768e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16769e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16770e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16771e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16772e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16773e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16774e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16775e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywhich seems to be undefined.  Please make sure it is defined" >&5
16776e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16777e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywhich seems to be undefined.  Please make sure it is defined" >&2;}
16778e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16779e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  rm -f "$ac_tmp/stdin"
16780e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_file in
16781e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16782e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16783e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac \
16784e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16785e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley ;;
16786e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :H)
16787e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  #
16788e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # CONFIG_HEADER
16789e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  #
16790e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x"$ac_file" != x-; then
16791e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    {
16792e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      $as_echo "/* $configure_input  */" \
16793e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16794e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    } >"$ac_tmp/config.h" \
16795e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16796e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16797e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16798e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: $ac_file is unchanged" >&6;}
16799e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
16800e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      rm -f "$ac_file"
16801e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      mv "$ac_tmp/config.h" "$ac_file" \
16802e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16803e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
16804e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  else
16805e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $as_echo "/* $configure_input  */" \
16806e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16807e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      || as_fn_error $? "could not create -" "$LINENO" 5
16808e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  fi
16809e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Compute "$ac_file"'s index in $config_headers.
16810e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_am_arg="$ac_file"
16811e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_am_stamp_count=1
16812e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfor _am_header in $config_headers :; do
16813e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $_am_header in
16814e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $_am_arg | $_am_arg:* )
16815e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      break ;;
16816e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    * )
16817e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16818e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
16819e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone
16820e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16821e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16822e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16823e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$_am_arg" : 'X\(//\)$' \| \
16824e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16825e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo X"$_am_arg" |
16826e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16827e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16828e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16829e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16830e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)[^/].*/{
16831e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16832e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16833e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16834e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)$/{
16835e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16836e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16837e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16838e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\).*/{
16839e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16840e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16841e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16842e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/.*/./; q'`/stamp-h$_am_stamp_count
16843e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley ;;
16844e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16845e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16846e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: executing $ac_file commands" >&6;}
16847e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley ;;
16848e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
16849e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16850e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16851e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $ac_file$ac_mode in
16852e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16853e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16854e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # are listed without --file.  Let's play safe and only enable the eval
16855e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # if we detect the quoting.
16856e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $CONFIG_FILES in
16857e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *\'*) eval set x "$CONFIG_FILES" ;;
16858e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  *)   set x $CONFIG_FILES ;;
16859e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
16860e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  shift
16861e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  for mf
16862e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  do
16863e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Strip MF so we end up with the name of the file.
16864e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    mf=`echo "$mf" | sed -e 's/:.*$//'`
16865e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Check whether this is an Automake generated Makefile or not.
16866e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # We used to match only the files named 'Makefile.in', but
16867e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # some people rename them; so instead we look at the file content.
16868e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Grep'ing the first line is not enough: some people post-process
16869e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # each Makefile.in and add a new line on top of each file to say so.
16870e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Grep'ing the whole file is not good either: AIX grep has a line
16871e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # limit of 2048, but all sed's we know have understand at least 4000.
16872e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16873e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      dirpart=`$as_dirname -- "$mf" ||
16874e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16875e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$mf" : 'X\(//\)[^/]' \| \
16876e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$mf" : 'X\(//\)$' \| \
16877e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16878e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo X"$mf" |
16879e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16880e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16881e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16882e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16883e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)[^/].*/{
16884e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16885e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16886e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16887e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)$/{
16888e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16889e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16890e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16891e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\).*/{
16892e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16893e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16894e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16895e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/.*/./; q'`
16896e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    else
16897e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      continue
16898e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
16899e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Extract the definition of DEPDIR, am__include, and am__quote
16900e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # from the Makefile without running 'make'.
16901e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16902e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -z "$DEPDIR" && continue
16903e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16904e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    test -z "am__include" && continue
16905e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16906e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # Find all dependency output files, they are included files with
16907e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16908e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # simplest approach to changing $(DEPDIR) to its actual value in the
16909e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # expansion.
16910e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    for file in `sed -n "
16911e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16912e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16913e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # Make sure the directory exists.
16914e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      test -f "$dirpart/$file" && continue
16915e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      fdir=`$as_dirname -- "$file" ||
16916e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16917e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$file" : 'X\(//\)[^/]' \| \
16918e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$file" : 'X\(//\)$' \| \
16919e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16920e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo X"$file" |
16921e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16922e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16923e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16924e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16925e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)[^/].*/{
16926e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16927e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16928e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16929e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\/\)$/{
16930e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16931e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16932e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16933e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  /^X\(\/\).*/{
16934e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    s//\1/
16935e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	    q
16936e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  }
16937e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley	  s/.*/./; q'`
16938e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16939e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      # echo "creating $dirpart/$file"
16940e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      echo '# dummy' > "$dirpart/$file"
16941e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    done
16942e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  done
16943e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley}
16944e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley ;;
16945e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    "libtool":C)
16946e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16947e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # See if we are running on zsh, and set the options which allow our
16948e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    # commands through without removal of \ escapes.
16949e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    if test -n "${ZSH_VERSION+set}" ; then
16950e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      setopt NO_GLOB_SUBST
16951e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    fi
16952e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16953e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cfgfile="${ofile}T"
16954e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16955e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    $RM "$cfgfile"
16956e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16957e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat <<_LT_EOF >> "$cfgfile"
16958e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#! $SHELL
16959e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16960e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16961e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16962e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16963e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16964e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
16965e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16966e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16967e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#                 Foundation, Inc.
16968e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#   Written by Gordon Matzigkeit, 1996
16969e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
16970e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#   This file is part of GNU Libtool.
16971e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
16972e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# GNU Libtool is free software; you can redistribute it and/or
16973e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# modify it under the terms of the GNU General Public License as
16974e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# published by the Free Software Foundation; either version 2 of
16975e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# the License, or (at your option) any later version.
16976e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
16977e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# As a special exception to the GNU General Public License,
16978e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# if you distribute this file as part of a program or library that
16979e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# is built using GNU Libtool, you may include this file under the
16980e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# same distribution terms that you use for the rest of that program.
16981e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
16982e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# GNU Libtool is distributed in the hope that it will be useful,
16983e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# but WITHOUT ANY WARRANTY; without even the implied warranty of
16984e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16985e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# GNU General Public License for more details.
16986e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley#
16987e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# You should have received a copy of the GNU General Public License
16988e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# along with GNU Libtool; see the file COPYING.  If not, a copy
16989e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16990e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# obtained by writing to the Free Software Foundation, Inc.,
16991e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16992e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16993e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16994e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The names of the tagged configurations supported by this script.
16995e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyavailable_tags=""
16996e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16997e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ### BEGIN LIBTOOL CONFIG
16998e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
16999e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Which release of libtool.m4 was used?
17000e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymacro_version=$macro_version
17001e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymacro_revision=$macro_revision
17002e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17003e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether or not to build shared libraries.
17004e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_libtool_libs=$enable_shared
17005e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17006e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether or not to build static libraries.
17007e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_old_libs=$enable_static
17008e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17009e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# What type of objects to build.
17010e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypic_mode=$pic_mode
17011e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17012e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether or not to optimize for fast installation.
17013e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfast_install=$enable_fast_install
17014e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17015e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Shell to use when invoking shell scripts.
17016e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySHELL=$lt_SHELL
17017e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17018e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# An echo program that protects backslashes.
17019e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyECHO=$lt_ECHO
17020e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17021e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The PATH separator for the build system.
17022e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyPATH_SEPARATOR=$lt_PATH_SEPARATOR
17023e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17024e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The host system.
17025e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_alias=$host_alias
17026e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost=$host
17027e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhost_os=$host_os
17028e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17029e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The build system.
17030e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_alias=$build_alias
17031e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild=$build
17032e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_os=$build_os
17033e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17034e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# A sed program that does not truncate output.
17035e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySED=$lt_SED
17036e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17037e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17038e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyXsed="\$SED -e 1s/^X//"
17039e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17040e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# A grep program that handles long lines.
17041e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyGREP=$lt_GREP
17042e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17043e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# An ERE matcher.
17044e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyEGREP=$lt_EGREP
17045e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17046e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# A literal string matcher.
17047e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyFGREP=$lt_FGREP
17048e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17049e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# A BSD- or MS-compatible name lister.
17050e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNM=$lt_NM
17051e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17052e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether we need soft or hard links.
17053e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLN_S=$lt_LN_S
17054e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17055e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# What is the maximum length of a command?
17056e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymax_cmd_len=$max_cmd_len
17057e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17058e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Object file suffix (normally "o").
17059e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyobjext=$ac_objext
17060e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17061e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Executable file suffix (normally "").
17062e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexeext=$exeext
17063e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17064e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# whether the shell understands "unset".
17065e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_unset=$lt_unset
17066e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17067e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# turn spaces into newlines.
17068e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySP2NL=$lt_lt_SP2NL
17069e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17070e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# turn newlines into spaces.
17071e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNL2SP=$lt_lt_NL2SP
17072e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17073e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# convert \$build file names to \$host format.
17074e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyto_host_file_cmd=$lt_cv_to_host_file_cmd
17075e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17076e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# convert \$build files to toolchain format.
17077e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyto_tool_file_cmd=$lt_cv_to_tool_file_cmd
17078e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17079e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# An object symbol dumper.
17080e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOBJDUMP=$lt_OBJDUMP
17081e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17082e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Method to check whether dependent libraries are shared objects.
17083e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydeplibs_check_method=$lt_deplibs_check_method
17084e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17085e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Command to use when deplibs_check_method = "file_magic".
17086e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_magic_cmd=$lt_file_magic_cmd
17087e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17088e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# How to find potential files when deplibs_check_method = "file_magic".
17089e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_magic_glob=$lt_file_magic_glob
17090e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17091e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17092e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywant_nocaseglob=$lt_want_nocaseglob
17093e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17094e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# DLL creation program.
17095e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDLLTOOL=$lt_DLLTOOL
17096e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17097e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Command to associate shared and link libraries.
17098e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17099e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17100e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The archiver.
17101e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAR=$lt_AR
17102e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17103e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Flags to create an archive.
17104e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyAR_FLAGS=$lt_AR_FLAGS
17105e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17106e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# How to feed a file listing to the archiver.
17107e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchiver_list_spec=$lt_archiver_list_spec
17108e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17109e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# A symbol stripping program.
17110e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileySTRIP=$lt_STRIP
17111e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17112e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Commands used to install an old-style archive.
17113e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyRANLIB=$lt_RANLIB
17114e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_postinstall_cmds=$lt_old_postinstall_cmds
17115e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_postuninstall_cmds=$lt_old_postuninstall_cmds
17116e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17117e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether to use a lock for old archive extraction.
17118e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylock_old_archive_extraction=$lock_old_archive_extraction
17119e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17120e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# A C compiler.
17121e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTCC=$lt_CC
17122e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17123e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# LTCC compiler flags.
17124e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLTCFLAGS=$lt_CFLAGS
17125e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17126e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Take the output of nm and produce a listing of raw symbols and C names.
17127e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17128e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17129e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Transform the output of nm in a proper C declaration.
17130e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17131e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17132e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Transform the output of nm in a C name address pair.
17133e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17134e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17135e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Transform the output of nm in a C name address pair when lib prefix is needed.
17136e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17137e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17138e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Specify filename containing input files for \$NM.
17139e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileynm_file_list_spec=$lt_nm_file_list_spec
17140e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17141e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The root where to search for dependent libraries,and in which our libraries should be installed.
17142e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylt_sysroot=$lt_sysroot
17143e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17144e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The name of the directory that contains temporary libtool files.
17145e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyobjdir=$objdir
17146e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17147e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Used to examine libraries when file_magic_cmd begins with "file".
17148e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMAGIC_CMD=$MAGIC_CMD
17149e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17150e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Must we lock files when doing compilation?
17151e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_locks=$lt_need_locks
17152e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17153e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Manifest tool.
17154e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyMANIFEST_TOOL=$lt_MANIFEST_TOOL
17155e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17156e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17157e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyDSYMUTIL=$lt_DSYMUTIL
17158e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17159e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tool to change global to local symbols on Mac OS X.
17160e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyNMEDIT=$lt_NMEDIT
17161e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17162e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Tool to manipulate fat objects and archives on Mac OS X.
17163e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLIPO=$lt_LIPO
17164e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17165e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17166e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL=$lt_OTOOL
17167e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17168e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17169e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyOTOOL64=$lt_OTOOL64
17170e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17171e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Old archive suffix (normally "a").
17172e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibext=$libext
17173e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17174e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Shared library suffix (normally ".so").
17175e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshrext_cmds=$lt_shrext_cmds
17176e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17177e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The commands to extract the exported symbol list from a shared archive.
17178e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyextract_expsyms_cmds=$lt_extract_expsyms_cmds
17179e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17180e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Variables whose values should be saved in libtool wrapper scripts and
17181e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# restored at link time.
17182e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyvariables_saved_for_relink=$lt_variables_saved_for_relink
17183e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17184e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Do we need the "lib" prefix for modules?
17185e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_lib_prefix=$need_lib_prefix
17186e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17187e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Do we need a version for libraries?
17188e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyneed_version=$need_version
17189e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17190e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Library versioning type.
17191e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyversion_type=$version_type
17192e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17193e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Shared library runtime path variable.
17194e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyrunpath_var=$runpath_var
17195e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17196e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Shared library path variable.
17197e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshlibpath_var=$shlibpath_var
17198e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17199e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Is shlibpath searched before the hard-coded library search path?
17200e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyshlibpath_overrides_runpath=$shlibpath_overrides_runpath
17201e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17202e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Format of library name prefix.
17203e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibname_spec=$lt_libname_spec
17204e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17205e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# List of archive names.  First name is the real one, the rest are links.
17206e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The last name is the one that the linker finds with -lNAME
17207e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylibrary_names_spec=$lt_library_names_spec
17208e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17209e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The coded name of the library, if different from the real name.
17210e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysoname_spec=$lt_soname_spec
17211e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17212e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Permission mode override for installation of shared libraries.
17213e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinstall_override_mode=$lt_install_override_mode
17214e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17215e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Command to use after installation of a shared archive.
17216e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostinstall_cmds=$lt_postinstall_cmds
17217e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17218e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Command to use after uninstallation of a shared archive.
17219e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostuninstall_cmds=$lt_postuninstall_cmds
17220e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17221e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Commands used to finish a libtool library installation in a directory.
17222e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfinish_cmds=$lt_finish_cmds
17223e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17224e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# As "finish_cmds", except a single script fragment to be evaled but
17225e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# not shown.
17226e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfinish_eval=$lt_finish_eval
17227e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17228e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether we should hardcode library paths into libraries.
17229e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_into_libs=$hardcode_into_libs
17230e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17231e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Compile-time system search path for libraries.
17232e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17233e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17234e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Run-time system search path for libraries.
17235e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileysys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17236e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17237e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether dlopen is supported.
17238e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydlopen_support=$enable_dlopen
17239e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17240e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether dlopen of programs is supported.
17241e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydlopen_self=$enable_dlopen_self
17242e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17243e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether dlopen of statically linked programs is supported.
17244e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydlopen_self_static=$enable_dlopen_self_static
17245e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17246e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Commands to strip libraries.
17247e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_striplib=$lt_old_striplib
17248e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileystriplib=$lt_striplib
17249e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17250e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17251e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The linker used to build libraries.
17252e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyLD=$lt_LD
17253e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17254e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# How to create reloadable object files.
17255e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreload_flag=$lt_reload_flag
17256e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyreload_cmds=$lt_reload_cmds
17257e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17258e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Commands used to build an old-style archive.
17259e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_cmds=$lt_old_archive_cmds
17260e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17261e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# A language specific compiler.
17262e867981d427db5e0b860d67485838e1f9e8c37daChristopher WileyCC=$lt_compiler
17263e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17264e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Is the compiler the GNU compiler?
17265e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_gcc=$GCC
17266e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17267e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Compiler flag to turn off builtin functions.
17268e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17269e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17270e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Additional compiler flags for building library objects.
17271e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypic_flag=$lt_lt_prog_compiler_pic
17272e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17273e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# How to pass a linker flag through the compiler.
17274e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywl=$lt_lt_prog_compiler_wl
17275e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17276e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Compiler flag to prevent dynamic linking.
17277e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylink_static_flag=$lt_lt_prog_compiler_static
17278e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17279e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Does compiler simultaneously support -c and -o options?
17280e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler_c_o=$lt_lt_cv_prog_compiler_c_o
17281e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17282e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether or not to add -lc for building shared libraries.
17283e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileybuild_libtool_need_lc=$archive_cmds_need_lc
17284e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17285e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether or not to disallow shared libs when runtime libs are static.
17286e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17287e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17288e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Compiler flag to allow reflexive dlopens.
17289e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17290e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17291e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Compiler flag to generate shared objects directly from archives.
17292e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywhole_archive_flag_spec=$lt_whole_archive_flag_spec
17293e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17294e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether the compiler copes with passing no objects directly.
17295e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileycompiler_needs_object=$lt_compiler_needs_object
17296e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17297e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Create an old-style archive from a shared archive.
17298e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17299e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17300e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Create a temporary old-style archive to link instead of a shared archive.
17301e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17302e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17303e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Commands used to build a shared archive.
17304e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchive_cmds=$lt_archive_cmds
17305e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyarchive_expsym_cmds=$lt_archive_expsym_cmds
17306e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17307e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Commands used to build a loadable module if different from building
17308e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# a shared archive.
17309e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymodule_cmds=$lt_module_cmds
17310e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileymodule_expsym_cmds=$lt_module_expsym_cmds
17311e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17312e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether we are building with GNU ld or not.
17313e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileywith_gnu_ld=$lt_with_gnu_ld
17314e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17315e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Flag that allows shared libraries with undefined symbols to be built.
17316e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyallow_undefined_flag=$lt_allow_undefined_flag
17317e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17318e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Flag that enforces no undefined symbols.
17319e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyno_undefined_flag=$lt_no_undefined_flag
17320e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17321e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Flag to hardcode \$libdir into a binary during linking.
17322e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# This must work even if \$libdir does not exist
17323e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17324e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17325e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether we need a single "-rpath" flag with a separated argument.
17326e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_libdir_separator=$lt_hardcode_libdir_separator
17327e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17328e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17329e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# DIR into the resulting binary.
17330e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_direct=$hardcode_direct
17331e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17332e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17333e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# DIR into the resulting binary and the resulting library dependency is
17334e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17335e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# library is relocated.
17336e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_direct_absolute=$hardcode_direct_absolute
17337e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17338e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17339e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# into the resulting binary.
17340e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_minus_L=$hardcode_minus_L
17341e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17342e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17343e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# into the resulting binary.
17344e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_shlibpath_var=$hardcode_shlibpath_var
17345e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17346e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set to "yes" if building a shared library automatically hardcodes DIR
17347e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# into the library and all subsequent libraries and executables linked
17348e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# against it.
17349e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_automatic=$hardcode_automatic
17350e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17351e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set to yes if linker adds runtime paths of dependent libraries
17352e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# to runtime path list.
17353e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinherit_rpath=$inherit_rpath
17354e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17355e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Whether libtool must link a program against all its dependency libraries.
17356e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileylink_all_deplibs=$link_all_deplibs
17357e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17358e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Set to "yes" if exported symbols are required.
17359e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyalways_export_symbols=$always_export_symbols
17360e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17361e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# The commands to list exported symbols.
17362e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexport_symbols_cmds=$lt_export_symbols_cmds
17363e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17364e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Symbols that should not be listed in the preloaded symbols.
17365e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyexclude_expsyms=$lt_exclude_expsyms
17366e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17367e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Symbols that must always be exported.
17368e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyinclude_expsyms=$lt_include_expsyms
17369e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17370e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Commands necessary for linking programs (against libraries) with templates.
17371e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyprelink_cmds=$lt_prelink_cmds
17372e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17373e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Commands necessary for finishing linking programs.
17374e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileypostlink_cmds=$lt_postlink_cmds
17375e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17376e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Specify filename containing input files.
17377e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfile_list_spec=$lt_file_list_spec
17378e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17379e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# How to hardcode a shared library path into an executable.
17380e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyhardcode_action=$hardcode_action
17381e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17382e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# ### END LIBTOOL CONFIG
17383e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17384e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
17385e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17386e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  case $host_os in
17387e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  aix3*)
17388e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    cat <<\_LT_EOF >> "$cfgfile"
17389e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# AIX sometimes has problems with the GCC collect2 program.  For some
17390e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# reason, if we set the COLLECT_NAMES environment variable, the problems
17391e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# vanish in a puff of smoke.
17392e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "X${COLLECT_NAMES+set}" != Xset; then
17393e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  COLLECT_NAMES=
17394e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  export COLLECT_NAMES
17395e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
17396e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_LT_EOF
17397e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ;;
17398e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
17399e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17400e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17401e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyltmain="$ac_aux_dir/ltmain.sh"
17402e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17403e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17404e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # We use sed instead of cat because bash on DJGPP gets confused if
17405e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17406e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # text mode, it properly converts lines to CR/LF.  This bash problem
17407e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # is reportedly fixed, but why not run on old versions too?
17408e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed '$q' "$ltmain" >> "$cfgfile" \
17409e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley     || (rm -f "$cfgfile"; exit 1)
17410e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17411e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  if test x"$xsi_shell" = xyes; then
17412e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17413e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_dirname ()\
17414e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17415e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    case ${1} in\
17416e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\      */*) func_dirname_result="${1%/*}${2}" ;;\
17417e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\      *  ) func_dirname_result="${3}" ;;\
17418e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    esac\
17419e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17420e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17421e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17422e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17423e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17424e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17425e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17426e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_basename ()\
17427e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17428e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_basename_result="${1##*/}"\
17429e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17430e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17431e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17432e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17433e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17434e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17435e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17436e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_dirname_and_basename ()\
17437e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17438e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    case ${1} in\
17439e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\      */*) func_dirname_result="${1%/*}${2}" ;;\
17440e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\      *  ) func_dirname_result="${3}" ;;\
17441e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    esac\
17442e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_basename_result="${1##*/}"\
17443e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17444e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17445e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17446e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17447e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17448e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17449e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17450e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_stripname ()\
17451e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17452e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17453e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    # positional parameters, so assign one to ordinary parameter first.\
17454e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_stripname_result=${3}\
17455e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_stripname_result=${func_stripname_result#"${1}"}\
17456e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_stripname_result=${func_stripname_result%"${2}"}\
17457e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17458e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17459e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17460e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17461e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17462e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17463e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17464e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_split_long_opt ()\
17465e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17466e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_split_long_opt_name=${1%%=*}\
17467e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_split_long_opt_arg=${1#*=}\
17468e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17469e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17470e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17471e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17472e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17473e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17474e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17475e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_split_short_opt ()\
17476e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17477e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_split_short_opt_arg=${1#??}\
17478e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17479e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17480e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17481e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17482e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17483e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17484e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17485e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17486e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_lo2o ()\
17487e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17488e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    case ${1} in\
17489e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17490e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\      *)    func_lo2o_result=${1} ;;\
17491e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    esac\
17492e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17493e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17494e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17495e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17496e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17497e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17498e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17499e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_xform ()\
17500e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17501e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    func_xform_result=${1%.*}.lo\
17502e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17503e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17504e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17505e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17506e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17507e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17508e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17509e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_arith ()\
17510e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17511e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    func_arith_result=$(( $* ))\
17512e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17513e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17514e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17515e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17516e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17517e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17518e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_len ()$/,/^} # func_len /c\
17519e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_len ()\
17520e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17521e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    func_len_result=${#1}\
17522e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17523e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17524e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17525e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17526e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17527e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
17528e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17529e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"$lt_shell_append" = xyes; then
17530e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_append ()$/,/^} # func_append /c\
17531e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_append ()\
17532e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17533e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    eval "${1}+=\\${2}"\
17534e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17535e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17536e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17537e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17538e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17539e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17540e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17541e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfunc_append_quoted ()\
17542e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley{\
17543e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    func_quote_for_eval "${2}"\
17544e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17545e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17546e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  && mv -f "$cfgfile.tmp" "$cfgfile" \
17547e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17548e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest 0 -eq $? || _lt_function_replace_fail=:
17549e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17550e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17551e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Save a `func_append' function call where possible by direct use of '+='
17552e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17553e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    && mv -f "$cfgfile.tmp" "$cfgfile" \
17554e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17555e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test 0 -eq $? || _lt_function_replace_fail=:
17556e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyelse
17557e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Save a `func_append' function call even when '+=' is not available
17558e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17559e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    && mv -f "$cfgfile.tmp" "$cfgfile" \
17560e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17561e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test 0 -eq $? || _lt_function_replace_fail=:
17562e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
17563e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17564e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test x"$_lt_function_replace_fail" = x":"; then
17565e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17566e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17567e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
17568e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17569e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17570e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley   mv -f "$cfgfile" "$ofile" ||
17571e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17572e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  chmod +x "$ofile"
17573e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17574e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley ;;
17575e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17576e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  esac
17577e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileydone # for ac_tag
17578e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17579e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17580e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyas_fn_exit 0
17581e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley_ACEOF
17582e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyac_clean_files=$ac_clean_files_save
17583e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17584e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileytest $ac_write_fail = 0 ||
17585e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17586e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17587e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17588e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# configure is writing to config.log, and then calls config.status.
17589e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# config.status does its own redirection, appending to config.log.
17590e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# Unfortunately, on DOS this fails, as config.log is still kept open
17591e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# by configure, so config.status won't be able to write to it; its
17592e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# output is simply discarded.  So we exec the FD to /dev/null,
17593e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# effectively closing config.log, so it can be properly (re)opened and
17594e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# appended to by config.status.  When coming back to configure, we
17595e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley# need to make the FD available again.
17596e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test "$no_create" != yes; then
17597e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_cs_success=:
17598e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  ac_config_status_args=
17599e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  test "$silent" = yes &&
17600e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley    ac_config_status_args="$ac_config_status_args --quiet"
17601e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exec 5>/dev/null
17602e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17603e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  exec 5>>config.log
17604e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17605e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  # would make configure fail if this is the last instruction.
17606e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  $ac_cs_success || as_fn_exit 1
17607e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
17608e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17609e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17610e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17611e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wileyfi
17612e867981d427db5e0b860d67485838e1f9e8c37daChristopher Wiley
17613