configure revision 3fe82118
1b042e37fSmrg#! /bin/sh
2b042e37fSmrg# Guess values for system-dependent variables and create Makefiles.
3bd23fbfaSmrg# Generated by GNU Autoconf 2.68 for libXrandr 1.3.2.
4b042e37fSmrg#
5b042e37fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6b042e37fSmrg#
7706b6b52Smrg#
8b042e37fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9706b6b52Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10706b6b52Smrg# Foundation, Inc.
11706b6b52Smrg#
12706b6b52Smrg#
13b042e37fSmrg# This configure script is free software; the Free Software Foundation
14b042e37fSmrg# gives unlimited permission to copy, distribute and modify it.
15706b6b52Smrg## -------------------- ##
16706b6b52Smrg## M4sh Initialization. ##
17706b6b52Smrg## -------------------- ##
18b042e37fSmrg
19b042e37fSmrg# Be more Bourne compatible
20b042e37fSmrgDUALCASE=1; export DUALCASE # for MKS sh
21706b6b52Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22b042e37fSmrg  emulate sh
23b042e37fSmrg  NULLCMD=:
248c4a8e55Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25b042e37fSmrg  # is contrary to our usage.  Disable this feature.
26b042e37fSmrg  alias -g '${1+"$@"}'='"$@"'
27b042e37fSmrg  setopt NO_GLOB_SUBST
28b042e37fSmrgelse
29706b6b52Smrg  case `(set -o) 2>/dev/null` in #(
30706b6b52Smrg  *posix*) :
31706b6b52Smrg    set -o posix ;; #(
32706b6b52Smrg  *) :
33706b6b52Smrg     ;;
34b042e37fSmrgesac
35b042e37fSmrgfi
36b042e37fSmrg
37b042e37fSmrg
388c4a8e55Smrgas_nl='
398c4a8e55Smrg'
408c4a8e55Smrgexport as_nl
418c4a8e55Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
428c4a8e55Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
438c4a8e55Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
448c4a8e55Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45706b6b52Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46706b6b52Smrg# but without wasting forks for bash or zsh.
47706b6b52Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48706b6b52Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49706b6b52Smrg  as_echo='print -r --'
50706b6b52Smrg  as_echo_n='print -rn --'
51706b6b52Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
528c4a8e55Smrg  as_echo='printf %s\n'
538c4a8e55Smrg  as_echo_n='printf %s'
548c4a8e55Smrgelse
558c4a8e55Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
568c4a8e55Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
578c4a8e55Smrg    as_echo_n='/usr/ucb/echo -n'
588c4a8e55Smrg  else
598c4a8e55Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
608c4a8e55Smrg    as_echo_n_body='eval
618c4a8e55Smrg      arg=$1;
62706b6b52Smrg      case $arg in #(
638c4a8e55Smrg      *"$as_nl"*)
648c4a8e55Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
658c4a8e55Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
668c4a8e55Smrg      esac;
678c4a8e55Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
688c4a8e55Smrg    '
698c4a8e55Smrg    export as_echo_n_body
708c4a8e55Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
718c4a8e55Smrg  fi
728c4a8e55Smrg  export as_echo_body
738c4a8e55Smrg  as_echo='sh -c $as_echo_body as_echo'
748c4a8e55Smrgfi
758c4a8e55Smrg
76b042e37fSmrg# The user is always right.
77b042e37fSmrgif test "${PATH_SEPARATOR+set}" != set; then
788c4a8e55Smrg  PATH_SEPARATOR=:
798c4a8e55Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
808c4a8e55Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
818c4a8e55Smrg      PATH_SEPARATOR=';'
828c4a8e55Smrg  }
83b042e37fSmrgfi
84b042e37fSmrg
85b042e37fSmrg
86b042e37fSmrg# IFS
87b042e37fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88b042e37fSmrg# there to prevent editors from complaining about space-tab.
89b042e37fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90b042e37fSmrg# splitting by setting IFS to empty value.)
91b042e37fSmrgIFS=" ""	$as_nl"
92b042e37fSmrg
93b042e37fSmrg# Find who we are.  Look in the path if we contain no directory separator.
94706b6b52Smrgas_myself=
95706b6b52Smrgcase $0 in #((
96b042e37fSmrg  *[\\/]* ) as_myself=$0 ;;
97b042e37fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98b042e37fSmrgfor as_dir in $PATH
99b042e37fSmrgdo
100b042e37fSmrg  IFS=$as_save_IFS
101b042e37fSmrg  test -z "$as_dir" && as_dir=.
102706b6b52Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103706b6b52Smrg  done
104b042e37fSmrgIFS=$as_save_IFS
105b042e37fSmrg
106b042e37fSmrg     ;;
107b042e37fSmrgesac
108b042e37fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109b042e37fSmrg# in which case we are not to be found in the path.
110b042e37fSmrgif test "x$as_myself" = x; then
111b042e37fSmrg  as_myself=$0
112b042e37fSmrgfi
113b042e37fSmrgif test ! -f "$as_myself"; then
1148c4a8e55Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115706b6b52Smrg  exit 1
116b042e37fSmrgfi
117b042e37fSmrg
118706b6b52Smrg# Unset variables that we do not need and which cause bugs (e.g. in
119706b6b52Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120706b6b52Smrg# suppresses any "Segmentation fault" message there.  '((' could
121706b6b52Smrg# trigger a bug in pdksh 5.2.14.
122706b6b52Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123706b6b52Smrgdo eval test x\${$as_var+set} = xset \
124706b6b52Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125b042e37fSmrgdone
126b042e37fSmrgPS1='$ '
127b042e37fSmrgPS2='> '
128b042e37fSmrgPS4='+ '
129b042e37fSmrg
130b042e37fSmrg# NLS nuisances.
1318c4a8e55SmrgLC_ALL=C
1328c4a8e55Smrgexport LC_ALL
1338c4a8e55SmrgLANGUAGE=C
1348c4a8e55Smrgexport LANGUAGE
135b042e37fSmrg
136706b6b52Smrg# CDPATH.
137706b6b52Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138706b6b52Smrg
139706b6b52Smrgif test "x$CONFIG_SHELL" = x; then
140706b6b52Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141706b6b52Smrg  emulate sh
142706b6b52Smrg  NULLCMD=:
143706b6b52Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144706b6b52Smrg  # is contrary to our usage.  Disable this feature.
145706b6b52Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146706b6b52Smrg  setopt NO_GLOB_SUBST
147706b6b52Smrgelse
148706b6b52Smrg  case \`(set -o) 2>/dev/null\` in #(
149706b6b52Smrg  *posix*) :
150706b6b52Smrg    set -o posix ;; #(
151706b6b52Smrg  *) :
152706b6b52Smrg     ;;
153706b6b52Smrgesac
154706b6b52Smrgfi
155706b6b52Smrg"
156706b6b52Smrg  as_required="as_fn_return () { (exit \$1); }
157706b6b52Smrgas_fn_success () { as_fn_return 0; }
158706b6b52Smrgas_fn_failure () { as_fn_return 1; }
159706b6b52Smrgas_fn_ret_success () { return 0; }
160706b6b52Smrgas_fn_ret_failure () { return 1; }
161706b6b52Smrg
162706b6b52Smrgexitcode=0
163706b6b52Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164706b6b52Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165706b6b52Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166706b6b52Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167706b6b52Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168706b6b52Smrg
169706b6b52Smrgelse
170706b6b52Smrg  exitcode=1; echo positional parameters were not saved.
171706b6b52Smrgfi
172706b6b52Smrgtest x\$exitcode = x0 || exit 1"
173706b6b52Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174706b6b52Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175706b6b52Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176706b6b52Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177706b6b52Smrg
178706b6b52Smrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179706b6b52Smrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180706b6b52Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181706b6b52Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182706b6b52Smrg    PATH=/empty FPATH=/empty; export PATH FPATH
183706b6b52Smrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184bd23fbfaSmrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185bd23fbfaSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
186706b6b52Smrg  if (eval "$as_required") 2>/dev/null; then :
187706b6b52Smrg  as_have_required=yes
188706b6b52Smrgelse
189706b6b52Smrg  as_have_required=no
190706b6b52Smrgfi
191706b6b52Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192706b6b52Smrg
193706b6b52Smrgelse
194706b6b52Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195706b6b52Smrgas_found=false
196706b6b52Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197706b6b52Smrgdo
198706b6b52Smrg  IFS=$as_save_IFS
199706b6b52Smrg  test -z "$as_dir" && as_dir=.
200706b6b52Smrg  as_found=:
201706b6b52Smrg  case $as_dir in #(
202706b6b52Smrg	 /*)
203706b6b52Smrg	   for as_base in sh bash ksh sh5; do
204706b6b52Smrg	     # Try only shells that exist, to save several forks.
205706b6b52Smrg	     as_shell=$as_dir/$as_base
206706b6b52Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207706b6b52Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208706b6b52Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
209706b6b52Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210706b6b52Smrg  break 2
211706b6b52Smrgfi
212706b6b52Smrgfi
213706b6b52Smrg	   done;;
214706b6b52Smrg       esac
215706b6b52Smrg  as_found=false
216706b6b52Smrgdone
217706b6b52Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218706b6b52Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219706b6b52Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
220706b6b52Smrgfi; }
221706b6b52SmrgIFS=$as_save_IFS
222706b6b52Smrg
223706b6b52Smrg
224706b6b52Smrg      if test "x$CONFIG_SHELL" != x; then :
225706b6b52Smrg  # We cannot yet assume a decent shell, so we have to provide a
226706b6b52Smrg	# neutralization value for shells without unset; and this also
227706b6b52Smrg	# works around shells that cannot unset nonexistent variables.
228706b6b52Smrg	# Preserve -v and -x to the replacement shell.
229706b6b52Smrg	BASH_ENV=/dev/null
230706b6b52Smrg	ENV=/dev/null
231706b6b52Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232706b6b52Smrg	export CONFIG_SHELL
233706b6b52Smrg	case $- in # ((((
234706b6b52Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
235706b6b52Smrg	  *v* ) as_opts=-v ;;
236706b6b52Smrg	  *x* ) as_opts=-x ;;
237706b6b52Smrg	  * ) as_opts= ;;
238706b6b52Smrg	esac
239706b6b52Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240706b6b52Smrgfi
241706b6b52Smrg
242706b6b52Smrg    if test x$as_have_required = xno; then :
243706b6b52Smrg  $as_echo "$0: This script requires a shell more modern than all"
244706b6b52Smrg  $as_echo "$0: the shells that I found on your system."
245706b6b52Smrg  if test x${ZSH_VERSION+set} = xset ; then
246706b6b52Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247706b6b52Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248706b6b52Smrg  else
249706b6b52Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250706b6b52Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251706b6b52Smrg$0: about your system, including any error possibly output
252706b6b52Smrg$0: before this message. Then install a modern shell, or
253706b6b52Smrg$0: manually run the script under such a shell if you do
254706b6b52Smrg$0: have one."
255706b6b52Smrg  fi
256706b6b52Smrg  exit 1
257706b6b52Smrgfi
258706b6b52Smrgfi
259706b6b52Smrgfi
260706b6b52SmrgSHELL=${CONFIG_SHELL-/bin/sh}
261706b6b52Smrgexport SHELL
262706b6b52Smrg# Unset more variables known to interfere with behavior of common tools.
263706b6b52SmrgCLICOLOR_FORCE= GREP_OPTIONS=
264706b6b52Smrgunset CLICOLOR_FORCE GREP_OPTIONS
265706b6b52Smrg
266706b6b52Smrg## --------------------- ##
267706b6b52Smrg## M4sh Shell Functions. ##
268706b6b52Smrg## --------------------- ##
269706b6b52Smrg# as_fn_unset VAR
270706b6b52Smrg# ---------------
271706b6b52Smrg# Portably unset VAR.
272706b6b52Smrgas_fn_unset ()
273706b6b52Smrg{
274706b6b52Smrg  { eval $1=; unset $1;}
275706b6b52Smrg}
276706b6b52Smrgas_unset=as_fn_unset
277706b6b52Smrg
278706b6b52Smrg# as_fn_set_status STATUS
279706b6b52Smrg# -----------------------
280706b6b52Smrg# Set $? to STATUS, without forking.
281706b6b52Smrgas_fn_set_status ()
282706b6b52Smrg{
283706b6b52Smrg  return $1
284706b6b52Smrg} # as_fn_set_status
285706b6b52Smrg
286706b6b52Smrg# as_fn_exit STATUS
287706b6b52Smrg# -----------------
288706b6b52Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289706b6b52Smrgas_fn_exit ()
290706b6b52Smrg{
291706b6b52Smrg  set +e
292706b6b52Smrg  as_fn_set_status $1
293706b6b52Smrg  exit $1
294706b6b52Smrg} # as_fn_exit
295706b6b52Smrg
296706b6b52Smrg# as_fn_mkdir_p
297706b6b52Smrg# -------------
298706b6b52Smrg# Create "$as_dir" as a directory, including parents if necessary.
299706b6b52Smrgas_fn_mkdir_p ()
300706b6b52Smrg{
301706b6b52Smrg
302706b6b52Smrg  case $as_dir in #(
303706b6b52Smrg  -*) as_dir=./$as_dir;;
304706b6b52Smrg  esac
305706b6b52Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
306706b6b52Smrg    as_dirs=
307706b6b52Smrg    while :; do
308706b6b52Smrg      case $as_dir in #(
309706b6b52Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310706b6b52Smrg      *) as_qdir=$as_dir;;
311706b6b52Smrg      esac
312706b6b52Smrg      as_dirs="'$as_qdir' $as_dirs"
313706b6b52Smrg      as_dir=`$as_dirname -- "$as_dir" ||
314706b6b52Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315706b6b52Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
316706b6b52Smrg	 X"$as_dir" : 'X\(//\)$' \| \
317706b6b52Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318706b6b52Smrg$as_echo X"$as_dir" |
319706b6b52Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320706b6b52Smrg	    s//\1/
321706b6b52Smrg	    q
322706b6b52Smrg	  }
323706b6b52Smrg	  /^X\(\/\/\)[^/].*/{
324706b6b52Smrg	    s//\1/
325706b6b52Smrg	    q
326706b6b52Smrg	  }
327706b6b52Smrg	  /^X\(\/\/\)$/{
328706b6b52Smrg	    s//\1/
329706b6b52Smrg	    q
330706b6b52Smrg	  }
331706b6b52Smrg	  /^X\(\/\).*/{
332706b6b52Smrg	    s//\1/
333706b6b52Smrg	    q
334706b6b52Smrg	  }
335706b6b52Smrg	  s/.*/./; q'`
336706b6b52Smrg      test -d "$as_dir" && break
337706b6b52Smrg    done
338706b6b52Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
339706b6b52Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340706b6b52Smrg
341706b6b52Smrg
342706b6b52Smrg} # as_fn_mkdir_p
343706b6b52Smrg# as_fn_append VAR VALUE
344706b6b52Smrg# ----------------------
345706b6b52Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
346706b6b52Smrg# advantage of any shell optimizations that allow amortized linear growth over
347706b6b52Smrg# repeated appends, instead of the typical quadratic growth present in naive
348706b6b52Smrg# implementations.
349706b6b52Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350706b6b52Smrg  eval 'as_fn_append ()
351706b6b52Smrg  {
352706b6b52Smrg    eval $1+=\$2
353706b6b52Smrg  }'
354706b6b52Smrgelse
355706b6b52Smrg  as_fn_append ()
356706b6b52Smrg  {
357706b6b52Smrg    eval $1=\$$1\$2
358706b6b52Smrg  }
359706b6b52Smrgfi # as_fn_append
360706b6b52Smrg
361706b6b52Smrg# as_fn_arith ARG...
362706b6b52Smrg# ------------------
363706b6b52Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
364706b6b52Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
365706b6b52Smrg# must be portable across $(()) and expr.
366706b6b52Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367706b6b52Smrg  eval 'as_fn_arith ()
368706b6b52Smrg  {
369706b6b52Smrg    as_val=$(( $* ))
370706b6b52Smrg  }'
371706b6b52Smrgelse
372706b6b52Smrg  as_fn_arith ()
373706b6b52Smrg  {
374706b6b52Smrg    as_val=`expr "$@" || test $? -eq 1`
375706b6b52Smrg  }
376706b6b52Smrgfi # as_fn_arith
377706b6b52Smrg
378706b6b52Smrg
379706b6b52Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
380706b6b52Smrg# ----------------------------------------
381706b6b52Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382706b6b52Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383706b6b52Smrg# script with STATUS, using 1 if that was 0.
384706b6b52Smrgas_fn_error ()
385706b6b52Smrg{
386706b6b52Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
387706b6b52Smrg  if test "$4"; then
388706b6b52Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390706b6b52Smrg  fi
391706b6b52Smrg  $as_echo "$as_me: error: $2" >&2
392706b6b52Smrg  as_fn_exit $as_status
393706b6b52Smrg} # as_fn_error
394706b6b52Smrg
395b042e37fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
396b042e37fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397b042e37fSmrg  as_expr=expr
398b042e37fSmrgelse
399b042e37fSmrg  as_expr=false
400b042e37fSmrgfi
401b042e37fSmrg
402b042e37fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403b042e37fSmrg  as_basename=basename
404b042e37fSmrgelse
405b042e37fSmrg  as_basename=false
406b042e37fSmrgfi
407b042e37fSmrg
408706b6b52Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409706b6b52Smrg  as_dirname=dirname
410706b6b52Smrgelse
411706b6b52Smrg  as_dirname=false
412706b6b52Smrgfi
413b042e37fSmrg
414b042e37fSmrgas_me=`$as_basename -- "$0" ||
415b042e37fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416b042e37fSmrg	 X"$0" : 'X\(//\)$' \| \
417b042e37fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4188c4a8e55Smrg$as_echo X/"$0" |
419b042e37fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
420b042e37fSmrg	    s//\1/
421b042e37fSmrg	    q
422b042e37fSmrg	  }
423b042e37fSmrg	  /^X\/\(\/\/\)$/{
424b042e37fSmrg	    s//\1/
425b042e37fSmrg	    q
426b042e37fSmrg	  }
427b042e37fSmrg	  /^X\/\(\/\).*/{
428b042e37fSmrg	    s//\1/
429b042e37fSmrg	    q
430b042e37fSmrg	  }
431b042e37fSmrg	  s/.*/./; q'`
432b042e37fSmrg
433706b6b52Smrg# Avoid depending upon Character Ranges.
434706b6b52Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
435706b6b52Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436706b6b52Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
437706b6b52Smrgas_cr_digits='0123456789'
438706b6b52Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
439b042e37fSmrg
440b042e37fSmrg
441706b6b52Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442706b6b52Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443706b6b52Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444706b6b52Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445706b6b52Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446706b6b52Smrg  sed -n '
447706b6b52Smrg    p
448706b6b52Smrg    /[$]LINENO/=
449706b6b52Smrg  ' <$as_myself |
450706b6b52Smrg    sed '
451706b6b52Smrg      s/[$]LINENO.*/&-/
452706b6b52Smrg      t lineno
453706b6b52Smrg      b
454706b6b52Smrg      :lineno
455706b6b52Smrg      N
456706b6b52Smrg      :loop
457706b6b52Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458706b6b52Smrg      t loop
459706b6b52Smrg      s/-\n.*//
460706b6b52Smrg    ' >$as_me.lineno &&
461706b6b52Smrg  chmod +x "$as_me.lineno" ||
462706b6b52Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463b042e37fSmrg
464706b6b52Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
465706b6b52Smrg  # (the dirname of $[0] is not the place where we might find the
466706b6b52Smrg  # original and so on.  Autoconf is especially sensitive to this).
467706b6b52Smrg  . "./$as_me.lineno"
468706b6b52Smrg  # Exit status is that of the last command.
469706b6b52Smrg  exit
470b042e37fSmrg}
471b042e37fSmrg
472706b6b52SmrgECHO_C= ECHO_N= ECHO_T=
473706b6b52Smrgcase `echo -n x` in #(((((
474706b6b52Smrg-n*)
475706b6b52Smrg  case `echo 'xy\c'` in
476706b6b52Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477706b6b52Smrg  xy)  ECHO_C='\c';;
478706b6b52Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479706b6b52Smrg       ECHO_T='	';;
480706b6b52Smrg  esac;;
481706b6b52Smrg*)
482706b6b52Smrg  ECHO_N='-n';;
483706b6b52Smrgesac
484b042e37fSmrg
485706b6b52Smrgrm -f conf$$ conf$$.exe conf$$.file
486706b6b52Smrgif test -d conf$$.dir; then
487706b6b52Smrg  rm -f conf$$.dir/conf$$.file
488706b6b52Smrgelse
489706b6b52Smrg  rm -f conf$$.dir
490706b6b52Smrg  mkdir conf$$.dir 2>/dev/null
491b042e37fSmrgfi
492706b6b52Smrgif (echo >conf$$.file) 2>/dev/null; then
493706b6b52Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
494706b6b52Smrg    as_ln_s='ln -s'
495706b6b52Smrg    # ... but there are two gotchas:
496706b6b52Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497706b6b52Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498706b6b52Smrg    # In both cases, we have to default to `cp -p'.
499706b6b52Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500706b6b52Smrg      as_ln_s='cp -p'
501706b6b52Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
502706b6b52Smrg    as_ln_s=ln
503706b6b52Smrg  else
504706b6b52Smrg    as_ln_s='cp -p'
505706b6b52Smrg  fi
506b042e37fSmrgelse
507706b6b52Smrg  as_ln_s='cp -p'
508b042e37fSmrgfi
509706b6b52Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510706b6b52Smrgrmdir conf$$.dir 2>/dev/null
511b042e37fSmrg
512706b6b52Smrgif mkdir -p . 2>/dev/null; then
513706b6b52Smrg  as_mkdir_p='mkdir -p "$as_dir"'
514706b6b52Smrgelse
515706b6b52Smrg  test -d ./-p && rmdir ./-p
516706b6b52Smrg  as_mkdir_p=false
517b042e37fSmrgfi
518b042e37fSmrg
519706b6b52Smrgif test -x / >/dev/null 2>&1; then
520706b6b52Smrg  as_test_x='test -x'
521b042e37fSmrgelse
522706b6b52Smrg  if ls -dL / >/dev/null 2>&1; then
523706b6b52Smrg    as_ls_L_option=L
524706b6b52Smrg  else
525706b6b52Smrg    as_ls_L_option=
526706b6b52Smrg  fi
527706b6b52Smrg  as_test_x='
528706b6b52Smrg    eval sh -c '\''
529706b6b52Smrg      if test -d "$1"; then
530706b6b52Smrg	test -d "$1/.";
531706b6b52Smrg      else
532706b6b52Smrg	case $1 in #(
533706b6b52Smrg	-*)set "./$1";;
534706b6b52Smrg	esac;
535706b6b52Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536706b6b52Smrg	???[sx]*):;;*)false;;esac;fi
537706b6b52Smrg    '\'' sh
538706b6b52Smrg  '
539b042e37fSmrgfi
540706b6b52Smrgas_executable_p=$as_test_x
541b042e37fSmrg
542706b6b52Smrg# Sed expression to map a string onto a valid CPP name.
543706b6b52Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544b042e37fSmrg
545706b6b52Smrg# Sed expression to map a string onto a valid variable name.
546706b6b52Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547b042e37fSmrg
548706b6b52SmrgSHELL=${CONFIG_SHELL-/bin/sh}
549b042e37fSmrg
550b042e37fSmrg
551706b6b52Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
552706b6b52Smrgexec 6>&1
553b042e37fSmrg
554706b6b52Smrg# Name of the host.
555706b6b52Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556706b6b52Smrg# so uname gets run too.
557706b6b52Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558b042e37fSmrg
559706b6b52Smrg#
560706b6b52Smrg# Initializations.
561706b6b52Smrg#
562706b6b52Smrgac_default_prefix=/usr/local
563706b6b52Smrgac_clean_files=
564706b6b52Smrgac_config_libobj_dir=.
565706b6b52SmrgLIBOBJS=
566706b6b52Smrgcross_compiling=no
567706b6b52Smrgsubdirs=
568706b6b52SmrgMFLAGS=
569706b6b52SmrgMAKEFLAGS=
570b042e37fSmrg
571706b6b52Smrg# Identity of this package.
572706b6b52SmrgPACKAGE_NAME='libXrandr'
573706b6b52SmrgPACKAGE_TARNAME='libXrandr'
574bd23fbfaSmrgPACKAGE_VERSION='1.3.2'
575bd23fbfaSmrgPACKAGE_STRING='libXrandr 1.3.2'
576706b6b52SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577706b6b52SmrgPACKAGE_URL=''
578b042e37fSmrg
579bd23fbfaSmrgac_unique_file="Makefile.am"
580706b6b52Smrg# Factoring default headers for most tests.
581706b6b52Smrgac_includes_default="\
582706b6b52Smrg#include <stdio.h>
583706b6b52Smrg#ifdef HAVE_SYS_TYPES_H
584706b6b52Smrg# include <sys/types.h>
585706b6b52Smrg#endif
586706b6b52Smrg#ifdef HAVE_SYS_STAT_H
587706b6b52Smrg# include <sys/stat.h>
588706b6b52Smrg#endif
589706b6b52Smrg#ifdef STDC_HEADERS
590706b6b52Smrg# include <stdlib.h>
591706b6b52Smrg# include <stddef.h>
592706b6b52Smrg#else
593706b6b52Smrg# ifdef HAVE_STDLIB_H
594706b6b52Smrg#  include <stdlib.h>
595706b6b52Smrg# endif
596706b6b52Smrg#endif
597706b6b52Smrg#ifdef HAVE_STRING_H
598706b6b52Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599706b6b52Smrg#  include <memory.h>
600706b6b52Smrg# endif
601706b6b52Smrg# include <string.h>
602706b6b52Smrg#endif
603706b6b52Smrg#ifdef HAVE_STRINGS_H
604706b6b52Smrg# include <strings.h>
605706b6b52Smrg#endif
606706b6b52Smrg#ifdef HAVE_INTTYPES_H
607706b6b52Smrg# include <inttypes.h>
608706b6b52Smrg#endif
609706b6b52Smrg#ifdef HAVE_STDINT_H
610706b6b52Smrg# include <stdint.h>
611706b6b52Smrg#endif
612706b6b52Smrg#ifdef HAVE_UNISTD_H
613706b6b52Smrg# include <unistd.h>
614706b6b52Smrg#endif"
615b042e37fSmrg
616706b6b52Smrgac_subst_vars='am__EXEEXT_FALSE
617706b6b52Smrgam__EXEEXT_TRUE
618706b6b52SmrgLTLIBOBJS
619706b6b52SmrgLIBOBJS
620706b6b52SmrgRANDR_LIBS
621706b6b52SmrgRANDR_CFLAGS
622706b6b52SmrgRANDR_VERSION
623bd23fbfaSmrgXTMALLOC_ZERO_CFLAGS
624bd23fbfaSmrgXMALLOC_ZERO_CFLAGS
625bd23fbfaSmrgMALLOC_ZERO_CFLAGS
626706b6b52SmrgAM_BACKSLASH
627706b6b52SmrgAM_DEFAULT_VERBOSITY
628706b6b52SmrgMAN_SUBSTS
629706b6b52SmrgXORG_MAN_PAGE
630706b6b52SmrgADMIN_MAN_DIR
631706b6b52SmrgDRIVER_MAN_DIR
632706b6b52SmrgMISC_MAN_DIR
633706b6b52SmrgFILE_MAN_DIR
634706b6b52SmrgLIB_MAN_DIR
635706b6b52SmrgAPP_MAN_DIR
636706b6b52SmrgADMIN_MAN_SUFFIX
637706b6b52SmrgDRIVER_MAN_SUFFIX
638706b6b52SmrgMISC_MAN_SUFFIX
639706b6b52SmrgFILE_MAN_SUFFIX
640706b6b52SmrgLIB_MAN_SUFFIX
641706b6b52SmrgAPP_MAN_SUFFIX
642706b6b52SmrgINSTALL_CMD
643706b6b52SmrgPKG_CONFIG
644706b6b52SmrgCHANGELOG_CMD
645bd23fbfaSmrgSTRICT_CFLAGS
646706b6b52SmrgCWARNFLAGS
647bd23fbfaSmrgCPP
648bd23fbfaSmrgOTOOL64
649bd23fbfaSmrgOTOOL
650bd23fbfaSmrgLIPO
651bd23fbfaSmrgNMEDIT
652bd23fbfaSmrgDSYMUTIL
653bd23fbfaSmrgMANIFEST_TOOL
654bd23fbfaSmrgRANLIB
655bd23fbfaSmrgac_ct_AR
656bd23fbfaSmrgAR
657bd23fbfaSmrgDLLTOOL
658bd23fbfaSmrgOBJDUMP
659bd23fbfaSmrgLN_S
660bd23fbfaSmrgNM
661bd23fbfaSmrgac_ct_DUMPBIN
662bd23fbfaSmrgDUMPBIN
663bd23fbfaSmrgLD
664bd23fbfaSmrgFGREP
665706b6b52SmrgEGREP
666706b6b52SmrgGREP
667bd23fbfaSmrgSED
668706b6b52Smrgam__fastdepCC_FALSE
669706b6b52Smrgam__fastdepCC_TRUE
670706b6b52SmrgCCDEPMODE
671706b6b52SmrgAMDEPBACKSLASH
672706b6b52SmrgAMDEP_FALSE
673706b6b52SmrgAMDEP_TRUE
674706b6b52Smrgam__quote
675706b6b52Smrgam__include
676706b6b52SmrgDEPDIR
677706b6b52SmrgOBJEXT
678706b6b52SmrgEXEEXT
679706b6b52Smrgac_ct_CC
680706b6b52SmrgCPPFLAGS
681706b6b52SmrgLDFLAGS
682706b6b52SmrgCFLAGS
683706b6b52SmrgCC
684bd23fbfaSmrghost_os
685bd23fbfaSmrghost_vendor
686bd23fbfaSmrghost_cpu
687bd23fbfaSmrghost
688bd23fbfaSmrgbuild_os
689bd23fbfaSmrgbuild_vendor
690bd23fbfaSmrgbuild_cpu
691bd23fbfaSmrgbuild
692bd23fbfaSmrgLIBTOOL
693706b6b52SmrgMAINT
694706b6b52SmrgMAINTAINER_MODE_FALSE
695706b6b52SmrgMAINTAINER_MODE_TRUE
696706b6b52Smrgam__untar
697706b6b52Smrgam__tar
698706b6b52SmrgAMTAR
699706b6b52Smrgam__leading_dot
700706b6b52SmrgSET_MAKE
701706b6b52SmrgAWK
702706b6b52Smrgmkdir_p
703706b6b52SmrgMKDIR_P
704706b6b52SmrgINSTALL_STRIP_PROGRAM
705706b6b52SmrgSTRIP
706706b6b52Smrginstall_sh
707706b6b52SmrgMAKEINFO
708706b6b52SmrgAUTOHEADER
709706b6b52SmrgAUTOMAKE
710706b6b52SmrgAUTOCONF
711706b6b52SmrgACLOCAL
712706b6b52SmrgVERSION
713706b6b52SmrgPACKAGE
714706b6b52SmrgCYGPATH_W
715706b6b52Smrgam__isrc
716706b6b52SmrgINSTALL_DATA
717706b6b52SmrgINSTALL_SCRIPT
718706b6b52SmrgINSTALL_PROGRAM
719706b6b52Smrgtarget_alias
720706b6b52Smrghost_alias
721706b6b52Smrgbuild_alias
722706b6b52SmrgLIBS
723706b6b52SmrgECHO_T
724706b6b52SmrgECHO_N
725706b6b52SmrgECHO_C
726706b6b52SmrgDEFS
727706b6b52Smrgmandir
728706b6b52Smrglocaledir
729706b6b52Smrglibdir
730706b6b52Smrgpsdir
731706b6b52Smrgpdfdir
732706b6b52Smrgdvidir
733706b6b52Smrghtmldir
734706b6b52Smrginfodir
735706b6b52Smrgdocdir
736706b6b52Smrgoldincludedir
737706b6b52Smrgincludedir
738706b6b52Smrglocalstatedir
739706b6b52Smrgsharedstatedir
740706b6b52Smrgsysconfdir
741706b6b52Smrgdatadir
742706b6b52Smrgdatarootdir
743706b6b52Smrglibexecdir
744706b6b52Smrgsbindir
745706b6b52Smrgbindir
746706b6b52Smrgprogram_transform_name
747706b6b52Smrgprefix
748706b6b52Smrgexec_prefix
749706b6b52SmrgPACKAGE_URL
750706b6b52SmrgPACKAGE_BUGREPORT
751706b6b52SmrgPACKAGE_STRING
752706b6b52SmrgPACKAGE_VERSION
753706b6b52SmrgPACKAGE_TARNAME
754706b6b52SmrgPACKAGE_NAME
755706b6b52SmrgPATH_SEPARATOR
756706b6b52SmrgSHELL'
757706b6b52Smrgac_subst_files=''
758706b6b52Smrgac_user_opts='
759706b6b52Smrgenable_option_checking
760706b6b52Smrgenable_maintainer_mode
761706b6b52Smrgenable_shared
762706b6b52Smrgenable_static
763706b6b52Smrgwith_pic
764706b6b52Smrgenable_fast_install
765bd23fbfaSmrgenable_dependency_tracking
766706b6b52Smrgwith_gnu_ld
767bd23fbfaSmrgwith_sysroot
768706b6b52Smrgenable_libtool_lock
769bd23fbfaSmrgenable_strict_compilation
770bd23fbfaSmrgenable_silent_rules
771706b6b52Smrgenable_malloc0returnsnull
772706b6b52Smrg'
773706b6b52Smrg      ac_precious_vars='build_alias
774706b6b52Smrghost_alias
775706b6b52Smrgtarget_alias
776706b6b52SmrgCC
777706b6b52SmrgCFLAGS
778706b6b52SmrgLDFLAGS
779706b6b52SmrgLIBS
780706b6b52SmrgCPPFLAGS
781706b6b52SmrgCPP
782706b6b52SmrgPKG_CONFIG
783706b6b52SmrgRANDR_CFLAGS
784706b6b52SmrgRANDR_LIBS'
785b042e37fSmrg
786b042e37fSmrg
787706b6b52Smrg# Initialize some variables set by options.
788706b6b52Smrgac_init_help=
789706b6b52Smrgac_init_version=false
790706b6b52Smrgac_unrecognized_opts=
791706b6b52Smrgac_unrecognized_sep=
792706b6b52Smrg# The variables have the same names as the options, with
793706b6b52Smrg# dashes changed to underlines.
794706b6b52Smrgcache_file=/dev/null
795706b6b52Smrgexec_prefix=NONE
796706b6b52Smrgno_create=
797706b6b52Smrgno_recursion=
798706b6b52Smrgprefix=NONE
799706b6b52Smrgprogram_prefix=NONE
800706b6b52Smrgprogram_suffix=NONE
801706b6b52Smrgprogram_transform_name=s,x,x,
802706b6b52Smrgsilent=
803706b6b52Smrgsite=
804706b6b52Smrgsrcdir=
805706b6b52Smrgverbose=
806706b6b52Smrgx_includes=NONE
807706b6b52Smrgx_libraries=NONE
808b042e37fSmrg
809706b6b52Smrg# Installation directory options.
810706b6b52Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
811706b6b52Smrg# and all the variables that are supposed to be based on exec_prefix
812706b6b52Smrg# by default will actually change.
813706b6b52Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
814706b6b52Smrg# (The list follows the same order as the GNU Coding Standards.)
815706b6b52Smrgbindir='${exec_prefix}/bin'
816706b6b52Smrgsbindir='${exec_prefix}/sbin'
817706b6b52Smrglibexecdir='${exec_prefix}/libexec'
818706b6b52Smrgdatarootdir='${prefix}/share'
819706b6b52Smrgdatadir='${datarootdir}'
820706b6b52Smrgsysconfdir='${prefix}/etc'
821706b6b52Smrgsharedstatedir='${prefix}/com'
822706b6b52Smrglocalstatedir='${prefix}/var'
823706b6b52Smrgincludedir='${prefix}/include'
824706b6b52Smrgoldincludedir='/usr/include'
825706b6b52Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826706b6b52Smrginfodir='${datarootdir}/info'
827706b6b52Smrghtmldir='${docdir}'
828706b6b52Smrgdvidir='${docdir}'
829706b6b52Smrgpdfdir='${docdir}'
830706b6b52Smrgpsdir='${docdir}'
831706b6b52Smrglibdir='${exec_prefix}/lib'
832706b6b52Smrglocaledir='${datarootdir}/locale'
833706b6b52Smrgmandir='${datarootdir}/man'
834b042e37fSmrg
835706b6b52Smrgac_prev=
836706b6b52Smrgac_dashdash=
837706b6b52Smrgfor ac_option
838706b6b52Smrgdo
839706b6b52Smrg  # If the previous option needs an argument, assign it.
840706b6b52Smrg  if test -n "$ac_prev"; then
841706b6b52Smrg    eval $ac_prev=\$ac_option
842706b6b52Smrg    ac_prev=
843706b6b52Smrg    continue
844706b6b52Smrg  fi
845b042e37fSmrg
846706b6b52Smrg  case $ac_option in
847706b6b52Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848706b6b52Smrg  *=)   ac_optarg= ;;
849706b6b52Smrg  *)    ac_optarg=yes ;;
850706b6b52Smrg  esac
851b042e37fSmrg
852706b6b52Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
853b042e37fSmrg
854706b6b52Smrg  case $ac_dashdash$ac_option in
855706b6b52Smrg  --)
856706b6b52Smrg    ac_dashdash=yes ;;
857b042e37fSmrg
858706b6b52Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
859706b6b52Smrg    ac_prev=bindir ;;
860706b6b52Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861706b6b52Smrg    bindir=$ac_optarg ;;
862b042e37fSmrg
863706b6b52Smrg  -build | --build | --buil | --bui | --bu)
864706b6b52Smrg    ac_prev=build_alias ;;
865706b6b52Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866706b6b52Smrg    build_alias=$ac_optarg ;;
867b042e37fSmrg
868706b6b52Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
869706b6b52Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870706b6b52Smrg    ac_prev=cache_file ;;
871706b6b52Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872706b6b52Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873706b6b52Smrg    cache_file=$ac_optarg ;;
874b042e37fSmrg
875706b6b52Smrg  --config-cache | -C)
876706b6b52Smrg    cache_file=config.cache ;;
877b042e37fSmrg
878706b6b52Smrg  -datadir | --datadir | --datadi | --datad)
879706b6b52Smrg    ac_prev=datadir ;;
880706b6b52Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
881706b6b52Smrg    datadir=$ac_optarg ;;
882b042e37fSmrg
883706b6b52Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884706b6b52Smrg  | --dataroo | --dataro | --datar)
885706b6b52Smrg    ac_prev=datarootdir ;;
886706b6b52Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887706b6b52Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888706b6b52Smrg    datarootdir=$ac_optarg ;;
889b042e37fSmrg
890706b6b52Smrg  -disable-* | --disable-*)
891706b6b52Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892706b6b52Smrg    # Reject names that are not valid shell variable names.
893706b6b52Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894706b6b52Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
895706b6b52Smrg    ac_useropt_orig=$ac_useropt
896706b6b52Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897706b6b52Smrg    case $ac_user_opts in
898706b6b52Smrg      *"
899706b6b52Smrg"enable_$ac_useropt"
900706b6b52Smrg"*) ;;
901706b6b52Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902706b6b52Smrg	 ac_unrecognized_sep=', ';;
903706b6b52Smrg    esac
904706b6b52Smrg    eval enable_$ac_useropt=no ;;
905b042e37fSmrg
906706b6b52Smrg  -docdir | --docdir | --docdi | --doc | --do)
907706b6b52Smrg    ac_prev=docdir ;;
908706b6b52Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909706b6b52Smrg    docdir=$ac_optarg ;;
910b042e37fSmrg
911706b6b52Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912706b6b52Smrg    ac_prev=dvidir ;;
913706b6b52Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914706b6b52Smrg    dvidir=$ac_optarg ;;
915b042e37fSmrg
916706b6b52Smrg  -enable-* | --enable-*)
917706b6b52Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918706b6b52Smrg    # Reject names that are not valid shell variable names.
919706b6b52Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920706b6b52Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
921706b6b52Smrg    ac_useropt_orig=$ac_useropt
922706b6b52Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923706b6b52Smrg    case $ac_user_opts in
924706b6b52Smrg      *"
925706b6b52Smrg"enable_$ac_useropt"
926706b6b52Smrg"*) ;;
927706b6b52Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928706b6b52Smrg	 ac_unrecognized_sep=', ';;
929706b6b52Smrg    esac
930706b6b52Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
931b042e37fSmrg
932706b6b52Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933706b6b52Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934706b6b52Smrg  | --exec | --exe | --ex)
935706b6b52Smrg    ac_prev=exec_prefix ;;
936706b6b52Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937706b6b52Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938706b6b52Smrg  | --exec=* | --exe=* | --ex=*)
939706b6b52Smrg    exec_prefix=$ac_optarg ;;
940b042e37fSmrg
941706b6b52Smrg  -gas | --gas | --ga | --g)
942706b6b52Smrg    # Obsolete; use --with-gas.
943706b6b52Smrg    with_gas=yes ;;
944b042e37fSmrg
945706b6b52Smrg  -help | --help | --hel | --he | -h)
946706b6b52Smrg    ac_init_help=long ;;
947706b6b52Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948706b6b52Smrg    ac_init_help=recursive ;;
949706b6b52Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950706b6b52Smrg    ac_init_help=short ;;
951b042e37fSmrg
952706b6b52Smrg  -host | --host | --hos | --ho)
953706b6b52Smrg    ac_prev=host_alias ;;
954706b6b52Smrg  -host=* | --host=* | --hos=* | --ho=*)
955706b6b52Smrg    host_alias=$ac_optarg ;;
956b042e37fSmrg
957706b6b52Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958706b6b52Smrg    ac_prev=htmldir ;;
959706b6b52Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960706b6b52Smrg  | --ht=*)
961706b6b52Smrg    htmldir=$ac_optarg ;;
962b042e37fSmrg
963706b6b52Smrg  -includedir | --includedir | --includedi | --included | --include \
964706b6b52Smrg  | --includ | --inclu | --incl | --inc)
965706b6b52Smrg    ac_prev=includedir ;;
966706b6b52Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967706b6b52Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
968706b6b52Smrg    includedir=$ac_optarg ;;
969b042e37fSmrg
970706b6b52Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
971706b6b52Smrg    ac_prev=infodir ;;
972706b6b52Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973706b6b52Smrg    infodir=$ac_optarg ;;
974b042e37fSmrg
975706b6b52Smrg  -libdir | --libdir | --libdi | --libd)
976706b6b52Smrg    ac_prev=libdir ;;
977706b6b52Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
978706b6b52Smrg    libdir=$ac_optarg ;;
979b042e37fSmrg
980706b6b52Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981706b6b52Smrg  | --libexe | --libex | --libe)
982706b6b52Smrg    ac_prev=libexecdir ;;
983706b6b52Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984706b6b52Smrg  | --libexe=* | --libex=* | --libe=*)
985706b6b52Smrg    libexecdir=$ac_optarg ;;
986b042e37fSmrg
987706b6b52Smrg  -localedir | --localedir | --localedi | --localed | --locale)
988706b6b52Smrg    ac_prev=localedir ;;
989706b6b52Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990706b6b52Smrg    localedir=$ac_optarg ;;
991b042e37fSmrg
992706b6b52Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
993706b6b52Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
994706b6b52Smrg    ac_prev=localstatedir ;;
995706b6b52Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996706b6b52Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997706b6b52Smrg    localstatedir=$ac_optarg ;;
998b042e37fSmrg
999706b6b52Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000706b6b52Smrg    ac_prev=mandir ;;
1001706b6b52Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002706b6b52Smrg    mandir=$ac_optarg ;;
1003b042e37fSmrg
1004706b6b52Smrg  -nfp | --nfp | --nf)
1005706b6b52Smrg    # Obsolete; use --without-fp.
1006706b6b52Smrg    with_fp=no ;;
1007b042e37fSmrg
1008706b6b52Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009706b6b52Smrg  | --no-cr | --no-c | -n)
1010706b6b52Smrg    no_create=yes ;;
1011b042e37fSmrg
1012706b6b52Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013706b6b52Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014706b6b52Smrg    no_recursion=yes ;;
1015b042e37fSmrg
1016706b6b52Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017706b6b52Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018706b6b52Smrg  | --oldin | --oldi | --old | --ol | --o)
1019706b6b52Smrg    ac_prev=oldincludedir ;;
1020706b6b52Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021706b6b52Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022706b6b52Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023706b6b52Smrg    oldincludedir=$ac_optarg ;;
1024b042e37fSmrg
1025706b6b52Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026706b6b52Smrg    ac_prev=prefix ;;
1027706b6b52Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028706b6b52Smrg    prefix=$ac_optarg ;;
1029b042e37fSmrg
1030706b6b52Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031706b6b52Smrg  | --program-pre | --program-pr | --program-p)
1032706b6b52Smrg    ac_prev=program_prefix ;;
1033706b6b52Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034706b6b52Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035706b6b52Smrg    program_prefix=$ac_optarg ;;
1036b042e37fSmrg
1037706b6b52Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038706b6b52Smrg  | --program-suf | --program-su | --program-s)
1039706b6b52Smrg    ac_prev=program_suffix ;;
1040706b6b52Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041706b6b52Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042706b6b52Smrg    program_suffix=$ac_optarg ;;
1043b042e37fSmrg
1044706b6b52Smrg  -program-transform-name | --program-transform-name \
1045706b6b52Smrg  | --program-transform-nam | --program-transform-na \
1046706b6b52Smrg  | --program-transform-n | --program-transform- \
1047706b6b52Smrg  | --program-transform | --program-transfor \
1048706b6b52Smrg  | --program-transfo | --program-transf \
1049706b6b52Smrg  | --program-trans | --program-tran \
1050706b6b52Smrg  | --progr-tra | --program-tr | --program-t)
1051706b6b52Smrg    ac_prev=program_transform_name ;;
1052706b6b52Smrg  -program-transform-name=* | --program-transform-name=* \
1053706b6b52Smrg  | --program-transform-nam=* | --program-transform-na=* \
1054706b6b52Smrg  | --program-transform-n=* | --program-transform-=* \
1055706b6b52Smrg  | --program-transform=* | --program-transfor=* \
1056706b6b52Smrg  | --program-transfo=* | --program-transf=* \
1057706b6b52Smrg  | --program-trans=* | --program-tran=* \
1058706b6b52Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1059706b6b52Smrg    program_transform_name=$ac_optarg ;;
1060b042e37fSmrg
1061706b6b52Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062706b6b52Smrg    ac_prev=pdfdir ;;
1063706b6b52Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064706b6b52Smrg    pdfdir=$ac_optarg ;;
1065b042e37fSmrg
1066706b6b52Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1067706b6b52Smrg    ac_prev=psdir ;;
1068706b6b52Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069706b6b52Smrg    psdir=$ac_optarg ;;
1070b042e37fSmrg
1071706b6b52Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072706b6b52Smrg  | -silent | --silent | --silen | --sile | --sil)
1073706b6b52Smrg    silent=yes ;;
1074b042e37fSmrg
1075706b6b52Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076706b6b52Smrg    ac_prev=sbindir ;;
1077706b6b52Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078706b6b52Smrg  | --sbi=* | --sb=*)
1079706b6b52Smrg    sbindir=$ac_optarg ;;
1080b042e37fSmrg
1081706b6b52Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082706b6b52Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083706b6b52Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1084706b6b52Smrg  | --sha | --sh)
1085706b6b52Smrg    ac_prev=sharedstatedir ;;
1086706b6b52Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087706b6b52Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088706b6b52Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089706b6b52Smrg  | --sha=* | --sh=*)
1090706b6b52Smrg    sharedstatedir=$ac_optarg ;;
1091b042e37fSmrg
1092706b6b52Smrg  -site | --site | --sit)
1093706b6b52Smrg    ac_prev=site ;;
1094706b6b52Smrg  -site=* | --site=* | --sit=*)
1095706b6b52Smrg    site=$ac_optarg ;;
1096b042e37fSmrg
1097706b6b52Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098706b6b52Smrg    ac_prev=srcdir ;;
1099706b6b52Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100706b6b52Smrg    srcdir=$ac_optarg ;;
1101b042e37fSmrg
1102706b6b52Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103706b6b52Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1104706b6b52Smrg    ac_prev=sysconfdir ;;
1105706b6b52Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106706b6b52Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107706b6b52Smrg    sysconfdir=$ac_optarg ;;
1108b042e37fSmrg
1109706b6b52Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1110706b6b52Smrg    ac_prev=target_alias ;;
1111706b6b52Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112706b6b52Smrg    target_alias=$ac_optarg ;;
1113b042e37fSmrg
1114706b6b52Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115706b6b52Smrg    verbose=yes ;;
1116b042e37fSmrg
1117706b6b52Smrg  -version | --version | --versio | --versi | --vers | -V)
1118706b6b52Smrg    ac_init_version=: ;;
1119b042e37fSmrg
1120706b6b52Smrg  -with-* | --with-*)
1121706b6b52Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122706b6b52Smrg    # Reject names that are not valid shell variable names.
1123706b6b52Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124706b6b52Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1125706b6b52Smrg    ac_useropt_orig=$ac_useropt
1126706b6b52Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127706b6b52Smrg    case $ac_user_opts in
1128706b6b52Smrg      *"
1129706b6b52Smrg"with_$ac_useropt"
1130706b6b52Smrg"*) ;;
1131706b6b52Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132706b6b52Smrg	 ac_unrecognized_sep=', ';;
1133706b6b52Smrg    esac
1134706b6b52Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1135b042e37fSmrg
1136706b6b52Smrg  -without-* | --without-*)
1137706b6b52Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138706b6b52Smrg    # Reject names that are not valid shell variable names.
1139706b6b52Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140706b6b52Smrg      as_fn_error $? "invalid package name: $ac_useropt"
1141706b6b52Smrg    ac_useropt_orig=$ac_useropt
1142706b6b52Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143706b6b52Smrg    case $ac_user_opts in
1144706b6b52Smrg      *"
1145706b6b52Smrg"with_$ac_useropt"
1146706b6b52Smrg"*) ;;
1147706b6b52Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148706b6b52Smrg	 ac_unrecognized_sep=', ';;
1149706b6b52Smrg    esac
1150706b6b52Smrg    eval with_$ac_useropt=no ;;
1151b042e37fSmrg
1152706b6b52Smrg  --x)
1153706b6b52Smrg    # Obsolete; use --with-x.
1154706b6b52Smrg    with_x=yes ;;
1155b042e37fSmrg
1156706b6b52Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157706b6b52Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1158706b6b52Smrg    ac_prev=x_includes ;;
1159706b6b52Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160706b6b52Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161706b6b52Smrg    x_includes=$ac_optarg ;;
1162b042e37fSmrg
1163706b6b52Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164706b6b52Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165706b6b52Smrg    ac_prev=x_libraries ;;
1166706b6b52Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167706b6b52Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168706b6b52Smrg    x_libraries=$ac_optarg ;;
1169b042e37fSmrg
1170706b6b52Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171706b6b52SmrgTry \`$0 --help' for more information"
1172706b6b52Smrg    ;;
1173b042e37fSmrg
1174706b6b52Smrg  *=*)
1175706b6b52Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176706b6b52Smrg    # Reject names that are not valid shell variable names.
1177706b6b52Smrg    case $ac_envvar in #(
1178706b6b52Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1179706b6b52Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180706b6b52Smrg    esac
1181706b6b52Smrg    eval $ac_envvar=\$ac_optarg
1182706b6b52Smrg    export $ac_envvar ;;
1183b042e37fSmrg
1184706b6b52Smrg  *)
1185706b6b52Smrg    # FIXME: should be removed in autoconf 3.0.
1186706b6b52Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187706b6b52Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188706b6b52Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189706b6b52Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190706b6b52Smrg    ;;
1191b042e37fSmrg
1192706b6b52Smrg  esac
1193706b6b52Smrgdone
1194b042e37fSmrg
1195706b6b52Smrgif test -n "$ac_prev"; then
1196706b6b52Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197706b6b52Smrg  as_fn_error $? "missing argument to $ac_option"
1198706b6b52Smrgfi
1199b042e37fSmrg
1200706b6b52Smrgif test -n "$ac_unrecognized_opts"; then
1201706b6b52Smrg  case $enable_option_checking in
1202706b6b52Smrg    no) ;;
1203706b6b52Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204706b6b52Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205706b6b52Smrg  esac
1206706b6b52Smrgfi
1207706b6b52Smrg
1208706b6b52Smrg# Check all directory arguments for consistency.
1209706b6b52Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210706b6b52Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1211706b6b52Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212706b6b52Smrg		libdir localedir mandir
1213706b6b52Smrgdo
1214706b6b52Smrg  eval ac_val=\$$ac_var
1215706b6b52Smrg  # Remove trailing slashes.
1216706b6b52Smrg  case $ac_val in
1217706b6b52Smrg    */ )
1218706b6b52Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219706b6b52Smrg      eval $ac_var=\$ac_val;;
1220706b6b52Smrg  esac
1221706b6b52Smrg  # Be sure to have absolute directory names.
1222706b6b52Smrg  case $ac_val in
1223706b6b52Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1224706b6b52Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225706b6b52Smrg  esac
1226706b6b52Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227706b6b52Smrgdone
1228706b6b52Smrg
1229706b6b52Smrg# There might be people who depend on the old broken behavior: `$host'
1230706b6b52Smrg# used to hold the argument of --host etc.
1231706b6b52Smrg# FIXME: To remove some day.
1232706b6b52Smrgbuild=$build_alias
1233706b6b52Smrghost=$host_alias
1234706b6b52Smrgtarget=$target_alias
1235706b6b52Smrg
1236706b6b52Smrg# FIXME: To remove some day.
1237706b6b52Smrgif test "x$host_alias" != x; then
1238706b6b52Smrg  if test "x$build_alias" = x; then
1239706b6b52Smrg    cross_compiling=maybe
1240706b6b52Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1241706b6b52Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
1242706b6b52Smrg  elif test "x$build_alias" != "x$host_alias"; then
1243706b6b52Smrg    cross_compiling=yes
1244706b6b52Smrg  fi
1245706b6b52Smrgfi
1246706b6b52Smrg
1247706b6b52Smrgac_tool_prefix=
1248706b6b52Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1249706b6b52Smrg
1250706b6b52Smrgtest "$silent" = yes && exec 6>/dev/null
1251706b6b52Smrg
1252706b6b52Smrg
1253706b6b52Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1254706b6b52Smrgac_ls_di=`ls -di .` &&
1255706b6b52Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256706b6b52Smrg  as_fn_error $? "working directory cannot be determined"
1257706b6b52Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258706b6b52Smrg  as_fn_error $? "pwd does not report name of working directory"
1259706b6b52Smrg
1260706b6b52Smrg
1261706b6b52Smrg# Find the source files, if location was not specified.
1262706b6b52Smrgif test -z "$srcdir"; then
1263706b6b52Smrg  ac_srcdir_defaulted=yes
1264706b6b52Smrg  # Try the directory containing this script, then the parent directory.
1265706b6b52Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1266706b6b52Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267706b6b52Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1268706b6b52Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1269706b6b52Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270706b6b52Smrg$as_echo X"$as_myself" |
1271706b6b52Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272706b6b52Smrg	    s//\1/
1273706b6b52Smrg	    q
1274706b6b52Smrg	  }
1275706b6b52Smrg	  /^X\(\/\/\)[^/].*/{
1276706b6b52Smrg	    s//\1/
1277706b6b52Smrg	    q
1278706b6b52Smrg	  }
1279706b6b52Smrg	  /^X\(\/\/\)$/{
1280706b6b52Smrg	    s//\1/
1281706b6b52Smrg	    q
1282706b6b52Smrg	  }
1283706b6b52Smrg	  /^X\(\/\).*/{
1284706b6b52Smrg	    s//\1/
1285706b6b52Smrg	    q
1286706b6b52Smrg	  }
1287706b6b52Smrg	  s/.*/./; q'`
1288706b6b52Smrg  srcdir=$ac_confdir
1289706b6b52Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1290706b6b52Smrg    srcdir=..
1291706b6b52Smrg  fi
1292706b6b52Smrgelse
1293706b6b52Smrg  ac_srcdir_defaulted=no
1294706b6b52Smrgfi
1295706b6b52Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1296706b6b52Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297706b6b52Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298706b6b52Smrgfi
1299706b6b52Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300706b6b52Smrgac_abs_confdir=`(
1301706b6b52Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302706b6b52Smrg	pwd)`
1303706b6b52Smrg# When building in place, set srcdir=.
1304706b6b52Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1305706b6b52Smrg  srcdir=.
1306706b6b52Smrgfi
1307706b6b52Smrg# Remove unnecessary trailing slashes from srcdir.
1308706b6b52Smrg# Double slashes in file names in object file debugging info
1309706b6b52Smrg# mess up M-x gdb in Emacs.
1310706b6b52Smrgcase $srcdir in
1311706b6b52Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312706b6b52Smrgesac
1313706b6b52Smrgfor ac_var in $ac_precious_vars; do
1314706b6b52Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315706b6b52Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1316706b6b52Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317706b6b52Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318706b6b52Smrgdone
1319706b6b52Smrg
1320706b6b52Smrg#
1321706b6b52Smrg# Report the --help message.
1322706b6b52Smrg#
1323706b6b52Smrgif test "$ac_init_help" = "long"; then
1324706b6b52Smrg  # Omit some internal or obsolete options to make the list less imposing.
1325706b6b52Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1326706b6b52Smrg  cat <<_ACEOF
1327bd23fbfaSmrg\`configure' configures libXrandr 1.3.2 to adapt to many kinds of systems.
1328706b6b52Smrg
1329706b6b52SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1330706b6b52Smrg
1331706b6b52SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1332706b6b52SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1333706b6b52Smrg
1334706b6b52SmrgDefaults for the options are specified in brackets.
1335706b6b52Smrg
1336706b6b52SmrgConfiguration:
1337706b6b52Smrg  -h, --help              display this help and exit
1338706b6b52Smrg      --help=short        display options specific to this package
1339706b6b52Smrg      --help=recursive    display the short help of all the included packages
1340706b6b52Smrg  -V, --version           display version information and exit
1341706b6b52Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1342706b6b52Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1343706b6b52Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1344706b6b52Smrg  -n, --no-create         do not create output files
1345706b6b52Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346706b6b52Smrg
1347706b6b52SmrgInstallation directories:
1348706b6b52Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1349706b6b52Smrg                          [$ac_default_prefix]
1350706b6b52Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351706b6b52Smrg                          [PREFIX]
1352706b6b52Smrg
1353706b6b52SmrgBy default, \`make install' will install all the files in
1354706b6b52Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355706b6b52Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356706b6b52Smrgfor instance \`--prefix=\$HOME'.
1357706b6b52Smrg
1358706b6b52SmrgFor better control, use the options below.
1359706b6b52Smrg
1360706b6b52SmrgFine tuning of the installation directories:
1361706b6b52Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1362706b6b52Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363706b6b52Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1364706b6b52Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365706b6b52Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366706b6b52Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367706b6b52Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1368706b6b52Smrg  --includedir=DIR        C header files [PREFIX/include]
1369706b6b52Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370706b6b52Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371706b6b52Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372706b6b52Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1373706b6b52Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374706b6b52Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1375706b6b52Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXrandr]
1376706b6b52Smrg  --htmldir=DIR           html documentation [DOCDIR]
1377706b6b52Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1378706b6b52Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1379706b6b52Smrg  --psdir=DIR             ps documentation [DOCDIR]
1380706b6b52Smrg_ACEOF
1381706b6b52Smrg
1382706b6b52Smrg  cat <<\_ACEOF
1383706b6b52Smrg
1384706b6b52SmrgProgram names:
1385706b6b52Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1386706b6b52Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1387706b6b52Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388706b6b52Smrg
1389706b6b52SmrgSystem types:
1390706b6b52Smrg  --build=BUILD     configure for building on BUILD [guessed]
1391706b6b52Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392706b6b52Smrg_ACEOF
1393706b6b52Smrgfi
1394706b6b52Smrg
1395706b6b52Smrgif test -n "$ac_init_help"; then
1396706b6b52Smrg  case $ac_init_help in
1397bd23fbfaSmrg     short | recursive ) echo "Configuration of libXrandr 1.3.2:";;
1398706b6b52Smrg   esac
1399706b6b52Smrg  cat <<\_ACEOF
1400706b6b52Smrg
1401706b6b52SmrgOptional Features:
1402706b6b52Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1403706b6b52Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404706b6b52Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405706b6b52Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1406706b6b52Smrg			  (and sometimes confusing) to the casual installer
1407bd23fbfaSmrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
1408bd23fbfaSmrg  --enable-static[=PKGS]  build static libraries [default=yes]
1409bd23fbfaSmrg  --enable-fast-install[=PKGS]
1410bd23fbfaSmrg                          optimize for fast installation [default=yes]
1411706b6b52Smrg  --disable-dependency-tracking  speeds up one-time build
1412706b6b52Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
1413bd23fbfaSmrg  --disable-libtool-lock  avoid locking (might break parallel builds)
1414706b6b52Smrg  --enable-strict-compilation
1415706b6b52Smrg                          Enable all warnings from compiler and make them
1416706b6b52Smrg                          errors (default: disabled)
1417706b6b52Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1418706b6b52Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1419706b6b52Smrg  --enable-malloc0returnsnull
1420706b6b52Smrg                          malloc(0) returns NULL (default: auto)
1421706b6b52Smrg
1422706b6b52SmrgOptional Packages:
1423706b6b52Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1424706b6b52Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1425706b6b52Smrg  --with-pic              try to use only PIC/non-PIC objects [default=use
1426706b6b52Smrg                          both]
1427706b6b52Smrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1428bd23fbfaSmrg  --with-sysroot=DIR Search for dependent libraries within DIR
1429bd23fbfaSmrg                        (or the compiler's sysroot if not specified).
1430706b6b52Smrg
1431706b6b52SmrgSome influential environment variables:
1432706b6b52Smrg  CC          C compiler command
1433706b6b52Smrg  CFLAGS      C compiler flags
1434706b6b52Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1435706b6b52Smrg              nonstandard directory <lib dir>
1436706b6b52Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1437706b6b52Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438706b6b52Smrg              you have headers in a nonstandard directory <include dir>
1439706b6b52Smrg  CPP         C preprocessor
1440706b6b52Smrg  PKG_CONFIG  path to pkg-config utility
1441706b6b52Smrg  RANDR_CFLAGS
1442706b6b52Smrg              C compiler flags for RANDR, overriding pkg-config
1443706b6b52Smrg  RANDR_LIBS  linker flags for RANDR, overriding pkg-config
1444706b6b52Smrg
1445706b6b52SmrgUse these variables to override the choices made by `configure' or to help
1446706b6b52Smrgit to find libraries and programs with nonstandard names/locations.
1447706b6b52Smrg
1448706b6b52SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1449706b6b52Smrg_ACEOF
1450706b6b52Smrgac_status=$?
1451706b6b52Smrgfi
1452706b6b52Smrg
1453706b6b52Smrgif test "$ac_init_help" = "recursive"; then
1454706b6b52Smrg  # If there are subdirs, report their specific --help.
1455706b6b52Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456706b6b52Smrg    test -d "$ac_dir" ||
1457706b6b52Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458706b6b52Smrg      continue
1459706b6b52Smrg    ac_builddir=.
1460706b6b52Smrg
1461706b6b52Smrgcase "$ac_dir" in
1462706b6b52Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463706b6b52Smrg*)
1464706b6b52Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465706b6b52Smrg  # A ".." for each directory in $ac_dir_suffix.
1466706b6b52Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467706b6b52Smrg  case $ac_top_builddir_sub in
1468706b6b52Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469706b6b52Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470706b6b52Smrg  esac ;;
1471706b6b52Smrgesac
1472706b6b52Smrgac_abs_top_builddir=$ac_pwd
1473706b6b52Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1474706b6b52Smrg# for backward compatibility:
1475706b6b52Smrgac_top_builddir=$ac_top_build_prefix
1476706b6b52Smrg
1477706b6b52Smrgcase $srcdir in
1478706b6b52Smrg  .)  # We are building in place.
1479706b6b52Smrg    ac_srcdir=.
1480706b6b52Smrg    ac_top_srcdir=$ac_top_builddir_sub
1481706b6b52Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1482706b6b52Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1483706b6b52Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1484706b6b52Smrg    ac_top_srcdir=$srcdir
1485706b6b52Smrg    ac_abs_top_srcdir=$srcdir ;;
1486706b6b52Smrg  *) # Relative name.
1487706b6b52Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488706b6b52Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1489706b6b52Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490706b6b52Smrgesac
1491706b6b52Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492706b6b52Smrg
1493706b6b52Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1494706b6b52Smrg    # Check for guested configure.
1495706b6b52Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1496706b6b52Smrg      echo &&
1497706b6b52Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498706b6b52Smrg    elif test -f "$ac_srcdir/configure"; then
1499706b6b52Smrg      echo &&
1500706b6b52Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1501706b6b52Smrg    else
1502706b6b52Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503706b6b52Smrg    fi || ac_status=$?
1504706b6b52Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1505706b6b52Smrg  done
1506706b6b52Smrgfi
1507706b6b52Smrg
1508706b6b52Smrgtest -n "$ac_init_help" && exit $ac_status
1509706b6b52Smrgif $ac_init_version; then
1510706b6b52Smrg  cat <<\_ACEOF
1511bd23fbfaSmrglibXrandr configure 1.3.2
1512706b6b52Smrggenerated by GNU Autoconf 2.68
1513706b6b52Smrg
1514706b6b52SmrgCopyright (C) 2010 Free Software Foundation, Inc.
1515706b6b52SmrgThis configure script is free software; the Free Software Foundation
1516706b6b52Smrggives unlimited permission to copy, distribute and modify it.
1517706b6b52Smrg_ACEOF
1518706b6b52Smrg  exit
1519706b6b52Smrgfi
1520706b6b52Smrg
1521706b6b52Smrg## ------------------------ ##
1522706b6b52Smrg## Autoconf initialization. ##
1523706b6b52Smrg## ------------------------ ##
1524706b6b52Smrg
1525706b6b52Smrg# ac_fn_c_try_compile LINENO
1526706b6b52Smrg# --------------------------
1527706b6b52Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1528706b6b52Smrgac_fn_c_try_compile ()
1529706b6b52Smrg{
1530706b6b52Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531706b6b52Smrg  rm -f conftest.$ac_objext
1532706b6b52Smrg  if { { ac_try="$ac_compile"
1533706b6b52Smrgcase "(($ac_try" in
1534706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535706b6b52Smrg  *) ac_try_echo=$ac_try;;
1536706b6b52Smrgesac
1537706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
1539706b6b52Smrg  (eval "$ac_compile") 2>conftest.err
1540706b6b52Smrg  ac_status=$?
1541706b6b52Smrg  if test -s conftest.err; then
1542706b6b52Smrg    grep -v '^ *+' conftest.err >conftest.er1
1543706b6b52Smrg    cat conftest.er1 >&5
1544706b6b52Smrg    mv -f conftest.er1 conftest.err
1545706b6b52Smrg  fi
1546706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547706b6b52Smrg  test $ac_status = 0; } && {
1548706b6b52Smrg	 test -z "$ac_c_werror_flag" ||
1549706b6b52Smrg	 test ! -s conftest.err
1550706b6b52Smrg       } && test -s conftest.$ac_objext; then :
1551706b6b52Smrg  ac_retval=0
1552706b6b52Smrgelse
1553706b6b52Smrg  $as_echo "$as_me: failed program was:" >&5
1554706b6b52Smrgsed 's/^/| /' conftest.$ac_ext >&5
1555706b6b52Smrg
1556706b6b52Smrg	ac_retval=1
1557706b6b52Smrgfi
1558706b6b52Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559706b6b52Smrg  as_fn_set_status $ac_retval
1560706b6b52Smrg
1561706b6b52Smrg} # ac_fn_c_try_compile
1562706b6b52Smrg
1563bd23fbfaSmrg# ac_fn_c_try_link LINENO
1564bd23fbfaSmrg# -----------------------
1565bd23fbfaSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1566bd23fbfaSmrgac_fn_c_try_link ()
1567706b6b52Smrg{
1568706b6b52Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569bd23fbfaSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
1570bd23fbfaSmrg  if { { ac_try="$ac_link"
1571bd23fbfaSmrgcase "(($ac_try" in
1572bd23fbfaSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573bd23fbfaSmrg  *) ac_try_echo=$ac_try;;
1574bd23fbfaSmrgesac
1575bd23fbfaSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576bd23fbfaSmrg$as_echo "$ac_try_echo"; } >&5
1577bd23fbfaSmrg  (eval "$ac_link") 2>conftest.err
1578bd23fbfaSmrg  ac_status=$?
1579bd23fbfaSmrg  if test -s conftest.err; then
1580bd23fbfaSmrg    grep -v '^ *+' conftest.err >conftest.er1
1581bd23fbfaSmrg    cat conftest.er1 >&5
1582bd23fbfaSmrg    mv -f conftest.er1 conftest.err
1583bd23fbfaSmrg  fi
1584bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585bd23fbfaSmrg  test $ac_status = 0; } && {
1586bd23fbfaSmrg	 test -z "$ac_c_werror_flag" ||
1587bd23fbfaSmrg	 test ! -s conftest.err
1588bd23fbfaSmrg       } && test -s conftest$ac_exeext && {
1589bd23fbfaSmrg	 test "$cross_compiling" = yes ||
1590bd23fbfaSmrg	 $as_test_x conftest$ac_exeext
1591bd23fbfaSmrg       }; then :
1592bd23fbfaSmrg  ac_retval=0
1593bd23fbfaSmrgelse
1594bd23fbfaSmrg  $as_echo "$as_me: failed program was:" >&5
1595bd23fbfaSmrgsed 's/^/| /' conftest.$ac_ext >&5
1596bd23fbfaSmrg
1597bd23fbfaSmrg	ac_retval=1
1598bd23fbfaSmrgfi
1599bd23fbfaSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600bd23fbfaSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601bd23fbfaSmrg  # interfere with the next link command; also delete a directory that is
1602bd23fbfaSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1603bd23fbfaSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604bd23fbfaSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605bd23fbfaSmrg  as_fn_set_status $ac_retval
1606bd23fbfaSmrg
1607bd23fbfaSmrg} # ac_fn_c_try_link
1608bd23fbfaSmrg
1609bd23fbfaSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610bd23fbfaSmrg# -------------------------------------------------------
1611bd23fbfaSmrg# Tests whether HEADER exists and can be compiled using the include files in
1612bd23fbfaSmrg# INCLUDES, setting the cache variable VAR accordingly.
1613bd23fbfaSmrgac_fn_c_check_header_compile ()
1614bd23fbfaSmrg{
1615bd23fbfaSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617bd23fbfaSmrg$as_echo_n "checking for $2... " >&6; }
1618706b6b52Smrgif eval \${$3+:} false; then :
1619706b6b52Smrg  $as_echo_n "(cached) " >&6
1620706b6b52Smrgelse
1621706b6b52Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622706b6b52Smrg/* end confdefs.h.  */
1623706b6b52Smrg$4
1624bd23fbfaSmrg#include <$2>
1625706b6b52Smrg_ACEOF
1626706b6b52Smrgif ac_fn_c_try_compile "$LINENO"; then :
1627706b6b52Smrg  eval "$3=yes"
1628706b6b52Smrgelse
1629706b6b52Smrg  eval "$3=no"
1630706b6b52Smrgfi
1631706b6b52Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632706b6b52Smrgfi
1633706b6b52Smrgeval ac_res=\$$3
1634706b6b52Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635706b6b52Smrg$as_echo "$ac_res" >&6; }
1636706b6b52Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637706b6b52Smrg
1638bd23fbfaSmrg} # ac_fn_c_check_header_compile
1639706b6b52Smrg
1640706b6b52Smrg# ac_fn_c_try_cpp LINENO
1641706b6b52Smrg# ----------------------
1642706b6b52Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643706b6b52Smrgac_fn_c_try_cpp ()
1644706b6b52Smrg{
1645706b6b52Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646706b6b52Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1647706b6b52Smrgcase "(($ac_try" in
1648706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649706b6b52Smrg  *) ac_try_echo=$ac_try;;
1650706b6b52Smrgesac
1651706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
1653706b6b52Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654706b6b52Smrg  ac_status=$?
1655706b6b52Smrg  if test -s conftest.err; then
1656706b6b52Smrg    grep -v '^ *+' conftest.err >conftest.er1
1657706b6b52Smrg    cat conftest.er1 >&5
1658706b6b52Smrg    mv -f conftest.er1 conftest.err
1659706b6b52Smrg  fi
1660706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661706b6b52Smrg  test $ac_status = 0; } > conftest.i && {
1662706b6b52Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663706b6b52Smrg	 test ! -s conftest.err
1664706b6b52Smrg       }; then :
1665706b6b52Smrg  ac_retval=0
1666706b6b52Smrgelse
1667706b6b52Smrg  $as_echo "$as_me: failed program was:" >&5
1668706b6b52Smrgsed 's/^/| /' conftest.$ac_ext >&5
1669706b6b52Smrg
1670706b6b52Smrg    ac_retval=1
1671706b6b52Smrgfi
1672706b6b52Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673706b6b52Smrg  as_fn_set_status $ac_retval
1674706b6b52Smrg
1675706b6b52Smrg} # ac_fn_c_try_cpp
1676706b6b52Smrg
1677706b6b52Smrg# ac_fn_c_try_run LINENO
1678706b6b52Smrg# ----------------------
1679706b6b52Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680706b6b52Smrg# that executables *can* be run.
1681706b6b52Smrgac_fn_c_try_run ()
1682706b6b52Smrg{
1683706b6b52Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684706b6b52Smrg  if { { ac_try="$ac_link"
1685706b6b52Smrgcase "(($ac_try" in
1686706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687706b6b52Smrg  *) ac_try_echo=$ac_try;;
1688706b6b52Smrgesac
1689706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
1691706b6b52Smrg  (eval "$ac_link") 2>&5
1692706b6b52Smrg  ac_status=$?
1693706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694706b6b52Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695706b6b52Smrg  { { case "(($ac_try" in
1696706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697706b6b52Smrg  *) ac_try_echo=$ac_try;;
1698706b6b52Smrgesac
1699706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
1701706b6b52Smrg  (eval "$ac_try") 2>&5
1702706b6b52Smrg  ac_status=$?
1703706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704706b6b52Smrg  test $ac_status = 0; }; }; then :
1705706b6b52Smrg  ac_retval=0
1706706b6b52Smrgelse
1707706b6b52Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1708706b6b52Smrg       $as_echo "$as_me: failed program was:" >&5
1709706b6b52Smrgsed 's/^/| /' conftest.$ac_ext >&5
1710706b6b52Smrg
1711706b6b52Smrg       ac_retval=$ac_status
1712706b6b52Smrgfi
1713706b6b52Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714706b6b52Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715706b6b52Smrg  as_fn_set_status $ac_retval
1716706b6b52Smrg
1717706b6b52Smrg} # ac_fn_c_try_run
1718706b6b52Smrg
1719706b6b52Smrg# ac_fn_c_check_func LINENO FUNC VAR
1720706b6b52Smrg# ----------------------------------
1721706b6b52Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1722706b6b52Smrgac_fn_c_check_func ()
1723706b6b52Smrg{
1724706b6b52Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726706b6b52Smrg$as_echo_n "checking for $2... " >&6; }
1727706b6b52Smrgif eval \${$3+:} false; then :
1728706b6b52Smrg  $as_echo_n "(cached) " >&6
1729706b6b52Smrgelse
1730706b6b52Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731706b6b52Smrg/* end confdefs.h.  */
1732706b6b52Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733706b6b52Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1734706b6b52Smrg#define $2 innocuous_$2
1735706b6b52Smrg
1736706b6b52Smrg/* System header to define __stub macros and hopefully few prototypes,
1737706b6b52Smrg    which can conflict with char $2 (); below.
1738706b6b52Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739706b6b52Smrg    <limits.h> exists even on freestanding compilers.  */
1740706b6b52Smrg
1741706b6b52Smrg#ifdef __STDC__
1742706b6b52Smrg# include <limits.h>
1743706b6b52Smrg#else
1744706b6b52Smrg# include <assert.h>
1745b042e37fSmrg#endif
1746706b6b52Smrg
1747706b6b52Smrg#undef $2
1748706b6b52Smrg
1749706b6b52Smrg/* Override any GCC internal prototype to avoid an error.
1750706b6b52Smrg   Use char because int might match the return type of a GCC
1751706b6b52Smrg   builtin and then its argument prototype would still apply.  */
1752706b6b52Smrg#ifdef __cplusplus
1753706b6b52Smrgextern "C"
1754b042e37fSmrg#endif
1755706b6b52Smrgchar $2 ();
1756706b6b52Smrg/* The GNU C library defines this for functions which it implements
1757706b6b52Smrg    to always fail with ENOSYS.  Some functions are actually named
1758706b6b52Smrg    something starting with __ and the normal name is an alias.  */
1759706b6b52Smrg#if defined __stub_$2 || defined __stub___$2
1760706b6b52Smrgchoke me
1761b042e37fSmrg#endif
1762b042e37fSmrg
1763706b6b52Smrgint
1764706b6b52Smrgmain ()
1765706b6b52Smrg{
1766706b6b52Smrgreturn $2 ();
1767706b6b52Smrg  ;
1768706b6b52Smrg  return 0;
1769706b6b52Smrg}
1770706b6b52Smrg_ACEOF
1771706b6b52Smrgif ac_fn_c_try_link "$LINENO"; then :
1772706b6b52Smrg  eval "$3=yes"
1773706b6b52Smrgelse
1774706b6b52Smrg  eval "$3=no"
1775706b6b52Smrgfi
1776706b6b52Smrgrm -f core conftest.err conftest.$ac_objext \
1777706b6b52Smrg    conftest$ac_exeext conftest.$ac_ext
1778706b6b52Smrgfi
1779706b6b52Smrgeval ac_res=\$$3
1780706b6b52Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781706b6b52Smrg$as_echo "$ac_res" >&6; }
1782706b6b52Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783706b6b52Smrg
1784706b6b52Smrg} # ac_fn_c_check_func
1785706b6b52Smrg
1786bd23fbfaSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1787bd23fbfaSmrg# ---------------------------------------------
1788bd23fbfaSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1789bd23fbfaSmrg# accordingly.
1790bd23fbfaSmrgac_fn_c_check_decl ()
1791706b6b52Smrg{
1792bd23fbfaSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793bd23fbfaSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1794bd23fbfaSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1795bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1796bd23fbfaSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1797bd23fbfaSmrgif eval \${$3+:} false; then :
1798bd23fbfaSmrg  $as_echo_n "(cached) " >&6
1799bd23fbfaSmrgelse
1800bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801bd23fbfaSmrg/* end confdefs.h.  */
1802bd23fbfaSmrg$4
1803bd23fbfaSmrgint
1804bd23fbfaSmrgmain ()
1805bd23fbfaSmrg{
1806bd23fbfaSmrg#ifndef $as_decl_name
1807bd23fbfaSmrg#ifdef __cplusplus
1808bd23fbfaSmrg  (void) $as_decl_use;
1809bd23fbfaSmrg#else
1810bd23fbfaSmrg  (void) $as_decl_name;
1811bd23fbfaSmrg#endif
1812bd23fbfaSmrg#endif
1813bd23fbfaSmrg
1814bd23fbfaSmrg  ;
1815bd23fbfaSmrg  return 0;
1816bd23fbfaSmrg}
1817bd23fbfaSmrg_ACEOF
1818bd23fbfaSmrgif ac_fn_c_try_compile "$LINENO"; then :
1819bd23fbfaSmrg  eval "$3=yes"
1820bd23fbfaSmrgelse
1821bd23fbfaSmrg  eval "$3=no"
1822bd23fbfaSmrgfi
1823bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824bd23fbfaSmrgfi
1825bd23fbfaSmrgeval ac_res=\$$3
1826bd23fbfaSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827bd23fbfaSmrg$as_echo "$ac_res" >&6; }
1828bd23fbfaSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829bd23fbfaSmrg
1830bd23fbfaSmrg} # ac_fn_c_check_decl
1831bd23fbfaSmrgcat >config.log <<_ACEOF
1832bd23fbfaSmrgThis file contains any messages produced by compilers while
1833bd23fbfaSmrgrunning configure, to aid debugging if configure makes a mistake.
1834bd23fbfaSmrg
1835bd23fbfaSmrgIt was created by libXrandr $as_me 1.3.2, which was
1836bd23fbfaSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
1837bd23fbfaSmrg
1838bd23fbfaSmrg  $ $0 $@
1839bd23fbfaSmrg
1840bd23fbfaSmrg_ACEOF
1841bd23fbfaSmrgexec 5>>config.log
1842bd23fbfaSmrg{
1843bd23fbfaSmrgcat <<_ASUNAME
1844bd23fbfaSmrg## --------- ##
1845bd23fbfaSmrg## Platform. ##
1846bd23fbfaSmrg## --------- ##
1847bd23fbfaSmrg
1848bd23fbfaSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849bd23fbfaSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1850bd23fbfaSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1851bd23fbfaSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1852bd23fbfaSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1853bd23fbfaSmrg
1854bd23fbfaSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855bd23fbfaSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1856bd23fbfaSmrg
1857706b6b52Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1858706b6b52Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1859706b6b52Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860706b6b52Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1861706b6b52Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1862706b6b52Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1863706b6b52Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1864706b6b52Smrg
1865706b6b52Smrg_ASUNAME
1866706b6b52Smrg
1867706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868706b6b52Smrgfor as_dir in $PATH
1869706b6b52Smrgdo
1870706b6b52Smrg  IFS=$as_save_IFS
1871706b6b52Smrg  test -z "$as_dir" && as_dir=.
1872706b6b52Smrg    $as_echo "PATH: $as_dir"
1873706b6b52Smrg  done
1874706b6b52SmrgIFS=$as_save_IFS
1875706b6b52Smrg
1876706b6b52Smrg} >&5
1877706b6b52Smrg
1878706b6b52Smrgcat >&5 <<_ACEOF
1879706b6b52Smrg
1880706b6b52Smrg
1881706b6b52Smrg## ----------- ##
1882706b6b52Smrg## Core tests. ##
1883706b6b52Smrg## ----------- ##
1884706b6b52Smrg
1885706b6b52Smrg_ACEOF
1886706b6b52Smrg
1887706b6b52Smrg
1888706b6b52Smrg# Keep a trace of the command line.
1889706b6b52Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1890706b6b52Smrg# Strip out --silent because we don't want to record it for future runs.
1891706b6b52Smrg# Also quote any args containing shell meta-characters.
1892706b6b52Smrg# Make two passes to allow for proper duplicate-argument suppression.
1893706b6b52Smrgac_configure_args=
1894706b6b52Smrgac_configure_args0=
1895706b6b52Smrgac_configure_args1=
1896706b6b52Smrgac_must_keep_next=false
1897706b6b52Smrgfor ac_pass in 1 2
1898706b6b52Smrgdo
1899706b6b52Smrg  for ac_arg
1900706b6b52Smrg  do
1901706b6b52Smrg    case $ac_arg in
1902706b6b52Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903706b6b52Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904706b6b52Smrg    | -silent | --silent | --silen | --sile | --sil)
1905706b6b52Smrg      continue ;;
1906706b6b52Smrg    *\'*)
1907706b6b52Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908706b6b52Smrg    esac
1909706b6b52Smrg    case $ac_pass in
1910706b6b52Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1911706b6b52Smrg    2)
1912706b6b52Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1913706b6b52Smrg      if test $ac_must_keep_next = true; then
1914706b6b52Smrg	ac_must_keep_next=false # Got value, back to normal.
1915706b6b52Smrg      else
1916706b6b52Smrg	case $ac_arg in
1917706b6b52Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1918706b6b52Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919706b6b52Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920706b6b52Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1921706b6b52Smrg	    case "$ac_configure_args0 " in
1922706b6b52Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1923706b6b52Smrg	    esac
1924706b6b52Smrg	    ;;
1925706b6b52Smrg	  -* ) ac_must_keep_next=true ;;
1926706b6b52Smrg	esac
1927706b6b52Smrg      fi
1928706b6b52Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1929706b6b52Smrg      ;;
1930706b6b52Smrg    esac
1931706b6b52Smrg  done
1932706b6b52Smrgdone
1933706b6b52Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1934706b6b52Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1935706b6b52Smrg
1936706b6b52Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1937706b6b52Smrg# config.log.  We remove comments because anyway the quotes in there
1938706b6b52Smrg# would cause problems or look ugly.
1939706b6b52Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1940706b6b52Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941706b6b52Smrgtrap 'exit_status=$?
1942706b6b52Smrg  # Save into config.log some information that might help in debugging.
1943706b6b52Smrg  {
1944706b6b52Smrg    echo
1945706b6b52Smrg
1946706b6b52Smrg    $as_echo "## ---------------- ##
1947706b6b52Smrg## Cache variables. ##
1948706b6b52Smrg## ---------------- ##"
1949706b6b52Smrg    echo
1950706b6b52Smrg    # The following way of writing the cache mishandles newlines in values,
1951706b6b52Smrg(
1952706b6b52Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953706b6b52Smrg    eval ac_val=\$$ac_var
1954706b6b52Smrg    case $ac_val in #(
1955706b6b52Smrg    *${as_nl}*)
1956706b6b52Smrg      case $ac_var in #(
1957706b6b52Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958706b6b52Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1959706b6b52Smrg      esac
1960706b6b52Smrg      case $ac_var in #(
1961706b6b52Smrg      _ | IFS | as_nl) ;; #(
1962706b6b52Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963706b6b52Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1964706b6b52Smrg      esac ;;
1965706b6b52Smrg    esac
1966706b6b52Smrg  done
1967706b6b52Smrg  (set) 2>&1 |
1968706b6b52Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969706b6b52Smrg    *${as_nl}ac_space=\ *)
1970706b6b52Smrg      sed -n \
1971706b6b52Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1972706b6b52Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973706b6b52Smrg      ;; #(
1974706b6b52Smrg    *)
1975706b6b52Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976706b6b52Smrg      ;;
1977706b6b52Smrg    esac |
1978706b6b52Smrg    sort
1979706b6b52Smrg)
1980706b6b52Smrg    echo
1981706b6b52Smrg
1982706b6b52Smrg    $as_echo "## ----------------- ##
1983706b6b52Smrg## Output variables. ##
1984706b6b52Smrg## ----------------- ##"
1985706b6b52Smrg    echo
1986706b6b52Smrg    for ac_var in $ac_subst_vars
1987706b6b52Smrg    do
1988706b6b52Smrg      eval ac_val=\$$ac_var
1989706b6b52Smrg      case $ac_val in
1990706b6b52Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991706b6b52Smrg      esac
1992706b6b52Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1993706b6b52Smrg    done | sort
1994706b6b52Smrg    echo
1995706b6b52Smrg
1996706b6b52Smrg    if test -n "$ac_subst_files"; then
1997706b6b52Smrg      $as_echo "## ------------------- ##
1998706b6b52Smrg## File substitutions. ##
1999706b6b52Smrg## ------------------- ##"
2000706b6b52Smrg      echo
2001706b6b52Smrg      for ac_var in $ac_subst_files
2002706b6b52Smrg      do
2003706b6b52Smrg	eval ac_val=\$$ac_var
2004706b6b52Smrg	case $ac_val in
2005706b6b52Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006706b6b52Smrg	esac
2007706b6b52Smrg	$as_echo "$ac_var='\''$ac_val'\''"
2008706b6b52Smrg      done | sort
2009706b6b52Smrg      echo
2010706b6b52Smrg    fi
2011706b6b52Smrg
2012706b6b52Smrg    if test -s confdefs.h; then
2013706b6b52Smrg      $as_echo "## ----------- ##
2014706b6b52Smrg## confdefs.h. ##
2015706b6b52Smrg## ----------- ##"
2016706b6b52Smrg      echo
2017706b6b52Smrg      cat confdefs.h
2018706b6b52Smrg      echo
2019706b6b52Smrg    fi
2020706b6b52Smrg    test "$ac_signal" != 0 &&
2021706b6b52Smrg      $as_echo "$as_me: caught signal $ac_signal"
2022706b6b52Smrg    $as_echo "$as_me: exit $exit_status"
2023706b6b52Smrg  } >&5
2024706b6b52Smrg  rm -f core *.core core.conftest.* &&
2025706b6b52Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026706b6b52Smrg    exit $exit_status
2027706b6b52Smrg' 0
2028706b6b52Smrgfor ac_signal in 1 2 13 15; do
2029706b6b52Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030706b6b52Smrgdone
2031706b6b52Smrgac_signal=0
2032706b6b52Smrg
2033706b6b52Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2034706b6b52Smrgrm -f -r conftest* confdefs.h
2035706b6b52Smrg
2036706b6b52Smrg$as_echo "/* confdefs.h */" > confdefs.h
2037706b6b52Smrg
2038706b6b52Smrg# Predefined preprocessor variables.
2039706b6b52Smrg
2040706b6b52Smrgcat >>confdefs.h <<_ACEOF
2041706b6b52Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
2042706b6b52Smrg_ACEOF
2043706b6b52Smrg
2044706b6b52Smrgcat >>confdefs.h <<_ACEOF
2045706b6b52Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046706b6b52Smrg_ACEOF
2047706b6b52Smrg
2048706b6b52Smrgcat >>confdefs.h <<_ACEOF
2049706b6b52Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2050706b6b52Smrg_ACEOF
2051706b6b52Smrg
2052706b6b52Smrgcat >>confdefs.h <<_ACEOF
2053706b6b52Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
2054706b6b52Smrg_ACEOF
2055706b6b52Smrg
2056706b6b52Smrgcat >>confdefs.h <<_ACEOF
2057706b6b52Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058706b6b52Smrg_ACEOF
2059706b6b52Smrg
2060706b6b52Smrgcat >>confdefs.h <<_ACEOF
2061706b6b52Smrg#define PACKAGE_URL "$PACKAGE_URL"
2062706b6b52Smrg_ACEOF
2063706b6b52Smrg
2064706b6b52Smrg
2065706b6b52Smrg# Let the site file select an alternate cache file if it wants to.
2066706b6b52Smrg# Prefer an explicitly selected file to automatically selected ones.
2067706b6b52Smrgac_site_file1=NONE
2068706b6b52Smrgac_site_file2=NONE
2069706b6b52Smrgif test -n "$CONFIG_SITE"; then
2070706b6b52Smrg  # We do not want a PATH search for config.site.
2071706b6b52Smrg  case $CONFIG_SITE in #((
2072706b6b52Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2073706b6b52Smrg    */*) ac_site_file1=$CONFIG_SITE;;
2074706b6b52Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
2075706b6b52Smrg  esac
2076706b6b52Smrgelif test "x$prefix" != xNONE; then
2077706b6b52Smrg  ac_site_file1=$prefix/share/config.site
2078706b6b52Smrg  ac_site_file2=$prefix/etc/config.site
2079706b6b52Smrgelse
2080706b6b52Smrg  ac_site_file1=$ac_default_prefix/share/config.site
2081706b6b52Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
2082706b6b52Smrgfi
2083706b6b52Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2084706b6b52Smrgdo
2085706b6b52Smrg  test "x$ac_site_file" = xNONE && continue
2086706b6b52Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2087706b6b52Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2088706b6b52Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2089706b6b52Smrg    sed 's/^/| /' "$ac_site_file" >&5
2090706b6b52Smrg    . "$ac_site_file" \
2091706b6b52Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2092706b6b52Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2093706b6b52Smrgas_fn_error $? "failed to load site script $ac_site_file
2094706b6b52SmrgSee \`config.log' for more details" "$LINENO" 5; }
2095706b6b52Smrg  fi
2096706b6b52Smrgdone
2097706b6b52Smrg
2098706b6b52Smrgif test -r "$cache_file"; then
2099706b6b52Smrg  # Some versions of bash will fail to source /dev/null (special files
2100706b6b52Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2101706b6b52Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2102706b6b52Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2103706b6b52Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2104706b6b52Smrg    case $cache_file in
2105706b6b52Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2106706b6b52Smrg      *)                      . "./$cache_file";;
2107706b6b52Smrg    esac
2108706b6b52Smrg  fi
2109706b6b52Smrgelse
2110706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2111706b6b52Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2112706b6b52Smrg  >$cache_file
2113706b6b52Smrgfi
2114706b6b52Smrg
2115706b6b52Smrg# Check that the precious variables saved in the cache have kept the same
2116706b6b52Smrg# value.
2117706b6b52Smrgac_cache_corrupted=false
2118706b6b52Smrgfor ac_var in $ac_precious_vars; do
2119706b6b52Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2120706b6b52Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2121706b6b52Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2122706b6b52Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2123706b6b52Smrg  case $ac_old_set,$ac_new_set in
2124706b6b52Smrg    set,)
2125706b6b52Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2126706b6b52Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2127706b6b52Smrg      ac_cache_corrupted=: ;;
2128706b6b52Smrg    ,set)
2129706b6b52Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2130706b6b52Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2131706b6b52Smrg      ac_cache_corrupted=: ;;
2132706b6b52Smrg    ,);;
2133706b6b52Smrg    *)
2134706b6b52Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2135706b6b52Smrg	# differences in whitespace do not lead to failure.
2136706b6b52Smrg	ac_old_val_w=`echo x $ac_old_val`
2137706b6b52Smrg	ac_new_val_w=`echo x $ac_new_val`
2138706b6b52Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2139706b6b52Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2140706b6b52Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2141706b6b52Smrg	  ac_cache_corrupted=:
2142706b6b52Smrg	else
2143706b6b52Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2144706b6b52Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2145706b6b52Smrg	  eval $ac_var=\$ac_old_val
2146706b6b52Smrg	fi
2147706b6b52Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2148706b6b52Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2149706b6b52Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2150706b6b52Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2151706b6b52Smrg      fi;;
2152706b6b52Smrg  esac
2153706b6b52Smrg  # Pass precious variables to config.status.
2154706b6b52Smrg  if test "$ac_new_set" = set; then
2155706b6b52Smrg    case $ac_new_val in
2156706b6b52Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2157706b6b52Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2158706b6b52Smrg    esac
2159706b6b52Smrg    case " $ac_configure_args " in
2160706b6b52Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2161706b6b52Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2162706b6b52Smrg    esac
2163706b6b52Smrg  fi
2164706b6b52Smrgdone
2165706b6b52Smrgif $ac_cache_corrupted; then
2166706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167706b6b52Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2169706b6b52Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170706b6b52Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2171706b6b52Smrgfi
2172706b6b52Smrg## -------------------- ##
2173706b6b52Smrg## Main body of script. ##
2174706b6b52Smrg## -------------------- ##
2175706b6b52Smrg
2176706b6b52Smrgac_ext=c
2177706b6b52Smrgac_cpp='$CPP $CPPFLAGS'
2178706b6b52Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179706b6b52Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180706b6b52Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2181706b6b52Smrg
2182706b6b52Smrg
2183bd23fbfaSmrg
2184bd23fbfaSmrgac_config_headers="$ac_config_headers config.h"
2185bd23fbfaSmrg
2186bd23fbfaSmrg
2187bd23fbfaSmrg# Initialize Automake
2188bd23fbfaSmrgam__api_version='1.11'
2189bd23fbfaSmrg
2190706b6b52Smrgac_aux_dir=
2191bd23fbfaSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2192706b6b52Smrg  if test -f "$ac_dir/install-sh"; then
2193706b6b52Smrg    ac_aux_dir=$ac_dir
2194706b6b52Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2195706b6b52Smrg    break
2196706b6b52Smrg  elif test -f "$ac_dir/install.sh"; then
2197706b6b52Smrg    ac_aux_dir=$ac_dir
2198706b6b52Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2199706b6b52Smrg    break
2200706b6b52Smrg  elif test -f "$ac_dir/shtool"; then
2201706b6b52Smrg    ac_aux_dir=$ac_dir
2202706b6b52Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2203706b6b52Smrg    break
2204706b6b52Smrg  fi
2205706b6b52Smrgdone
2206706b6b52Smrgif test -z "$ac_aux_dir"; then
2207bd23fbfaSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2208706b6b52Smrgfi
2209706b6b52Smrg
2210706b6b52Smrg# These three variables are undocumented and unsupported,
2211706b6b52Smrg# and are intended to be withdrawn in a future Autoconf release.
2212706b6b52Smrg# They can cause serious problems if a builder's source tree is in a directory
2213706b6b52Smrg# whose full name contains unusual characters.
2214706b6b52Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2215706b6b52Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2216706b6b52Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2217706b6b52Smrg
2218706b6b52Smrg
2219706b6b52Smrg# Find a good install program.  We prefer a C program (faster),
2220706b6b52Smrg# so one script is as good as another.  But avoid the broken or
2221706b6b52Smrg# incompatible versions:
2222706b6b52Smrg# SysV /etc/install, /usr/sbin/install
2223706b6b52Smrg# SunOS /usr/etc/install
2224706b6b52Smrg# IRIX /sbin/install
2225706b6b52Smrg# AIX /bin/install
2226706b6b52Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2227706b6b52Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2228706b6b52Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2229706b6b52Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2230706b6b52Smrg# OS/2's system install, which has a completely different semantic
2231706b6b52Smrg# ./install, which can be erroneously created by make from ./install.sh.
2232706b6b52Smrg# Reject install programs that cannot install multiple files.
2233706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2234706b6b52Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2235706b6b52Smrgif test -z "$INSTALL"; then
2236706b6b52Smrgif ${ac_cv_path_install+:} false; then :
2237706b6b52Smrg  $as_echo_n "(cached) " >&6
2238706b6b52Smrgelse
2239706b6b52Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240706b6b52Smrgfor as_dir in $PATH
2241706b6b52Smrgdo
2242706b6b52Smrg  IFS=$as_save_IFS
2243706b6b52Smrg  test -z "$as_dir" && as_dir=.
2244706b6b52Smrg    # Account for people who put trailing slashes in PATH elements.
2245706b6b52Smrgcase $as_dir/ in #((
2246706b6b52Smrg  ./ | .// | /[cC]/* | \
2247706b6b52Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2248706b6b52Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2249706b6b52Smrg  /usr/ucb/* ) ;;
2250706b6b52Smrg  *)
2251706b6b52Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2252706b6b52Smrg    # Don't use installbsd from OSF since it installs stuff as root
2253706b6b52Smrg    # by default.
2254706b6b52Smrg    for ac_prog in ginstall scoinst install; do
2255706b6b52Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2256706b6b52Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2257706b6b52Smrg	  if test $ac_prog = install &&
2258706b6b52Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259706b6b52Smrg	    # AIX install.  It has an incompatible calling convention.
2260706b6b52Smrg	    :
2261706b6b52Smrg	  elif test $ac_prog = install &&
2262706b6b52Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2263706b6b52Smrg	    # program-specific install script used by HP pwplus--don't use.
2264706b6b52Smrg	    :
2265706b6b52Smrg	  else
2266706b6b52Smrg	    rm -rf conftest.one conftest.two conftest.dir
2267706b6b52Smrg	    echo one > conftest.one
2268706b6b52Smrg	    echo two > conftest.two
2269706b6b52Smrg	    mkdir conftest.dir
2270706b6b52Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2271706b6b52Smrg	      test -s conftest.one && test -s conftest.two &&
2272706b6b52Smrg	      test -s conftest.dir/conftest.one &&
2273706b6b52Smrg	      test -s conftest.dir/conftest.two
2274706b6b52Smrg	    then
2275706b6b52Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2276706b6b52Smrg	      break 3
2277706b6b52Smrg	    fi
2278706b6b52Smrg	  fi
2279706b6b52Smrg	fi
2280706b6b52Smrg      done
2281706b6b52Smrg    done
2282706b6b52Smrg    ;;
2283706b6b52Smrgesac
2284706b6b52Smrg
2285706b6b52Smrg  done
2286706b6b52SmrgIFS=$as_save_IFS
2287706b6b52Smrg
2288706b6b52Smrgrm -rf conftest.one conftest.two conftest.dir
2289706b6b52Smrg
2290706b6b52Smrgfi
2291706b6b52Smrg  if test "${ac_cv_path_install+set}" = set; then
2292706b6b52Smrg    INSTALL=$ac_cv_path_install
2293706b6b52Smrg  else
2294706b6b52Smrg    # As a last resort, use the slow shell script.  Don't cache a
2295706b6b52Smrg    # value for INSTALL within a source directory, because that will
2296706b6b52Smrg    # break other packages using the cache if that directory is
2297706b6b52Smrg    # removed, or if the value is a relative name.
2298706b6b52Smrg    INSTALL=$ac_install_sh
2299706b6b52Smrg  fi
2300706b6b52Smrgfi
2301706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2302706b6b52Smrg$as_echo "$INSTALL" >&6; }
2303706b6b52Smrg
2304706b6b52Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2305706b6b52Smrg# It thinks the first close brace ends the variable substitution.
2306706b6b52Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2307706b6b52Smrg
2308706b6b52Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2309706b6b52Smrg
2310706b6b52Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2311706b6b52Smrg
2312706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2313706b6b52Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2314706b6b52Smrg# Just in case
2315706b6b52Smrgsleep 1
2316706b6b52Smrgecho timestamp > conftest.file
2317706b6b52Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2318706b6b52Smrg# name.  Accept space and tab only in the latter.
2319706b6b52Smrgam_lf='
23208c4a8e55Smrg'
2321706b6b52Smrgcase `pwd` in
2322706b6b52Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2323706b6b52Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2324706b6b52Smrgesac
2325706b6b52Smrgcase $srcdir in
2326706b6b52Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2327706b6b52Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2328706b6b52Smrgesac
2329706b6b52Smrg
2330706b6b52Smrg# Do `set' in a subshell so we don't clobber the current shell's
2331706b6b52Smrg# arguments.  Must try -L first in case configure is actually a
2332706b6b52Smrg# symlink; some systems play weird games with the mod time of symlinks
2333706b6b52Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2334706b6b52Smrg# directory).
2335706b6b52Smrgif (
2336706b6b52Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2337706b6b52Smrg   if test "$*" = "X"; then
2338706b6b52Smrg      # -L didn't work.
2339706b6b52Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2340706b6b52Smrg   fi
2341706b6b52Smrg   rm -f conftest.file
2342706b6b52Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
2343706b6b52Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2344706b6b52Smrg
2345706b6b52Smrg      # If neither matched, then we have a broken ls.  This can happen
2346706b6b52Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2347706b6b52Smrg      # broken ls alias from the environment.  This has actually
2348706b6b52Smrg      # happened.  Such a system could not be considered "sane".
2349706b6b52Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2350706b6b52Smrgalias in your environment" "$LINENO" 5
2351706b6b52Smrg   fi
2352706b6b52Smrg
2353706b6b52Smrg   test "$2" = conftest.file
2354706b6b52Smrg   )
2355706b6b52Smrgthen
2356706b6b52Smrg   # Ok.
2357706b6b52Smrg   :
2358706b6b52Smrgelse
2359706b6b52Smrg   as_fn_error $? "newly created file is older than distributed files!
2360706b6b52SmrgCheck your system clock" "$LINENO" 5
2361706b6b52Smrgfi
2362706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2363706b6b52Smrg$as_echo "yes" >&6; }
2364706b6b52Smrgtest "$program_prefix" != NONE &&
2365706b6b52Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366706b6b52Smrg# Use a double $ so make ignores it.
2367706b6b52Smrgtest "$program_suffix" != NONE &&
2368706b6b52Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369706b6b52Smrg# Double any \ or $.
2370706b6b52Smrg# By default was `s,x,x', remove it if useless.
2371706b6b52Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372706b6b52Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373706b6b52Smrg
2374706b6b52Smrg# expand $ac_aux_dir to an absolute path
2375706b6b52Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
2376706b6b52Smrg
2377706b6b52Smrgif test x"${MISSING+set}" != xset; then
2378706b6b52Smrg  case $am_aux_dir in
2379706b6b52Smrg  *\ * | *\	*)
2380706b6b52Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2381706b6b52Smrg  *)
2382706b6b52Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2383706b6b52Smrg  esac
2384706b6b52Smrgfi
2385706b6b52Smrg# Use eval to expand $SHELL
2386706b6b52Smrgif eval "$MISSING --run true"; then
2387706b6b52Smrg  am_missing_run="$MISSING --run "
2388706b6b52Smrgelse
2389706b6b52Smrg  am_missing_run=
2390706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2391706b6b52Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2392706b6b52Smrgfi
2393706b6b52Smrg
2394706b6b52Smrgif test x"${install_sh}" != xset; then
2395706b6b52Smrg  case $am_aux_dir in
2396706b6b52Smrg  *\ * | *\	*)
2397706b6b52Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2398706b6b52Smrg  *)
2399706b6b52Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2400706b6b52Smrg  esac
2401706b6b52Smrgfi
2402706b6b52Smrg
2403706b6b52Smrg# Installed binaries are usually stripped using `strip' when the user
2404706b6b52Smrg# run `make install-strip'.  However `strip' might not be the right
2405706b6b52Smrg# tool to use in cross-compilation environments, therefore Automake
2406706b6b52Smrg# will honor the `STRIP' environment variable to overrule this program.
2407706b6b52Smrgif test "$cross_compiling" != no; then
2408706b6b52Smrg  if test -n "$ac_tool_prefix"; then
2409706b6b52Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2410706b6b52Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2411706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412706b6b52Smrg$as_echo_n "checking for $ac_word... " >&6; }
2413706b6b52Smrgif ${ac_cv_prog_STRIP+:} false; then :
2414706b6b52Smrg  $as_echo_n "(cached) " >&6
2415706b6b52Smrgelse
2416706b6b52Smrg  if test -n "$STRIP"; then
2417706b6b52Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2418706b6b52Smrgelse
2419706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420706b6b52Smrgfor as_dir in $PATH
2421706b6b52Smrgdo
2422706b6b52Smrg  IFS=$as_save_IFS
2423706b6b52Smrg  test -z "$as_dir" && as_dir=.
2424706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2425706b6b52Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426706b6b52Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2427706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428706b6b52Smrg    break 2
2429706b6b52Smrg  fi
2430706b6b52Smrgdone
2431706b6b52Smrg  done
2432706b6b52SmrgIFS=$as_save_IFS
2433706b6b52Smrg
2434706b6b52Smrgfi
2435706b6b52Smrgfi
2436706b6b52SmrgSTRIP=$ac_cv_prog_STRIP
2437706b6b52Smrgif test -n "$STRIP"; then
2438706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2439706b6b52Smrg$as_echo "$STRIP" >&6; }
2440706b6b52Smrgelse
2441706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442706b6b52Smrg$as_echo "no" >&6; }
2443706b6b52Smrgfi
2444706b6b52Smrg
2445706b6b52Smrg
2446706b6b52Smrgfi
2447706b6b52Smrgif test -z "$ac_cv_prog_STRIP"; then
2448706b6b52Smrg  ac_ct_STRIP=$STRIP
2449706b6b52Smrg  # Extract the first word of "strip", so it can be a program name with args.
2450706b6b52Smrgset dummy strip; ac_word=$2
2451706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452706b6b52Smrg$as_echo_n "checking for $ac_word... " >&6; }
2453706b6b52Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2454706b6b52Smrg  $as_echo_n "(cached) " >&6
2455706b6b52Smrgelse
2456706b6b52Smrg  if test -n "$ac_ct_STRIP"; then
2457706b6b52Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2458706b6b52Smrgelse
2459706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460706b6b52Smrgfor as_dir in $PATH
2461706b6b52Smrgdo
2462706b6b52Smrg  IFS=$as_save_IFS
2463706b6b52Smrg  test -z "$as_dir" && as_dir=.
2464706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2465706b6b52Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466706b6b52Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2467706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468706b6b52Smrg    break 2
2469706b6b52Smrg  fi
2470706b6b52Smrgdone
2471706b6b52Smrg  done
2472706b6b52SmrgIFS=$as_save_IFS
2473706b6b52Smrg
2474706b6b52Smrgfi
2475706b6b52Smrgfi
2476706b6b52Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2477706b6b52Smrgif test -n "$ac_ct_STRIP"; then
2478706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2479706b6b52Smrg$as_echo "$ac_ct_STRIP" >&6; }
2480706b6b52Smrgelse
2481706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482706b6b52Smrg$as_echo "no" >&6; }
2483706b6b52Smrgfi
2484706b6b52Smrg
2485706b6b52Smrg  if test "x$ac_ct_STRIP" = x; then
2486706b6b52Smrg    STRIP=":"
2487706b6b52Smrg  else
2488706b6b52Smrg    case $cross_compiling:$ac_tool_warned in
2489706b6b52Smrgyes:)
2490706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2491706b6b52Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2492706b6b52Smrgac_tool_warned=yes ;;
2493706b6b52Smrgesac
2494706b6b52Smrg    STRIP=$ac_ct_STRIP
2495706b6b52Smrg  fi
2496706b6b52Smrgelse
2497706b6b52Smrg  STRIP="$ac_cv_prog_STRIP"
2498706b6b52Smrgfi
2499706b6b52Smrg
2500706b6b52Smrgfi
2501706b6b52SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2502706b6b52Smrg
2503706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2504706b6b52Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2505706b6b52Smrgif test -z "$MKDIR_P"; then
2506706b6b52Smrg  if ${ac_cv_path_mkdir+:} false; then :
2507706b6b52Smrg  $as_echo_n "(cached) " >&6
2508706b6b52Smrgelse
2509706b6b52Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510706b6b52Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2511706b6b52Smrgdo
2512706b6b52Smrg  IFS=$as_save_IFS
2513706b6b52Smrg  test -z "$as_dir" && as_dir=.
2514706b6b52Smrg    for ac_prog in mkdir gmkdir; do
2515706b6b52Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2516706b6b52Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2517706b6b52Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2518706b6b52Smrg	     'mkdir (GNU coreutils) '* | \
2519706b6b52Smrg	     'mkdir (coreutils) '* | \
2520706b6b52Smrg	     'mkdir (fileutils) '4.1*)
2521706b6b52Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2522706b6b52Smrg	       break 3;;
2523706b6b52Smrg	   esac
2524706b6b52Smrg	 done
2525706b6b52Smrg       done
2526706b6b52Smrg  done
2527706b6b52SmrgIFS=$as_save_IFS
2528b042e37fSmrg
2529706b6b52Smrgfi
2530b042e37fSmrg
2531706b6b52Smrg  test -d ./--version && rmdir ./--version
2532706b6b52Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2533706b6b52Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2534706b6b52Smrg  else
2535706b6b52Smrg    # As a last resort, use the slow shell script.  Don't cache a
2536706b6b52Smrg    # value for MKDIR_P within a source directory, because that will
2537706b6b52Smrg    # break other packages using the cache if that directory is
2538706b6b52Smrg    # removed, or if the value is a relative name.
2539706b6b52Smrg    MKDIR_P="$ac_install_sh -d"
2540706b6b52Smrg  fi
2541706b6b52Smrgfi
2542706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2543706b6b52Smrg$as_echo "$MKDIR_P" >&6; }
2544b042e37fSmrg
2545706b6b52Smrgmkdir_p="$MKDIR_P"
2546706b6b52Smrgcase $mkdir_p in
2547706b6b52Smrg  [\\/$]* | ?:[\\/]*) ;;
2548706b6b52Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2549706b6b52Smrgesac
2550b042e37fSmrg
2551706b6b52Smrgfor ac_prog in gawk mawk nawk awk
2552b042e37fSmrgdo
2553706b6b52Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2554706b6b52Smrgset dummy $ac_prog; ac_word=$2
2555706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556706b6b52Smrg$as_echo_n "checking for $ac_word... " >&6; }
2557706b6b52Smrgif ${ac_cv_prog_AWK+:} false; then :
2558706b6b52Smrg  $as_echo_n "(cached) " >&6
2559706b6b52Smrgelse
2560706b6b52Smrg  if test -n "$AWK"; then
2561706b6b52Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2562706b6b52Smrgelse
2563706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564706b6b52Smrgfor as_dir in $PATH
2565706b6b52Smrgdo
2566706b6b52Smrg  IFS=$as_save_IFS
2567706b6b52Smrg  test -z "$as_dir" && as_dir=.
2568706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2569706b6b52Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570706b6b52Smrg    ac_cv_prog_AWK="$ac_prog"
2571706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572706b6b52Smrg    break 2
2573b042e37fSmrg  fi
2574706b6b52Smrgdone
2575706b6b52Smrg  done
2576706b6b52SmrgIFS=$as_save_IFS
2577b042e37fSmrg
2578706b6b52Smrgfi
2579706b6b52Smrgfi
2580706b6b52SmrgAWK=$ac_cv_prog_AWK
2581706b6b52Smrgif test -n "$AWK"; then
2582706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2583706b6b52Smrg$as_echo "$AWK" >&6; }
2584706b6b52Smrgelse
2585706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586706b6b52Smrg$as_echo "no" >&6; }
2587706b6b52Smrgfi
2588b042e37fSmrg
2589b042e37fSmrg
2590706b6b52Smrg  test -n "$AWK" && break
2591706b6b52Smrgdone
2592b042e37fSmrg
2593706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2594706b6b52Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2595706b6b52Smrgset x ${MAKE-make}
2596706b6b52Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2597706b6b52Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2598706b6b52Smrg  $as_echo_n "(cached) " >&6
2599706b6b52Smrgelse
2600706b6b52Smrg  cat >conftest.make <<\_ACEOF
2601706b6b52SmrgSHELL = /bin/sh
2602706b6b52Smrgall:
2603706b6b52Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2604706b6b52Smrg_ACEOF
2605706b6b52Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2606706b6b52Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2607706b6b52Smrg  *@@@%%%=?*=@@@%%%*)
2608706b6b52Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2609706b6b52Smrg  *)
2610706b6b52Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2611706b6b52Smrgesac
2612706b6b52Smrgrm -f conftest.make
2613706b6b52Smrgfi
2614706b6b52Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2615706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616706b6b52Smrg$as_echo "yes" >&6; }
2617706b6b52Smrg  SET_MAKE=
2618706b6b52Smrgelse
2619706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620706b6b52Smrg$as_echo "no" >&6; }
2621706b6b52Smrg  SET_MAKE="MAKE=${MAKE-make}"
2622706b6b52Smrgfi
2623b042e37fSmrg
2624706b6b52Smrgrm -rf .tst 2>/dev/null
2625706b6b52Smrgmkdir .tst 2>/dev/null
2626706b6b52Smrgif test -d .tst; then
2627706b6b52Smrg  am__leading_dot=.
2628706b6b52Smrgelse
2629706b6b52Smrg  am__leading_dot=_
2630706b6b52Smrgfi
2631706b6b52Smrgrmdir .tst 2>/dev/null
2632b042e37fSmrg
2633706b6b52Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2634706b6b52Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2635706b6b52Smrg  # is not polluted with repeated "-I."
2636706b6b52Smrg  am__isrc=' -I$(srcdir)'
2637706b6b52Smrg  # test to see if srcdir already configured
2638706b6b52Smrg  if test -f $srcdir/config.status; then
2639706b6b52Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2640706b6b52Smrg  fi
2641706b6b52Smrgfi
2642b042e37fSmrg
2643706b6b52Smrg# test whether we have cygpath
2644706b6b52Smrgif test -z "$CYGPATH_W"; then
2645706b6b52Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2646706b6b52Smrg    CYGPATH_W='cygpath -w'
2647706b6b52Smrg  else
2648706b6b52Smrg    CYGPATH_W=echo
2649706b6b52Smrg  fi
2650706b6b52Smrgfi
2651b042e37fSmrg
2652b042e37fSmrg
2653706b6b52Smrg# Define the identity of the package.
2654706b6b52Smrg PACKAGE='libXrandr'
2655bd23fbfaSmrg VERSION='1.3.2'
2656b042e37fSmrg
2657b042e37fSmrg
2658706b6b52Smrgcat >>confdefs.h <<_ACEOF
2659706b6b52Smrg#define PACKAGE "$PACKAGE"
2660706b6b52Smrg_ACEOF
2661b042e37fSmrg
2662b042e37fSmrg
2663706b6b52Smrgcat >>confdefs.h <<_ACEOF
2664706b6b52Smrg#define VERSION "$VERSION"
2665706b6b52Smrg_ACEOF
2666b042e37fSmrg
2667706b6b52Smrg# Some tools Automake needs.
2668706b6b52Smrg
2669706b6b52SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2670706b6b52Smrg
2671706b6b52Smrg
2672706b6b52SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2673706b6b52Smrg
2674706b6b52Smrg
2675706b6b52SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2676706b6b52Smrg
2677706b6b52Smrg
2678706b6b52SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2679706b6b52Smrg
2680706b6b52Smrg
2681706b6b52SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2682706b6b52Smrg
2683706b6b52Smrg# We need awk for the "check" target.  The system "awk" is bad on
2684706b6b52Smrg# some platforms.
2685706b6b52Smrg# Always define AMTAR for backward compatibility.
2686b042e37fSmrg
2687706b6b52SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2688b042e37fSmrg
2689706b6b52Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2690b042e37fSmrg
2691b042e37fSmrg
2692b042e37fSmrg
2693b042e37fSmrg
2694b042e37fSmrg
2695b042e37fSmrg
2696706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2697706b6b52Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2698706b6b52Smrg    # Check whether --enable-maintainer-mode was given.
2699706b6b52Smrgif test "${enable_maintainer_mode+set}" = set; then :
2700706b6b52Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2701706b6b52Smrgelse
2702706b6b52Smrg  USE_MAINTAINER_MODE=no
2703706b6b52Smrgfi
2704b042e37fSmrg
2705706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2706706b6b52Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2707706b6b52Smrg   if test $USE_MAINTAINER_MODE = yes; then
2708706b6b52Smrg  MAINTAINER_MODE_TRUE=
2709706b6b52Smrg  MAINTAINER_MODE_FALSE='#'
2710706b6b52Smrgelse
2711706b6b52Smrg  MAINTAINER_MODE_TRUE='#'
2712706b6b52Smrg  MAINTAINER_MODE_FALSE=
2713706b6b52Smrgfi
2714b042e37fSmrg
2715706b6b52Smrg  MAINT=$MAINTAINER_MODE_TRUE
2716b042e37fSmrg
2717b042e37fSmrg
2718b042e37fSmrg
2719bd23fbfaSmrg# Initialize libtool
2720bd23fbfaSmrgcase `pwd` in
2721bd23fbfaSmrg  *\ * | *\	*)
2722bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2723bd23fbfaSmrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2724bd23fbfaSmrgesac
2725bd23fbfaSmrg
2726bd23fbfaSmrg
2727bd23fbfaSmrg
2728bd23fbfaSmrgmacro_version='2.4'
2729bd23fbfaSmrgmacro_revision='1.3293'
2730bd23fbfaSmrg
2731bd23fbfaSmrg
2732bd23fbfaSmrg
2733bd23fbfaSmrg
2734bd23fbfaSmrg
2735bd23fbfaSmrg
2736bd23fbfaSmrg
2737bd23fbfaSmrg
2738bd23fbfaSmrg
2739bd23fbfaSmrg
2740bd23fbfaSmrg
2741bd23fbfaSmrg
2742bd23fbfaSmrg
2743bd23fbfaSmrgltmain="$ac_aux_dir/ltmain.sh"
2744bd23fbfaSmrg
2745bd23fbfaSmrg# Make sure we can run config.sub.
2746bd23fbfaSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2747bd23fbfaSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2748bd23fbfaSmrg
2749bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2750bd23fbfaSmrg$as_echo_n "checking build system type... " >&6; }
2751bd23fbfaSmrgif ${ac_cv_build+:} false; then :
2752bd23fbfaSmrg  $as_echo_n "(cached) " >&6
2753bd23fbfaSmrgelse
2754bd23fbfaSmrg  ac_build_alias=$build_alias
2755bd23fbfaSmrgtest "x$ac_build_alias" = x &&
2756bd23fbfaSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2757bd23fbfaSmrgtest "x$ac_build_alias" = x &&
2758bd23fbfaSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2759bd23fbfaSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2760bd23fbfaSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2761bd23fbfaSmrg
2762bd23fbfaSmrgfi
2763bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2764bd23fbfaSmrg$as_echo "$ac_cv_build" >&6; }
2765bd23fbfaSmrgcase $ac_cv_build in
2766bd23fbfaSmrg*-*-*) ;;
2767bd23fbfaSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2768bd23fbfaSmrgesac
2769bd23fbfaSmrgbuild=$ac_cv_build
2770bd23fbfaSmrgac_save_IFS=$IFS; IFS='-'
2771bd23fbfaSmrgset x $ac_cv_build
2772bd23fbfaSmrgshift
2773bd23fbfaSmrgbuild_cpu=$1
2774bd23fbfaSmrgbuild_vendor=$2
2775bd23fbfaSmrgshift; shift
2776bd23fbfaSmrg# Remember, the first character of IFS is used to create $*,
2777bd23fbfaSmrg# except with old shells:
2778bd23fbfaSmrgbuild_os=$*
2779bd23fbfaSmrgIFS=$ac_save_IFS
2780bd23fbfaSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2781bd23fbfaSmrg
2782bd23fbfaSmrg
2783bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2784bd23fbfaSmrg$as_echo_n "checking host system type... " >&6; }
2785bd23fbfaSmrgif ${ac_cv_host+:} false; then :
2786bd23fbfaSmrg  $as_echo_n "(cached) " >&6
2787bd23fbfaSmrgelse
2788bd23fbfaSmrg  if test "x$host_alias" = x; then
2789bd23fbfaSmrg  ac_cv_host=$ac_cv_build
2790bd23fbfaSmrgelse
2791bd23fbfaSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2792bd23fbfaSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2793bd23fbfaSmrgfi
2794bd23fbfaSmrg
2795bd23fbfaSmrgfi
2796bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2797bd23fbfaSmrg$as_echo "$ac_cv_host" >&6; }
2798bd23fbfaSmrgcase $ac_cv_host in
2799bd23fbfaSmrg*-*-*) ;;
2800bd23fbfaSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2801bd23fbfaSmrgesac
2802bd23fbfaSmrghost=$ac_cv_host
2803bd23fbfaSmrgac_save_IFS=$IFS; IFS='-'
2804bd23fbfaSmrgset x $ac_cv_host
2805bd23fbfaSmrgshift
2806bd23fbfaSmrghost_cpu=$1
2807bd23fbfaSmrghost_vendor=$2
2808bd23fbfaSmrgshift; shift
2809bd23fbfaSmrg# Remember, the first character of IFS is used to create $*,
2810bd23fbfaSmrg# except with old shells:
2811bd23fbfaSmrghost_os=$*
2812bd23fbfaSmrgIFS=$ac_save_IFS
2813bd23fbfaSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2814bd23fbfaSmrg
2815bd23fbfaSmrg
2816bd23fbfaSmrg# Backslashify metacharacters that are still active within
2817bd23fbfaSmrg# double-quoted strings.
2818bd23fbfaSmrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2819bd23fbfaSmrg
2820bd23fbfaSmrg# Same as above, but do not quote variable references.
2821bd23fbfaSmrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
2822bd23fbfaSmrg
2823bd23fbfaSmrg# Sed substitution to delay expansion of an escaped shell variable in a
2824bd23fbfaSmrg# double_quote_subst'ed string.
2825bd23fbfaSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2826bd23fbfaSmrg
2827bd23fbfaSmrg# Sed substitution to delay expansion of an escaped single quote.
2828bd23fbfaSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2829bd23fbfaSmrg
2830bd23fbfaSmrg# Sed substitution to avoid accidental globbing in evaled expressions
2831bd23fbfaSmrgno_glob_subst='s/\*/\\\*/g'
2832bd23fbfaSmrg
2833bd23fbfaSmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2834bd23fbfaSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2835bd23fbfaSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2836bd23fbfaSmrg
2837bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2838bd23fbfaSmrg$as_echo_n "checking how to print strings... " >&6; }
2839bd23fbfaSmrg# Test print first, because it will be a builtin if present.
2840bd23fbfaSmrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2841bd23fbfaSmrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2842bd23fbfaSmrg  ECHO='print -r --'
2843bd23fbfaSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2844bd23fbfaSmrg  ECHO='printf %s\n'
2845bd23fbfaSmrgelse
2846bd23fbfaSmrg  # Use this function as a fallback that always works.
2847bd23fbfaSmrg  func_fallback_echo ()
2848bd23fbfaSmrg  {
2849bd23fbfaSmrg    eval 'cat <<_LTECHO_EOF
2850bd23fbfaSmrg$1
2851bd23fbfaSmrg_LTECHO_EOF'
2852bd23fbfaSmrg  }
2853bd23fbfaSmrg  ECHO='func_fallback_echo'
2854bd23fbfaSmrgfi
2855bd23fbfaSmrg
2856bd23fbfaSmrg# func_echo_all arg...
2857bd23fbfaSmrg# Invoke $ECHO with all args, space-separated.
2858bd23fbfaSmrgfunc_echo_all ()
2859bd23fbfaSmrg{
2860bd23fbfaSmrg    $ECHO ""
2861bd23fbfaSmrg}
2862bd23fbfaSmrg
2863bd23fbfaSmrgcase "$ECHO" in
2864bd23fbfaSmrg  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2865bd23fbfaSmrg$as_echo "printf" >&6; } ;;
2866bd23fbfaSmrg  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2867bd23fbfaSmrg$as_echo "print -r" >&6; } ;;
2868bd23fbfaSmrg  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2869bd23fbfaSmrg$as_echo "cat" >&6; } ;;
2870bd23fbfaSmrgesac
2871bd23fbfaSmrg
2872bd23fbfaSmrg
2873bd23fbfaSmrg
2874b042e37fSmrg
2875b042e37fSmrg
2876b042e37fSmrg
2877b042e37fSmrg
2878b042e37fSmrg
2879b042e37fSmrg
2880b042e37fSmrg
2881b042e37fSmrg
2882b042e37fSmrg
2883b042e37fSmrg
2884b042e37fSmrg
2885706b6b52SmrgDEPDIR="${am__leading_dot}deps"
2886b042e37fSmrg
2887706b6b52Smrgac_config_commands="$ac_config_commands depfiles"
2888b042e37fSmrg
2889b042e37fSmrg
2890706b6b52Smrgam_make=${MAKE-make}
2891706b6b52Smrgcat > confinc << 'END'
2892706b6b52Smrgam__doit:
2893706b6b52Smrg	@echo this is the am__doit target
2894706b6b52Smrg.PHONY: am__doit
2895706b6b52SmrgEND
2896706b6b52Smrg# If we don't find an include directive, just comment out the code.
2897706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2898706b6b52Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
2899706b6b52Smrgam__include="#"
2900706b6b52Smrgam__quote=
2901706b6b52Smrg_am_result=none
2902706b6b52Smrg# First try GNU make style include.
2903706b6b52Smrgecho "include confinc" > confmf
2904706b6b52Smrg# Ignore all kinds of additional output from `make'.
2905706b6b52Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
2906706b6b52Smrg*the\ am__doit\ target*)
2907706b6b52Smrg  am__include=include
2908706b6b52Smrg  am__quote=
2909706b6b52Smrg  _am_result=GNU
2910706b6b52Smrg  ;;
2911706b6b52Smrgesac
2912706b6b52Smrg# Now try BSD make style include.
2913706b6b52Smrgif test "$am__include" = "#"; then
2914706b6b52Smrg   echo '.include "confinc"' > confmf
2915706b6b52Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
2916706b6b52Smrg   *the\ am__doit\ target*)
2917706b6b52Smrg     am__include=.include
2918706b6b52Smrg     am__quote="\""
2919706b6b52Smrg     _am_result=BSD
2920706b6b52Smrg     ;;
2921706b6b52Smrg   esac
2922706b6b52Smrgfi
2923b042e37fSmrg
2924b042e37fSmrg
2925706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2926706b6b52Smrg$as_echo "$_am_result" >&6; }
2927706b6b52Smrgrm -f confinc confmf
2928b042e37fSmrg
2929706b6b52Smrg# Check whether --enable-dependency-tracking was given.
2930706b6b52Smrgif test "${enable_dependency_tracking+set}" = set; then :
2931706b6b52Smrg  enableval=$enable_dependency_tracking;
2932706b6b52Smrgfi
2933b042e37fSmrg
2934706b6b52Smrgif test "x$enable_dependency_tracking" != xno; then
2935706b6b52Smrg  am_depcomp="$ac_aux_dir/depcomp"
2936706b6b52Smrg  AMDEPBACKSLASH='\'
2937706b6b52Smrgfi
2938706b6b52Smrg if test "x$enable_dependency_tracking" != xno; then
2939706b6b52Smrg  AMDEP_TRUE=
2940706b6b52Smrg  AMDEP_FALSE='#'
2941706b6b52Smrgelse
2942706b6b52Smrg  AMDEP_TRUE='#'
2943706b6b52Smrg  AMDEP_FALSE=
2944706b6b52Smrgfi
2945b042e37fSmrg
2946b042e37fSmrg
2947706b6b52Smrgac_ext=c
2948706b6b52Smrgac_cpp='$CPP $CPPFLAGS'
2949706b6b52Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950706b6b52Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951706b6b52Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2952706b6b52Smrgif test -n "$ac_tool_prefix"; then
2953706b6b52Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2954706b6b52Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2955706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956706b6b52Smrg$as_echo_n "checking for $ac_word... " >&6; }
2957706b6b52Smrgif ${ac_cv_prog_CC+:} false; then :
2958706b6b52Smrg  $as_echo_n "(cached) " >&6
2959706b6b52Smrgelse
2960706b6b52Smrg  if test -n "$CC"; then
2961706b6b52Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2962706b6b52Smrgelse
2963706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964706b6b52Smrgfor as_dir in $PATH
2965706b6b52Smrgdo
2966706b6b52Smrg  IFS=$as_save_IFS
2967706b6b52Smrg  test -z "$as_dir" && as_dir=.
2968706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2969706b6b52Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970706b6b52Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2971706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972706b6b52Smrg    break 2
2973706b6b52Smrg  fi
2974706b6b52Smrgdone
2975706b6b52Smrg  done
2976706b6b52SmrgIFS=$as_save_IFS
2977b042e37fSmrg
2978706b6b52Smrgfi
2979706b6b52Smrgfi
2980706b6b52SmrgCC=$ac_cv_prog_CC
2981706b6b52Smrgif test -n "$CC"; then
2982706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983706b6b52Smrg$as_echo "$CC" >&6; }
2984706b6b52Smrgelse
2985706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986706b6b52Smrg$as_echo "no" >&6; }
2987706b6b52Smrgfi
2988b042e37fSmrg
2989b042e37fSmrg
2990706b6b52Smrgfi
2991706b6b52Smrgif test -z "$ac_cv_prog_CC"; then
2992706b6b52Smrg  ac_ct_CC=$CC
2993706b6b52Smrg  # Extract the first word of "gcc", so it can be a program name with args.
2994706b6b52Smrgset dummy gcc; ac_word=$2
2995706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996706b6b52Smrg$as_echo_n "checking for $ac_word... " >&6; }
2997706b6b52Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
2998706b6b52Smrg  $as_echo_n "(cached) " >&6
2999706b6b52Smrgelse
3000706b6b52Smrg  if test -n "$ac_ct_CC"; then
3001706b6b52Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002706b6b52Smrgelse
3003706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004706b6b52Smrgfor as_dir in $PATH
3005706b6b52Smrgdo
3006706b6b52Smrg  IFS=$as_save_IFS
3007706b6b52Smrg  test -z "$as_dir" && as_dir=.
3008706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3009706b6b52Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010706b6b52Smrg    ac_cv_prog_ac_ct_CC="gcc"
3011706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012706b6b52Smrg    break 2
3013706b6b52Smrg  fi
3014706b6b52Smrgdone
3015706b6b52Smrg  done
3016706b6b52SmrgIFS=$as_save_IFS
3017b042e37fSmrg
3018706b6b52Smrgfi
3019706b6b52Smrgfi
3020706b6b52Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3021706b6b52Smrgif test -n "$ac_ct_CC"; then
3022706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023706b6b52Smrg$as_echo "$ac_ct_CC" >&6; }
3024706b6b52Smrgelse
3025706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026706b6b52Smrg$as_echo "no" >&6; }
3027706b6b52Smrgfi
3028b042e37fSmrg
3029706b6b52Smrg  if test "x$ac_ct_CC" = x; then
3030706b6b52Smrg    CC=""
3031706b6b52Smrg  else
3032706b6b52Smrg    case $cross_compiling:$ac_tool_warned in
3033706b6b52Smrgyes:)
3034706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035706b6b52Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036706b6b52Smrgac_tool_warned=yes ;;
3037706b6b52Smrgesac
3038706b6b52Smrg    CC=$ac_ct_CC
3039706b6b52Smrg  fi
3040706b6b52Smrgelse
3041706b6b52Smrg  CC="$ac_cv_prog_CC"
3042706b6b52Smrgfi
3043b042e37fSmrg
3044706b6b52Smrgif test -z "$CC"; then
3045706b6b52Smrg          if test -n "$ac_tool_prefix"; then
3046706b6b52Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047706b6b52Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3048706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049706b6b52Smrg$as_echo_n "checking for $ac_word... " >&6; }
3050706b6b52Smrgif ${ac_cv_prog_CC+:} false; then :
3051706b6b52Smrg  $as_echo_n "(cached) " >&6
3052706b6b52Smrgelse
3053706b6b52Smrg  if test -n "$CC"; then
3054706b6b52Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3055706b6b52Smrgelse
3056706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057706b6b52Smrgfor as_dir in $PATH
3058706b6b52Smrgdo
3059706b6b52Smrg  IFS=$as_save_IFS
3060706b6b52Smrg  test -z "$as_dir" && as_dir=.
3061706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3062706b6b52Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063706b6b52Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3064706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065706b6b52Smrg    break 2
3066706b6b52Smrg  fi
3067b042e37fSmrgdone
3068706b6b52Smrg  done
3069706b6b52SmrgIFS=$as_save_IFS
3070b042e37fSmrg
3071b042e37fSmrgfi
3072706b6b52Smrgfi
3073706b6b52SmrgCC=$ac_cv_prog_CC
3074706b6b52Smrgif test -n "$CC"; then
3075706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076706b6b52Smrg$as_echo "$CC" >&6; }
3077706b6b52Smrgelse
3078706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079706b6b52Smrg$as_echo "no" >&6; }
30808c4a8e55Smrgfi
30818c4a8e55Smrg
3082706b6b52Smrg
3083706b6b52Smrg  fi
3084706b6b52Smrgfi
3085706b6b52Smrgif test -z "$CC"; then
3086706b6b52Smrg  # Extract the first word of "cc", so it can be a program name with args.
3087706b6b52Smrgset dummy cc; ac_word=$2
3088706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089706b6b52Smrg$as_echo_n "checking for $ac_word... " >&6; }
3090706b6b52Smrgif ${ac_cv_prog_CC+:} false; then :
3091706b6b52Smrg  $as_echo_n "(cached) " >&6
3092706b6b52Smrgelse
3093706b6b52Smrg  if test -n "$CC"; then
3094706b6b52Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3095706b6b52Smrgelse
3096706b6b52Smrg  ac_prog_rejected=no
3097706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098706b6b52Smrgfor as_dir in $PATH
3099b042e37fSmrgdo
3100706b6b52Smrg  IFS=$as_save_IFS
3101706b6b52Smrg  test -z "$as_dir" && as_dir=.
3102706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3103706b6b52Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104706b6b52Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3105706b6b52Smrg       ac_prog_rejected=yes
3106706b6b52Smrg       continue
3107706b6b52Smrg     fi
3108706b6b52Smrg    ac_cv_prog_CC="cc"
3109706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110706b6b52Smrg    break 2
3111706b6b52Smrg  fi
3112b042e37fSmrgdone
3113706b6b52Smrg  done
3114706b6b52SmrgIFS=$as_save_IFS
3115b042e37fSmrg
3116706b6b52Smrgif test $ac_prog_rejected = yes; then
3117706b6b52Smrg  # We found a bogon in the path, so make sure we never use it.
3118706b6b52Smrg  set dummy $ac_cv_prog_CC
3119706b6b52Smrg  shift
3120706b6b52Smrg  if test $# != 0; then
3121706b6b52Smrg    # We chose a different compiler from the bogus one.
3122706b6b52Smrg    # However, it has the same basename, so the bogon will be chosen
3123706b6b52Smrg    # first if we set CC to just the basename; use the full file name.
3124706b6b52Smrg    shift
3125706b6b52Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3126706b6b52Smrg  fi
3127706b6b52Smrgfi
3128706b6b52Smrgfi
3129706b6b52Smrgfi
3130706b6b52SmrgCC=$ac_cv_prog_CC
3131706b6b52Smrgif test -n "$CC"; then
3132706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133706b6b52Smrg$as_echo "$CC" >&6; }
3134706b6b52Smrgelse
3135706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136706b6b52Smrg$as_echo "no" >&6; }
3137706b6b52Smrgfi
3138b042e37fSmrg
3139706b6b52Smrg
3140706b6b52Smrgfi
3141706b6b52Smrgif test -z "$CC"; then
3142706b6b52Smrg  if test -n "$ac_tool_prefix"; then
3143706b6b52Smrg  for ac_prog in cl.exe
3144706b6b52Smrg  do
3145706b6b52Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3146706b6b52Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3147706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148706b6b52Smrg$as_echo_n "checking for $ac_word... " >&6; }
3149706b6b52Smrgif ${ac_cv_prog_CC+:} false; then :
3150706b6b52Smrg  $as_echo_n "(cached) " >&6
3151706b6b52Smrgelse
3152706b6b52Smrg  if test -n "$CC"; then
3153706b6b52Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3154706b6b52Smrgelse
3155706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156706b6b52Smrgfor as_dir in $PATH
3157706b6b52Smrgdo
3158706b6b52Smrg  IFS=$as_save_IFS
3159706b6b52Smrg  test -z "$as_dir" && as_dir=.
3160706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3161706b6b52Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162706b6b52Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3163706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164706b6b52Smrg    break 2
3165b042e37fSmrg  fi
3166706b6b52Smrgdone
3167706b6b52Smrg  done
3168706b6b52SmrgIFS=$as_save_IFS
3169706b6b52Smrg
3170706b6b52Smrgfi
3171706b6b52Smrgfi
3172706b6b52SmrgCC=$ac_cv_prog_CC
3173706b6b52Smrgif test -n "$CC"; then
3174706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175706b6b52Smrg$as_echo "$CC" >&6; }
3176706b6b52Smrgelse
3177706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178706b6b52Smrg$as_echo "no" >&6; }
3179b042e37fSmrgfi
3180b042e37fSmrg
3181b042e37fSmrg
3182706b6b52Smrg    test -n "$CC" && break
3183706b6b52Smrg  done
3184706b6b52Smrgfi
3185706b6b52Smrgif test -z "$CC"; then
3186706b6b52Smrg  ac_ct_CC=$CC
3187706b6b52Smrg  for ac_prog in cl.exe
3188706b6b52Smrgdo
3189706b6b52Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3190706b6b52Smrgset dummy $ac_prog; ac_word=$2
3191706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192706b6b52Smrg$as_echo_n "checking for $ac_word... " >&6; }
3193706b6b52Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3194706b6b52Smrg  $as_echo_n "(cached) " >&6
3195706b6b52Smrgelse
3196706b6b52Smrg  if test -n "$ac_ct_CC"; then
3197706b6b52Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198706b6b52Smrgelse
3199706b6b52Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200706b6b52Smrgfor as_dir in $PATH
3201706b6b52Smrgdo
3202706b6b52Smrg  IFS=$as_save_IFS
3203706b6b52Smrg  test -z "$as_dir" && as_dir=.
3204706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3205706b6b52Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206706b6b52Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3207706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208706b6b52Smrg    break 2
3209706b6b52Smrg  fi
3210706b6b52Smrgdone
3211706b6b52Smrg  done
3212706b6b52SmrgIFS=$as_save_IFS
3213b042e37fSmrg
3214706b6b52Smrgfi
3215706b6b52Smrgfi
3216706b6b52Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3217706b6b52Smrgif test -n "$ac_ct_CC"; then
3218706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219706b6b52Smrg$as_echo "$ac_ct_CC" >&6; }
3220706b6b52Smrgelse
3221706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222706b6b52Smrg$as_echo "no" >&6; }
3223706b6b52Smrgfi
3224b042e37fSmrg
3225b042e37fSmrg
3226706b6b52Smrg  test -n "$ac_ct_CC" && break
3227706b6b52Smrgdone
3228b042e37fSmrg
3229706b6b52Smrg  if test "x$ac_ct_CC" = x; then
3230706b6b52Smrg    CC=""
3231706b6b52Smrg  else
3232706b6b52Smrg    case $cross_compiling:$ac_tool_warned in
3233706b6b52Smrgyes:)
3234706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3235706b6b52Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3236706b6b52Smrgac_tool_warned=yes ;;
3237706b6b52Smrgesac
3238706b6b52Smrg    CC=$ac_ct_CC
3239b042e37fSmrg  fi
3240b042e37fSmrgfi
3241706b6b52Smrg
3242b042e37fSmrgfi
3243706b6b52Smrg
3244706b6b52Smrg
3245706b6b52Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246706b6b52Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247706b6b52Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3248706b6b52SmrgSee \`config.log' for more details" "$LINENO" 5; }
3249706b6b52Smrg
3250706b6b52Smrg# Provide some information about the compiler.
3251706b6b52Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3252706b6b52Smrgset X $ac_compile
3253706b6b52Smrgac_compiler=$2
3254706b6b52Smrgfor ac_option in --version -v -V -qversion; do
3255706b6b52Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3256706b6b52Smrgcase "(($ac_try" in
3257706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258706b6b52Smrg  *) ac_try_echo=$ac_try;;
3259b042e37fSmrgesac
3260706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
3262706b6b52Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3263706b6b52Smrg  ac_status=$?
3264706b6b52Smrg  if test -s conftest.err; then
3265706b6b52Smrg    sed '10a\
3266706b6b52Smrg... rest of stderr output deleted ...
3267706b6b52Smrg         10q' conftest.err >conftest.er1
3268706b6b52Smrg    cat conftest.er1 >&5
3269706b6b52Smrg  fi
3270706b6b52Smrg  rm -f conftest.er1 conftest.err
3271706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272706b6b52Smrg  test $ac_status = 0; }
3273b042e37fSmrgdone
3274b042e37fSmrg
3275706b6b52Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276706b6b52Smrg/* end confdefs.h.  */
3277b042e37fSmrg
3278706b6b52Smrgint
3279706b6b52Smrgmain ()
3280706b6b52Smrg{
3281b042e37fSmrg
3282706b6b52Smrg  ;
3283706b6b52Smrg  return 0;
3284706b6b52Smrg}
3285706b6b52Smrg_ACEOF
3286706b6b52Smrgac_clean_files_save=$ac_clean_files
3287706b6b52Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3288706b6b52Smrg# Try to create an executable without -o first, disregard a.out.
3289706b6b52Smrg# It will help us diagnose broken compilers, and finding out an intuition
3290706b6b52Smrg# of exeext.
3291706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3292706b6b52Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
3293706b6b52Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3294b042e37fSmrg
3295706b6b52Smrg# The possible output files:
3296706b6b52Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3297b042e37fSmrg
3298706b6b52Smrgac_rmfiles=
3299706b6b52Smrgfor ac_file in $ac_files
3300706b6b52Smrgdo
3301706b6b52Smrg  case $ac_file in
3302706b6b52Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3303706b6b52Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3304706b6b52Smrg  esac
3305706b6b52Smrgdone
3306706b6b52Smrgrm -f $ac_rmfiles
3307b042e37fSmrg
3308706b6b52Smrgif { { ac_try="$ac_link_default"
3309706b6b52Smrgcase "(($ac_try" in
3310706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311706b6b52Smrg  *) ac_try_echo=$ac_try;;
3312706b6b52Smrgesac
3313706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
3315706b6b52Smrg  (eval "$ac_link_default") 2>&5
3316706b6b52Smrg  ac_status=$?
3317706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318706b6b52Smrg  test $ac_status = 0; }; then :
3319706b6b52Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3320706b6b52Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3321706b6b52Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3322706b6b52Smrg# so that the user can short-circuit this test for compilers unknown to
3323706b6b52Smrg# Autoconf.
3324706b6b52Smrgfor ac_file in $ac_files ''
3325706b6b52Smrgdo
3326706b6b52Smrg  test -f "$ac_file" || continue
3327706b6b52Smrg  case $ac_file in
3328706b6b52Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3329706b6b52Smrg	;;
3330706b6b52Smrg    [ab].out )
3331706b6b52Smrg	# We found the default executable, but exeext='' is most
3332706b6b52Smrg	# certainly right.
3333706b6b52Smrg	break;;
3334706b6b52Smrg    *.* )
3335706b6b52Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3336706b6b52Smrg	then :; else
3337706b6b52Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338706b6b52Smrg	fi
3339706b6b52Smrg	# We set ac_cv_exeext here because the later test for it is not
3340706b6b52Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3341706b6b52Smrg	# argument, so we may need to know it at that point already.
3342706b6b52Smrg	# Even if this section looks crufty: it has the advantage of
3343706b6b52Smrg	# actually working.
3344706b6b52Smrg	break;;
3345706b6b52Smrg    * )
3346706b6b52Smrg	break;;
3347706b6b52Smrg  esac
3348706b6b52Smrgdone
3349706b6b52Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3350b042e37fSmrg
3351706b6b52Smrgelse
3352706b6b52Smrg  ac_file=''
3353706b6b52Smrgfi
3354706b6b52Smrgif test -z "$ac_file"; then :
3355706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356706b6b52Smrg$as_echo "no" >&6; }
3357706b6b52Smrg$as_echo "$as_me: failed program was:" >&5
3358706b6b52Smrgsed 's/^/| /' conftest.$ac_ext >&5
3359b042e37fSmrg
3360706b6b52Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361706b6b52Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362706b6b52Smrgas_fn_error 77 "C compiler cannot create executables
3363706b6b52SmrgSee \`config.log' for more details" "$LINENO" 5; }
3364706b6b52Smrgelse
3365706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366706b6b52Smrg$as_echo "yes" >&6; }
3367706b6b52Smrgfi
3368706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3369706b6b52Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3370706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3371706b6b52Smrg$as_echo "$ac_file" >&6; }
3372706b6b52Smrgac_exeext=$ac_cv_exeext
3373b042e37fSmrg
3374706b6b52Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3375706b6b52Smrgac_clean_files=$ac_clean_files_save
3376706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3377706b6b52Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3378706b6b52Smrgif { { ac_try="$ac_link"
3379706b6b52Smrgcase "(($ac_try" in
3380706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381706b6b52Smrg  *) ac_try_echo=$ac_try;;
3382706b6b52Smrgesac
3383706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
3385706b6b52Smrg  (eval "$ac_link") 2>&5
3386706b6b52Smrg  ac_status=$?
3387706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388706b6b52Smrg  test $ac_status = 0; }; then :
3389706b6b52Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3390706b6b52Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3391706b6b52Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3392706b6b52Smrg# `rm'.
3393706b6b52Smrgfor ac_file in conftest.exe conftest conftest.*; do
3394706b6b52Smrg  test -f "$ac_file" || continue
3395706b6b52Smrg  case $ac_file in
3396706b6b52Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3397706b6b52Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398706b6b52Smrg	  break;;
3399706b6b52Smrg    * ) break;;
3400706b6b52Smrg  esac
3401706b6b52Smrgdone
3402706b6b52Smrgelse
3403706b6b52Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404706b6b52Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405706b6b52Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3406706b6b52SmrgSee \`config.log' for more details" "$LINENO" 5; }
3407706b6b52Smrgfi
3408706b6b52Smrgrm -f conftest conftest$ac_cv_exeext
3409706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3410706b6b52Smrg$as_echo "$ac_cv_exeext" >&6; }
3411b042e37fSmrg
3412706b6b52Smrgrm -f conftest.$ac_ext
3413706b6b52SmrgEXEEXT=$ac_cv_exeext
3414706b6b52Smrgac_exeext=$EXEEXT
3415706b6b52Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416706b6b52Smrg/* end confdefs.h.  */
3417706b6b52Smrg#include <stdio.h>
3418706b6b52Smrgint
3419706b6b52Smrgmain ()
3420706b6b52Smrg{
3421706b6b52SmrgFILE *f = fopen ("conftest.out", "w");
3422706b6b52Smrg return ferror (f) || fclose (f) != 0;
3423b042e37fSmrg
3424706b6b52Smrg  ;
3425706b6b52Smrg  return 0;
3426706b6b52Smrg}
3427b042e37fSmrg_ACEOF
3428706b6b52Smrgac_clean_files="$ac_clean_files conftest.out"
3429706b6b52Smrg# Check that the compiler produces executables we can run.  If not, either
3430706b6b52Smrg# the compiler is broken, or we cross compile.
3431706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3432706b6b52Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3433706b6b52Smrgif test "$cross_compiling" != yes; then
3434706b6b52Smrg  { { ac_try="$ac_link"
3435706b6b52Smrgcase "(($ac_try" in
3436706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437706b6b52Smrg  *) ac_try_echo=$ac_try;;
3438706b6b52Smrgesac
3439706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
3441706b6b52Smrg  (eval "$ac_link") 2>&5
3442706b6b52Smrg  ac_status=$?
3443706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444706b6b52Smrg  test $ac_status = 0; }
3445706b6b52Smrg  if { ac_try='./conftest$ac_cv_exeext'
3446706b6b52Smrg  { { case "(($ac_try" in
3447706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448706b6b52Smrg  *) ac_try_echo=$ac_try;;
3449706b6b52Smrgesac
3450706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
3452706b6b52Smrg  (eval "$ac_try") 2>&5
3453706b6b52Smrg  ac_status=$?
3454706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455706b6b52Smrg  test $ac_status = 0; }; }; then
3456706b6b52Smrg    cross_compiling=no
3457706b6b52Smrg  else
3458706b6b52Smrg    if test "$cross_compiling" = maybe; then
3459706b6b52Smrg	cross_compiling=yes
3460706b6b52Smrg    else
3461706b6b52Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462706b6b52Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463706b6b52Smrgas_fn_error $? "cannot run C compiled programs.
3464706b6b52SmrgIf you meant to cross compile, use \`--host'.
3465706b6b52SmrgSee \`config.log' for more details" "$LINENO" 5; }
3466706b6b52Smrg    fi
3467706b6b52Smrg  fi
3468b042e37fSmrgfi
3469706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3470706b6b52Smrg$as_echo "$cross_compiling" >&6; }
3471b042e37fSmrg
3472706b6b52Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3473706b6b52Smrgac_clean_files=$ac_clean_files_save
3474706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3475706b6b52Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3476706b6b52Smrgif ${ac_cv_objext+:} false; then :
3477706b6b52Smrg  $as_echo_n "(cached) " >&6
3478706b6b52Smrgelse
3479706b6b52Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480706b6b52Smrg/* end confdefs.h.  */
3481b042e37fSmrg
3482706b6b52Smrgint
3483706b6b52Smrgmain ()
3484706b6b52Smrg{
3485b042e37fSmrg
3486706b6b52Smrg  ;
3487706b6b52Smrg  return 0;
3488706b6b52Smrg}
3489706b6b52Smrg_ACEOF
3490706b6b52Smrgrm -f conftest.o conftest.obj
3491706b6b52Smrgif { { ac_try="$ac_compile"
3492706b6b52Smrgcase "(($ac_try" in
3493706b6b52Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494706b6b52Smrg  *) ac_try_echo=$ac_try;;
3495706b6b52Smrgesac
3496706b6b52Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497706b6b52Smrg$as_echo "$ac_try_echo"; } >&5
3498706b6b52Smrg  (eval "$ac_compile") 2>&5
3499706b6b52Smrg  ac_status=$?
3500706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501706b6b52Smrg  test $ac_status = 0; }; then :
3502706b6b52Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3503706b6b52Smrg  test -f "$ac_file" || continue;
3504706b6b52Smrg  case $ac_file in
3505706b6b52Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3506706b6b52Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507706b6b52Smrg       break;;
3508706b6b52Smrg  esac
3509706b6b52Smrgdone
3510706b6b52Smrgelse
3511706b6b52Smrg  $as_echo "$as_me: failed program was:" >&5
3512706b6b52Smrgsed 's/^/| /' conftest.$ac_ext >&5
3513b042e37fSmrg
3514706b6b52Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515706b6b52Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516706b6b52Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3517706b6b52SmrgSee \`config.log' for more details" "$LINENO" 5; }
3518706b6b52Smrgfi
3519706b6b52Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3520706b6b52Smrgfi
3521706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3522706b6b52Smrg$as_echo "$ac_cv_objext" >&6; }
3523706b6b52SmrgOBJEXT=$ac_cv_objext
3524706b6b52Smrgac_objext=$OBJEXT
3525706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3526706b6b52Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3527706b6b52Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
3528706b6b52Smrg  $as_echo_n "(cached) " >&6
3529706b6b52Smrgelse
3530706b6b52Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531706b6b52Smrg/* end confdefs.h.  */
3532b042e37fSmrg
3533706b6b52Smrgint
3534706b6b52Smrgmain ()
3535706b6b52Smrg{
3536706b6b52Smrg#ifndef __GNUC__
3537706b6b52Smrg       choke me
3538706b6b52Smrg#endif
3539b042e37fSmrg
3540706b6b52Smrg  ;
3541706b6b52Smrg  return 0;
3542706b6b52Smrg}
3543b042e37fSmrg_ACEOF
3544706b6b52Smrgif ac_fn_c_try_compile "$LINENO"; then :
3545706b6b52Smrg  ac_compiler_gnu=yes
3546706b6b52Smrgelse
3547706b6b52Smrg  ac_compiler_gnu=no
3548b042e37fSmrgfi
3549706b6b52Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550706b6b52Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3551b042e37fSmrg
3552706b6b52Smrgfi
3553706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3554706b6b52Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3555706b6b52Smrgif test $ac_compiler_gnu = yes; then
3556706b6b52Smrg  GCC=yes
3557706b6b52Smrgelse
3558706b6b52Smrg  GCC=
3559706b6b52Smrgfi
3560706b6b52Smrgac_test_CFLAGS=${CFLAGS+set}
3561706b6b52Smrgac_save_CFLAGS=$CFLAGS
3562706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3563706b6b52Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3564706b6b52Smrgif ${ac_cv_prog_cc_g+:} false; then :
3565706b6b52Smrg  $as_echo_n "(cached) " >&6
3566706b6b52Smrgelse
3567706b6b52Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3568706b6b52Smrg   ac_c_werror_flag=yes
3569706b6b52Smrg   ac_cv_prog_cc_g=no
3570706b6b52Smrg   CFLAGS="-g"
3571706b6b52Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572706b6b52Smrg/* end confdefs.h.  */
3573b042e37fSmrg
3574706b6b52Smrgint
3575706b6b52Smrgmain ()
3576706b6b52Smrg{
3577b042e37fSmrg
3578706b6b52Smrg  ;
3579706b6b52Smrg  return 0;
3580706b6b52Smrg}
3581706b6b52Smrg_ACEOF
3582706b6b52Smrgif ac_fn_c_try_compile "$LINENO"; then :
3583706b6b52Smrg  ac_cv_prog_cc_g=yes
3584706b6b52Smrgelse
3585706b6b52Smrg  CFLAGS=""
3586706b6b52Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587706b6b52Smrg/* end confdefs.h.  */
3588b042e37fSmrg
3589706b6b52Smrgint
3590706b6b52Smrgmain ()
3591706b6b52Smrg{
3592b042e37fSmrg
3593706b6b52Smrg  ;
3594706b6b52Smrg  return 0;
3595706b6b52Smrg}
3596b042e37fSmrg_ACEOF
3597706b6b52Smrgif ac_fn_c_try_compile "$LINENO"; then :
3598b042e37fSmrg
3599706b6b52Smrgelse
3600706b6b52Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3601706b6b52Smrg	 CFLAGS="-g"
3602706b6b52Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603706b6b52Smrg/* end confdefs.h.  */
3604b042e37fSmrg
3605706b6b52Smrgint
3606706b6b52Smrgmain ()
3607706b6b52Smrg{
3608b042e37fSmrg
3609706b6b52Smrg  ;
3610706b6b52Smrg  return 0;
3611706b6b52Smrg}
3612b042e37fSmrg_ACEOF
3613706b6b52Smrgif ac_fn_c_try_compile "$LINENO"; then :
3614706b6b52Smrg  ac_cv_prog_cc_g=yes
3615706b6b52Smrgfi
3616706b6b52Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617706b6b52Smrgfi
3618706b6b52Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619706b6b52Smrgfi
3620706b6b52Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621706b6b52Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3622706b6b52Smrgfi
3623706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3624706b6b52Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3625706b6b52Smrgif test "$ac_test_CFLAGS" = set; then
3626706b6b52Smrg  CFLAGS=$ac_save_CFLAGS
3627706b6b52Smrgelif test $ac_cv_prog_cc_g = yes; then
3628706b6b52Smrg  if test "$GCC" = yes; then
3629706b6b52Smrg    CFLAGS="-g -O2"
3630706b6b52Smrg  else
3631706b6b52Smrg    CFLAGS="-g"
3632706b6b52Smrg  fi
3633706b6b52Smrgelse
3634706b6b52Smrg  if test "$GCC" = yes; then
3635706b6b52Smrg    CFLAGS="-O2"
3636706b6b52Smrg  else
3637706b6b52Smrg    CFLAGS=
3638706b6b52Smrg  fi
3639706b6b52Smrgfi
3640706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3641706b6b52Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3642706b6b52Smrgif ${ac_cv_prog_cc_c89+:} false; then :
3643706b6b52Smrg  $as_echo_n "(cached) " >&6
3644706b6b52Smrgelse
3645706b6b52Smrg  ac_cv_prog_cc_c89=no
3646706b6b52Smrgac_save_CC=$CC
3647706b6b52Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648706b6b52Smrg/* end confdefs.h.  */
3649706b6b52Smrg#include <stdarg.h>
3650706b6b52Smrg#include <stdio.h>
3651706b6b52Smrg#include <sys/types.h>
3652706b6b52Smrg#include <sys/stat.h>
3653706b6b52Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3654706b6b52Smrgstruct buf { int x; };
3655706b6b52SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3656706b6b52Smrgstatic char *e (p, i)
3657706b6b52Smrg     char **p;
3658706b6b52Smrg     int i;
3659b042e37fSmrg{
3660706b6b52Smrg  return p[i];
3661706b6b52Smrg}
3662706b6b52Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3663706b6b52Smrg{
3664706b6b52Smrg  char *s;
3665706b6b52Smrg  va_list v;
3666706b6b52Smrg  va_start (v,p);
3667706b6b52Smrg  s = g (p, va_arg (v,int));
3668706b6b52Smrg  va_end (v);
3669706b6b52Smrg  return s;
3670706b6b52Smrg}
3671b042e37fSmrg
3672706b6b52Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3673706b6b52Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
3674706b6b52Smrg   These don't provoke an error unfortunately, instead are silently treated
3675706b6b52Smrg   as 'x'.  The following induces an error, until -std is added to get
3676706b6b52Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3677706b6b52Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3678706b6b52Smrg   that's true only with -std.  */
3679706b6b52Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3680b042e37fSmrg
3681706b6b52Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3682706b6b52Smrg   inside strings and character constants.  */
3683706b6b52Smrg#define FOO(x) 'x'
3684706b6b52Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3685b042e37fSmrg
3686706b6b52Smrgint test (int i, double x);
3687706b6b52Smrgstruct s1 {int (*f) (int a);};
3688706b6b52Smrgstruct s2 {int (*f) (double a);};
3689706b6b52Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3690706b6b52Smrgint argc;
3691706b6b52Smrgchar **argv;
3692706b6b52Smrgint
3693706b6b52Smrgmain ()
3694706b6b52Smrg{
3695706b6b52Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3696706b6b52Smrg  ;
3697706b6b52Smrg  return 0;
3698706b6b52Smrg}
3699706b6b52Smrg_ACEOF
3700706b6b52Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3701706b6b52Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3702b042e37fSmrgdo
3703706b6b52Smrg  CC="$ac_save_CC $ac_arg"
3704706b6b52Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3705706b6b52Smrg  ac_cv_prog_cc_c89=$ac_arg
3706706b6b52Smrgfi
3707706b6b52Smrgrm -f core conftest.err conftest.$ac_objext
3708706b6b52Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3709b042e37fSmrgdone
3710706b6b52Smrgrm -f conftest.$ac_ext
3711706b6b52SmrgCC=$ac_save_CC
3712b042e37fSmrg
3713706b6b52Smrgfi
3714706b6b52Smrg# AC_CACHE_VAL
3715706b6b52Smrgcase "x$ac_cv_prog_cc_c89" in
3716706b6b52Smrg  x)
3717706b6b52Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3718706b6b52Smrg$as_echo "none needed" >&6; } ;;
3719706b6b52Smrg  xno)
3720706b6b52Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3721706b6b52Smrg$as_echo "unsupported" >&6; } ;;
3722706b6b52Smrg  *)
3723706b6b52Smrg    CC="$CC $ac_cv_prog_cc_c89"
3724706b6b52Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3725706b6b52Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3726706b6b52Smrgesac
3727706b6b52Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3728b042e37fSmrg
3729706b6b52Smrgfi
3730b042e37fSmrg
3731706b6b52Smrgac_ext=c
3732706b6b52Smrgac_cpp='$CPP $CPPFLAGS'
3733706b6b52Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734706b6b52Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735706b6b52Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3736b042e37fSmrg
3737706b6b52Smrgdepcc="$CC"   am_compiler_list=
3738b042e37fSmrg
3739706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3740706b6b52Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3741706b6b52Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3742706b6b52Smrg  $as_echo_n "(cached) " >&6
3743706b6b52Smrgelse
3744706b6b52Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3745706b6b52Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
3746706b6b52Smrg  # making bogus files that we don't know about and never remove.  For
3747706b6b52Smrg  # instance it was reported that on HP-UX the gcc test will end up
3748706b6b52Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
3749706b6b52Smrg  # in D'.
3750706b6b52Smrg  mkdir conftest.dir
3751706b6b52Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3752706b6b52Smrg  # using a relative directory.
3753706b6b52Smrg  cp "$am_depcomp" conftest.dir
3754706b6b52Smrg  cd conftest.dir
3755706b6b52Smrg  # We will build objects and dependencies in a subdirectory because
3756706b6b52Smrg  # it helps to detect inapplicable dependency modes.  For instance
3757706b6b52Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3758706b6b52Smrg  # side effect of compilation, but ICC will put the dependencies in
3759706b6b52Smrg  # the current directory while Tru64 will put them in the object
3760706b6b52Smrg  # directory.
3761706b6b52Smrg  mkdir sub
3762b042e37fSmrg
3763706b6b52Smrg  am_cv_CC_dependencies_compiler_type=none
3764706b6b52Smrg  if test "$am_compiler_list" = ""; then
3765706b6b52Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766706b6b52Smrg  fi
3767706b6b52Smrg  am__universal=false
3768706b6b52Smrg  case " $depcc " in #(
3769706b6b52Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3770706b6b52Smrg     esac
3771b042e37fSmrg
3772706b6b52Smrg  for depmode in $am_compiler_list; do
3773706b6b52Smrg    # Setup a source with many dependencies, because some compilers
3774706b6b52Smrg    # like to wrap large dependency lists on column 80 (with \), and
3775706b6b52Smrg    # we should not choose a depcomp mode which is confused by this.
3776706b6b52Smrg    #
3777706b6b52Smrg    # We need to recreate these files for each test, as the compiler may
3778706b6b52Smrg    # overwrite some of them when testing with obscure command lines.
3779706b6b52Smrg    # This happens at least with the AIX C compiler.
3780706b6b52Smrg    : > sub/conftest.c
3781706b6b52Smrg    for i in 1 2 3 4 5 6; do
3782706b6b52Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3783706b6b52Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3784706b6b52Smrg      # Solaris 8's {/usr,}/bin/sh.
3785706b6b52Smrg      touch sub/conftst$i.h
3786706b6b52Smrg    done
3787706b6b52Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3788706b6b52Smrg
3789706b6b52Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3790706b6b52Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3791706b6b52Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3792706b6b52Smrg    # versions had trouble with output in subdirs
3793706b6b52Smrg    am__obj=sub/conftest.${OBJEXT-o}
3794706b6b52Smrg    am__minus_obj="-o $am__obj"
3795706b6b52Smrg    case $depmode in
3796706b6b52Smrg    gcc)
3797706b6b52Smrg      # This depmode causes a compiler race in universal mode.
3798706b6b52Smrg      test "$am__universal" = false || continue
3799706b6b52Smrg      ;;
3800706b6b52Smrg    nosideeffect)
3801706b6b52Smrg      # after this tag, mechanisms are not by side-effect, so they'll
3802706b6b52Smrg      # only be used when explicitly requested
3803706b6b52Smrg      if test "x$enable_dependency_tracking" = xyes; then
3804706b6b52Smrg	continue
3805b042e37fSmrg      else
3806706b6b52Smrg	break
3807b042e37fSmrg      fi
3808b042e37fSmrg      ;;
3809706b6b52Smrg    msvisualcpp | msvcmsys)
3810706b6b52Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
3811706b6b52Smrg      # not run yet.  These depmodes are late enough in the game, and
3812706b6b52Smrg      # so weak that their functioning should not be impacted.
3813706b6b52Smrg      am__obj=conftest.${OBJEXT-o}
3814706b6b52Smrg      am__minus_obj=
3815706b6b52Smrg      ;;
3816706b6b52Smrg    none) break ;;
3817b042e37fSmrg    esac
3818706b6b52Smrg    if depmode=$depmode \
3819706b6b52Smrg       source=sub/conftest.c object=$am__obj \
3820706b6b52Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821706b6b52Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3822706b6b52Smrg         >/dev/null 2>conftest.err &&
3823706b6b52Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3824706b6b52Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3825706b6b52Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3826706b6b52Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827706b6b52Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3828706b6b52Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
3829706b6b52Smrg      # that says an option was ignored or not supported.
3830706b6b52Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3831706b6b52Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3832706b6b52Smrg      # The diagnosis changed in icc 8.0:
3833706b6b52Smrg      #   icc: Command line remark: option '-MP' not supported
3834706b6b52Smrg      if (grep 'ignoring option' conftest.err ||
3835706b6b52Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3836706b6b52Smrg        am_cv_CC_dependencies_compiler_type=$depmode
3837706b6b52Smrg        break
3838706b6b52Smrg      fi
3839706b6b52Smrg    fi
3840b042e37fSmrg  done
3841b042e37fSmrg
3842706b6b52Smrg  cd ..
3843706b6b52Smrg  rm -rf conftest.dir
3844706b6b52Smrgelse
3845706b6b52Smrg  am_cv_CC_dependencies_compiler_type=none
3846706b6b52Smrgfi
3847706b6b52Smrg
3848706b6b52Smrgfi
3849706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3850706b6b52Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3851706b6b52SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3852706b6b52Smrg
3853706b6b52Smrg if
3854706b6b52Smrg  test "x$enable_dependency_tracking" != xno \
3855706b6b52Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3856706b6b52Smrg  am__fastdepCC_TRUE=
3857706b6b52Smrg  am__fastdepCC_FALSE='#'
3858706b6b52Smrgelse
3859706b6b52Smrg  am__fastdepCC_TRUE='#'
3860706b6b52Smrg  am__fastdepCC_FALSE=
3861706b6b52Smrgfi
3862706b6b52Smrg
3863706b6b52Smrg
3864bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3865bd23fbfaSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3866bd23fbfaSmrgif ${ac_cv_path_SED+:} false; then :
3867706b6b52Smrg  $as_echo_n "(cached) " >&6
3868706b6b52Smrgelse
3869bd23fbfaSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3870bd23fbfaSmrg     for ac_i in 1 2 3 4 5 6 7; do
3871bd23fbfaSmrg       ac_script="$ac_script$as_nl$ac_script"
3872bd23fbfaSmrg     done
3873bd23fbfaSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3874bd23fbfaSmrg     { ac_script=; unset ac_script;}
3875bd23fbfaSmrg     if test -z "$SED"; then
3876bd23fbfaSmrg  ac_path_SED_found=false
3877bd23fbfaSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3878bd23fbfaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879bd23fbfaSmrgfor as_dir in $PATH
3880bd23fbfaSmrgdo
3881bd23fbfaSmrg  IFS=$as_save_IFS
3882bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
3883bd23fbfaSmrg    for ac_prog in sed gsed; do
3884bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3885bd23fbfaSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3886bd23fbfaSmrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3887bd23fbfaSmrg# Check for GNU ac_path_SED and select it if it is found.
3888bd23fbfaSmrg  # Check for GNU $ac_path_SED
3889bd23fbfaSmrgcase `"$ac_path_SED" --version 2>&1` in
3890bd23fbfaSmrg*GNU*)
3891bd23fbfaSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3892bd23fbfaSmrg*)
3893bd23fbfaSmrg  ac_count=0
3894bd23fbfaSmrg  $as_echo_n 0123456789 >"conftest.in"
3895bd23fbfaSmrg  while :
3896bd23fbfaSmrg  do
3897bd23fbfaSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3898bd23fbfaSmrg    mv "conftest.tmp" "conftest.in"
3899bd23fbfaSmrg    cp "conftest.in" "conftest.nl"
3900bd23fbfaSmrg    $as_echo '' >> "conftest.nl"
3901bd23fbfaSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902bd23fbfaSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903bd23fbfaSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3904bd23fbfaSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
3905bd23fbfaSmrg      # Best one so far, save it but keep looking for a better one
3906bd23fbfaSmrg      ac_cv_path_SED="$ac_path_SED"
3907bd23fbfaSmrg      ac_path_SED_max=$ac_count
3908bd23fbfaSmrg    fi
3909bd23fbfaSmrg    # 10*(2^10) chars as input seems more than enough
3910bd23fbfaSmrg    test $ac_count -gt 10 && break
3911bd23fbfaSmrg  done
3912bd23fbfaSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913bd23fbfaSmrgesac
3914b042e37fSmrg
3915bd23fbfaSmrg      $ac_path_SED_found && break 3
3916bd23fbfaSmrg    done
3917bd23fbfaSmrg  done
3918bd23fbfaSmrg  done
3919bd23fbfaSmrgIFS=$as_save_IFS
3920bd23fbfaSmrg  if test -z "$ac_cv_path_SED"; then
3921bd23fbfaSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3922bd23fbfaSmrg  fi
3923bd23fbfaSmrgelse
3924bd23fbfaSmrg  ac_cv_path_SED=$SED
3925bd23fbfaSmrgfi
3926b042e37fSmrg
3927bd23fbfaSmrgfi
3928bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3929bd23fbfaSmrg$as_echo "$ac_cv_path_SED" >&6; }
3930bd23fbfaSmrg SED="$ac_cv_path_SED"
3931bd23fbfaSmrg  rm -f conftest.sed
3932b042e37fSmrg
3933bd23fbfaSmrgtest -z "$SED" && SED=sed
3934bd23fbfaSmrgXsed="$SED -e 1s/^X//"
3935706b6b52Smrg
3936706b6b52Smrg
3937706b6b52Smrg
3938706b6b52Smrg
3939706b6b52Smrg
3940706b6b52Smrg
3941706b6b52Smrg
3942706b6b52Smrg
3943706b6b52Smrg
3944706b6b52Smrg
3945706b6b52Smrg
3946bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3947bd23fbfaSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3948bd23fbfaSmrgif ${ac_cv_path_GREP+:} false; then :
3949bd23fbfaSmrg  $as_echo_n "(cached) " >&6
3950bd23fbfaSmrgelse
3951bd23fbfaSmrg  if test -z "$GREP"; then
3952bd23fbfaSmrg  ac_path_GREP_found=false
3953bd23fbfaSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3954bd23fbfaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955bd23fbfaSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956706b6b52Smrgdo
3957bd23fbfaSmrg  IFS=$as_save_IFS
3958bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
3959bd23fbfaSmrg    for ac_prog in grep ggrep; do
3960bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3961bd23fbfaSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3962bd23fbfaSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3963bd23fbfaSmrg# Check for GNU ac_path_GREP and select it if it is found.
3964bd23fbfaSmrg  # Check for GNU $ac_path_GREP
3965bd23fbfaSmrgcase `"$ac_path_GREP" --version 2>&1` in
3966bd23fbfaSmrg*GNU*)
3967bd23fbfaSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3968bd23fbfaSmrg*)
3969bd23fbfaSmrg  ac_count=0
3970bd23fbfaSmrg  $as_echo_n 0123456789 >"conftest.in"
3971bd23fbfaSmrg  while :
3972bd23fbfaSmrg  do
3973bd23fbfaSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3974bd23fbfaSmrg    mv "conftest.tmp" "conftest.in"
3975bd23fbfaSmrg    cp "conftest.in" "conftest.nl"
3976bd23fbfaSmrg    $as_echo 'GREP' >> "conftest.nl"
3977bd23fbfaSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978bd23fbfaSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979bd23fbfaSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
3980bd23fbfaSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3981bd23fbfaSmrg      # Best one so far, save it but keep looking for a better one
3982bd23fbfaSmrg      ac_cv_path_GREP="$ac_path_GREP"
3983bd23fbfaSmrg      ac_path_GREP_max=$ac_count
3984bd23fbfaSmrg    fi
3985bd23fbfaSmrg    # 10*(2^10) chars as input seems more than enough
3986bd23fbfaSmrg    test $ac_count -gt 10 && break
3987bd23fbfaSmrg  done
3988bd23fbfaSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989706b6b52Smrgesac
3990b042e37fSmrg
3991bd23fbfaSmrg      $ac_path_GREP_found && break 3
3992bd23fbfaSmrg    done
3993bd23fbfaSmrg  done
3994bd23fbfaSmrg  done
3995bd23fbfaSmrgIFS=$as_save_IFS
3996bd23fbfaSmrg  if test -z "$ac_cv_path_GREP"; then
3997bd23fbfaSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3998bd23fbfaSmrg  fi
3999bd23fbfaSmrgelse
4000bd23fbfaSmrg  ac_cv_path_GREP=$GREP
4001706b6b52Smrgfi
4002706b6b52Smrg
4003bd23fbfaSmrgfi
4004bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4005bd23fbfaSmrg$as_echo "$ac_cv_path_GREP" >&6; }
4006bd23fbfaSmrg GREP="$ac_cv_path_GREP"
4007706b6b52Smrg
4008706b6b52Smrg
4009bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4010bd23fbfaSmrg$as_echo_n "checking for egrep... " >&6; }
4011bd23fbfaSmrgif ${ac_cv_path_EGREP+:} false; then :
4012706b6b52Smrg  $as_echo_n "(cached) " >&6
4013b042e37fSmrgelse
4014bd23fbfaSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4015bd23fbfaSmrg   then ac_cv_path_EGREP="$GREP -E"
4016bd23fbfaSmrg   else
4017bd23fbfaSmrg     if test -z "$EGREP"; then
4018bd23fbfaSmrg  ac_path_EGREP_found=false
4019706b6b52Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4020706b6b52Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021706b6b52Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022b042e37fSmrgdo
4023706b6b52Smrg  IFS=$as_save_IFS
4024706b6b52Smrg  test -z "$as_dir" && as_dir=.
4025bd23fbfaSmrg    for ac_prog in egrep; do
4026706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4027bd23fbfaSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028bd23fbfaSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4029bd23fbfaSmrg# Check for GNU ac_path_EGREP and select it if it is found.
4030bd23fbfaSmrg  # Check for GNU $ac_path_EGREP
4031bd23fbfaSmrgcase `"$ac_path_EGREP" --version 2>&1` in
4032706b6b52Smrg*GNU*)
4033bd23fbfaSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034706b6b52Smrg*)
4035706b6b52Smrg  ac_count=0
4036706b6b52Smrg  $as_echo_n 0123456789 >"conftest.in"
4037706b6b52Smrg  while :
4038706b6b52Smrg  do
4039706b6b52Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4040706b6b52Smrg    mv "conftest.tmp" "conftest.in"
4041706b6b52Smrg    cp "conftest.in" "conftest.nl"
4042bd23fbfaSmrg    $as_echo 'EGREP' >> "conftest.nl"
4043bd23fbfaSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044706b6b52Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045706b6b52Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4046bd23fbfaSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047706b6b52Smrg      # Best one so far, save it but keep looking for a better one
4048bd23fbfaSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
4049bd23fbfaSmrg      ac_path_EGREP_max=$ac_count
4050706b6b52Smrg    fi
4051706b6b52Smrg    # 10*(2^10) chars as input seems more than enough
4052706b6b52Smrg    test $ac_count -gt 10 && break
4053706b6b52Smrg  done
4054706b6b52Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055706b6b52Smrgesac
4056b042e37fSmrg
4057bd23fbfaSmrg      $ac_path_EGREP_found && break 3
4058706b6b52Smrg    done
4059706b6b52Smrg  done
4060706b6b52Smrg  done
4061706b6b52SmrgIFS=$as_save_IFS
4062bd23fbfaSmrg  if test -z "$ac_cv_path_EGREP"; then
4063bd23fbfaSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4064b042e37fSmrg  fi
4065b042e37fSmrgelse
4066bd23fbfaSmrg  ac_cv_path_EGREP=$EGREP
4067b042e37fSmrgfi
4068b042e37fSmrg
4069bd23fbfaSmrg   fi
4070b042e37fSmrgfi
4071bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4072bd23fbfaSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
4073bd23fbfaSmrg EGREP="$ac_cv_path_EGREP"
4074706b6b52Smrg
4075706b6b52Smrg
4076bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4077bd23fbfaSmrg$as_echo_n "checking for fgrep... " >&6; }
4078bd23fbfaSmrgif ${ac_cv_path_FGREP+:} false; then :
4079706b6b52Smrg  $as_echo_n "(cached) " >&6
4080706b6b52Smrgelse
4081bd23fbfaSmrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4082bd23fbfaSmrg   then ac_cv_path_FGREP="$GREP -F"
4083706b6b52Smrg   else
4084bd23fbfaSmrg     if test -z "$FGREP"; then
4085bd23fbfaSmrg  ac_path_FGREP_found=false
4086706b6b52Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4087706b6b52Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088706b6b52Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089706b6b52Smrgdo
4090706b6b52Smrg  IFS=$as_save_IFS
4091706b6b52Smrg  test -z "$as_dir" && as_dir=.
4092bd23fbfaSmrg    for ac_prog in fgrep; do
4093706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4094bd23fbfaSmrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4095bd23fbfaSmrg      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4096bd23fbfaSmrg# Check for GNU ac_path_FGREP and select it if it is found.
4097bd23fbfaSmrg  # Check for GNU $ac_path_FGREP
4098bd23fbfaSmrgcase `"$ac_path_FGREP" --version 2>&1` in
4099706b6b52Smrg*GNU*)
4100bd23fbfaSmrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4101706b6b52Smrg*)
4102706b6b52Smrg  ac_count=0
4103706b6b52Smrg  $as_echo_n 0123456789 >"conftest.in"
4104706b6b52Smrg  while :
4105706b6b52Smrg  do
4106706b6b52Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4107706b6b52Smrg    mv "conftest.tmp" "conftest.in"
4108706b6b52Smrg    cp "conftest.in" "conftest.nl"
4109bd23fbfaSmrg    $as_echo 'FGREP' >> "conftest.nl"
4110bd23fbfaSmrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111706b6b52Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112706b6b52Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4113bd23fbfaSmrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4114706b6b52Smrg      # Best one so far, save it but keep looking for a better one
4115bd23fbfaSmrg      ac_cv_path_FGREP="$ac_path_FGREP"
4116bd23fbfaSmrg      ac_path_FGREP_max=$ac_count
4117706b6b52Smrg    fi
4118706b6b52Smrg    # 10*(2^10) chars as input seems more than enough
4119706b6b52Smrg    test $ac_count -gt 10 && break
4120706b6b52Smrg  done
4121706b6b52Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122706b6b52Smrgesac
4123b042e37fSmrg
4124bd23fbfaSmrg      $ac_path_FGREP_found && break 3
4125706b6b52Smrg    done
4126706b6b52Smrg  done
4127706b6b52Smrg  done
4128706b6b52SmrgIFS=$as_save_IFS
4129bd23fbfaSmrg  if test -z "$ac_cv_path_FGREP"; then
4130bd23fbfaSmrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4131706b6b52Smrg  fi
4132706b6b52Smrgelse
4133bd23fbfaSmrg  ac_cv_path_FGREP=$FGREP
4134706b6b52Smrgfi
4135b042e37fSmrg
4136706b6b52Smrg   fi
4137706b6b52Smrgfi
4138bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4139bd23fbfaSmrg$as_echo "$ac_cv_path_FGREP" >&6; }
4140bd23fbfaSmrg FGREP="$ac_cv_path_FGREP"
4141b042e37fSmrg
4142b042e37fSmrg
4143bd23fbfaSmrgtest -z "$GREP" && GREP=grep
4144b042e37fSmrg
4145b042e37fSmrg
4146b042e37fSmrg
4147b042e37fSmrg
4148b042e37fSmrg
4149b042e37fSmrg
4150b042e37fSmrg
4151b042e37fSmrg
4152b042e37fSmrg
4153b042e37fSmrg
4154b042e37fSmrg
4155b042e37fSmrg
4156b042e37fSmrg
4157b042e37fSmrg
4158b042e37fSmrg
4159b042e37fSmrg
4160b042e37fSmrg
4161b042e37fSmrg
4162b042e37fSmrg
4163bd23fbfaSmrg# Check whether --with-gnu-ld was given.
4164bd23fbfaSmrgif test "${with_gnu_ld+set}" = set; then :
4165bd23fbfaSmrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4166bd23fbfaSmrgelse
4167bd23fbfaSmrg  with_gnu_ld=no
4168bd23fbfaSmrgfi
4169b042e37fSmrg
4170bd23fbfaSmrgac_prog=ld
4171bd23fbfaSmrgif test "$GCC" = yes; then
4172bd23fbfaSmrg  # Check if gcc -print-prog-name=ld gives a path.
4173bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4174bd23fbfaSmrg$as_echo_n "checking for ld used by $CC... " >&6; }
4175bd23fbfaSmrg  case $host in
4176bd23fbfaSmrg  *-*-mingw*)
4177bd23fbfaSmrg    # gcc leaves a trailing carriage return which upsets mingw
4178bd23fbfaSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4179bd23fbfaSmrg  *)
4180bd23fbfaSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4181bd23fbfaSmrg  esac
4182bd23fbfaSmrg  case $ac_prog in
4183bd23fbfaSmrg    # Accept absolute paths.
4184bd23fbfaSmrg    [\\/]* | ?:[\\/]*)
4185bd23fbfaSmrg      re_direlt='/[^/][^/]*/\.\./'
4186bd23fbfaSmrg      # Canonicalize the pathname of ld
4187bd23fbfaSmrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4188bd23fbfaSmrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4189bd23fbfaSmrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4190bd23fbfaSmrg      done
4191bd23fbfaSmrg      test -z "$LD" && LD="$ac_prog"
4192bd23fbfaSmrg      ;;
4193bd23fbfaSmrg  "")
4194bd23fbfaSmrg    # If it fails, then pretend we aren't using GCC.
4195bd23fbfaSmrg    ac_prog=ld
4196bd23fbfaSmrg    ;;
4197bd23fbfaSmrg  *)
4198bd23fbfaSmrg    # If it is relative, then search for the first ld in PATH.
4199bd23fbfaSmrg    with_gnu_ld=unknown
4200bd23fbfaSmrg    ;;
4201bd23fbfaSmrg  esac
4202bd23fbfaSmrgelif test "$with_gnu_ld" = yes; then
4203bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4204bd23fbfaSmrg$as_echo_n "checking for GNU ld... " >&6; }
4205bd23fbfaSmrgelse
4206bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4207bd23fbfaSmrg$as_echo_n "checking for non-GNU ld... " >&6; }
4208bd23fbfaSmrgfi
4209bd23fbfaSmrgif ${lt_cv_path_LD+:} false; then :
4210706b6b52Smrg  $as_echo_n "(cached) " >&6
4211706b6b52Smrgelse
4212bd23fbfaSmrg  if test -z "$LD"; then
4213bd23fbfaSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4214bd23fbfaSmrg  for ac_dir in $PATH; do
4215bd23fbfaSmrg    IFS="$lt_save_ifs"
4216bd23fbfaSmrg    test -z "$ac_dir" && ac_dir=.
4217bd23fbfaSmrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4218bd23fbfaSmrg      lt_cv_path_LD="$ac_dir/$ac_prog"
4219bd23fbfaSmrg      # Check to see if the program is GNU ld.  I'd rather use --version,
4220bd23fbfaSmrg      # but apparently some variants of GNU ld only accept -v.
4221bd23fbfaSmrg      # Break only if it was the GNU/non-GNU ld that we prefer.
4222bd23fbfaSmrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4223bd23fbfaSmrg      *GNU* | *'with BFD'*)
4224bd23fbfaSmrg	test "$with_gnu_ld" != no && break
4225bd23fbfaSmrg	;;
4226bd23fbfaSmrg      *)
4227bd23fbfaSmrg	test "$with_gnu_ld" != yes && break
4228bd23fbfaSmrg	;;
4229bd23fbfaSmrg      esac
4230bd23fbfaSmrg    fi
4231706b6b52Smrg  done
4232bd23fbfaSmrg  IFS="$lt_save_ifs"
4233bd23fbfaSmrgelse
4234bd23fbfaSmrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4235706b6b52Smrgfi
4236bd23fbfaSmrgfi
4237bd23fbfaSmrg
4238bd23fbfaSmrgLD="$lt_cv_path_LD"
4239bd23fbfaSmrgif test -n "$LD"; then
4240bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4241bd23fbfaSmrg$as_echo "$LD" >&6; }
4242706b6b52Smrgelse
4243706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244706b6b52Smrg$as_echo "no" >&6; }
4245706b6b52Smrgfi
4246bd23fbfaSmrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4247bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4248bd23fbfaSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4249bd23fbfaSmrgif ${lt_cv_prog_gnu_ld+:} false; then :
42508c4a8e55Smrg  $as_echo_n "(cached) " >&6
4251b042e37fSmrgelse
4252bd23fbfaSmrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4253bd23fbfaSmrgcase `$LD -v 2>&1 </dev/null` in
4254bd23fbfaSmrg*GNU* | *'with BFD'*)
4255bd23fbfaSmrg  lt_cv_prog_gnu_ld=yes
4256706b6b52Smrg  ;;
4257bd23fbfaSmrg*)
4258bd23fbfaSmrg  lt_cv_prog_gnu_ld=no
4259706b6b52Smrg  ;;
4260706b6b52Smrgesac
4261b042e37fSmrgfi
4262bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4263bd23fbfaSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4264bd23fbfaSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld
4265706b6b52Smrg
4266b042e37fSmrg
4267b042e37fSmrg
4268b042e37fSmrg
4269706b6b52Smrg
4270b042e37fSmrg
4271706b6b52Smrg
4272bd23fbfaSmrg
4273bd23fbfaSmrg
4274bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4275bd23fbfaSmrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4276bd23fbfaSmrgif ${lt_cv_path_NM+:} false; then :
42778c4a8e55Smrg  $as_echo_n "(cached) " >&6
4278b042e37fSmrgelse
4279bd23fbfaSmrg  if test -n "$NM"; then
4280bd23fbfaSmrg  # Let the user override the test.
4281bd23fbfaSmrg  lt_cv_path_NM="$NM"
4282706b6b52Smrgelse
4283bd23fbfaSmrg  lt_nm_to_check="${ac_tool_prefix}nm"
4284bd23fbfaSmrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4285bd23fbfaSmrg    lt_nm_to_check="$lt_nm_to_check nm"
4286bd23fbfaSmrg  fi
4287bd23fbfaSmrg  for lt_tmp_nm in $lt_nm_to_check; do
4288bd23fbfaSmrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4289bd23fbfaSmrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4290bd23fbfaSmrg      IFS="$lt_save_ifs"
4291bd23fbfaSmrg      test -z "$ac_dir" && ac_dir=.
4292bd23fbfaSmrg      tmp_nm="$ac_dir/$lt_tmp_nm"
4293bd23fbfaSmrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4294bd23fbfaSmrg	# Check to see if the nm accepts a BSD-compat flag.
4295bd23fbfaSmrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4296bd23fbfaSmrg	#   nm: unknown option "B" ignored
4297bd23fbfaSmrg	# Tru64's nm complains that /dev/null is an invalid object file
4298bd23fbfaSmrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4299bd23fbfaSmrg	*/dev/null* | *'Invalid file or object type'*)
4300bd23fbfaSmrg	  lt_cv_path_NM="$tmp_nm -B"
4301bd23fbfaSmrg	  break
4302bd23fbfaSmrg	  ;;
4303bd23fbfaSmrg	*)
4304bd23fbfaSmrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4305bd23fbfaSmrg	  */dev/null*)
4306bd23fbfaSmrg	    lt_cv_path_NM="$tmp_nm -p"
4307bd23fbfaSmrg	    break
4308bd23fbfaSmrg	    ;;
4309bd23fbfaSmrg	  *)
4310bd23fbfaSmrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4311bd23fbfaSmrg	    continue # so that we can try to find one that supports BSD flags
4312bd23fbfaSmrg	    ;;
4313bd23fbfaSmrg	  esac
4314bd23fbfaSmrg	  ;;
4315bd23fbfaSmrg	esac
4316bd23fbfaSmrg      fi
4317bd23fbfaSmrg    done
4318bd23fbfaSmrg    IFS="$lt_save_ifs"
4319bd23fbfaSmrg  done
4320bd23fbfaSmrg  : ${lt_cv_path_NM=no}
4321b042e37fSmrgfi
4322b042e37fSmrgfi
4323bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4324bd23fbfaSmrg$as_echo "$lt_cv_path_NM" >&6; }
4325bd23fbfaSmrgif test "$lt_cv_path_NM" != "no"; then
4326bd23fbfaSmrg  NM="$lt_cv_path_NM"
4327bd23fbfaSmrgelse
4328bd23fbfaSmrg  # Didn't find any BSD compatible name lister, look for dumpbin.
4329bd23fbfaSmrg  if test -n "$DUMPBIN"; then :
4330bd23fbfaSmrg    # Let the user override the test.
4331bd23fbfaSmrg  else
4332bd23fbfaSmrg    if test -n "$ac_tool_prefix"; then
4333bd23fbfaSmrg  for ac_prog in dumpbin "link -dump"
4334bd23fbfaSmrg  do
4335bd23fbfaSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4336bd23fbfaSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4337bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
4339bd23fbfaSmrgif ${ac_cv_prog_DUMPBIN+:} false; then :
43408c4a8e55Smrg  $as_echo_n "(cached) " >&6
4341b042e37fSmrgelse
4342bd23fbfaSmrg  if test -n "$DUMPBIN"; then
4343bd23fbfaSmrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4344bd23fbfaSmrgelse
4345bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346b042e37fSmrgfor as_dir in $PATH
4347b042e37fSmrgdo
4348b042e37fSmrg  IFS=$as_save_IFS
4349b042e37fSmrg  test -z "$as_dir" && as_dir=.
4350706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4351bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352bd23fbfaSmrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4353bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354bd23fbfaSmrg    break 2
4355bd23fbfaSmrg  fi
4356bd23fbfaSmrgdone
4357706b6b52Smrg  done
4358bd23fbfaSmrgIFS=$as_save_IFS
4359b042e37fSmrg
4360bd23fbfaSmrgfi
4361bd23fbfaSmrgfi
4362bd23fbfaSmrgDUMPBIN=$ac_cv_prog_DUMPBIN
4363bd23fbfaSmrgif test -n "$DUMPBIN"; then
4364bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4365bd23fbfaSmrg$as_echo "$DUMPBIN" >&6; }
4366bd23fbfaSmrgelse
4367bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368bd23fbfaSmrg$as_echo "no" >&6; }
4369bd23fbfaSmrgfi
4370bd23fbfaSmrg
4371bd23fbfaSmrg
4372bd23fbfaSmrg    test -n "$DUMPBIN" && break
4373706b6b52Smrg  done
4374bd23fbfaSmrgfi
4375bd23fbfaSmrgif test -z "$DUMPBIN"; then
4376bd23fbfaSmrg  ac_ct_DUMPBIN=$DUMPBIN
4377bd23fbfaSmrg  for ac_prog in dumpbin "link -dump"
4378bd23fbfaSmrgdo
4379bd23fbfaSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4380bd23fbfaSmrgset dummy $ac_prog; ac_word=$2
4381bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
4383bd23fbfaSmrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4384bd23fbfaSmrg  $as_echo_n "(cached) " >&6
4385bd23fbfaSmrgelse
4386bd23fbfaSmrg  if test -n "$ac_ct_DUMPBIN"; then
4387bd23fbfaSmrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4388bd23fbfaSmrgelse
4389bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390bd23fbfaSmrgfor as_dir in $PATH
4391bd23fbfaSmrgdo
4392bd23fbfaSmrg  IFS=$as_save_IFS
4393bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
4394bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4395bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396bd23fbfaSmrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4397bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398bd23fbfaSmrg    break 2
4399bd23fbfaSmrg  fi
4400bd23fbfaSmrgdone
4401706b6b52Smrg  done
4402706b6b52SmrgIFS=$as_save_IFS
4403b042e37fSmrg
4404706b6b52Smrgfi
4405bd23fbfaSmrgfi
4406bd23fbfaSmrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4407bd23fbfaSmrgif test -n "$ac_ct_DUMPBIN"; then
4408bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4409bd23fbfaSmrg$as_echo "$ac_ct_DUMPBIN" >&6; }
4410bd23fbfaSmrgelse
4411bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412bd23fbfaSmrg$as_echo "no" >&6; }
4413bd23fbfaSmrgfi
4414b042e37fSmrg
4415706b6b52Smrg
4416bd23fbfaSmrg  test -n "$ac_ct_DUMPBIN" && break
4417bd23fbfaSmrgdone
4418706b6b52Smrg
4419bd23fbfaSmrg  if test "x$ac_ct_DUMPBIN" = x; then
4420bd23fbfaSmrg    DUMPBIN=":"
4421bd23fbfaSmrg  else
4422bd23fbfaSmrg    case $cross_compiling:$ac_tool_warned in
4423bd23fbfaSmrgyes:)
4424bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4425bd23fbfaSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4426bd23fbfaSmrgac_tool_warned=yes ;;
4427bd23fbfaSmrgesac
4428bd23fbfaSmrg    DUMPBIN=$ac_ct_DUMPBIN
4429bd23fbfaSmrg  fi
4430bd23fbfaSmrgfi
4431706b6b52Smrg
4432bd23fbfaSmrg    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4433bd23fbfaSmrg    *COFF*)
4434bd23fbfaSmrg      DUMPBIN="$DUMPBIN -symbols"
4435bd23fbfaSmrg      ;;
4436bd23fbfaSmrg    *)
4437bd23fbfaSmrg      DUMPBIN=:
4438bd23fbfaSmrg      ;;
4439706b6b52Smrg    esac
4440bd23fbfaSmrg  fi
4441706b6b52Smrg
4442bd23fbfaSmrg  if test "$DUMPBIN" != ":"; then
4443bd23fbfaSmrg    NM="$DUMPBIN"
4444bd23fbfaSmrg  fi
4445706b6b52Smrgfi
4446bd23fbfaSmrgtest -z "$NM" && NM=nm
4447706b6b52Smrg
4448706b6b52Smrg
4449706b6b52Smrg
4450706b6b52Smrg
4451706b6b52Smrg
4452706b6b52Smrg
4453bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4454bd23fbfaSmrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4455bd23fbfaSmrgif ${lt_cv_nm_interface+:} false; then :
4456bd23fbfaSmrg  $as_echo_n "(cached) " >&6
4457b042e37fSmrgelse
4458bd23fbfaSmrg  lt_cv_nm_interface="BSD nm"
4459bd23fbfaSmrg  echo "int some_variable = 0;" > conftest.$ac_ext
4460bd23fbfaSmrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4461bd23fbfaSmrg  (eval "$ac_compile" 2>conftest.err)
4462bd23fbfaSmrg  cat conftest.err >&5
4463bd23fbfaSmrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4464bd23fbfaSmrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4465bd23fbfaSmrg  cat conftest.err >&5
4466bd23fbfaSmrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4467bd23fbfaSmrg  cat conftest.out >&5
4468bd23fbfaSmrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4469bd23fbfaSmrg    lt_cv_nm_interface="MS dumpbin"
4470bd23fbfaSmrg  fi
4471bd23fbfaSmrg  rm -f conftest*
4472b042e37fSmrgfi
4473bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4474bd23fbfaSmrg$as_echo "$lt_cv_nm_interface" >&6; }
4475b042e37fSmrg
4476bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4477bd23fbfaSmrg$as_echo_n "checking whether ln -s works... " >&6; }
4478bd23fbfaSmrgLN_S=$as_ln_s
4479bd23fbfaSmrgif test "$LN_S" = "ln -s"; then
4480bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4481bd23fbfaSmrg$as_echo "yes" >&6; }
4482b042e37fSmrgelse
4483bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4484bd23fbfaSmrg$as_echo "no, using $LN_S" >&6; }
4485b042e37fSmrgfi
4486b042e37fSmrg
4487bd23fbfaSmrg# find the maximum length of command line arguments
4488bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4489bd23fbfaSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4490bd23fbfaSmrgif ${lt_cv_sys_max_cmd_len+:} false; then :
4491bd23fbfaSmrg  $as_echo_n "(cached) " >&6
4492706b6b52Smrgelse
4493bd23fbfaSmrg    i=0
4494bd23fbfaSmrg  teststring="ABCD"
4495b042e37fSmrg
4496bd23fbfaSmrg  case $build_os in
4497bd23fbfaSmrg  msdosdjgpp*)
4498bd23fbfaSmrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
4499bd23fbfaSmrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
4500bd23fbfaSmrg    # during glob expansion).  Even if it were fixed, the result of this
4501bd23fbfaSmrg    # check would be larger than it should be.
4502bd23fbfaSmrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4503bd23fbfaSmrg    ;;
4504b042e37fSmrg
4505bd23fbfaSmrg  gnu*)
4506bd23fbfaSmrg    # Under GNU Hurd, this test is not required because there is
4507bd23fbfaSmrg    # no limit to the length of command line arguments.
4508bd23fbfaSmrg    # Libtool will interpret -1 as no limit whatsoever
4509bd23fbfaSmrg    lt_cv_sys_max_cmd_len=-1;
4510bd23fbfaSmrg    ;;
4511b042e37fSmrg
4512bd23fbfaSmrg  cygwin* | mingw* | cegcc*)
4513bd23fbfaSmrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
4514bd23fbfaSmrg    # about 5 minutes as the teststring grows exponentially.
4515bd23fbfaSmrg    # Worse, since 9x/ME are not pre-emptively multitasking,
4516bd23fbfaSmrg    # you end up with a "frozen" computer, even though with patience
4517bd23fbfaSmrg    # the test eventually succeeds (with a max line length of 256k).
4518bd23fbfaSmrg    # Instead, let's just punt: use the minimum linelength reported by
4519bd23fbfaSmrg    # all of the supported platforms: 8192 (on NT/2K/XP).
4520bd23fbfaSmrg    lt_cv_sys_max_cmd_len=8192;
4521bd23fbfaSmrg    ;;
4522b042e37fSmrg
4523bd23fbfaSmrg  mint*)
4524bd23fbfaSmrg    # On MiNT this can take a long time and run out of memory.
4525bd23fbfaSmrg    lt_cv_sys_max_cmd_len=8192;
4526bd23fbfaSmrg    ;;
4527b042e37fSmrg
4528bd23fbfaSmrg  amigaos*)
4529bd23fbfaSmrg    # On AmigaOS with pdksh, this test takes hours, literally.
4530bd23fbfaSmrg    # So we just punt and use a minimum line length of 8192.
4531bd23fbfaSmrg    lt_cv_sys_max_cmd_len=8192;
4532bd23fbfaSmrg    ;;
4533b042e37fSmrg
4534bd23fbfaSmrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4535bd23fbfaSmrg    # This has been around since 386BSD, at least.  Likely further.
4536bd23fbfaSmrg    if test -x /sbin/sysctl; then
4537bd23fbfaSmrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4538bd23fbfaSmrg    elif test -x /usr/sbin/sysctl; then
4539bd23fbfaSmrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4540bd23fbfaSmrg    else
4541bd23fbfaSmrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4542bd23fbfaSmrg    fi
4543bd23fbfaSmrg    # And add a safety zone
4544bd23fbfaSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4545bd23fbfaSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4546bd23fbfaSmrg    ;;
4547b042e37fSmrg
4548bd23fbfaSmrg  interix*)
4549bd23fbfaSmrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4550bd23fbfaSmrg    lt_cv_sys_max_cmd_len=196608
4551bd23fbfaSmrg    ;;
4552b042e37fSmrg
4553bd23fbfaSmrg  osf*)
4554bd23fbfaSmrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4555bd23fbfaSmrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4556bd23fbfaSmrg    # nice to cause kernel panics so lets avoid the loop below.
4557bd23fbfaSmrg    # First set a reasonable default.
4558bd23fbfaSmrg    lt_cv_sys_max_cmd_len=16384
4559bd23fbfaSmrg    #
4560bd23fbfaSmrg    if test -x /sbin/sysconfig; then
4561bd23fbfaSmrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4562bd23fbfaSmrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4563bd23fbfaSmrg      esac
4564bd23fbfaSmrg    fi
4565bd23fbfaSmrg    ;;
4566bd23fbfaSmrg  sco3.2v5*)
4567bd23fbfaSmrg    lt_cv_sys_max_cmd_len=102400
4568bd23fbfaSmrg    ;;
4569bd23fbfaSmrg  sysv5* | sco5v6* | sysv4.2uw2*)
4570bd23fbfaSmrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4571bd23fbfaSmrg    if test -n "$kargmax"; then
4572bd23fbfaSmrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4573bd23fbfaSmrg    else
4574bd23fbfaSmrg      lt_cv_sys_max_cmd_len=32768
4575bd23fbfaSmrg    fi
4576bd23fbfaSmrg    ;;
4577bd23fbfaSmrg  *)
4578bd23fbfaSmrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4579bd23fbfaSmrg    if test -n "$lt_cv_sys_max_cmd_len"; then
4580bd23fbfaSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4581bd23fbfaSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4582bd23fbfaSmrg    else
4583bd23fbfaSmrg      # Make teststring a little bigger before we do anything with it.
4584bd23fbfaSmrg      # a 1K string should be a reasonable start.
4585bd23fbfaSmrg      for i in 1 2 3 4 5 6 7 8 ; do
4586bd23fbfaSmrg        teststring=$teststring$teststring
4587bd23fbfaSmrg      done
4588bd23fbfaSmrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4589bd23fbfaSmrg      # If test is not a shell built-in, we'll probably end up computing a
4590bd23fbfaSmrg      # maximum length that is only half of the actual maximum length, but
4591bd23fbfaSmrg      # we can't tell.
4592bd23fbfaSmrg      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4593bd23fbfaSmrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4594bd23fbfaSmrg	      test $i != 17 # 1/2 MB should be enough
4595bd23fbfaSmrg      do
4596bd23fbfaSmrg        i=`expr $i + 1`
4597bd23fbfaSmrg        teststring=$teststring$teststring
4598bd23fbfaSmrg      done
4599bd23fbfaSmrg      # Only check the string length outside the loop.
4600bd23fbfaSmrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4601bd23fbfaSmrg      teststring=
4602bd23fbfaSmrg      # Add a significant safety factor because C++ compilers can tack on
4603bd23fbfaSmrg      # massive amounts of additional arguments before passing them to the
4604bd23fbfaSmrg      # linker.  It appears as though 1/2 is a usable value.
4605bd23fbfaSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4606bd23fbfaSmrg    fi
4607bd23fbfaSmrg    ;;
4608bd23fbfaSmrg  esac
4609b042e37fSmrg
4610bd23fbfaSmrgfi
4611b042e37fSmrg
4612bd23fbfaSmrgif test -n $lt_cv_sys_max_cmd_len ; then
4613bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4614bd23fbfaSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4615bd23fbfaSmrgelse
4616bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4617bd23fbfaSmrg$as_echo "none" >&6; }
4618bd23fbfaSmrgfi
4619bd23fbfaSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len
4620b042e37fSmrg
4621b042e37fSmrg
4622b042e37fSmrg
4623b042e37fSmrg
4624b042e37fSmrg
4625b042e37fSmrg
4626bd23fbfaSmrg: ${CP="cp -f"}
4627bd23fbfaSmrg: ${MV="mv -f"}
4628bd23fbfaSmrg: ${RM="rm -f"}
4629b042e37fSmrg
4630bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4631bd23fbfaSmrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4632bd23fbfaSmrg# Try some XSI features
4633bd23fbfaSmrgxsi_shell=no
4634bd23fbfaSmrg( _lt_dummy="a/b/c"
4635bd23fbfaSmrg  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4636bd23fbfaSmrg      = c,a/b,b/c, \
4637bd23fbfaSmrg    && eval 'test $(( 1 + 1 )) -eq 2 \
4638bd23fbfaSmrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4639bd23fbfaSmrg  && xsi_shell=yes
4640bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4641bd23fbfaSmrg$as_echo "$xsi_shell" >&6; }
4642b042e37fSmrg
4643b042e37fSmrg
4644bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4645bd23fbfaSmrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4646bd23fbfaSmrglt_shell_append=no
4647bd23fbfaSmrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4648bd23fbfaSmrg    >/dev/null 2>&1 \
4649bd23fbfaSmrg  && lt_shell_append=yes
4650bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4651bd23fbfaSmrg$as_echo "$lt_shell_append" >&6; }
4652706b6b52Smrg
4653706b6b52Smrg
4654bd23fbfaSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4655bd23fbfaSmrg  lt_unset=unset
4656bd23fbfaSmrgelse
4657bd23fbfaSmrg  lt_unset=false
4658b042e37fSmrgfi
4659b042e37fSmrg
4660b042e37fSmrg
4661706b6b52Smrg
4662b042e37fSmrg
4663b042e37fSmrg
4664bd23fbfaSmrg# test EBCDIC or ASCII
4665bd23fbfaSmrgcase `echo X|tr X '\101'` in
4666bd23fbfaSmrg A) # ASCII based system
4667bd23fbfaSmrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4668bd23fbfaSmrg  lt_SP2NL='tr \040 \012'
4669bd23fbfaSmrg  lt_NL2SP='tr \015\012 \040\040'
4670bd23fbfaSmrg  ;;
4671bd23fbfaSmrg *) # EBCDIC based system
4672bd23fbfaSmrg  lt_SP2NL='tr \100 \n'
4673bd23fbfaSmrg  lt_NL2SP='tr \r\n \100\100'
4674bd23fbfaSmrg  ;;
4675bd23fbfaSmrgesac
4676bd23fbfaSmrg
4677bd23fbfaSmrg
4678b042e37fSmrg
4679b042e37fSmrg
4680b042e37fSmrg
4681b042e37fSmrg
4682b042e37fSmrg
4683b042e37fSmrg
4684b042e37fSmrg
4685bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4686bd23fbfaSmrg$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4687bd23fbfaSmrgif ${lt_cv_to_host_file_cmd+:} false; then :
4688bd23fbfaSmrg  $as_echo_n "(cached) " >&6
4689bd23fbfaSmrgelse
4690bd23fbfaSmrg  case $host in
4691bd23fbfaSmrg  *-*-mingw* )
4692bd23fbfaSmrg    case $build in
4693bd23fbfaSmrg      *-*-mingw* ) # actually msys
4694bd23fbfaSmrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4695bd23fbfaSmrg        ;;
4696bd23fbfaSmrg      *-*-cygwin* )
4697bd23fbfaSmrg        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4698bd23fbfaSmrg        ;;
4699bd23fbfaSmrg      * ) # otherwise, assume *nix
4700bd23fbfaSmrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4701bd23fbfaSmrg        ;;
4702bd23fbfaSmrg    esac
4703bd23fbfaSmrg    ;;
4704bd23fbfaSmrg  *-*-cygwin* )
4705bd23fbfaSmrg    case $build in
4706bd23fbfaSmrg      *-*-mingw* ) # actually msys
4707bd23fbfaSmrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4708bd23fbfaSmrg        ;;
4709bd23fbfaSmrg      *-*-cygwin* )
4710bd23fbfaSmrg        lt_cv_to_host_file_cmd=func_convert_file_noop
4711bd23fbfaSmrg        ;;
4712bd23fbfaSmrg      * ) # otherwise, assume *nix
4713bd23fbfaSmrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4714bd23fbfaSmrg        ;;
4715bd23fbfaSmrg    esac
4716bd23fbfaSmrg    ;;
4717bd23fbfaSmrg  * ) # unhandled hosts (and "normal" native builds)
4718bd23fbfaSmrg    lt_cv_to_host_file_cmd=func_convert_file_noop
4719bd23fbfaSmrg    ;;
4720bd23fbfaSmrgesac
4721b042e37fSmrg
4722bd23fbfaSmrgfi
4723b042e37fSmrg
4724bd23fbfaSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd
4725bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4726bd23fbfaSmrg$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4727b042e37fSmrg
4728b042e37fSmrg
4729b042e37fSmrg
4730b042e37fSmrg
47318c4a8e55Smrg
4732bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4733bd23fbfaSmrg$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4734bd23fbfaSmrgif ${lt_cv_to_tool_file_cmd+:} false; then :
4735bd23fbfaSmrg  $as_echo_n "(cached) " >&6
4736bd23fbfaSmrgelse
4737bd23fbfaSmrg  #assume ordinary cross tools, or native build.
4738bd23fbfaSmrglt_cv_to_tool_file_cmd=func_convert_file_noop
4739bd23fbfaSmrgcase $host in
4740bd23fbfaSmrg  *-*-mingw* )
4741bd23fbfaSmrg    case $build in
4742bd23fbfaSmrg      *-*-mingw* ) # actually msys
4743bd23fbfaSmrg        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4744bd23fbfaSmrg        ;;
4745bd23fbfaSmrg    esac
4746bd23fbfaSmrg    ;;
4747bd23fbfaSmrgesac
47488c4a8e55Smrg
4749bd23fbfaSmrgfi
4750706b6b52Smrg
4751bd23fbfaSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
4752bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4753bd23fbfaSmrg$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4754706b6b52Smrg
4755706b6b52Smrg
4756706b6b52Smrg
4757706b6b52Smrg
4758bd23fbfaSmrg
4759bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4760bd23fbfaSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
4761bd23fbfaSmrgif ${lt_cv_ld_reload_flag+:} false; then :
4762bd23fbfaSmrg  $as_echo_n "(cached) " >&6
4763bd23fbfaSmrgelse
4764bd23fbfaSmrg  lt_cv_ld_reload_flag='-r'
4765bd23fbfaSmrgfi
4766bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4767bd23fbfaSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
4768bd23fbfaSmrgreload_flag=$lt_cv_ld_reload_flag
4769bd23fbfaSmrgcase $reload_flag in
4770bd23fbfaSmrg"" | " "*) ;;
4771bd23fbfaSmrg*) reload_flag=" $reload_flag" ;;
4772bd23fbfaSmrgesac
4773bd23fbfaSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
4774bd23fbfaSmrgcase $host_os in
4775bd23fbfaSmrg  cygwin* | mingw* | pw32* | cegcc*)
4776bd23fbfaSmrg    if test "$GCC" != yes; then
4777bd23fbfaSmrg      reload_cmds=false
4778bd23fbfaSmrg    fi
4779bd23fbfaSmrg    ;;
4780bd23fbfaSmrg  darwin*)
4781bd23fbfaSmrg    if test "$GCC" = yes; then
4782bd23fbfaSmrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4783bd23fbfaSmrg    else
4784bd23fbfaSmrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4785bd23fbfaSmrg    fi
4786bd23fbfaSmrg    ;;
4787706b6b52Smrgesac
4788706b6b52Smrg
47898c4a8e55Smrg
4790b042e37fSmrg
4791b042e37fSmrg
4792bd23fbfaSmrg
4793bd23fbfaSmrg
4794bd23fbfaSmrg
4795bd23fbfaSmrg
4796bd23fbfaSmrg
4797b042e37fSmrgif test -n "$ac_tool_prefix"; then
4798bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4799bd23fbfaSmrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
4800706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48018c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
4802bd23fbfaSmrgif ${ac_cv_prog_OBJDUMP+:} false; then :
48038c4a8e55Smrg  $as_echo_n "(cached) " >&6
4804b042e37fSmrgelse
4805bd23fbfaSmrg  if test -n "$OBJDUMP"; then
4806bd23fbfaSmrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4807b042e37fSmrgelse
4808b042e37fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809b042e37fSmrgfor as_dir in $PATH
4810b042e37fSmrgdo
4811b042e37fSmrg  IFS=$as_save_IFS
4812b042e37fSmrg  test -z "$as_dir" && as_dir=.
4813706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4814b042e37fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815bd23fbfaSmrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4816706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817b042e37fSmrg    break 2
4818b042e37fSmrg  fi
4819b042e37fSmrgdone
4820706b6b52Smrg  done
4821b042e37fSmrgIFS=$as_save_IFS
4822b042e37fSmrg
4823b042e37fSmrgfi
4824b042e37fSmrgfi
4825bd23fbfaSmrgOBJDUMP=$ac_cv_prog_OBJDUMP
4826bd23fbfaSmrgif test -n "$OBJDUMP"; then
4827bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4828bd23fbfaSmrg$as_echo "$OBJDUMP" >&6; }
4829b042e37fSmrgelse
4830706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48318c4a8e55Smrg$as_echo "no" >&6; }
4832b042e37fSmrgfi
4833b042e37fSmrg
4834b042e37fSmrg
4835b042e37fSmrgfi
4836bd23fbfaSmrgif test -z "$ac_cv_prog_OBJDUMP"; then
4837bd23fbfaSmrg  ac_ct_OBJDUMP=$OBJDUMP
4838bd23fbfaSmrg  # Extract the first word of "objdump", so it can be a program name with args.
4839bd23fbfaSmrgset dummy objdump; ac_word=$2
4840706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48418c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
4842bd23fbfaSmrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
48438c4a8e55Smrg  $as_echo_n "(cached) " >&6
4844b042e37fSmrgelse
4845bd23fbfaSmrg  if test -n "$ac_ct_OBJDUMP"; then
4846bd23fbfaSmrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4847b042e37fSmrgelse
4848b042e37fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849b042e37fSmrgfor as_dir in $PATH
4850b042e37fSmrgdo
4851b042e37fSmrg  IFS=$as_save_IFS
4852b042e37fSmrg  test -z "$as_dir" && as_dir=.
4853706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4854b042e37fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855bd23fbfaSmrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4856706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857b042e37fSmrg    break 2
4858b042e37fSmrg  fi
4859b042e37fSmrgdone
4860706b6b52Smrg  done
4861b042e37fSmrgIFS=$as_save_IFS
4862b042e37fSmrg
4863b042e37fSmrgfi
4864b042e37fSmrgfi
4865bd23fbfaSmrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4866bd23fbfaSmrgif test -n "$ac_ct_OBJDUMP"; then
4867bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4868bd23fbfaSmrg$as_echo "$ac_ct_OBJDUMP" >&6; }
4869b042e37fSmrgelse
4870706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48718c4a8e55Smrg$as_echo "no" >&6; }
4872b042e37fSmrgfi
4873b042e37fSmrg
4874bd23fbfaSmrg  if test "x$ac_ct_OBJDUMP" = x; then
4875bd23fbfaSmrg    OBJDUMP="false"
4876b042e37fSmrg  else
4877b042e37fSmrg    case $cross_compiling:$ac_tool_warned in
4878b042e37fSmrgyes:)
4879706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
48808c4a8e55Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4881b042e37fSmrgac_tool_warned=yes ;;
4882b042e37fSmrgesac
4883bd23fbfaSmrg    OBJDUMP=$ac_ct_OBJDUMP
4884b042e37fSmrg  fi
4885b042e37fSmrgelse
4886bd23fbfaSmrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
4887b042e37fSmrgfi
4888b042e37fSmrg
4889bd23fbfaSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump
4890b042e37fSmrg
4891b042e37fSmrg
4892b042e37fSmrg
4893bd23fbfaSmrg
4894bd23fbfaSmrg
4895bd23fbfaSmrg
4896bd23fbfaSmrg
4897bd23fbfaSmrg
4898bd23fbfaSmrg
4899bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4900bd23fbfaSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4901bd23fbfaSmrgif ${lt_cv_deplibs_check_method+:} false; then :
49028c4a8e55Smrg  $as_echo_n "(cached) " >&6
4903b042e37fSmrgelse
4904bd23fbfaSmrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
4905bd23fbfaSmrglt_cv_file_magic_test_file=
4906bd23fbfaSmrglt_cv_deplibs_check_method='unknown'
4907bd23fbfaSmrg# Need to set the preceding variable on all platforms that support
4908bd23fbfaSmrg# interlibrary dependencies.
4909bd23fbfaSmrg# 'none' -- dependencies not supported.
4910bd23fbfaSmrg# `unknown' -- same as none, but documents that we really don't know.
4911bd23fbfaSmrg# 'pass_all' -- all dependencies passed with no checks.
4912bd23fbfaSmrg# 'test_compile' -- check by making test program.
4913bd23fbfaSmrg# 'file_magic [[regex]]' -- check by looking for files in library path
4914bd23fbfaSmrg# which responds to the $file_magic_cmd with a given extended regex.
4915bd23fbfaSmrg# If you have `file' or equivalent on your system and you're not sure
4916bd23fbfaSmrg# whether `pass_all' will *always* work, you probably want this one.
4917bd23fbfaSmrg
4918bd23fbfaSmrgcase $host_os in
4919bd23fbfaSmrgaix[4-9]*)
4920bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
4921bd23fbfaSmrg  ;;
4922bd23fbfaSmrg
4923bd23fbfaSmrgbeos*)
4924bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
4925bd23fbfaSmrg  ;;
4926bd23fbfaSmrg
4927bd23fbfaSmrgbsdi[45]*)
4928bd23fbfaSmrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4929bd23fbfaSmrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
4930bd23fbfaSmrg  lt_cv_file_magic_test_file=/shlib/libc.so
4931bd23fbfaSmrg  ;;
4932bd23fbfaSmrg
4933bd23fbfaSmrgcygwin*)
4934bd23fbfaSmrg  # func_win32_libid is a shell function defined in ltmain.sh
4935bd23fbfaSmrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4936bd23fbfaSmrg  lt_cv_file_magic_cmd='func_win32_libid'
4937bd23fbfaSmrg  ;;
4938bd23fbfaSmrg
4939bd23fbfaSmrgmingw* | pw32*)
4940bd23fbfaSmrg  # Base MSYS/MinGW do not provide the 'file' command needed by
4941bd23fbfaSmrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4942bd23fbfaSmrg  # unless we find 'file', for example because we are cross-compiling.
4943bd23fbfaSmrg  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4944bd23fbfaSmrg  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4945bd23fbfaSmrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4946bd23fbfaSmrg    lt_cv_file_magic_cmd='func_win32_libid'
4947bd23fbfaSmrg  else
4948bd23fbfaSmrg    # Keep this pattern in sync with the one in func_win32_libid.
4949bd23fbfaSmrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4950bd23fbfaSmrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
4951bd23fbfaSmrg  fi
4952bd23fbfaSmrg  ;;
4953bd23fbfaSmrg
4954bd23fbfaSmrgcegcc*)
4955bd23fbfaSmrg  # use the weaker test based on 'objdump'. See mingw*.
4956bd23fbfaSmrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4957bd23fbfaSmrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
4958bd23fbfaSmrg  ;;
4959bd23fbfaSmrg
4960bd23fbfaSmrgdarwin* | rhapsody*)
4961bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
4962bd23fbfaSmrg  ;;
4963bd23fbfaSmrg
4964bd23fbfaSmrgfreebsd* | dragonfly*)
4965bd23fbfaSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4966bd23fbfaSmrg    case $host_cpu in
4967bd23fbfaSmrg    i*86 )
4968bd23fbfaSmrg      # Not sure whether the presence of OpenBSD here was a mistake.
4969bd23fbfaSmrg      # Let's accept both of them until this is cleared up.
4970bd23fbfaSmrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4971bd23fbfaSmrg      lt_cv_file_magic_cmd=/usr/bin/file
4972bd23fbfaSmrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4973bd23fbfaSmrg      ;;
4974bd23fbfaSmrg    esac
4975bd23fbfaSmrg  else
4976bd23fbfaSmrg    lt_cv_deplibs_check_method=pass_all
4977bd23fbfaSmrg  fi
4978bd23fbfaSmrg  ;;
4979bd23fbfaSmrg
4980bd23fbfaSmrggnu*)
4981bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
4982bd23fbfaSmrg  ;;
4983bd23fbfaSmrg
4984bd23fbfaSmrghaiku*)
4985bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
4986bd23fbfaSmrg  ;;
4987bd23fbfaSmrg
4988bd23fbfaSmrghpux10.20* | hpux11*)
4989bd23fbfaSmrg  lt_cv_file_magic_cmd=/usr/bin/file
4990bd23fbfaSmrg  case $host_cpu in
4991bd23fbfaSmrg  ia64*)
4992bd23fbfaSmrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4993bd23fbfaSmrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4994bd23fbfaSmrg    ;;
4995bd23fbfaSmrg  hppa*64*)
4996bd23fbfaSmrg    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]'
4997bd23fbfaSmrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4998bd23fbfaSmrg    ;;
4999bd23fbfaSmrg  *)
5000bd23fbfaSmrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5001bd23fbfaSmrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5002bd23fbfaSmrg    ;;
5003bd23fbfaSmrg  esac
5004bd23fbfaSmrg  ;;
5005bd23fbfaSmrg
5006bd23fbfaSmrginterix[3-9]*)
5007bd23fbfaSmrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5008bd23fbfaSmrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5009bd23fbfaSmrg  ;;
5010bd23fbfaSmrg
5011bd23fbfaSmrgirix5* | irix6* | nonstopux*)
5012bd23fbfaSmrg  case $LD in
5013bd23fbfaSmrg  *-32|*"-32 ") libmagic=32-bit;;
5014bd23fbfaSmrg  *-n32|*"-n32 ") libmagic=N32;;
5015bd23fbfaSmrg  *-64|*"-64 ") libmagic=64-bit;;
5016bd23fbfaSmrg  *) libmagic=never-match;;
5017bd23fbfaSmrg  esac
5018bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
5019bd23fbfaSmrg  ;;
5020bd23fbfaSmrg
5021bd23fbfaSmrg# This must be Linux ELF.
5022bd23fbfaSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
5023bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
5024bd23fbfaSmrg  ;;
5025bd23fbfaSmrg
5026bd23fbfaSmrgnetbsd*)
5027bd23fbfaSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5028bd23fbfaSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5029bd23fbfaSmrg  else
5030bd23fbfaSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5031bd23fbfaSmrg  fi
5032bd23fbfaSmrg  ;;
5033bd23fbfaSmrg
5034bd23fbfaSmrgnewos6*)
5035bd23fbfaSmrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5036bd23fbfaSmrg  lt_cv_file_magic_cmd=/usr/bin/file
5037bd23fbfaSmrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5038bd23fbfaSmrg  ;;
5039bd23fbfaSmrg
5040bd23fbfaSmrg*nto* | *qnx*)
5041bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
5042bd23fbfaSmrg  ;;
5043bd23fbfaSmrg
5044bd23fbfaSmrgopenbsd*)
5045bd23fbfaSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5046bd23fbfaSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5047bd23fbfaSmrg  else
5048bd23fbfaSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5049bd23fbfaSmrg  fi
5050bd23fbfaSmrg  ;;
5051bd23fbfaSmrg
5052bd23fbfaSmrgosf3* | osf4* | osf5*)
5053bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
5054bd23fbfaSmrg  ;;
5055bd23fbfaSmrg
5056bd23fbfaSmrgrdos*)
5057bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
5058bd23fbfaSmrg  ;;
5059bd23fbfaSmrg
5060bd23fbfaSmrgsolaris*)
5061bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
5062bd23fbfaSmrg  ;;
5063bd23fbfaSmrg
5064bd23fbfaSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5065bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
5066bd23fbfaSmrg  ;;
5067bd23fbfaSmrg
5068bd23fbfaSmrgsysv4 | sysv4.3*)
5069bd23fbfaSmrg  case $host_vendor in
5070bd23fbfaSmrg  motorola)
5071bd23fbfaSmrg    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]'
5072bd23fbfaSmrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5073bd23fbfaSmrg    ;;
5074bd23fbfaSmrg  ncr)
5075bd23fbfaSmrg    lt_cv_deplibs_check_method=pass_all
5076bd23fbfaSmrg    ;;
5077bd23fbfaSmrg  sequent)
5078bd23fbfaSmrg    lt_cv_file_magic_cmd='/bin/file'
5079bd23fbfaSmrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5080bd23fbfaSmrg    ;;
5081bd23fbfaSmrg  sni)
5082bd23fbfaSmrg    lt_cv_file_magic_cmd='/bin/file'
5083bd23fbfaSmrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5084bd23fbfaSmrg    lt_cv_file_magic_test_file=/lib/libc.so
5085bd23fbfaSmrg    ;;
5086bd23fbfaSmrg  siemens)
5087bd23fbfaSmrg    lt_cv_deplibs_check_method=pass_all
5088bd23fbfaSmrg    ;;
5089bd23fbfaSmrg  pc)
5090bd23fbfaSmrg    lt_cv_deplibs_check_method=pass_all
5091bd23fbfaSmrg    ;;
5092bd23fbfaSmrg  esac
5093bd23fbfaSmrg  ;;
5094bd23fbfaSmrg
5095bd23fbfaSmrgtpf*)
5096bd23fbfaSmrg  lt_cv_deplibs_check_method=pass_all
5097bd23fbfaSmrg  ;;
5098bd23fbfaSmrgesac
5099bd23fbfaSmrg
5100bd23fbfaSmrgfi
5101bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5102bd23fbfaSmrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
5103bd23fbfaSmrg
5104bd23fbfaSmrgfile_magic_glob=
5105bd23fbfaSmrgwant_nocaseglob=no
5106bd23fbfaSmrgif test "$build" = "$host"; then
5107bd23fbfaSmrg  case $host_os in
5108bd23fbfaSmrg  mingw* | pw32*)
5109bd23fbfaSmrg    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5110bd23fbfaSmrg      want_nocaseglob=yes
5111bd23fbfaSmrg    else
5112bd23fbfaSmrg      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5113bd23fbfaSmrg    fi
5114bd23fbfaSmrg    ;;
5115bd23fbfaSmrg  esac
5116bd23fbfaSmrgfi
5117bd23fbfaSmrg
5118bd23fbfaSmrgfile_magic_cmd=$lt_cv_file_magic_cmd
5119bd23fbfaSmrgdeplibs_check_method=$lt_cv_deplibs_check_method
5120bd23fbfaSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
5121bd23fbfaSmrg
5122bd23fbfaSmrg
5123bd23fbfaSmrg
5124bd23fbfaSmrg
5125bd23fbfaSmrg
5126bd23fbfaSmrg
5127bd23fbfaSmrg
5128bd23fbfaSmrg
5129bd23fbfaSmrg
5130bd23fbfaSmrg
5131bd23fbfaSmrg
5132bd23fbfaSmrg
5133bd23fbfaSmrg
5134bd23fbfaSmrg
5135bd23fbfaSmrg
5136bd23fbfaSmrg
5137bd23fbfaSmrg
5138bd23fbfaSmrg
5139bd23fbfaSmrg
5140bd23fbfaSmrg
5141bd23fbfaSmrg
5142bd23fbfaSmrg
5143bd23fbfaSmrgif test -n "$ac_tool_prefix"; then
5144bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5145bd23fbfaSmrgset dummy ${ac_tool_prefix}dlltool; ac_word=$2
5146bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
5148bd23fbfaSmrgif ${ac_cv_prog_DLLTOOL+:} false; then :
5149bd23fbfaSmrg  $as_echo_n "(cached) " >&6
5150bd23fbfaSmrgelse
5151bd23fbfaSmrg  if test -n "$DLLTOOL"; then
5152bd23fbfaSmrg  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5153b042e37fSmrgelse
5154b042e37fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155b042e37fSmrgfor as_dir in $PATH
5156b042e37fSmrgdo
5157b042e37fSmrg  IFS=$as_save_IFS
5158b042e37fSmrg  test -z "$as_dir" && as_dir=.
5159706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5160b042e37fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161bd23fbfaSmrg    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5162706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163b042e37fSmrg    break 2
5164b042e37fSmrg  fi
5165b042e37fSmrgdone
5166706b6b52Smrg  done
5167b042e37fSmrgIFS=$as_save_IFS
5168b042e37fSmrg
5169b042e37fSmrgfi
5170b042e37fSmrgfi
5171bd23fbfaSmrgDLLTOOL=$ac_cv_prog_DLLTOOL
5172bd23fbfaSmrgif test -n "$DLLTOOL"; then
5173bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5174bd23fbfaSmrg$as_echo "$DLLTOOL" >&6; }
5175bd23fbfaSmrgelse
5176bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177bd23fbfaSmrg$as_echo "no" >&6; }
5178b042e37fSmrgfi
5179bd23fbfaSmrg
5180bd23fbfaSmrg
5181bd23fbfaSmrgfi
5182bd23fbfaSmrgif test -z "$ac_cv_prog_DLLTOOL"; then
5183bd23fbfaSmrg  ac_ct_DLLTOOL=$DLLTOOL
5184bd23fbfaSmrg  # Extract the first word of "dlltool", so it can be a program name with args.
5185bd23fbfaSmrgset dummy dlltool; ac_word=$2
5186bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
5188bd23fbfaSmrgif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5189bd23fbfaSmrg  $as_echo_n "(cached) " >&6
5190bd23fbfaSmrgelse
5191bd23fbfaSmrg  if test -n "$ac_ct_DLLTOOL"; then
5192bd23fbfaSmrg  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5193bd23fbfaSmrgelse
5194bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195bd23fbfaSmrgfor as_dir in $PATH
5196bd23fbfaSmrgdo
5197bd23fbfaSmrg  IFS=$as_save_IFS
5198bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
5199bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5200bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201bd23fbfaSmrg    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5202bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203bd23fbfaSmrg    break 2
5204bd23fbfaSmrg  fi
5205bd23fbfaSmrgdone
5206bd23fbfaSmrg  done
5207bd23fbfaSmrgIFS=$as_save_IFS
5208bd23fbfaSmrg
5209bd23fbfaSmrgfi
5210bd23fbfaSmrgfi
5211bd23fbfaSmrgac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5212bd23fbfaSmrgif test -n "$ac_ct_DLLTOOL"; then
5213bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5214bd23fbfaSmrg$as_echo "$ac_ct_DLLTOOL" >&6; }
5215b042e37fSmrgelse
5216706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52178c4a8e55Smrg$as_echo "no" >&6; }
5218b042e37fSmrgfi
5219b042e37fSmrg
5220bd23fbfaSmrg  if test "x$ac_ct_DLLTOOL" = x; then
5221bd23fbfaSmrg    DLLTOOL="false"
5222bd23fbfaSmrg  else
5223bd23fbfaSmrg    case $cross_compiling:$ac_tool_warned in
5224bd23fbfaSmrgyes:)
5225bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226bd23fbfaSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227bd23fbfaSmrgac_tool_warned=yes ;;
5228bd23fbfaSmrgesac
5229bd23fbfaSmrg    DLLTOOL=$ac_ct_DLLTOOL
5230bd23fbfaSmrg  fi
5231bd23fbfaSmrgelse
5232bd23fbfaSmrg  DLLTOOL="$ac_cv_prog_DLLTOOL"
5233bd23fbfaSmrgfi
5234bd23fbfaSmrg
5235bd23fbfaSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool
5236bd23fbfaSmrg
5237bd23fbfaSmrg
5238bd23fbfaSmrg
5239bd23fbfaSmrg
5240bd23fbfaSmrg
5241bd23fbfaSmrg
5242bd23fbfaSmrg
5243bd23fbfaSmrg
5244bd23fbfaSmrg
5245bd23fbfaSmrg
5246bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5247bd23fbfaSmrg$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5248bd23fbfaSmrgif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5249bd23fbfaSmrg  $as_echo_n "(cached) " >&6
5250bd23fbfaSmrgelse
5251bd23fbfaSmrg  lt_cv_sharedlib_from_linklib_cmd='unknown'
5252bd23fbfaSmrg
5253bd23fbfaSmrgcase $host_os in
5254bd23fbfaSmrgcygwin* | mingw* | pw32* | cegcc*)
5255bd23fbfaSmrg  # two different shell functions defined in ltmain.sh
5256bd23fbfaSmrg  # decide which to use based on capabilities of $DLLTOOL
5257bd23fbfaSmrg  case `$DLLTOOL --help 2>&1` in
5258bd23fbfaSmrg  *--identify-strict*)
5259bd23fbfaSmrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5260bd23fbfaSmrg    ;;
5261bd23fbfaSmrg  *)
5262bd23fbfaSmrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5263bd23fbfaSmrg    ;;
5264bd23fbfaSmrg  esac
5265bd23fbfaSmrg  ;;
5266bd23fbfaSmrg*)
5267bd23fbfaSmrg  # fallback: assume linklib IS sharedlib
5268bd23fbfaSmrg  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5269bd23fbfaSmrg  ;;
5270bd23fbfaSmrgesac
5271b042e37fSmrg
5272b042e37fSmrgfi
5273bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5274bd23fbfaSmrg$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5275bd23fbfaSmrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5276bd23fbfaSmrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5277bd23fbfaSmrg
5278bd23fbfaSmrg
5279bd23fbfaSmrg
5280bd23fbfaSmrg
5281bd23fbfaSmrg
5282bd23fbfaSmrg
5283bd23fbfaSmrg
5284bd23fbfaSmrg
5285bd23fbfaSmrgif test -n "$ac_tool_prefix"; then
5286bd23fbfaSmrg  for ac_prog in ar
5287b042e37fSmrg  do
5288b042e37fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5289b042e37fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
5290706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52918c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
5292bd23fbfaSmrgif ${ac_cv_prog_AR+:} false; then :
52938c4a8e55Smrg  $as_echo_n "(cached) " >&6
5294b042e37fSmrgelse
5295bd23fbfaSmrg  if test -n "$AR"; then
5296bd23fbfaSmrg  ac_cv_prog_AR="$AR" # Let the user override the test.
5297b042e37fSmrgelse
5298b042e37fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299b042e37fSmrgfor as_dir in $PATH
5300b042e37fSmrgdo
5301b042e37fSmrg  IFS=$as_save_IFS
5302b042e37fSmrg  test -z "$as_dir" && as_dir=.
5303706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5304b042e37fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305bd23fbfaSmrg    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5306706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307b042e37fSmrg    break 2
5308b042e37fSmrg  fi
5309b042e37fSmrgdone
5310706b6b52Smrg  done
5311b042e37fSmrgIFS=$as_save_IFS
5312b042e37fSmrg
5313b042e37fSmrgfi
5314b042e37fSmrgfi
5315bd23fbfaSmrgAR=$ac_cv_prog_AR
5316bd23fbfaSmrgif test -n "$AR"; then
5317bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5318bd23fbfaSmrg$as_echo "$AR" >&6; }
5319b042e37fSmrgelse
5320706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53218c4a8e55Smrg$as_echo "no" >&6; }
5322b042e37fSmrgfi
5323b042e37fSmrg
5324b042e37fSmrg
5325bd23fbfaSmrg    test -n "$AR" && break
5326b042e37fSmrg  done
5327b042e37fSmrgfi
5328bd23fbfaSmrgif test -z "$AR"; then
5329bd23fbfaSmrg  ac_ct_AR=$AR
5330bd23fbfaSmrg  for ac_prog in ar
5331b042e37fSmrgdo
5332b042e37fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
5333b042e37fSmrgset dummy $ac_prog; ac_word=$2
5334706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53358c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
5336bd23fbfaSmrgif ${ac_cv_prog_ac_ct_AR+:} false; then :
53378c4a8e55Smrg  $as_echo_n "(cached) " >&6
5338b042e37fSmrgelse
5339bd23fbfaSmrg  if test -n "$ac_ct_AR"; then
5340bd23fbfaSmrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5341b042e37fSmrgelse
5342b042e37fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343b042e37fSmrgfor as_dir in $PATH
5344b042e37fSmrgdo
5345b042e37fSmrg  IFS=$as_save_IFS
5346b042e37fSmrg  test -z "$as_dir" && as_dir=.
5347706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5348b042e37fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349bd23fbfaSmrg    ac_cv_prog_ac_ct_AR="$ac_prog"
5350706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351b042e37fSmrg    break 2
5352b042e37fSmrg  fi
5353b042e37fSmrgdone
5354706b6b52Smrg  done
5355b042e37fSmrgIFS=$as_save_IFS
5356b042e37fSmrg
5357706b6b52Smrgfi
5358706b6b52Smrgfi
5359bd23fbfaSmrgac_ct_AR=$ac_cv_prog_ac_ct_AR
5360bd23fbfaSmrgif test -n "$ac_ct_AR"; then
5361bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5362bd23fbfaSmrg$as_echo "$ac_ct_AR" >&6; }
5363b042e37fSmrgelse
5364706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365706b6b52Smrg$as_echo "no" >&6; }
5366b042e37fSmrgfi
5367b042e37fSmrg
5368b042e37fSmrg
5369bd23fbfaSmrg  test -n "$ac_ct_AR" && break
5370706b6b52Smrgdone
5371b042e37fSmrg
5372bd23fbfaSmrg  if test "x$ac_ct_AR" = x; then
5373bd23fbfaSmrg    AR="false"
5374b042e37fSmrg  else
5375706b6b52Smrg    case $cross_compiling:$ac_tool_warned in
5376706b6b52Smrgyes:)
5377706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5378706b6b52Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5379706b6b52Smrgac_tool_warned=yes ;;
5380706b6b52Smrgesac
5381bd23fbfaSmrg    AR=$ac_ct_AR
5382b042e37fSmrg  fi
5383b042e37fSmrgfi
5384b042e37fSmrg
5385bd23fbfaSmrg: ${AR=ar}
5386bd23fbfaSmrg: ${AR_FLAGS=cru}
5387b042e37fSmrg
5388b042e37fSmrg
5389b042e37fSmrg
5390b042e37fSmrg
5391bd23fbfaSmrg
5392bd23fbfaSmrg
5393bd23fbfaSmrg
5394bd23fbfaSmrg
5395bd23fbfaSmrg
5396bd23fbfaSmrg
5397bd23fbfaSmrg
5398bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5399bd23fbfaSmrg$as_echo_n "checking for archiver @FILE support... " >&6; }
5400bd23fbfaSmrgif ${lt_cv_ar_at_file+:} false; then :
54018c4a8e55Smrg  $as_echo_n "(cached) " >&6
5402b042e37fSmrgelse
5403bd23fbfaSmrg  lt_cv_ar_at_file=no
5404bd23fbfaSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405b042e37fSmrg/* end confdefs.h.  */
5406b042e37fSmrg
5407b042e37fSmrgint
5408b042e37fSmrgmain ()
5409b042e37fSmrg{
5410b042e37fSmrg
5411b042e37fSmrg  ;
5412b042e37fSmrg  return 0;
5413b042e37fSmrg}
5414b042e37fSmrg_ACEOF
5415706b6b52Smrgif ac_fn_c_try_compile "$LINENO"; then :
5416bd23fbfaSmrg  echo conftest.$ac_objext > conftest.lst
5417bd23fbfaSmrg      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5418bd23fbfaSmrg      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5419bd23fbfaSmrg  (eval $lt_ar_try) 2>&5
5420bd23fbfaSmrg  ac_status=$?
5421bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5422bd23fbfaSmrg  test $ac_status = 0; }
5423bd23fbfaSmrg      if test "$ac_status" -eq 0; then
5424bd23fbfaSmrg	# Ensure the archiver fails upon bogus file names.
5425bd23fbfaSmrg	rm -f conftest.$ac_objext libconftest.a
5426bd23fbfaSmrg	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5427bd23fbfaSmrg  (eval $lt_ar_try) 2>&5
5428bd23fbfaSmrg  ac_status=$?
5429bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5430bd23fbfaSmrg  test $ac_status = 0; }
5431bd23fbfaSmrg	if test "$ac_status" -ne 0; then
5432bd23fbfaSmrg          lt_cv_ar_at_file=@
5433bd23fbfaSmrg        fi
5434bd23fbfaSmrg      fi
5435bd23fbfaSmrg      rm -f conftest.* libconftest.a
5436bd23fbfaSmrg
5437b042e37fSmrgfi
5438b042e37fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439b042e37fSmrg
5440b042e37fSmrgfi
5441bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5442bd23fbfaSmrg$as_echo "$lt_cv_ar_at_file" >&6; }
5443bd23fbfaSmrg
5444bd23fbfaSmrgif test "x$lt_cv_ar_at_file" = xno; then
5445bd23fbfaSmrg  archiver_list_spec=
54468c4a8e55Smrgelse
5447bd23fbfaSmrg  archiver_list_spec=$lt_cv_ar_at_file
54488c4a8e55Smrgfi
5449b042e37fSmrg
5450b042e37fSmrg
5451b042e37fSmrg
5452b042e37fSmrg
5453b042e37fSmrg
5454b042e37fSmrg
5455b042e37fSmrg
5456bd23fbfaSmrgif test -n "$ac_tool_prefix"; then
5457bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5458bd23fbfaSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
5459bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
5461bd23fbfaSmrgif ${ac_cv_prog_STRIP+:} false; then :
5462bd23fbfaSmrg  $as_echo_n "(cached) " >&6
5463b042e37fSmrgelse
5464bd23fbfaSmrg  if test -n "$STRIP"; then
5465bd23fbfaSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5466bd23fbfaSmrgelse
5467bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468bd23fbfaSmrgfor as_dir in $PATH
5469bd23fbfaSmrgdo
5470bd23fbfaSmrg  IFS=$as_save_IFS
5471bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
5472bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5473bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474bd23fbfaSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5475bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476bd23fbfaSmrg    break 2
5477b042e37fSmrg  fi
5478bd23fbfaSmrgdone
5479bd23fbfaSmrg  done
5480bd23fbfaSmrgIFS=$as_save_IFS
5481bd23fbfaSmrg
5482b042e37fSmrgfi
5483bd23fbfaSmrgfi
5484bd23fbfaSmrgSTRIP=$ac_cv_prog_STRIP
5485bd23fbfaSmrgif test -n "$STRIP"; then
5486bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5487bd23fbfaSmrg$as_echo "$STRIP" >&6; }
5488b042e37fSmrgelse
5489bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490bd23fbfaSmrg$as_echo "no" >&6; }
5491bd23fbfaSmrgfi
5492b042e37fSmrg
5493b042e37fSmrg
5494b042e37fSmrgfi
5495bd23fbfaSmrgif test -z "$ac_cv_prog_STRIP"; then
5496bd23fbfaSmrg  ac_ct_STRIP=$STRIP
5497bd23fbfaSmrg  # Extract the first word of "strip", so it can be a program name with args.
5498bd23fbfaSmrgset dummy strip; ac_word=$2
5499bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
5501bd23fbfaSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5502bd23fbfaSmrg  $as_echo_n "(cached) " >&6
5503bd23fbfaSmrgelse
5504bd23fbfaSmrg  if test -n "$ac_ct_STRIP"; then
5505bd23fbfaSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5506bd23fbfaSmrgelse
5507bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508bd23fbfaSmrgfor as_dir in $PATH
5509bd23fbfaSmrgdo
5510bd23fbfaSmrg  IFS=$as_save_IFS
5511bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
5512bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5513bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514bd23fbfaSmrg    ac_cv_prog_ac_ct_STRIP="strip"
5515bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516bd23fbfaSmrg    break 2
5517bd23fbfaSmrg  fi
5518b042e37fSmrgdone
5519bd23fbfaSmrg  done
5520bd23fbfaSmrgIFS=$as_save_IFS
5521b042e37fSmrg
5522b042e37fSmrgfi
5523bd23fbfaSmrgfi
5524bd23fbfaSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5525bd23fbfaSmrgif test -n "$ac_ct_STRIP"; then
5526bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5527bd23fbfaSmrg$as_echo "$ac_ct_STRIP" >&6; }
5528bd23fbfaSmrgelse
5529bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530bd23fbfaSmrg$as_echo "no" >&6; }
5531bd23fbfaSmrgfi
5532b042e37fSmrg
5533bd23fbfaSmrg  if test "x$ac_ct_STRIP" = x; then
5534bd23fbfaSmrg    STRIP=":"
5535bd23fbfaSmrg  else
5536bd23fbfaSmrg    case $cross_compiling:$ac_tool_warned in
5537bd23fbfaSmrgyes:)
5538bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5539bd23fbfaSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5540bd23fbfaSmrgac_tool_warned=yes ;;
5541bd23fbfaSmrgesac
5542bd23fbfaSmrg    STRIP=$ac_ct_STRIP
5543bd23fbfaSmrg  fi
5544bd23fbfaSmrgelse
5545bd23fbfaSmrg  STRIP="$ac_cv_prog_STRIP"
5546706b6b52Smrgfi
5547b042e37fSmrg
5548bd23fbfaSmrgtest -z "$STRIP" && STRIP=:
5549b042e37fSmrg
5550b042e37fSmrg
5551bd23fbfaSmrg
5552bd23fbfaSmrg
5553bd23fbfaSmrg
5554bd23fbfaSmrg
5555bd23fbfaSmrgif test -n "$ac_tool_prefix"; then
5556bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5557bd23fbfaSmrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
5558bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
5560bd23fbfaSmrgif ${ac_cv_prog_RANLIB+:} false; then :
55618c4a8e55Smrg  $as_echo_n "(cached) " >&6
5562b042e37fSmrgelse
5563bd23fbfaSmrg  if test -n "$RANLIB"; then
5564bd23fbfaSmrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5565bd23fbfaSmrgelse
5566bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567bd23fbfaSmrgfor as_dir in $PATH
5568bd23fbfaSmrgdo
5569bd23fbfaSmrg  IFS=$as_save_IFS
5570bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
5571bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5572bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573bd23fbfaSmrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5574bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575bd23fbfaSmrg    break 2
5576b042e37fSmrg  fi
5577bd23fbfaSmrgdone
5578bd23fbfaSmrg  done
5579bd23fbfaSmrgIFS=$as_save_IFS
5580706b6b52Smrg
5581bd23fbfaSmrgfi
5582bd23fbfaSmrgfi
5583bd23fbfaSmrgRANLIB=$ac_cv_prog_RANLIB
5584bd23fbfaSmrgif test -n "$RANLIB"; then
5585bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5586bd23fbfaSmrg$as_echo "$RANLIB" >&6; }
5587bd23fbfaSmrgelse
5588bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589bd23fbfaSmrg$as_echo "no" >&6; }
5590bd23fbfaSmrgfi
5591b042e37fSmrg
5592b042e37fSmrg
5593b042e37fSmrgfi
5594bd23fbfaSmrgif test -z "$ac_cv_prog_RANLIB"; then
5595bd23fbfaSmrg  ac_ct_RANLIB=$RANLIB
5596bd23fbfaSmrg  # Extract the first word of "ranlib", so it can be a program name with args.
5597bd23fbfaSmrgset dummy ranlib; ac_word=$2
5598bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
5600bd23fbfaSmrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5601bd23fbfaSmrg  $as_echo_n "(cached) " >&6
5602bd23fbfaSmrgelse
5603bd23fbfaSmrg  if test -n "$ac_ct_RANLIB"; then
5604bd23fbfaSmrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5605bd23fbfaSmrgelse
5606bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607bd23fbfaSmrgfor as_dir in $PATH
5608bd23fbfaSmrgdo
5609bd23fbfaSmrg  IFS=$as_save_IFS
5610bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
5611bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5612bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613bd23fbfaSmrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
5614bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615bd23fbfaSmrg    break 2
5616bd23fbfaSmrg  fi
5617bd23fbfaSmrgdone
5618bd23fbfaSmrg  done
5619bd23fbfaSmrgIFS=$as_save_IFS
5620b042e37fSmrg
5621b042e37fSmrgfi
5622bd23fbfaSmrgfi
5623bd23fbfaSmrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5624bd23fbfaSmrgif test -n "$ac_ct_RANLIB"; then
5625bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5626bd23fbfaSmrg$as_echo "$ac_ct_RANLIB" >&6; }
5627b042e37fSmrgelse
5628bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629bd23fbfaSmrg$as_echo "no" >&6; }
5630b042e37fSmrgfi
5631b042e37fSmrg
5632bd23fbfaSmrg  if test "x$ac_ct_RANLIB" = x; then
5633bd23fbfaSmrg    RANLIB=":"
5634bd23fbfaSmrg  else
5635bd23fbfaSmrg    case $cross_compiling:$ac_tool_warned in
5636bd23fbfaSmrgyes:)
5637bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5638bd23fbfaSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5639bd23fbfaSmrgac_tool_warned=yes ;;
56408c4a8e55Smrgesac
5641bd23fbfaSmrg    RANLIB=$ac_ct_RANLIB
5642bd23fbfaSmrg  fi
5643bd23fbfaSmrgelse
5644bd23fbfaSmrg  RANLIB="$ac_cv_prog_RANLIB"
5645bd23fbfaSmrgfi
5646b042e37fSmrg
5647bd23fbfaSmrgtest -z "$RANLIB" && RANLIB=:
5648b042e37fSmrg
5649b042e37fSmrg
5650706b6b52Smrg
5651b042e37fSmrg
5652b042e37fSmrg
5653b042e37fSmrg
5654bd23fbfaSmrg# Determine commands to create old-style static archives.
5655bd23fbfaSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5656bd23fbfaSmrgold_postinstall_cmds='chmod 644 $oldlib'
5657bd23fbfaSmrgold_postuninstall_cmds=
56588c4a8e55Smrg
5659bd23fbfaSmrgif test -n "$RANLIB"; then
5660bd23fbfaSmrg  case $host_os in
5661bd23fbfaSmrg  openbsd*)
5662bd23fbfaSmrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5663bd23fbfaSmrg    ;;
5664bd23fbfaSmrg  *)
5665bd23fbfaSmrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5666bd23fbfaSmrg    ;;
5667bd23fbfaSmrg  esac
5668bd23fbfaSmrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5669bd23fbfaSmrgfi
56708c4a8e55Smrg
5671bd23fbfaSmrgcase $host_os in
5672bd23fbfaSmrg  darwin*)
5673bd23fbfaSmrg    lock_old_archive_extraction=yes ;;
5674bd23fbfaSmrg  *)
5675bd23fbfaSmrg    lock_old_archive_extraction=no ;;
5676bd23fbfaSmrgesac
56778c4a8e55Smrg
56788c4a8e55Smrg
56798c4a8e55Smrg
56808c4a8e55Smrg
56818c4a8e55Smrg
56828c4a8e55Smrg
56838c4a8e55Smrg
5684706b6b52Smrg
5685706b6b52Smrg
5686706b6b52Smrg
5687706b6b52Smrg
5688706b6b52Smrg
5689706b6b52Smrg
5690706b6b52Smrg
5691706b6b52Smrg
5692706b6b52Smrg
5693706b6b52Smrg
5694706b6b52Smrg
5695706b6b52Smrg
5696706b6b52Smrg
5697706b6b52Smrg
56988c4a8e55Smrg
56998c4a8e55Smrg
5700b042e37fSmrg
5701b042e37fSmrg
5702b042e37fSmrg
5703b042e37fSmrg
5704b042e37fSmrg
5705b042e37fSmrg
5706b042e37fSmrg
57078c4a8e55Smrg
5708b042e37fSmrg
57098c4a8e55Smrg
5710b042e37fSmrg
5711b042e37fSmrg
57128c4a8e55Smrg
57138c4a8e55Smrg
57148c4a8e55Smrg
57158c4a8e55Smrg
5716bd23fbfaSmrg# If no C compiler was specified, use CC.
5717bd23fbfaSmrgLTCC=${LTCC-"$CC"}
57188c4a8e55Smrg
5719bd23fbfaSmrg# If no C compiler flags were specified, use CFLAGS.
5720bd23fbfaSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
57218c4a8e55Smrg
5722bd23fbfaSmrg# Allow CC to be a program name with arguments.
5723bd23fbfaSmrgcompiler=$CC
57248c4a8e55Smrg
57258c4a8e55Smrg
5726bd23fbfaSmrg# Check for command to grab the raw symbol name followed by C symbol from nm.
5727bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5728bd23fbfaSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5729bd23fbfaSmrgif ${lt_cv_sys_global_symbol_pipe+:} false; then :
5730bd23fbfaSmrg  $as_echo_n "(cached) " >&6
5731bd23fbfaSmrgelse
57328c4a8e55Smrg
5733bd23fbfaSmrg# These are sane defaults that work on at least a few old systems.
5734bd23fbfaSmrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
57358c4a8e55Smrg
5736bd23fbfaSmrg# Character class describing NM global symbol codes.
5737bd23fbfaSmrgsymcode='[BCDEGRST]'
57388c4a8e55Smrg
5739bd23fbfaSmrg# Regexp to match symbols that can be accessed directly from C.
5740bd23fbfaSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
57418c4a8e55Smrg
5742bd23fbfaSmrg# Define system-specific variables.
5743bd23fbfaSmrgcase $host_os in
5744bd23fbfaSmrgaix*)
5745bd23fbfaSmrg  symcode='[BCDT]'
5746bd23fbfaSmrg  ;;
5747bd23fbfaSmrgcygwin* | mingw* | pw32* | cegcc*)
5748bd23fbfaSmrg  symcode='[ABCDGISTW]'
5749bd23fbfaSmrg  ;;
5750bd23fbfaSmrghpux*)
5751bd23fbfaSmrg  if test "$host_cpu" = ia64; then
5752bd23fbfaSmrg    symcode='[ABCDEGRST]'
5753bd23fbfaSmrg  fi
5754bd23fbfaSmrg  ;;
5755bd23fbfaSmrgirix* | nonstopux*)
5756bd23fbfaSmrg  symcode='[BCDEGRST]'
5757bd23fbfaSmrg  ;;
5758bd23fbfaSmrgosf*)
5759bd23fbfaSmrg  symcode='[BCDEGQRST]'
5760bd23fbfaSmrg  ;;
5761bd23fbfaSmrgsolaris*)
5762bd23fbfaSmrg  symcode='[BDRT]'
5763bd23fbfaSmrg  ;;
5764bd23fbfaSmrgsco3.2v5*)
5765bd23fbfaSmrg  symcode='[DT]'
5766bd23fbfaSmrg  ;;
5767bd23fbfaSmrgsysv4.2uw2*)
5768bd23fbfaSmrg  symcode='[DT]'
5769bd23fbfaSmrg  ;;
5770bd23fbfaSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
5771bd23fbfaSmrg  symcode='[ABDT]'
5772bd23fbfaSmrg  ;;
5773bd23fbfaSmrgsysv4)
5774bd23fbfaSmrg  symcode='[DFNSTU]'
5775bd23fbfaSmrg  ;;
5776bd23fbfaSmrgesac
57778c4a8e55Smrg
5778bd23fbfaSmrg# If we're using GNU nm, then use its standard symbol codes.
5779bd23fbfaSmrgcase `$NM -V 2>&1` in
5780bd23fbfaSmrg*GNU* | *'with BFD'*)
5781bd23fbfaSmrg  symcode='[ABCDGIRSTW]' ;;
5782bd23fbfaSmrgesac
57838c4a8e55Smrg
5784bd23fbfaSmrg# Transform an extracted symbol line into a proper C declaration.
5785bd23fbfaSmrg# Some systems (esp. on ia64) link data and code symbols differently,
5786bd23fbfaSmrg# so use this general approach.
5787bd23fbfaSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
57888c4a8e55Smrg
5789bd23fbfaSmrg# Transform an extracted symbol line into symbol name and symbol address
5790bd23fbfaSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5791bd23fbfaSmrglt_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'"
57928c4a8e55Smrg
5793bd23fbfaSmrg# Handle CRLF in mingw tool chain
5794bd23fbfaSmrgopt_cr=
5795bd23fbfaSmrgcase $build_os in
5796bd23fbfaSmrgmingw*)
5797bd23fbfaSmrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5798bd23fbfaSmrg  ;;
5799bd23fbfaSmrgesac
58008c4a8e55Smrg
5801bd23fbfaSmrg# Try without a prefix underscore, then with it.
5802bd23fbfaSmrgfor ac_symprfx in "" "_"; do
58038c4a8e55Smrg
5804bd23fbfaSmrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5805bd23fbfaSmrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
58068c4a8e55Smrg
5807bd23fbfaSmrg  # Write the raw and C identifiers.
5808bd23fbfaSmrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5809bd23fbfaSmrg    # Fake it for dumpbin and say T for any non-static function
5810bd23fbfaSmrg    # and D for any global variable.
5811bd23fbfaSmrg    # Also find C++ and __fastcall symbols from MSVC++,
5812bd23fbfaSmrg    # which start with @ or ?.
5813bd23fbfaSmrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
5814bd23fbfaSmrg"     {last_section=section; section=\$ 3};"\
5815bd23fbfaSmrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5816bd23fbfaSmrg"     \$ 0!~/External *\|/{next};"\
5817bd23fbfaSmrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5818bd23fbfaSmrg"     {if(hide[section]) next};"\
5819bd23fbfaSmrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5820bd23fbfaSmrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5821bd23fbfaSmrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5822bd23fbfaSmrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5823bd23fbfaSmrg"     ' prfx=^$ac_symprfx"
5824bd23fbfaSmrg  else
5825bd23fbfaSmrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5826bd23fbfaSmrg  fi
5827bd23fbfaSmrg  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
58288c4a8e55Smrg
5829bd23fbfaSmrg  # Check to see that the pipe works correctly.
5830bd23fbfaSmrg  pipe_works=no
58318c4a8e55Smrg
5832bd23fbfaSmrg  rm -f conftest*
5833bd23fbfaSmrg  cat > conftest.$ac_ext <<_LT_EOF
5834bd23fbfaSmrg#ifdef __cplusplus
5835bd23fbfaSmrgextern "C" {
5836bd23fbfaSmrg#endif
5837bd23fbfaSmrgchar nm_test_var;
5838bd23fbfaSmrgvoid nm_test_func(void);
5839bd23fbfaSmrgvoid nm_test_func(void){}
5840bd23fbfaSmrg#ifdef __cplusplus
5841bd23fbfaSmrg}
5842bd23fbfaSmrg#endif
5843bd23fbfaSmrgint main(){nm_test_var='a';nm_test_func();return(0);}
5844bd23fbfaSmrg_LT_EOF
58458c4a8e55Smrg
5846bd23fbfaSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5847bd23fbfaSmrg  (eval $ac_compile) 2>&5
5848bd23fbfaSmrg  ac_status=$?
5849bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850bd23fbfaSmrg  test $ac_status = 0; }; then
5851bd23fbfaSmrg    # Now try to grab the symbols.
5852bd23fbfaSmrg    nlist=conftest.nm
5853bd23fbfaSmrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5854bd23fbfaSmrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5855bd23fbfaSmrg  ac_status=$?
5856bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857bd23fbfaSmrg  test $ac_status = 0; } && test -s "$nlist"; then
5858bd23fbfaSmrg      # Try sorting and uniquifying the output.
5859bd23fbfaSmrg      if sort "$nlist" | uniq > "$nlist"T; then
5860bd23fbfaSmrg	mv -f "$nlist"T "$nlist"
5861bd23fbfaSmrg      else
5862bd23fbfaSmrg	rm -f "$nlist"T
5863bd23fbfaSmrg      fi
58648c4a8e55Smrg
5865bd23fbfaSmrg      # Make sure that we snagged all the symbols we need.
5866bd23fbfaSmrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5867bd23fbfaSmrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5868bd23fbfaSmrg	  cat <<_LT_EOF > conftest.$ac_ext
5869bd23fbfaSmrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5870bd23fbfaSmrg#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5871bd23fbfaSmrg/* DATA imports from DLLs on WIN32 con't be const, because runtime
5872bd23fbfaSmrg   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5873bd23fbfaSmrg# define LT_DLSYM_CONST
5874bd23fbfaSmrg#elif defined(__osf__)
5875bd23fbfaSmrg/* This system does not cope well with relocations in const data.  */
5876bd23fbfaSmrg# define LT_DLSYM_CONST
5877bd23fbfaSmrg#else
5878bd23fbfaSmrg# define LT_DLSYM_CONST const
5879bd23fbfaSmrg#endif
58808c4a8e55Smrg
5881bd23fbfaSmrg#ifdef __cplusplus
5882bd23fbfaSmrgextern "C" {
5883bd23fbfaSmrg#endif
58848c4a8e55Smrg
5885bd23fbfaSmrg_LT_EOF
5886bd23fbfaSmrg	  # Now generate the symbol file.
5887bd23fbfaSmrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
58888c4a8e55Smrg
5889bd23fbfaSmrg	  cat <<_LT_EOF >> conftest.$ac_ext
58908c4a8e55Smrg
5891bd23fbfaSmrg/* The mapping between symbol names and symbols.  */
5892bd23fbfaSmrgLT_DLSYM_CONST struct {
5893bd23fbfaSmrg  const char *name;
5894bd23fbfaSmrg  void       *address;
5895bd23fbfaSmrg}
5896bd23fbfaSmrglt__PROGRAM__LTX_preloaded_symbols[] =
5897bd23fbfaSmrg{
5898bd23fbfaSmrg  { "@PROGRAM@", (void *) 0 },
5899bd23fbfaSmrg_LT_EOF
5900bd23fbfaSmrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5901bd23fbfaSmrg	  cat <<\_LT_EOF >> conftest.$ac_ext
5902bd23fbfaSmrg  {0, (void *) 0}
5903bd23fbfaSmrg};
59048c4a8e55Smrg
5905bd23fbfaSmrg/* This works around a problem in FreeBSD linker */
5906bd23fbfaSmrg#ifdef FREEBSD_WORKAROUND
5907bd23fbfaSmrgstatic const void *lt_preloaded_setup() {
5908bd23fbfaSmrg  return lt__PROGRAM__LTX_preloaded_symbols;
5909bd23fbfaSmrg}
5910bd23fbfaSmrg#endif
59118c4a8e55Smrg
5912bd23fbfaSmrg#ifdef __cplusplus
5913bd23fbfaSmrg}
5914bd23fbfaSmrg#endif
5915bd23fbfaSmrg_LT_EOF
5916bd23fbfaSmrg	  # Now try linking the two files.
5917bd23fbfaSmrg	  mv conftest.$ac_objext conftstm.$ac_objext
5918bd23fbfaSmrg	  lt_globsym_save_LIBS=$LIBS
5919bd23fbfaSmrg	  lt_globsym_save_CFLAGS=$CFLAGS
5920bd23fbfaSmrg	  LIBS="conftstm.$ac_objext"
5921bd23fbfaSmrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5922bd23fbfaSmrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5923bd23fbfaSmrg  (eval $ac_link) 2>&5
5924bd23fbfaSmrg  ac_status=$?
5925bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5926bd23fbfaSmrg  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5927bd23fbfaSmrg	    pipe_works=yes
5928bd23fbfaSmrg	  fi
5929bd23fbfaSmrg	  LIBS=$lt_globsym_save_LIBS
5930bd23fbfaSmrg	  CFLAGS=$lt_globsym_save_CFLAGS
5931bd23fbfaSmrg	else
5932bd23fbfaSmrg	  echo "cannot find nm_test_func in $nlist" >&5
5933bd23fbfaSmrg	fi
5934bd23fbfaSmrg      else
5935bd23fbfaSmrg	echo "cannot find nm_test_var in $nlist" >&5
5936bd23fbfaSmrg      fi
5937bd23fbfaSmrg    else
5938bd23fbfaSmrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5939bd23fbfaSmrg    fi
5940bd23fbfaSmrg  else
5941bd23fbfaSmrg    echo "$progname: failed program was:" >&5
5942bd23fbfaSmrg    cat conftest.$ac_ext >&5
5943bd23fbfaSmrg  fi
5944bd23fbfaSmrg  rm -rf conftest* conftst*
59458c4a8e55Smrg
5946bd23fbfaSmrg  # Do not use the global_symbol_pipe unless it works.
5947bd23fbfaSmrg  if test "$pipe_works" = yes; then
5948bd23fbfaSmrg    break
5949bd23fbfaSmrg  else
5950bd23fbfaSmrg    lt_cv_sys_global_symbol_pipe=
5951bd23fbfaSmrg  fi
5952bd23fbfaSmrgdone
59538c4a8e55Smrg
59548c4a8e55Smrgfi
59558c4a8e55Smrg
5956bd23fbfaSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
5957bd23fbfaSmrg  lt_cv_sys_global_symbol_to_cdecl=
5958b042e37fSmrgfi
5959bd23fbfaSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5960bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5961bd23fbfaSmrg$as_echo "failed" >&6; }
5962b042e37fSmrgelse
5963bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5964bd23fbfaSmrg$as_echo "ok" >&6; }
5965b042e37fSmrgfi
5966b042e37fSmrg
5967bd23fbfaSmrg# Response file support.
5968bd23fbfaSmrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then
5969bd23fbfaSmrg  nm_file_list_spec='@'
5970bd23fbfaSmrgelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5971bd23fbfaSmrg  nm_file_list_spec='@'
5972b042e37fSmrgfi
5973b042e37fSmrg
5974b042e37fSmrg
5975b042e37fSmrg
59768c4a8e55Smrg
59778c4a8e55Smrg
59788c4a8e55Smrg
59798c4a8e55Smrg
59808c4a8e55Smrg
59818c4a8e55Smrg
5982b042e37fSmrg
5983b042e37fSmrg
5984b042e37fSmrg
5985b042e37fSmrg
5986b042e37fSmrg
5987b042e37fSmrg
5988b042e37fSmrg
5989b042e37fSmrg
5990b042e37fSmrg
5991b042e37fSmrg
5992b042e37fSmrg
5993b042e37fSmrg
5994b042e37fSmrg
5995b042e37fSmrg
5996b042e37fSmrg
5997b042e37fSmrg
5998b042e37fSmrg
59998c4a8e55Smrg
6000bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6001bd23fbfaSmrg$as_echo_n "checking for sysroot... " >&6; }
60028c4a8e55Smrg
6003bd23fbfaSmrg# Check whether --with-sysroot was given.
6004bd23fbfaSmrgif test "${with_sysroot+set}" = set; then :
6005bd23fbfaSmrg  withval=$with_sysroot;
60068c4a8e55Smrgelse
6007bd23fbfaSmrg  with_sysroot=no
6008b042e37fSmrgfi
6009b042e37fSmrg
6010b042e37fSmrg
6011bd23fbfaSmrglt_sysroot=
6012bd23fbfaSmrgcase ${with_sysroot} in #(
6013bd23fbfaSmrg yes)
6014bd23fbfaSmrg   if test "$GCC" = yes; then
6015bd23fbfaSmrg     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6016bd23fbfaSmrg   fi
6017bd23fbfaSmrg   ;; #(
6018bd23fbfaSmrg /*)
6019bd23fbfaSmrg   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6020bd23fbfaSmrg   ;; #(
6021bd23fbfaSmrg no|'')
6022bd23fbfaSmrg   ;; #(
6023bd23fbfaSmrg *)
6024bd23fbfaSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6025bd23fbfaSmrg$as_echo "${with_sysroot}" >&6; }
6026bd23fbfaSmrg   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6027bd23fbfaSmrg   ;;
60288c4a8e55Smrgesac
6029b042e37fSmrg
6030bd23fbfaSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6031bd23fbfaSmrg$as_echo "${lt_sysroot:-no}" >&6; }
6032b042e37fSmrg
6033b042e37fSmrg
6034b042e37fSmrg
6035b042e37fSmrg
6036b042e37fSmrg
6037bd23fbfaSmrg# Check whether --enable-libtool-lock was given.
6038bd23fbfaSmrgif test "${enable_libtool_lock+set}" = set; then :
6039bd23fbfaSmrg  enableval=$enable_libtool_lock;
60408c4a8e55Smrgfi
6041b042e37fSmrg
6042bd23fbfaSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6043b042e37fSmrg
6044bd23fbfaSmrg# Some flags need to be propagated to the compiler or linker for good
6045bd23fbfaSmrg# libtool support.
6046bd23fbfaSmrgcase $host in
6047bd23fbfaSmrgia64-*-hpux*)
6048bd23fbfaSmrg  # Find out which ABI we are using.
6049bd23fbfaSmrg  echo 'int i;' > conftest.$ac_ext
6050bd23fbfaSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6051bd23fbfaSmrg  (eval $ac_compile) 2>&5
6052bd23fbfaSmrg  ac_status=$?
6053bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054bd23fbfaSmrg  test $ac_status = 0; }; then
6055bd23fbfaSmrg    case `/usr/bin/file conftest.$ac_objext` in
6056bd23fbfaSmrg      *ELF-32*)
6057bd23fbfaSmrg	HPUX_IA64_MODE="32"
6058bd23fbfaSmrg	;;
6059bd23fbfaSmrg      *ELF-64*)
6060bd23fbfaSmrg	HPUX_IA64_MODE="64"
6061bd23fbfaSmrg	;;
6062bd23fbfaSmrg    esac
6063bd23fbfaSmrg  fi
6064bd23fbfaSmrg  rm -rf conftest*
6065bd23fbfaSmrg  ;;
6066bd23fbfaSmrg*-*-irix6*)
6067bd23fbfaSmrg  # Find out which ABI we are using.
6068bd23fbfaSmrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6069bd23fbfaSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6070bd23fbfaSmrg  (eval $ac_compile) 2>&5
6071bd23fbfaSmrg  ac_status=$?
6072bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073bd23fbfaSmrg  test $ac_status = 0; }; then
6074bd23fbfaSmrg    if test "$lt_cv_prog_gnu_ld" = yes; then
6075bd23fbfaSmrg      case `/usr/bin/file conftest.$ac_objext` in
6076bd23fbfaSmrg	*32-bit*)
6077bd23fbfaSmrg	  LD="${LD-ld} -melf32bsmip"
6078bd23fbfaSmrg	  ;;
6079bd23fbfaSmrg	*N32*)
6080bd23fbfaSmrg	  LD="${LD-ld} -melf32bmipn32"
6081bd23fbfaSmrg	  ;;
6082bd23fbfaSmrg	*64-bit*)
6083bd23fbfaSmrg	  LD="${LD-ld} -melf64bmip"
6084bd23fbfaSmrg	;;
6085bd23fbfaSmrg      esac
6086bd23fbfaSmrg    else
6087bd23fbfaSmrg      case `/usr/bin/file conftest.$ac_objext` in
6088bd23fbfaSmrg	*32-bit*)
6089bd23fbfaSmrg	  LD="${LD-ld} -32"
6090bd23fbfaSmrg	  ;;
6091bd23fbfaSmrg	*N32*)
6092bd23fbfaSmrg	  LD="${LD-ld} -n32"
6093bd23fbfaSmrg	  ;;
6094bd23fbfaSmrg	*64-bit*)
6095bd23fbfaSmrg	  LD="${LD-ld} -64"
6096bd23fbfaSmrg	  ;;
6097bd23fbfaSmrg      esac
6098bd23fbfaSmrg    fi
6099bd23fbfaSmrg  fi
6100bd23fbfaSmrg  rm -rf conftest*
6101bd23fbfaSmrg  ;;
6102bd23fbfaSmrg
6103bd23fbfaSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6104bd23fbfaSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6105bd23fbfaSmrg  # Find out which ABI we are using.
6106bd23fbfaSmrg  echo 'int i;' > conftest.$ac_ext
6107bd23fbfaSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6108bd23fbfaSmrg  (eval $ac_compile) 2>&5
6109bd23fbfaSmrg  ac_status=$?
6110bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111bd23fbfaSmrg  test $ac_status = 0; }; then
6112bd23fbfaSmrg    case `/usr/bin/file conftest.o` in
6113bd23fbfaSmrg      *32-bit*)
6114bd23fbfaSmrg	case $host in
6115bd23fbfaSmrg	  x86_64-*kfreebsd*-gnu)
6116bd23fbfaSmrg	    LD="${LD-ld} -m elf_i386_fbsd"
6117bd23fbfaSmrg	    ;;
6118bd23fbfaSmrg	  x86_64-*linux*)
6119bd23fbfaSmrg	    LD="${LD-ld} -m elf_i386"
6120bd23fbfaSmrg	    ;;
6121bd23fbfaSmrg	  ppc64-*linux*|powerpc64-*linux*)
6122bd23fbfaSmrg	    LD="${LD-ld} -m elf32ppclinux"
6123bd23fbfaSmrg	    ;;
6124bd23fbfaSmrg	  s390x-*linux*)
6125bd23fbfaSmrg	    LD="${LD-ld} -m elf_s390"
6126bd23fbfaSmrg	    ;;
6127bd23fbfaSmrg	  sparc64-*linux*)
6128bd23fbfaSmrg	    LD="${LD-ld} -m elf32_sparc"
6129bd23fbfaSmrg	    ;;
6130bd23fbfaSmrg	esac
6131bd23fbfaSmrg	;;
6132bd23fbfaSmrg      *64-bit*)
6133bd23fbfaSmrg	case $host in
6134bd23fbfaSmrg	  x86_64-*kfreebsd*-gnu)
6135bd23fbfaSmrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
6136bd23fbfaSmrg	    ;;
6137bd23fbfaSmrg	  x86_64-*linux*)
6138bd23fbfaSmrg	    LD="${LD-ld} -m elf_x86_64"
6139bd23fbfaSmrg	    ;;
6140bd23fbfaSmrg	  ppc*-*linux*|powerpc*-*linux*)
6141bd23fbfaSmrg	    LD="${LD-ld} -m elf64ppc"
6142bd23fbfaSmrg	    ;;
6143bd23fbfaSmrg	  s390*-*linux*|s390*-*tpf*)
6144bd23fbfaSmrg	    LD="${LD-ld} -m elf64_s390"
6145bd23fbfaSmrg	    ;;
6146bd23fbfaSmrg	  sparc*-*linux*)
6147bd23fbfaSmrg	    LD="${LD-ld} -m elf64_sparc"
6148bd23fbfaSmrg	    ;;
6149bd23fbfaSmrg	esac
6150bd23fbfaSmrg	;;
6151bd23fbfaSmrg    esac
6152bd23fbfaSmrg  fi
6153bd23fbfaSmrg  rm -rf conftest*
6154bd23fbfaSmrg  ;;
6155bd23fbfaSmrg
6156bd23fbfaSmrg*-*-sco3.2v5*)
6157bd23fbfaSmrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6158bd23fbfaSmrg  SAVE_CFLAGS="$CFLAGS"
6159bd23fbfaSmrg  CFLAGS="$CFLAGS -belf"
6160bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6161bd23fbfaSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6162bd23fbfaSmrgif ${lt_cv_cc_needs_belf+:} false; then :
61638c4a8e55Smrg  $as_echo_n "(cached) " >&6
61648c4a8e55Smrgelse
6165bd23fbfaSmrg  ac_ext=c
6166bd23fbfaSmrgac_cpp='$CPP $CPPFLAGS'
6167bd23fbfaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168bd23fbfaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169bd23fbfaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
6170bd23fbfaSmrg
6171bd23fbfaSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172bd23fbfaSmrg/* end confdefs.h.  */
6173bd23fbfaSmrg
6174bd23fbfaSmrgint
6175bd23fbfaSmrgmain ()
6176bd23fbfaSmrg{
6177bd23fbfaSmrg
6178bd23fbfaSmrg  ;
6179bd23fbfaSmrg  return 0;
6180bd23fbfaSmrg}
6181bd23fbfaSmrg_ACEOF
6182bd23fbfaSmrgif ac_fn_c_try_link "$LINENO"; then :
6183bd23fbfaSmrg  lt_cv_cc_needs_belf=yes
6184bd23fbfaSmrgelse
6185bd23fbfaSmrg  lt_cv_cc_needs_belf=no
6186bd23fbfaSmrgfi
6187bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext \
6188bd23fbfaSmrg    conftest$ac_exeext conftest.$ac_ext
6189bd23fbfaSmrg     ac_ext=c
6190bd23fbfaSmrgac_cpp='$CPP $CPPFLAGS'
6191bd23fbfaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192bd23fbfaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193bd23fbfaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
6194bd23fbfaSmrg
6195bd23fbfaSmrgfi
6196bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6197bd23fbfaSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
6198bd23fbfaSmrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6199bd23fbfaSmrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6200bd23fbfaSmrg    CFLAGS="$SAVE_CFLAGS"
6201bd23fbfaSmrg  fi
6202bd23fbfaSmrg  ;;
6203bd23fbfaSmrgsparc*-*solaris*)
6204bd23fbfaSmrg  # Find out which ABI we are using.
6205bd23fbfaSmrg  echo 'int i;' > conftest.$ac_ext
6206bd23fbfaSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6207bd23fbfaSmrg  (eval $ac_compile) 2>&5
6208bd23fbfaSmrg  ac_status=$?
6209bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210bd23fbfaSmrg  test $ac_status = 0; }; then
6211bd23fbfaSmrg    case `/usr/bin/file conftest.o` in
6212bd23fbfaSmrg    *64-bit*)
6213bd23fbfaSmrg      case $lt_cv_prog_gnu_ld in
6214bd23fbfaSmrg      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6215bd23fbfaSmrg      *)
6216bd23fbfaSmrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6217bd23fbfaSmrg	  LD="${LD-ld} -64"
6218bd23fbfaSmrg	fi
6219bd23fbfaSmrg	;;
6220bd23fbfaSmrg      esac
6221bd23fbfaSmrg      ;;
6222bd23fbfaSmrg    esac
6223bd23fbfaSmrg  fi
6224bd23fbfaSmrg  rm -rf conftest*
6225bd23fbfaSmrg  ;;
6226bd23fbfaSmrgesac
6227bd23fbfaSmrg
6228bd23fbfaSmrgneed_locks="$enable_libtool_lock"
6229bd23fbfaSmrg
6230bd23fbfaSmrgif test -n "$ac_tool_prefix"; then
6231bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6232bd23fbfaSmrgset dummy ${ac_tool_prefix}mt; ac_word=$2
6233bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
6235bd23fbfaSmrgif ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6236bd23fbfaSmrg  $as_echo_n "(cached) " >&6
6237bd23fbfaSmrgelse
6238bd23fbfaSmrg  if test -n "$MANIFEST_TOOL"; then
6239bd23fbfaSmrg  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
62408c4a8e55Smrgelse
62418c4a8e55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62428c4a8e55Smrgfor as_dir in $PATH
62438c4a8e55Smrgdo
62448c4a8e55Smrg  IFS=$as_save_IFS
62458c4a8e55Smrg  test -z "$as_dir" && as_dir=.
6246706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
62478c4a8e55Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248bd23fbfaSmrg    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6249706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
62508c4a8e55Smrg    break 2
62518c4a8e55Smrg  fi
6252b042e37fSmrgdone
6253706b6b52Smrg  done
62548c4a8e55SmrgIFS=$as_save_IFS
62558c4a8e55Smrg
62568c4a8e55Smrgfi
62578c4a8e55Smrgfi
6258bd23fbfaSmrgMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6259bd23fbfaSmrgif test -n "$MANIFEST_TOOL"; then
6260bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6261bd23fbfaSmrg$as_echo "$MANIFEST_TOOL" >&6; }
62628c4a8e55Smrgelse
6263706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62648c4a8e55Smrg$as_echo "no" >&6; }
6265b042e37fSmrgfi
6266b042e37fSmrg
6267b042e37fSmrg
6268b042e37fSmrgfi
6269bd23fbfaSmrgif test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6270bd23fbfaSmrg  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6271bd23fbfaSmrg  # Extract the first word of "mt", so it can be a program name with args.
6272bd23fbfaSmrgset dummy mt; ac_word=$2
6273706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
62748c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
6275bd23fbfaSmrgif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
62768c4a8e55Smrg  $as_echo_n "(cached) " >&6
6277b042e37fSmrgelse
6278bd23fbfaSmrg  if test -n "$ac_ct_MANIFEST_TOOL"; then
6279bd23fbfaSmrg  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6280b042e37fSmrgelse
62818c4a8e55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62828c4a8e55Smrgfor as_dir in $PATH
62838c4a8e55Smrgdo
62848c4a8e55Smrg  IFS=$as_save_IFS
62858c4a8e55Smrg  test -z "$as_dir" && as_dir=.
6286706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
62878c4a8e55Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288bd23fbfaSmrg    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6289706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
62908c4a8e55Smrg    break 2
62918c4a8e55Smrg  fi
62928c4a8e55Smrgdone
6293706b6b52Smrg  done
62948c4a8e55SmrgIFS=$as_save_IFS
6295b042e37fSmrg
62968c4a8e55Smrgfi
62978c4a8e55Smrgfi
6298bd23fbfaSmrgac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6299bd23fbfaSmrgif test -n "$ac_ct_MANIFEST_TOOL"; then
6300bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6301bd23fbfaSmrg$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
63028c4a8e55Smrgelse
6303706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63048c4a8e55Smrg$as_echo "no" >&6; }
6305b042e37fSmrgfi
6306b042e37fSmrg
6307bd23fbfaSmrg  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6308bd23fbfaSmrg    MANIFEST_TOOL=":"
63098c4a8e55Smrg  else
63108c4a8e55Smrg    case $cross_compiling:$ac_tool_warned in
63118c4a8e55Smrgyes:)
6312706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
63138c4a8e55Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
63148c4a8e55Smrgac_tool_warned=yes ;;
6315b042e37fSmrgesac
6316bd23fbfaSmrg    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
63178c4a8e55Smrg  fi
6318b042e37fSmrgelse
6319bd23fbfaSmrg  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6320b042e37fSmrgfi
6321b042e37fSmrg
6322bd23fbfaSmrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6323bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6324bd23fbfaSmrg$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6325bd23fbfaSmrgif ${lt_cv_path_mainfest_tool+:} false; then :
6326bd23fbfaSmrg  $as_echo_n "(cached) " >&6
6327bd23fbfaSmrgelse
6328bd23fbfaSmrg  lt_cv_path_mainfest_tool=no
6329bd23fbfaSmrg  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6330bd23fbfaSmrg  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6331bd23fbfaSmrg  cat conftest.err >&5
6332bd23fbfaSmrg  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6333bd23fbfaSmrg    lt_cv_path_mainfest_tool=yes
6334bd23fbfaSmrg  fi
6335bd23fbfaSmrg  rm -f conftest*
6336bd23fbfaSmrgfi
6337bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6338bd23fbfaSmrg$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6339bd23fbfaSmrgif test "x$lt_cv_path_mainfest_tool" != xyes; then
6340bd23fbfaSmrg  MANIFEST_TOOL=:
6341bd23fbfaSmrgfi
6342b042e37fSmrg
6343b042e37fSmrg
6344b042e37fSmrg
6345b042e37fSmrg
6346b042e37fSmrg
6347b042e37fSmrg
6348bd23fbfaSmrg  case $host_os in
6349bd23fbfaSmrg    rhapsody* | darwin*)
6350bd23fbfaSmrg    if test -n "$ac_tool_prefix"; then
6351bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6352bd23fbfaSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6353bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
6355bd23fbfaSmrgif ${ac_cv_prog_DSYMUTIL+:} false; then :
63568c4a8e55Smrg  $as_echo_n "(cached) " >&6
6357b042e37fSmrgelse
6358bd23fbfaSmrg  if test -n "$DSYMUTIL"; then
6359bd23fbfaSmrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6360b042e37fSmrgelse
6361b042e37fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362b042e37fSmrgfor as_dir in $PATH
6363b042e37fSmrgdo
6364b042e37fSmrg  IFS=$as_save_IFS
6365b042e37fSmrg  test -z "$as_dir" && as_dir=.
6366706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6367b042e37fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368bd23fbfaSmrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6369706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370b042e37fSmrg    break 2
6371b042e37fSmrg  fi
6372b042e37fSmrgdone
6373706b6b52Smrg  done
6374b042e37fSmrgIFS=$as_save_IFS
6375b042e37fSmrg
6376b042e37fSmrgfi
6377b042e37fSmrgfi
6378bd23fbfaSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
6379bd23fbfaSmrgif test -n "$DSYMUTIL"; then
6380bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6381bd23fbfaSmrg$as_echo "$DSYMUTIL" >&6; }
6382b042e37fSmrgelse
6383706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63848c4a8e55Smrg$as_echo "no" >&6; }
6385b042e37fSmrgfi
6386b042e37fSmrg
6387b042e37fSmrg
6388b042e37fSmrgfi
6389bd23fbfaSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then
6390bd23fbfaSmrg  ac_ct_DSYMUTIL=$DSYMUTIL
6391bd23fbfaSmrg  # Extract the first word of "dsymutil", so it can be a program name with args.
6392bd23fbfaSmrgset dummy dsymutil; ac_word=$2
6393706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63948c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
6395bd23fbfaSmrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
63968c4a8e55Smrg  $as_echo_n "(cached) " >&6
6397b042e37fSmrgelse
6398bd23fbfaSmrg  if test -n "$ac_ct_DSYMUTIL"; then
6399bd23fbfaSmrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6400b042e37fSmrgelse
6401b042e37fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402b042e37fSmrgfor as_dir in $PATH
6403b042e37fSmrgdo
6404b042e37fSmrg  IFS=$as_save_IFS
6405b042e37fSmrg  test -z "$as_dir" && as_dir=.
6406706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6407b042e37fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408bd23fbfaSmrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6409706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410b042e37fSmrg    break 2
6411b042e37fSmrg  fi
6412b042e37fSmrgdone
6413706b6b52Smrg  done
6414b042e37fSmrgIFS=$as_save_IFS
6415b042e37fSmrg
6416b042e37fSmrgfi
6417b042e37fSmrgfi
6418bd23fbfaSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6419bd23fbfaSmrgif test -n "$ac_ct_DSYMUTIL"; then
6420bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6421bd23fbfaSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
6422b042e37fSmrgelse
6423706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64248c4a8e55Smrg$as_echo "no" >&6; }
6425b042e37fSmrgfi
6426b042e37fSmrg
6427bd23fbfaSmrg  if test "x$ac_ct_DSYMUTIL" = x; then
6428bd23fbfaSmrg    DSYMUTIL=":"
6429b042e37fSmrg  else
6430b042e37fSmrg    case $cross_compiling:$ac_tool_warned in
6431b042e37fSmrgyes:)
6432706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
64338c4a8e55Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434b042e37fSmrgac_tool_warned=yes ;;
6435b042e37fSmrgesac
6436bd23fbfaSmrg    DSYMUTIL=$ac_ct_DSYMUTIL
6437b042e37fSmrg  fi
64388c4a8e55Smrgelse
6439bd23fbfaSmrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6440b042e37fSmrgfi
6441b042e37fSmrg
6442bd23fbfaSmrg    if test -n "$ac_tool_prefix"; then
6443bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6444bd23fbfaSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
6445706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64468c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
6447bd23fbfaSmrgif ${ac_cv_prog_NMEDIT+:} false; then :
64488c4a8e55Smrg  $as_echo_n "(cached) " >&6
64498c4a8e55Smrgelse
6450bd23fbfaSmrg  if test -n "$NMEDIT"; then
6451bd23fbfaSmrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
64528c4a8e55Smrgelse
64538c4a8e55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64548c4a8e55Smrgfor as_dir in $PATH
64558c4a8e55Smrgdo
64568c4a8e55Smrg  IFS=$as_save_IFS
64578c4a8e55Smrg  test -z "$as_dir" && as_dir=.
6458706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
64598c4a8e55Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460bd23fbfaSmrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6461706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
64628c4a8e55Smrg    break 2
64638c4a8e55Smrg  fi
64648c4a8e55Smrgdone
6465706b6b52Smrg  done
64668c4a8e55SmrgIFS=$as_save_IFS
6467b042e37fSmrg
64688c4a8e55Smrgfi
64698c4a8e55Smrgfi
6470bd23fbfaSmrgNMEDIT=$ac_cv_prog_NMEDIT
6471bd23fbfaSmrgif test -n "$NMEDIT"; then
6472bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6473bd23fbfaSmrg$as_echo "$NMEDIT" >&6; }
6474b042e37fSmrgelse
6475706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64768c4a8e55Smrg$as_echo "no" >&6; }
64778c4a8e55Smrgfi
6478b042e37fSmrg
6479b042e37fSmrg
6480b042e37fSmrgfi
6481bd23fbfaSmrgif test -z "$ac_cv_prog_NMEDIT"; then
6482bd23fbfaSmrg  ac_ct_NMEDIT=$NMEDIT
6483bd23fbfaSmrg  # Extract the first word of "nmedit", so it can be a program name with args.
6484bd23fbfaSmrgset dummy nmedit; ac_word=$2
6485706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64868c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
6487bd23fbfaSmrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
64888c4a8e55Smrg  $as_echo_n "(cached) " >&6
64898c4a8e55Smrgelse
6490bd23fbfaSmrg  if test -n "$ac_ct_NMEDIT"; then
6491bd23fbfaSmrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
64928c4a8e55Smrgelse
64938c4a8e55Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64948c4a8e55Smrgfor as_dir in $PATH
64958c4a8e55Smrgdo
64968c4a8e55Smrg  IFS=$as_save_IFS
64978c4a8e55Smrg  test -z "$as_dir" && as_dir=.
6498706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
64998c4a8e55Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500bd23fbfaSmrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6501706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
65028c4a8e55Smrg    break 2
65038c4a8e55Smrg  fi
65048c4a8e55Smrgdone
6505706b6b52Smrg  done
65068c4a8e55SmrgIFS=$as_save_IFS
6507b042e37fSmrg
6508b042e37fSmrgfi
65098c4a8e55Smrgfi
6510bd23fbfaSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6511bd23fbfaSmrgif test -n "$ac_ct_NMEDIT"; then
6512bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6513bd23fbfaSmrg$as_echo "$ac_ct_NMEDIT" >&6; }
65148c4a8e55Smrgelse
6515706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65168c4a8e55Smrg$as_echo "no" >&6; }
6517b042e37fSmrgfi
6518b042e37fSmrg
6519bd23fbfaSmrg  if test "x$ac_ct_NMEDIT" = x; then
6520bd23fbfaSmrg    NMEDIT=":"
6521b042e37fSmrg  else
65228c4a8e55Smrg    case $cross_compiling:$ac_tool_warned in
65238c4a8e55Smrgyes:)
6524706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
65258c4a8e55Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
65268c4a8e55Smrgac_tool_warned=yes ;;
65278c4a8e55Smrgesac
6528bd23fbfaSmrg    NMEDIT=$ac_ct_NMEDIT
6529b042e37fSmrg  fi
6530b042e37fSmrgelse
6531bd23fbfaSmrg  NMEDIT="$ac_cv_prog_NMEDIT"
6532b042e37fSmrgfi
6533b042e37fSmrg
6534bd23fbfaSmrg    if test -n "$ac_tool_prefix"; then
6535bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6536bd23fbfaSmrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
6537706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
65388c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
6539bd23fbfaSmrgif ${ac_cv_prog_LIPO+:} false; then :
65408c4a8e55Smrg  $as_echo_n "(cached) " >&6
6541b042e37fSmrgelse
6542bd23fbfaSmrg  if test -n "$LIPO"; then
6543bd23fbfaSmrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6544b042e37fSmrgelse
6545b042e37fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546b042e37fSmrgfor as_dir in $PATH
6547b042e37fSmrgdo
6548b042e37fSmrg  IFS=$as_save_IFS
6549b042e37fSmrg  test -z "$as_dir" && as_dir=.
6550706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6551b042e37fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552bd23fbfaSmrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6553706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554b042e37fSmrg    break 2
6555b042e37fSmrg  fi
6556b042e37fSmrgdone
6557706b6b52Smrg  done
6558b042e37fSmrgIFS=$as_save_IFS
6559b042e37fSmrg
6560b042e37fSmrgfi
6561b042e37fSmrgfi
6562bd23fbfaSmrgLIPO=$ac_cv_prog_LIPO
6563bd23fbfaSmrgif test -n "$LIPO"; then
6564bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6565bd23fbfaSmrg$as_echo "$LIPO" >&6; }
6566b042e37fSmrgelse
6567706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65688c4a8e55Smrg$as_echo "no" >&6; }
6569b042e37fSmrgfi
6570b042e37fSmrg
6571b042e37fSmrg
6572b042e37fSmrgfi
6573bd23fbfaSmrgif test -z "$ac_cv_prog_LIPO"; then
6574bd23fbfaSmrg  ac_ct_LIPO=$LIPO
6575bd23fbfaSmrg  # Extract the first word of "lipo", so it can be a program name with args.
6576bd23fbfaSmrgset dummy lipo; ac_word=$2
6577706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
65788c4a8e55Smrg$as_echo_n "checking for $ac_word... " >&6; }
6579bd23fbfaSmrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
65808c4a8e55Smrg  $as_echo_n "(cached) " >&6
6581b042e37fSmrgelse
6582bd23fbfaSmrg  if test -n "$ac_ct_LIPO"; then
6583bd23fbfaSmrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6584b042e37fSmrgelse
6585b042e37fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586b042e37fSmrgfor as_dir in $PATH
6587b042e37fSmrgdo
6588b042e37fSmrg  IFS=$as_save_IFS
6589b042e37fSmrg  test -z "$as_dir" && as_dir=.
6590706b6b52Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6591b042e37fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592bd23fbfaSmrg    ac_cv_prog_ac_ct_LIPO="lipo"
6593706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594b042e37fSmrg    break 2
6595b042e37fSmrg  fi
6596b042e37fSmrgdone
6597706b6b52Smrg  done
6598b042e37fSmrgIFS=$as_save_IFS
6599b042e37fSmrg
6600b042e37fSmrgfi
6601b042e37fSmrgfi
6602bd23fbfaSmrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6603bd23fbfaSmrgif test -n "$ac_ct_LIPO"; then
6604bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6605bd23fbfaSmrg$as_echo "$ac_ct_LIPO" >&6; }
6606b042e37fSmrgelse
6607706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66088c4a8e55Smrg$as_echo "no" >&6; }
6609b042e37fSmrgfi
6610b042e37fSmrg
6611bd23fbfaSmrg  if test "x$ac_ct_LIPO" = x; then
6612bd23fbfaSmrg    LIPO=":"
6613b042e37fSmrg  else
6614b042e37fSmrg    case $cross_compiling:$ac_tool_warned in
6615b042e37fSmrgyes:)
6616706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
66178c4a8e55Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618b042e37fSmrgac_tool_warned=yes ;;
6619b042e37fSmrgesac
6620bd23fbfaSmrg    LIPO=$ac_ct_LIPO
6621b042e37fSmrg  fi
66228c4a8e55Smrgelse
6623bd23fbfaSmrg  LIPO="$ac_cv_prog_LIPO"
6624b042e37fSmrgfi
6625b042e37fSmrg
6626bd23fbfaSmrg    if test -n "$ac_tool_prefix"; then
6627bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6628bd23fbfaSmrgset dummy ${ac_tool_prefix}otool; ac_word=$2
6629bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
6631bd23fbfaSmrgif ${ac_cv_prog_OTOOL+:} false; then :
6632bd23fbfaSmrg  $as_echo_n "(cached) " >&6
6633bd23fbfaSmrgelse
6634bd23fbfaSmrg  if test -n "$OTOOL"; then
6635bd23fbfaSmrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6636bd23fbfaSmrgelse
6637bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638bd23fbfaSmrgfor as_dir in $PATH
6639bd23fbfaSmrgdo
6640bd23fbfaSmrg  IFS=$as_save_IFS
6641bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
6642bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6643bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644bd23fbfaSmrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6645bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646bd23fbfaSmrg    break 2
6647bd23fbfaSmrg  fi
6648bd23fbfaSmrgdone
6649bd23fbfaSmrg  done
6650bd23fbfaSmrgIFS=$as_save_IFS
6651b042e37fSmrg
6652bd23fbfaSmrgfi
6653bd23fbfaSmrgfi
6654bd23fbfaSmrgOTOOL=$ac_cv_prog_OTOOL
6655bd23fbfaSmrgif test -n "$OTOOL"; then
6656bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6657bd23fbfaSmrg$as_echo "$OTOOL" >&6; }
6658bd23fbfaSmrgelse
6659bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660bd23fbfaSmrg$as_echo "no" >&6; }
6661bd23fbfaSmrgfi
6662b042e37fSmrg
6663b042e37fSmrg
6664bd23fbfaSmrgfi
6665bd23fbfaSmrgif test -z "$ac_cv_prog_OTOOL"; then
6666bd23fbfaSmrg  ac_ct_OTOOL=$OTOOL
6667bd23fbfaSmrg  # Extract the first word of "otool", so it can be a program name with args.
6668bd23fbfaSmrgset dummy otool; ac_word=$2
6669bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
6671bd23fbfaSmrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6672bd23fbfaSmrg  $as_echo_n "(cached) " >&6
6673bd23fbfaSmrgelse
6674bd23fbfaSmrg  if test -n "$ac_ct_OTOOL"; then
6675bd23fbfaSmrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6676bd23fbfaSmrgelse
6677bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678bd23fbfaSmrgfor as_dir in $PATH
6679bd23fbfaSmrgdo
6680bd23fbfaSmrg  IFS=$as_save_IFS
6681bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
6682bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6683bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684bd23fbfaSmrg    ac_cv_prog_ac_ct_OTOOL="otool"
6685bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686bd23fbfaSmrg    break 2
6687bd23fbfaSmrg  fi
6688bd23fbfaSmrgdone
6689bd23fbfaSmrg  done
6690bd23fbfaSmrgIFS=$as_save_IFS
66918c4a8e55Smrg
6692bd23fbfaSmrgfi
6693bd23fbfaSmrgfi
6694bd23fbfaSmrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6695bd23fbfaSmrgif test -n "$ac_ct_OTOOL"; then
6696bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6697bd23fbfaSmrg$as_echo "$ac_ct_OTOOL" >&6; }
6698bd23fbfaSmrgelse
6699bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700bd23fbfaSmrg$as_echo "no" >&6; }
6701b042e37fSmrgfi
6702b042e37fSmrg
6703bd23fbfaSmrg  if test "x$ac_ct_OTOOL" = x; then
6704bd23fbfaSmrg    OTOOL=":"
6705bd23fbfaSmrg  else
6706bd23fbfaSmrg    case $cross_compiling:$ac_tool_warned in
6707bd23fbfaSmrgyes:)
6708bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709bd23fbfaSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710bd23fbfaSmrgac_tool_warned=yes ;;
6711706b6b52Smrgesac
6712bd23fbfaSmrg    OTOOL=$ac_ct_OTOOL
6713bd23fbfaSmrg  fi
6714bd23fbfaSmrgelse
6715bd23fbfaSmrg  OTOOL="$ac_cv_prog_OTOOL"
6716bd23fbfaSmrgfi
6717706b6b52Smrg
6718bd23fbfaSmrg    if test -n "$ac_tool_prefix"; then
6719bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6720bd23fbfaSmrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
6721bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
6723bd23fbfaSmrgif ${ac_cv_prog_OTOOL64+:} false; then :
6724bd23fbfaSmrg  $as_echo_n "(cached) " >&6
6725bd23fbfaSmrgelse
6726bd23fbfaSmrg  if test -n "$OTOOL64"; then
6727bd23fbfaSmrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6728bd23fbfaSmrgelse
6729bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730bd23fbfaSmrgfor as_dir in $PATH
6731bd23fbfaSmrgdo
6732bd23fbfaSmrg  IFS=$as_save_IFS
6733bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
6734bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6735bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736bd23fbfaSmrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6737bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738bd23fbfaSmrg    break 2
6739bd23fbfaSmrg  fi
6740bd23fbfaSmrgdone
6741bd23fbfaSmrg  done
6742bd23fbfaSmrgIFS=$as_save_IFS
6743706b6b52Smrg
6744bd23fbfaSmrgfi
6745bd23fbfaSmrgfi
6746bd23fbfaSmrgOTOOL64=$ac_cv_prog_OTOOL64
6747bd23fbfaSmrgif test -n "$OTOOL64"; then
6748bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6749bd23fbfaSmrg$as_echo "$OTOOL64" >&6; }
6750bd23fbfaSmrgelse
6751bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752bd23fbfaSmrg$as_echo "no" >&6; }
6753bd23fbfaSmrgfi
6754706b6b52Smrg
6755706b6b52Smrg
6756bd23fbfaSmrgfi
6757bd23fbfaSmrgif test -z "$ac_cv_prog_OTOOL64"; then
6758bd23fbfaSmrg  ac_ct_OTOOL64=$OTOOL64
6759bd23fbfaSmrg  # Extract the first word of "otool64", so it can be a program name with args.
6760bd23fbfaSmrgset dummy otool64; ac_word=$2
6761bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
6763bd23fbfaSmrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6764bd23fbfaSmrg  $as_echo_n "(cached) " >&6
6765bd23fbfaSmrgelse
6766bd23fbfaSmrg  if test -n "$ac_ct_OTOOL64"; then
6767bd23fbfaSmrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6768bd23fbfaSmrgelse
6769bd23fbfaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770bd23fbfaSmrgfor as_dir in $PATH
6771bd23fbfaSmrgdo
6772bd23fbfaSmrg  IFS=$as_save_IFS
6773bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
6774bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6775bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776bd23fbfaSmrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
6777bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778bd23fbfaSmrg    break 2
6779bd23fbfaSmrg  fi
6780bd23fbfaSmrgdone
6781bd23fbfaSmrg  done
6782bd23fbfaSmrgIFS=$as_save_IFS
6783706b6b52Smrg
6784bd23fbfaSmrgfi
6785bd23fbfaSmrgfi
6786bd23fbfaSmrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6787bd23fbfaSmrgif test -n "$ac_ct_OTOOL64"; then
6788bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6789bd23fbfaSmrg$as_echo "$ac_ct_OTOOL64" >&6; }
6790bd23fbfaSmrgelse
6791bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792bd23fbfaSmrg$as_echo "no" >&6; }
6793bd23fbfaSmrgfi
6794706b6b52Smrg
6795bd23fbfaSmrg  if test "x$ac_ct_OTOOL64" = x; then
6796bd23fbfaSmrg    OTOOL64=":"
6797bd23fbfaSmrg  else
6798bd23fbfaSmrg    case $cross_compiling:$ac_tool_warned in
6799bd23fbfaSmrgyes:)
6800bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801bd23fbfaSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802bd23fbfaSmrgac_tool_warned=yes ;;
6803bd23fbfaSmrgesac
6804bd23fbfaSmrg    OTOOL64=$ac_ct_OTOOL64
6805bd23fbfaSmrg  fi
6806bd23fbfaSmrgelse
6807bd23fbfaSmrg  OTOOL64="$ac_cv_prog_OTOOL64"
6808bd23fbfaSmrgfi
6809b042e37fSmrg
6810b042e37fSmrg
6811b042e37fSmrg
6812b042e37fSmrg
6813b042e37fSmrg
6814b042e37fSmrg
6815b042e37fSmrg
6816b042e37fSmrg
6817b042e37fSmrg
6818b042e37fSmrg
6819b042e37fSmrg
6820b042e37fSmrg
6821b042e37fSmrg
6822b042e37fSmrg
6823b042e37fSmrg
6824b042e37fSmrg
6825b042e37fSmrg
6826b042e37fSmrg
6827b042e37fSmrg
68288c4a8e55Smrg
68298c4a8e55Smrg
68308c4a8e55Smrg
68318c4a8e55Smrg
68328c4a8e55Smrg
68338c4a8e55Smrg
68348c4a8e55Smrg
68358c4a8e55Smrg
6836bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6837bd23fbfaSmrg$as_echo_n "checking for -single_module linker flag... " >&6; }
6838bd23fbfaSmrgif ${lt_cv_apple_cc_single_mod+:} false; then :
6839bd23fbfaSmrg  $as_echo_n "(cached) " >&6
6840bd23fbfaSmrgelse
6841bd23fbfaSmrg  lt_cv_apple_cc_single_mod=no
6842bd23fbfaSmrg      if test -z "${LT_MULTI_MODULE}"; then
6843bd23fbfaSmrg	# By default we will add the -single_module flag. You can override
6844bd23fbfaSmrg	# by either setting the environment variable LT_MULTI_MODULE
6845bd23fbfaSmrg	# non-empty at configure time, or by adding -multi_module to the
6846bd23fbfaSmrg	# link flags.
6847bd23fbfaSmrg	rm -rf libconftest.dylib*
6848bd23fbfaSmrg	echo "int foo(void){return 1;}" > conftest.c
6849bd23fbfaSmrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6850bd23fbfaSmrg-dynamiclib -Wl,-single_module conftest.c" >&5
6851bd23fbfaSmrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6852bd23fbfaSmrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6853bd23fbfaSmrg        _lt_result=$?
6854bd23fbfaSmrg	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6855bd23fbfaSmrg	  lt_cv_apple_cc_single_mod=yes
6856bd23fbfaSmrg	else
6857bd23fbfaSmrg	  cat conftest.err >&5
6858bd23fbfaSmrg	fi
6859bd23fbfaSmrg	rm -rf libconftest.dylib*
6860bd23fbfaSmrg	rm -f conftest.*
6861bd23fbfaSmrg      fi
6862bd23fbfaSmrgfi
6863bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6864bd23fbfaSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6865bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6866bd23fbfaSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6867bd23fbfaSmrgif ${lt_cv_ld_exported_symbols_list+:} false; then :
6868bd23fbfaSmrg  $as_echo_n "(cached) " >&6
6869bd23fbfaSmrgelse
6870bd23fbfaSmrg  lt_cv_ld_exported_symbols_list=no
6871bd23fbfaSmrg      save_LDFLAGS=$LDFLAGS
6872bd23fbfaSmrg      echo "_main" > conftest.sym
6873bd23fbfaSmrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6874bd23fbfaSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875bd23fbfaSmrg/* end confdefs.h.  */
68768c4a8e55Smrg
6877bd23fbfaSmrgint
6878bd23fbfaSmrgmain ()
6879bd23fbfaSmrg{
68808c4a8e55Smrg
6881bd23fbfaSmrg  ;
6882bd23fbfaSmrg  return 0;
6883bd23fbfaSmrg}
6884bd23fbfaSmrg_ACEOF
6885bd23fbfaSmrgif ac_fn_c_try_link "$LINENO"; then :
6886bd23fbfaSmrg  lt_cv_ld_exported_symbols_list=yes
6887bd23fbfaSmrgelse
6888bd23fbfaSmrg  lt_cv_ld_exported_symbols_list=no
6889bd23fbfaSmrgfi
6890bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext \
6891bd23fbfaSmrg    conftest$ac_exeext conftest.$ac_ext
6892bd23fbfaSmrg	LDFLAGS="$save_LDFLAGS"
6893bd23fbfaSmrg
6894bd23fbfaSmrgfi
6895bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6896bd23fbfaSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6897bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6898bd23fbfaSmrg$as_echo_n "checking for -force_load linker flag... " >&6; }
6899bd23fbfaSmrgif ${lt_cv_ld_force_load+:} false; then :
6900bd23fbfaSmrg  $as_echo_n "(cached) " >&6
6901bd23fbfaSmrgelse
6902bd23fbfaSmrg  lt_cv_ld_force_load=no
6903bd23fbfaSmrg      cat > conftest.c << _LT_EOF
6904bd23fbfaSmrgint forced_loaded() { return 2;}
6905bd23fbfaSmrg_LT_EOF
6906bd23fbfaSmrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6907bd23fbfaSmrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6908bd23fbfaSmrg      echo "$AR cru libconftest.a conftest.o" >&5
6909bd23fbfaSmrg      $AR cru libconftest.a conftest.o 2>&5
6910bd23fbfaSmrg      echo "$RANLIB libconftest.a" >&5
6911bd23fbfaSmrg      $RANLIB libconftest.a 2>&5
6912bd23fbfaSmrg      cat > conftest.c << _LT_EOF
6913bd23fbfaSmrgint main() { return 0;}
6914bd23fbfaSmrg_LT_EOF
6915bd23fbfaSmrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6916bd23fbfaSmrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6917bd23fbfaSmrg      _lt_result=$?
6918bd23fbfaSmrg      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6919bd23fbfaSmrg	lt_cv_ld_force_load=yes
6920bd23fbfaSmrg      else
6921bd23fbfaSmrg	cat conftest.err >&5
6922bd23fbfaSmrg      fi
6923bd23fbfaSmrg        rm -f conftest.err libconftest.a conftest conftest.c
6924bd23fbfaSmrg        rm -rf conftest.dSYM
69258c4a8e55Smrg
6926bd23fbfaSmrgfi
6927bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6928bd23fbfaSmrg$as_echo "$lt_cv_ld_force_load" >&6; }
6929bd23fbfaSmrg    case $host_os in
6930bd23fbfaSmrg    rhapsody* | darwin1.[012])
6931bd23fbfaSmrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6932bd23fbfaSmrg    darwin1.*)
6933bd23fbfaSmrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6934bd23fbfaSmrg    darwin*) # darwin 5.x on
6935bd23fbfaSmrg      # if running on 10.5 or later, the deployment target defaults
6936bd23fbfaSmrg      # to the OS version, if on x86, and 10.4, the deployment
6937bd23fbfaSmrg      # target defaults to 10.4. Don't you love it?
6938bd23fbfaSmrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6939bd23fbfaSmrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6940bd23fbfaSmrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6941bd23fbfaSmrg	10.[012]*)
6942bd23fbfaSmrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6943bd23fbfaSmrg	10.*)
6944bd23fbfaSmrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6945bd23fbfaSmrg      esac
6946bd23fbfaSmrg    ;;
6947bd23fbfaSmrg  esac
6948bd23fbfaSmrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6949bd23fbfaSmrg      _lt_dar_single_mod='$single_module'
6950bd23fbfaSmrg    fi
6951bd23fbfaSmrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6952bd23fbfaSmrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6953bd23fbfaSmrg    else
6954bd23fbfaSmrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6955bd23fbfaSmrg    fi
6956bd23fbfaSmrg    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6957bd23fbfaSmrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
6958bd23fbfaSmrg    else
6959bd23fbfaSmrg      _lt_dsymutil=
6960bd23fbfaSmrg    fi
6961bd23fbfaSmrg    ;;
6962bd23fbfaSmrg  esac
69638c4a8e55Smrg
6964bd23fbfaSmrgac_ext=c
6965bd23fbfaSmrgac_cpp='$CPP $CPPFLAGS'
6966bd23fbfaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967bd23fbfaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968bd23fbfaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
6969bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6970bd23fbfaSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
6971bd23fbfaSmrg# On Suns, sometimes $CPP names a directory.
6972bd23fbfaSmrgif test -n "$CPP" && test -d "$CPP"; then
6973bd23fbfaSmrg  CPP=
6974bd23fbfaSmrgfi
6975bd23fbfaSmrgif test -z "$CPP"; then
6976bd23fbfaSmrg  if ${ac_cv_prog_CPP+:} false; then :
69778c4a8e55Smrg  $as_echo_n "(cached) " >&6
6978b042e37fSmrgelse
6979bd23fbfaSmrg      # Double quotes because CPP needs to be expanded
6980bd23fbfaSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6981bd23fbfaSmrg    do
6982bd23fbfaSmrg      ac_preproc_ok=false
6983bd23fbfaSmrgfor ac_c_preproc_warn_flag in '' yes
6984bd23fbfaSmrgdo
6985bd23fbfaSmrg  # Use a header file that comes with gcc, so configuring glibc
6986bd23fbfaSmrg  # with a fresh cross-compiler works.
6987bd23fbfaSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6988bd23fbfaSmrg  # <limits.h> exists even on freestanding compilers.
6989bd23fbfaSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
6990bd23fbfaSmrg  # not just through cpp. "Syntax error" is here to catch this case.
6991bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992bd23fbfaSmrg/* end confdefs.h.  */
6993bd23fbfaSmrg#ifdef __STDC__
6994bd23fbfaSmrg# include <limits.h>
6995bd23fbfaSmrg#else
6996bd23fbfaSmrg# include <assert.h>
6997bd23fbfaSmrg#endif
6998bd23fbfaSmrg		     Syntax error
6999bd23fbfaSmrg_ACEOF
7000bd23fbfaSmrgif ac_fn_c_try_cpp "$LINENO"; then :
7001b042e37fSmrg
7002bd23fbfaSmrgelse
7003bd23fbfaSmrg  # Broken: fails on valid input.
7004bd23fbfaSmrgcontinue
7005bd23fbfaSmrgfi
7006bd23fbfaSmrgrm -f conftest.err conftest.i conftest.$ac_ext
7007b042e37fSmrg
7008bd23fbfaSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
7009bd23fbfaSmrg  # can be detected and how.
7010bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011bd23fbfaSmrg/* end confdefs.h.  */
7012bd23fbfaSmrg#include <ac_nonexistent.h>
7013bd23fbfaSmrg_ACEOF
7014bd23fbfaSmrgif ac_fn_c_try_cpp "$LINENO"; then :
7015bd23fbfaSmrg  # Broken: success on invalid input.
7016bd23fbfaSmrgcontinue
7017bd23fbfaSmrgelse
7018bd23fbfaSmrg  # Passes both tests.
7019bd23fbfaSmrgac_preproc_ok=:
7020bd23fbfaSmrgbreak
7021bd23fbfaSmrgfi
7022bd23fbfaSmrgrm -f conftest.err conftest.i conftest.$ac_ext
7023b042e37fSmrg
7024bd23fbfaSmrgdone
7025bd23fbfaSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7026bd23fbfaSmrgrm -f conftest.i conftest.err conftest.$ac_ext
7027bd23fbfaSmrgif $ac_preproc_ok; then :
7028bd23fbfaSmrg  break
7029bd23fbfaSmrgfi
7030b042e37fSmrg
7031bd23fbfaSmrg    done
7032bd23fbfaSmrg    ac_cv_prog_CPP=$CPP
7033b042e37fSmrg
7034bd23fbfaSmrgfi
7035bd23fbfaSmrg  CPP=$ac_cv_prog_CPP
7036bd23fbfaSmrgelse
7037bd23fbfaSmrg  ac_cv_prog_CPP=$CPP
7038bd23fbfaSmrgfi
7039bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7040bd23fbfaSmrg$as_echo "$CPP" >&6; }
7041bd23fbfaSmrgac_preproc_ok=false
7042bd23fbfaSmrgfor ac_c_preproc_warn_flag in '' yes
7043bd23fbfaSmrgdo
7044bd23fbfaSmrg  # Use a header file that comes with gcc, so configuring glibc
7045bd23fbfaSmrg  # with a fresh cross-compiler works.
7046bd23fbfaSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047bd23fbfaSmrg  # <limits.h> exists even on freestanding compilers.
7048bd23fbfaSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
7049bd23fbfaSmrg  # not just through cpp. "Syntax error" is here to catch this case.
7050bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051bd23fbfaSmrg/* end confdefs.h.  */
7052bd23fbfaSmrg#ifdef __STDC__
7053bd23fbfaSmrg# include <limits.h>
7054bd23fbfaSmrg#else
7055bd23fbfaSmrg# include <assert.h>
7056bd23fbfaSmrg#endif
7057bd23fbfaSmrg		     Syntax error
7058bd23fbfaSmrg_ACEOF
7059bd23fbfaSmrgif ac_fn_c_try_cpp "$LINENO"; then :
70608c4a8e55Smrg
7061bd23fbfaSmrgelse
7062bd23fbfaSmrg  # Broken: fails on valid input.
7063bd23fbfaSmrgcontinue
7064bd23fbfaSmrgfi
7065bd23fbfaSmrgrm -f conftest.err conftest.i conftest.$ac_ext
70668c4a8e55Smrg
7067bd23fbfaSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
7068bd23fbfaSmrg  # can be detected and how.
7069bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070bd23fbfaSmrg/* end confdefs.h.  */
7071bd23fbfaSmrg#include <ac_nonexistent.h>
7072bd23fbfaSmrg_ACEOF
7073bd23fbfaSmrgif ac_fn_c_try_cpp "$LINENO"; then :
7074bd23fbfaSmrg  # Broken: success on invalid input.
7075bd23fbfaSmrgcontinue
7076bd23fbfaSmrgelse
7077bd23fbfaSmrg  # Passes both tests.
7078bd23fbfaSmrgac_preproc_ok=:
7079bd23fbfaSmrgbreak
7080bd23fbfaSmrgfi
7081bd23fbfaSmrgrm -f conftest.err conftest.i conftest.$ac_ext
70828c4a8e55Smrg
7083bd23fbfaSmrgdone
7084bd23fbfaSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7085bd23fbfaSmrgrm -f conftest.i conftest.err conftest.$ac_ext
7086bd23fbfaSmrgif $ac_preproc_ok; then :
7087b042e37fSmrg
7088bd23fbfaSmrgelse
7089bd23fbfaSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7090bd23fbfaSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7091bd23fbfaSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7092bd23fbfaSmrgSee \`config.log' for more details" "$LINENO" 5; }
7093bd23fbfaSmrgfi
7094b042e37fSmrg
7095bd23fbfaSmrgac_ext=c
7096bd23fbfaSmrgac_cpp='$CPP $CPPFLAGS'
7097bd23fbfaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098bd23fbfaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099bd23fbfaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
7100b042e37fSmrg
7101b042e37fSmrg
7102bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7103bd23fbfaSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
7104bd23fbfaSmrgif ${ac_cv_header_stdc+:} false; then :
7105bd23fbfaSmrg  $as_echo_n "(cached) " >&6
7106bd23fbfaSmrgelse
7107bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108bd23fbfaSmrg/* end confdefs.h.  */
7109bd23fbfaSmrg#include <stdlib.h>
7110bd23fbfaSmrg#include <stdarg.h>
7111bd23fbfaSmrg#include <string.h>
7112bd23fbfaSmrg#include <float.h>
7113b042e37fSmrg
7114bd23fbfaSmrgint
7115bd23fbfaSmrgmain ()
7116bd23fbfaSmrg{
7117bd23fbfaSmrg
7118bd23fbfaSmrg  ;
7119bd23fbfaSmrg  return 0;
7120b042e37fSmrg}
7121bd23fbfaSmrg_ACEOF
7122bd23fbfaSmrgif ac_fn_c_try_compile "$LINENO"; then :
7123bd23fbfaSmrg  ac_cv_header_stdc=yes
7124bd23fbfaSmrgelse
7125bd23fbfaSmrg  ac_cv_header_stdc=no
7126bd23fbfaSmrgfi
7127bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128b042e37fSmrg
7129bd23fbfaSmrgif test $ac_cv_header_stdc = yes; then
7130bd23fbfaSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7131bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132bd23fbfaSmrg/* end confdefs.h.  */
7133bd23fbfaSmrg#include <string.h>
7134b042e37fSmrg
7135bd23fbfaSmrg_ACEOF
7136bd23fbfaSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7137bd23fbfaSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
7138b042e37fSmrg
7139bd23fbfaSmrgelse
7140bd23fbfaSmrg  ac_cv_header_stdc=no
7141bd23fbfaSmrgfi
7142bd23fbfaSmrgrm -f conftest*
7143b042e37fSmrg
7144bd23fbfaSmrgfi
7145b042e37fSmrg
7146bd23fbfaSmrgif test $ac_cv_header_stdc = yes; then
7147bd23fbfaSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7148bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149bd23fbfaSmrg/* end confdefs.h.  */
7150bd23fbfaSmrg#include <stdlib.h>
7151b042e37fSmrg
7152bd23fbfaSmrg_ACEOF
7153bd23fbfaSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154bd23fbfaSmrg  $EGREP "free" >/dev/null 2>&1; then :
7155b042e37fSmrg
7156bd23fbfaSmrgelse
7157bd23fbfaSmrg  ac_cv_header_stdc=no
7158b042e37fSmrgfi
7159bd23fbfaSmrgrm -f conftest*
7160b042e37fSmrg
7161b042e37fSmrgfi
7162bd23fbfaSmrg
7163bd23fbfaSmrgif test $ac_cv_header_stdc = yes; then
7164bd23fbfaSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7165bd23fbfaSmrg  if test "$cross_compiling" = yes; then :
7166bd23fbfaSmrg  :
7167b042e37fSmrgelse
7168bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169bd23fbfaSmrg/* end confdefs.h.  */
7170bd23fbfaSmrg#include <ctype.h>
7171bd23fbfaSmrg#include <stdlib.h>
7172bd23fbfaSmrg#if ((' ' & 0x0FF) == 0x020)
7173bd23fbfaSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7174bd23fbfaSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7175bd23fbfaSmrg#else
7176bd23fbfaSmrg# define ISLOWER(c) \
7177bd23fbfaSmrg		   (('a' <= (c) && (c) <= 'i') \
7178bd23fbfaSmrg		     || ('j' <= (c) && (c) <= 'r') \
7179bd23fbfaSmrg		     || ('s' <= (c) && (c) <= 'z'))
7180bd23fbfaSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7181bd23fbfaSmrg#endif
7182bd23fbfaSmrg
7183bd23fbfaSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7184bd23fbfaSmrgint
7185bd23fbfaSmrgmain ()
7186bd23fbfaSmrg{
7187bd23fbfaSmrg  int i;
7188bd23fbfaSmrg  for (i = 0; i < 256; i++)
7189bd23fbfaSmrg    if (XOR (islower (i), ISLOWER (i))
7190bd23fbfaSmrg	|| toupper (i) != TOUPPER (i))
7191bd23fbfaSmrg      return 2;
7192bd23fbfaSmrg  return 0;
7193bd23fbfaSmrg}
7194bd23fbfaSmrg_ACEOF
7195bd23fbfaSmrgif ac_fn_c_try_run "$LINENO"; then :
7196bd23fbfaSmrg
7197bd23fbfaSmrgelse
7198bd23fbfaSmrg  ac_cv_header_stdc=no
7199bd23fbfaSmrgfi
7200bd23fbfaSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7201bd23fbfaSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
7202b042e37fSmrgfi
7203b042e37fSmrg
7204bd23fbfaSmrgfi
7205bd23fbfaSmrgfi
7206bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7207bd23fbfaSmrg$as_echo "$ac_cv_header_stdc" >&6; }
7208bd23fbfaSmrgif test $ac_cv_header_stdc = yes; then
7209b042e37fSmrg
7210bd23fbfaSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7211b042e37fSmrg
7212bd23fbfaSmrgfi
7213b042e37fSmrg
7214bd23fbfaSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7215bd23fbfaSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7216bd23fbfaSmrg		  inttypes.h stdint.h unistd.h
7217bd23fbfaSmrgdo :
7218bd23fbfaSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7219bd23fbfaSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7220bd23fbfaSmrg"
7221bd23fbfaSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7222bd23fbfaSmrg  cat >>confdefs.h <<_ACEOF
7223bd23fbfaSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224bd23fbfaSmrg_ACEOF
7225b042e37fSmrg
7226bd23fbfaSmrgfi
7227b042e37fSmrg
7228bd23fbfaSmrgdone
7229b042e37fSmrg
7230b042e37fSmrg
7231bd23fbfaSmrgfor ac_header in dlfcn.h
7232bd23fbfaSmrgdo :
7233bd23fbfaSmrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7234bd23fbfaSmrg"
7235bd23fbfaSmrgif test "x$ac_cv_header_dlfcn_h" = xyes; then :
7236bd23fbfaSmrg  cat >>confdefs.h <<_ACEOF
7237bd23fbfaSmrg#define HAVE_DLFCN_H 1
7238bd23fbfaSmrg_ACEOF
7239b042e37fSmrg
7240bd23fbfaSmrgfi
7241b042e37fSmrg
7242bd23fbfaSmrgdone
7243b042e37fSmrg
7244b042e37fSmrg
7245b042e37fSmrg
7246b042e37fSmrg
7247b042e37fSmrg
7248bd23fbfaSmrg# Set options
72498c4a8e55Smrg
72508c4a8e55Smrg
72518c4a8e55Smrg
7252bd23fbfaSmrg        enable_dlopen=no
72538c4a8e55Smrg
72548c4a8e55Smrg
7255bd23fbfaSmrg  enable_win32_dll=no
72568c4a8e55Smrg
72578c4a8e55Smrg
7258bd23fbfaSmrg            # Check whether --enable-shared was given.
7259bd23fbfaSmrgif test "${enable_shared+set}" = set; then :
7260bd23fbfaSmrg  enableval=$enable_shared; p=${PACKAGE-default}
7261bd23fbfaSmrg    case $enableval in
7262bd23fbfaSmrg    yes) enable_shared=yes ;;
7263bd23fbfaSmrg    no) enable_shared=no ;;
7264bd23fbfaSmrg    *)
7265bd23fbfaSmrg      enable_shared=no
7266bd23fbfaSmrg      # Look at the argument we got.  We use all the common list separators.
7267bd23fbfaSmrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7268bd23fbfaSmrg      for pkg in $enableval; do
7269bd23fbfaSmrg	IFS="$lt_save_ifs"
7270bd23fbfaSmrg	if test "X$pkg" = "X$p"; then
7271bd23fbfaSmrg	  enable_shared=yes
7272bd23fbfaSmrg	fi
7273bd23fbfaSmrg      done
7274bd23fbfaSmrg      IFS="$lt_save_ifs"
7275bd23fbfaSmrg      ;;
7276bd23fbfaSmrg    esac
7277bd23fbfaSmrgelse
7278bd23fbfaSmrg  enable_shared=yes
7279b042e37fSmrgfi
72808c4a8e55Smrg
72818c4a8e55Smrg
72828c4a8e55Smrg
72838c4a8e55Smrg
72848c4a8e55Smrg
72858c4a8e55Smrg
72868c4a8e55Smrg
72878c4a8e55Smrg
7288bd23fbfaSmrg
7289bd23fbfaSmrg  # Check whether --enable-static was given.
7290bd23fbfaSmrgif test "${enable_static+set}" = set; then :
7291bd23fbfaSmrg  enableval=$enable_static; p=${PACKAGE-default}
7292bd23fbfaSmrg    case $enableval in
7293bd23fbfaSmrg    yes) enable_static=yes ;;
7294bd23fbfaSmrg    no) enable_static=no ;;
7295bd23fbfaSmrg    *)
7296bd23fbfaSmrg     enable_static=no
7297bd23fbfaSmrg      # Look at the argument we got.  We use all the common list separators.
7298bd23fbfaSmrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7299bd23fbfaSmrg      for pkg in $enableval; do
7300bd23fbfaSmrg	IFS="$lt_save_ifs"
7301bd23fbfaSmrg	if test "X$pkg" = "X$p"; then
7302bd23fbfaSmrg	  enable_static=yes
73038c4a8e55Smrg	fi
7304bd23fbfaSmrg      done
7305bd23fbfaSmrg      IFS="$lt_save_ifs"
73068c4a8e55Smrg      ;;
73078c4a8e55Smrg    esac
7308bd23fbfaSmrgelse
7309bd23fbfaSmrg  enable_static=yes
7310bd23fbfaSmrgfi
73118c4a8e55Smrg
73128c4a8e55Smrg
73138c4a8e55Smrg
73148c4a8e55Smrg
7315b042e37fSmrg
7316b042e37fSmrg
7317b042e37fSmrg
7318b042e37fSmrg
7319b042e37fSmrg
7320b042e37fSmrg
7321bd23fbfaSmrg# Check whether --with-pic was given.
7322bd23fbfaSmrgif test "${with_pic+set}" = set; then :
7323bd23fbfaSmrg  withval=$with_pic; pic_mode="$withval"
7324b042e37fSmrgelse
7325bd23fbfaSmrg  pic_mode=default
73268c4a8e55Smrgfi
7327b042e37fSmrg
7328706b6b52Smrg
7329bd23fbfaSmrgtest -z "$pic_mode" && pic_mode=default
7330b042e37fSmrg
7331bd23fbfaSmrg
7332bd23fbfaSmrg
7333bd23fbfaSmrg
7334bd23fbfaSmrg
7335bd23fbfaSmrg
7336bd23fbfaSmrg
7337bd23fbfaSmrg  # Check whether --enable-fast-install was given.
7338bd23fbfaSmrgif test "${enable_fast_install+set}" = set; then :
7339bd23fbfaSmrg  enableval=$enable_fast_install; p=${PACKAGE-default}
7340bd23fbfaSmrg    case $enableval in
7341bd23fbfaSmrg    yes) enable_fast_install=yes ;;
7342bd23fbfaSmrg    no) enable_fast_install=no ;;
7343bd23fbfaSmrg    *)
7344bd23fbfaSmrg      enable_fast_install=no
7345bd23fbfaSmrg      # Look at the argument we got.  We use all the common list separators.
7346bd23fbfaSmrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7347bd23fbfaSmrg      for pkg in $enableval; do
7348bd23fbfaSmrg	IFS="$lt_save_ifs"
7349bd23fbfaSmrg	if test "X$pkg" = "X$p"; then
7350bd23fbfaSmrg	  enable_fast_install=yes
7351bd23fbfaSmrg	fi
7352bd23fbfaSmrg      done
7353bd23fbfaSmrg      IFS="$lt_save_ifs"
7354bd23fbfaSmrg      ;;
7355bd23fbfaSmrg    esac
7356b042e37fSmrgelse
7357bd23fbfaSmrg  enable_fast_install=yes
7358b042e37fSmrgfi
7359b042e37fSmrg
7360b042e37fSmrg
73618c4a8e55Smrg
7362b042e37fSmrg
7363b042e37fSmrg
7364b042e37fSmrg
7365b042e37fSmrg
7366b042e37fSmrg
7367706b6b52Smrg
7368b042e37fSmrg
7369b042e37fSmrg
7370bd23fbfaSmrg# This can be used to rebuild libtool when needed
7371bd23fbfaSmrgLIBTOOL_DEPS="$ltmain"
7372bd23fbfaSmrg
7373bd23fbfaSmrg# Always use our own libtool.
7374bd23fbfaSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
7375bd23fbfaSmrg
7376bd23fbfaSmrg
7377bd23fbfaSmrg
7378bd23fbfaSmrg
7379bd23fbfaSmrg
7380bd23fbfaSmrg
7381bd23fbfaSmrg
7382bd23fbfaSmrg
7383bd23fbfaSmrg
7384bd23fbfaSmrg
7385bd23fbfaSmrg
7386bd23fbfaSmrg
7387bd23fbfaSmrg
7388bd23fbfaSmrg
7389bd23fbfaSmrg
7390bd23fbfaSmrg
7391bd23fbfaSmrg
7392bd23fbfaSmrg
7393bd23fbfaSmrg
7394bd23fbfaSmrg
7395bd23fbfaSmrg
7396bd23fbfaSmrg
7397bd23fbfaSmrg
7398bd23fbfaSmrg
7399bd23fbfaSmrg
7400bd23fbfaSmrg
7401bd23fbfaSmrgtest -z "$LN_S" && LN_S="ln -s"
7402bd23fbfaSmrg
7403bd23fbfaSmrg
7404bd23fbfaSmrg
7405bd23fbfaSmrg
7406bd23fbfaSmrg
7407bd23fbfaSmrg
7408bd23fbfaSmrg
7409bd23fbfaSmrg
7410bd23fbfaSmrg
7411bd23fbfaSmrg
7412bd23fbfaSmrg
7413bd23fbfaSmrg
7414bd23fbfaSmrg
7415bd23fbfaSmrg
7416bd23fbfaSmrgif test -n "${ZSH_VERSION+set}" ; then
7417bd23fbfaSmrg   setopt NO_GLOB_SUBST
7418706b6b52Smrgfi
7419bd23fbfaSmrg
7420bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7421bd23fbfaSmrg$as_echo_n "checking for objdir... " >&6; }
7422bd23fbfaSmrgif ${lt_cv_objdir+:} false; then :
74238c4a8e55Smrg  $as_echo_n "(cached) " >&6
74248c4a8e55Smrgelse
7425bd23fbfaSmrg  rm -f .libs 2>/dev/null
7426bd23fbfaSmrgmkdir .libs 2>/dev/null
7427bd23fbfaSmrgif test -d .libs; then
7428bd23fbfaSmrg  lt_cv_objdir=.libs
7429706b6b52Smrgelse
7430bd23fbfaSmrg  # MS-DOS does not allow filenames that begin with a dot.
7431bd23fbfaSmrg  lt_cv_objdir=_libs
7432706b6b52Smrgfi
7433bd23fbfaSmrgrmdir .libs 2>/dev/null
7434706b6b52Smrgfi
7435bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7436bd23fbfaSmrg$as_echo "$lt_cv_objdir" >&6; }
7437bd23fbfaSmrgobjdir=$lt_cv_objdir
7438b042e37fSmrg
7439b042e37fSmrg
7440bd23fbfaSmrg
7441bd23fbfaSmrg
7442bd23fbfaSmrg
7443bd23fbfaSmrgcat >>confdefs.h <<_ACEOF
7444bd23fbfaSmrg#define LT_OBJDIR "$lt_cv_objdir/"
7445bd23fbfaSmrg_ACEOF
7446bd23fbfaSmrg
7447bd23fbfaSmrg
7448bd23fbfaSmrg
7449bd23fbfaSmrg
7450bd23fbfaSmrgcase $host_os in
7451bd23fbfaSmrgaix3*)
7452bd23fbfaSmrg  # AIX sometimes has problems with the GCC collect2 program.  For some
7453bd23fbfaSmrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
7454bd23fbfaSmrg  # vanish in a puff of smoke.
7455bd23fbfaSmrg  if test "X${COLLECT_NAMES+set}" != Xset; then
7456bd23fbfaSmrg    COLLECT_NAMES=
7457bd23fbfaSmrg    export COLLECT_NAMES
7458706b6b52Smrg  fi
7459bd23fbfaSmrg  ;;
7460bd23fbfaSmrgesac
7461bd23fbfaSmrg
7462bd23fbfaSmrg# Global variables:
7463bd23fbfaSmrgofile=libtool
7464bd23fbfaSmrgcan_build_shared=yes
7465bd23fbfaSmrg
7466bd23fbfaSmrg# All known linkers require a `.a' archive for static linking (except MSVC,
7467bd23fbfaSmrg# which needs '.lib').
7468bd23fbfaSmrglibext=a
7469bd23fbfaSmrg
7470bd23fbfaSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
7471bd23fbfaSmrg
7472bd23fbfaSmrgold_CC="$CC"
7473bd23fbfaSmrgold_CFLAGS="$CFLAGS"
7474bd23fbfaSmrg
7475bd23fbfaSmrg# Set sane defaults for various variables
7476bd23fbfaSmrgtest -z "$CC" && CC=cc
7477bd23fbfaSmrgtest -z "$LTCC" && LTCC=$CC
7478bd23fbfaSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7479bd23fbfaSmrgtest -z "$LD" && LD=ld
7480bd23fbfaSmrgtest -z "$ac_objext" && ac_objext=o
7481bd23fbfaSmrg
7482bd23fbfaSmrgfor cc_temp in $compiler""; do
7483bd23fbfaSmrg  case $cc_temp in
7484bd23fbfaSmrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7485bd23fbfaSmrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7486bd23fbfaSmrg    \-*) ;;
7487bd23fbfaSmrg    *) break;;
7488bd23fbfaSmrg  esac
7489706b6b52Smrgdone
7490bd23fbfaSmrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7491b042e37fSmrg
7492bd23fbfaSmrg
7493bd23fbfaSmrg# Only perform the check for file, if the check method requires it
7494bd23fbfaSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
7495bd23fbfaSmrgcase $deplibs_check_method in
7496bd23fbfaSmrgfile_magic*)
7497bd23fbfaSmrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7498bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7499bd23fbfaSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7500bd23fbfaSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
7501bd23fbfaSmrg  $as_echo_n "(cached) " >&6
7502bd23fbfaSmrgelse
7503bd23fbfaSmrg  case $MAGIC_CMD in
7504bd23fbfaSmrg[\\/*] |  ?:[\\/]*)
7505bd23fbfaSmrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7506bd23fbfaSmrg  ;;
7507bd23fbfaSmrg*)
7508bd23fbfaSmrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
7509bd23fbfaSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7510bd23fbfaSmrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7511bd23fbfaSmrg  for ac_dir in $ac_dummy; do
7512bd23fbfaSmrg    IFS="$lt_save_ifs"
7513bd23fbfaSmrg    test -z "$ac_dir" && ac_dir=.
7514bd23fbfaSmrg    if test -f $ac_dir/${ac_tool_prefix}file; then
7515bd23fbfaSmrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7516bd23fbfaSmrg      if test -n "$file_magic_test_file"; then
7517bd23fbfaSmrg	case $deplibs_check_method in
7518bd23fbfaSmrg	"file_magic "*)
7519bd23fbfaSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7520bd23fbfaSmrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7521bd23fbfaSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7522bd23fbfaSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
7523bd23fbfaSmrg	    :
7524bd23fbfaSmrg	  else
7525bd23fbfaSmrg	    cat <<_LT_EOF 1>&2
7526bd23fbfaSmrg
7527bd23fbfaSmrg*** Warning: the command libtool uses to detect shared libraries,
7528bd23fbfaSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
7529bd23fbfaSmrg*** The result is that libtool may fail to recognize shared libraries
7530bd23fbfaSmrg*** as such.  This will affect the creation of libtool libraries that
7531bd23fbfaSmrg*** depend on shared libraries, but programs linked with such libtool
7532bd23fbfaSmrg*** libraries will work regardless of this problem.  Nevertheless, you
7533bd23fbfaSmrg*** may want to report the problem to your system manager and/or to
7534bd23fbfaSmrg*** bug-libtool@gnu.org
7535bd23fbfaSmrg
7536bd23fbfaSmrg_LT_EOF
7537bd23fbfaSmrg	  fi ;;
7538bd23fbfaSmrg	esac
7539bd23fbfaSmrg      fi
7540bd23fbfaSmrg      break
7541bd23fbfaSmrg    fi
7542bd23fbfaSmrg  done
7543bd23fbfaSmrg  IFS="$lt_save_ifs"
7544bd23fbfaSmrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
7545bd23fbfaSmrg  ;;
7546bd23fbfaSmrgesac
7547706b6b52Smrgfi
7548bd23fbfaSmrg
7549bd23fbfaSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7550bd23fbfaSmrgif test -n "$MAGIC_CMD"; then
7551bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7552bd23fbfaSmrg$as_echo "$MAGIC_CMD" >&6; }
7553b042e37fSmrgelse
7554706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555706b6b52Smrg$as_echo "no" >&6; }
7556b042e37fSmrgfi
7557706b6b52Smrg
7558706b6b52Smrg
7559bd23fbfaSmrg
7560bd23fbfaSmrg
7561bd23fbfaSmrg
7562bd23fbfaSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then
7563bd23fbfaSmrg  if test -n "$ac_tool_prefix"; then
7564bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7565bd23fbfaSmrg$as_echo_n "checking for file... " >&6; }
7566bd23fbfaSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
7567706b6b52Smrg  $as_echo_n "(cached) " >&6
7568706b6b52Smrgelse
7569bd23fbfaSmrg  case $MAGIC_CMD in
7570bd23fbfaSmrg[\\/*] |  ?:[\\/]*)
7571bd23fbfaSmrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7572bd23fbfaSmrg  ;;
7573bd23fbfaSmrg*)
7574bd23fbfaSmrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
7575bd23fbfaSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7576bd23fbfaSmrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7577bd23fbfaSmrg  for ac_dir in $ac_dummy; do
7578bd23fbfaSmrg    IFS="$lt_save_ifs"
7579bd23fbfaSmrg    test -z "$ac_dir" && ac_dir=.
7580bd23fbfaSmrg    if test -f $ac_dir/file; then
7581bd23fbfaSmrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7582bd23fbfaSmrg      if test -n "$file_magic_test_file"; then
7583bd23fbfaSmrg	case $deplibs_check_method in
7584bd23fbfaSmrg	"file_magic "*)
7585bd23fbfaSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7586bd23fbfaSmrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7587bd23fbfaSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7588bd23fbfaSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
7589bd23fbfaSmrg	    :
7590bd23fbfaSmrg	  else
7591bd23fbfaSmrg	    cat <<_LT_EOF 1>&2
7592b042e37fSmrg
7593bd23fbfaSmrg*** Warning: the command libtool uses to detect shared libraries,
7594bd23fbfaSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
7595bd23fbfaSmrg*** The result is that libtool may fail to recognize shared libraries
7596bd23fbfaSmrg*** as such.  This will affect the creation of libtool libraries that
7597bd23fbfaSmrg*** depend on shared libraries, but programs linked with such libtool
7598bd23fbfaSmrg*** libraries will work regardless of this problem.  Nevertheless, you
7599bd23fbfaSmrg*** may want to report the problem to your system manager and/or to
7600bd23fbfaSmrg*** bug-libtool@gnu.org
7601bd23fbfaSmrg
7602bd23fbfaSmrg_LT_EOF
7603bd23fbfaSmrg	  fi ;;
7604bd23fbfaSmrg	esac
7605bd23fbfaSmrg      fi
7606bd23fbfaSmrg      break
7607bd23fbfaSmrg    fi
7608bd23fbfaSmrg  done
7609bd23fbfaSmrg  IFS="$lt_save_ifs"
7610bd23fbfaSmrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
7611bd23fbfaSmrg  ;;
7612bd23fbfaSmrgesac
7613b042e37fSmrgfi
7614bd23fbfaSmrg
7615bd23fbfaSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7616bd23fbfaSmrgif test -n "$MAGIC_CMD"; then
7617bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7618bd23fbfaSmrg$as_echo "$MAGIC_CMD" >&6; }
7619b042e37fSmrgelse
7620706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621706b6b52Smrg$as_echo "no" >&6; }
7622b042e37fSmrgfi
7623b042e37fSmrg
7624bd23fbfaSmrg
7625706b6b52Smrg  else
7626bd23fbfaSmrg    MAGIC_CMD=:
7627706b6b52Smrg  fi
7628b042e37fSmrgfi
7629b042e37fSmrg
7630bd23fbfaSmrg  fi
7631bd23fbfaSmrg  ;;
7632bd23fbfaSmrgesac
7633b042e37fSmrg
7634bd23fbfaSmrg# Use C for the default configuration in the libtool script
7635b042e37fSmrg
7636bd23fbfaSmrglt_save_CC="$CC"
7637bd23fbfaSmrgac_ext=c
7638bd23fbfaSmrgac_cpp='$CPP $CPPFLAGS'
7639bd23fbfaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640bd23fbfaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641bd23fbfaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
7642b042e37fSmrg
76438c4a8e55Smrg
7644bd23fbfaSmrg# Source file extension for C test sources.
7645bd23fbfaSmrgac_ext=c
7646b042e37fSmrg
7647bd23fbfaSmrg# Object file extension for compiled C test sources.
7648bd23fbfaSmrgobjext=o
7649bd23fbfaSmrgobjext=$objext
7650b042e37fSmrg
7651bd23fbfaSmrg# Code to be used in simple compile tests
7652bd23fbfaSmrglt_simple_compile_test_code="int some_variable = 0;"
7653b042e37fSmrg
7654bd23fbfaSmrg# Code to be used in simple link tests
7655bd23fbfaSmrglt_simple_link_test_code='int main(){return(0);}'
7656b042e37fSmrg
7657b042e37fSmrg
7658b042e37fSmrg
7659b042e37fSmrg
7660b042e37fSmrg
7661b042e37fSmrg
7662b042e37fSmrg
7663bd23fbfaSmrg# If no C compiler was specified, use CC.
7664bd23fbfaSmrgLTCC=${LTCC-"$CC"}
7665b042e37fSmrg
7666bd23fbfaSmrg# If no C compiler flags were specified, use CFLAGS.
7667bd23fbfaSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7668b042e37fSmrg
7669bd23fbfaSmrg# Allow CC to be a program name with arguments.
7670bd23fbfaSmrgcompiler=$CC
7671b042e37fSmrg
7672bd23fbfaSmrg# Save the default compiler, since it gets overwritten when the other
7673bd23fbfaSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7674bd23fbfaSmrgcompiler_DEFAULT=$CC
7675b042e37fSmrg
7676bd23fbfaSmrg# save warnings/boilerplate of simple test code
7677bd23fbfaSmrgac_outfile=conftest.$ac_objext
7678bd23fbfaSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
7679bd23fbfaSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7680bd23fbfaSmrg_lt_compiler_boilerplate=`cat conftest.err`
7681bd23fbfaSmrg$RM conftest*
7682b042e37fSmrg
7683bd23fbfaSmrgac_outfile=conftest.$ac_objext
7684bd23fbfaSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
7685bd23fbfaSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7686bd23fbfaSmrg_lt_linker_boilerplate=`cat conftest.err`
7687bd23fbfaSmrg$RM -r conftest*
7688b042e37fSmrg
7689b042e37fSmrg
7690bd23fbfaSmrgif test -n "$compiler"; then
76918c4a8e55Smrg
7692bd23fbfaSmrglt_prog_compiler_no_builtin_flag=
76938c4a8e55Smrg
7694bd23fbfaSmrgif test "$GCC" = yes; then
7695bd23fbfaSmrg  case $cc_basename in
7696bd23fbfaSmrg  nvcc*)
7697bd23fbfaSmrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7698bd23fbfaSmrg  *)
7699bd23fbfaSmrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7700bd23fbfaSmrg  esac
77018c4a8e55Smrg
7702bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7703bd23fbfaSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7704bd23fbfaSmrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7705706b6b52Smrg  $as_echo_n "(cached) " >&6
7706706b6b52Smrgelse
7707bd23fbfaSmrg  lt_cv_prog_compiler_rtti_exceptions=no
7708bd23fbfaSmrg   ac_outfile=conftest.$ac_objext
7709bd23fbfaSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7710bd23fbfaSmrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
7711bd23fbfaSmrg   # Insert the option either (1) after the last *FLAGS variable, or
7712bd23fbfaSmrg   # (2) before a word containing "conftest.", or (3) at the end.
7713bd23fbfaSmrg   # Note that $ac_compile itself does not contain backslashes and begins
7714bd23fbfaSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
7715bd23fbfaSmrg   # The option is referenced via a variable to avoid confusing sed.
7716bd23fbfaSmrg   lt_compile=`echo "$ac_compile" | $SED \
7717bd23fbfaSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718bd23fbfaSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719bd23fbfaSmrg   -e 's:$: $lt_compiler_flag:'`
7720bd23fbfaSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7721bd23fbfaSmrg   (eval "$lt_compile" 2>conftest.err)
7722bd23fbfaSmrg   ac_status=$?
7723bd23fbfaSmrg   cat conftest.err >&5
7724bd23fbfaSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725bd23fbfaSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
7726bd23fbfaSmrg     # The compiler can only warn and ignore the option if not recognized
7727bd23fbfaSmrg     # So say no if there are warnings other than the usual output.
7728bd23fbfaSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7729bd23fbfaSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7730bd23fbfaSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7731bd23fbfaSmrg       lt_cv_prog_compiler_rtti_exceptions=yes
7732bd23fbfaSmrg     fi
7733bd23fbfaSmrg   fi
7734bd23fbfaSmrg   $RM conftest*
7735b042e37fSmrg
7736b042e37fSmrgfi
7737bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7738bd23fbfaSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7739b042e37fSmrg
7740bd23fbfaSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7741bd23fbfaSmrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7742bd23fbfaSmrgelse
7743bd23fbfaSmrg    :
77448c4a8e55Smrgfi
7745b042e37fSmrg
7746bd23fbfaSmrgfi
7747b042e37fSmrg
7748706b6b52Smrg
7749706b6b52Smrg
7750b042e37fSmrg
7751b042e37fSmrg
7752b042e37fSmrg
7753bd23fbfaSmrg  lt_prog_compiler_wl=
7754bd23fbfaSmrglt_prog_compiler_pic=
7755bd23fbfaSmrglt_prog_compiler_static=
7756b042e37fSmrg
7757b042e37fSmrg
7758bd23fbfaSmrg  if test "$GCC" = yes; then
7759bd23fbfaSmrg    lt_prog_compiler_wl='-Wl,'
7760bd23fbfaSmrg    lt_prog_compiler_static='-static'
7761b042e37fSmrg
7762bd23fbfaSmrg    case $host_os in
7763bd23fbfaSmrg      aix*)
7764bd23fbfaSmrg      # All AIX code is PIC.
7765bd23fbfaSmrg      if test "$host_cpu" = ia64; then
7766bd23fbfaSmrg	# AIX 5 now supports IA64 processor
7767bd23fbfaSmrg	lt_prog_compiler_static='-Bstatic'
7768bd23fbfaSmrg      fi
7769bd23fbfaSmrg      ;;
77708c4a8e55Smrg
7771bd23fbfaSmrg    amigaos*)
7772bd23fbfaSmrg      case $host_cpu in
7773bd23fbfaSmrg      powerpc)
7774bd23fbfaSmrg            # see comment about AmigaOS4 .so support
7775bd23fbfaSmrg            lt_prog_compiler_pic='-fPIC'
7776bd23fbfaSmrg        ;;
7777bd23fbfaSmrg      m68k)
7778bd23fbfaSmrg            # FIXME: we need at least 68020 code to build shared libraries, but
7779bd23fbfaSmrg            # adding the `-m68020' flag to GCC prevents building anything better,
7780bd23fbfaSmrg            # like `-m68040'.
7781bd23fbfaSmrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7782bd23fbfaSmrg        ;;
7783bd23fbfaSmrg      esac
7784b042e37fSmrg      ;;
7785b042e37fSmrg
7786bd23fbfaSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7787bd23fbfaSmrg      # PIC is the default for these OSes.
7788bd23fbfaSmrg      ;;
7789b042e37fSmrg
7790bd23fbfaSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
7791bd23fbfaSmrg      # This hack is so that the source file can tell whether it is being
7792bd23fbfaSmrg      # built for inclusion in a dll (and should export symbols for example).
7793bd23fbfaSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7794bd23fbfaSmrg      # (--disable-auto-import) libraries
7795bd23fbfaSmrg      lt_prog_compiler_pic='-DDLL_EXPORT'
7796bd23fbfaSmrg      ;;
7797b042e37fSmrg
7798bd23fbfaSmrg    darwin* | rhapsody*)
7799bd23fbfaSmrg      # PIC is the default on this platform
7800bd23fbfaSmrg      # Common symbols not allowed in MH_DYLIB files
7801bd23fbfaSmrg      lt_prog_compiler_pic='-fno-common'
7802bd23fbfaSmrg      ;;
7803b042e37fSmrg
7804bd23fbfaSmrg    haiku*)
7805bd23fbfaSmrg      # PIC is the default for Haiku.
7806bd23fbfaSmrg      # The "-static" flag exists, but is broken.
7807bd23fbfaSmrg      lt_prog_compiler_static=
7808bd23fbfaSmrg      ;;
7809bd23fbfaSmrg
7810bd23fbfaSmrg    hpux*)
7811bd23fbfaSmrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7812bd23fbfaSmrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7813bd23fbfaSmrg      # sets the default TLS model and affects inlining.
7814bd23fbfaSmrg      case $host_cpu in
7815bd23fbfaSmrg      hppa*64*)
7816bd23fbfaSmrg	# +Z the default
7817bd23fbfaSmrg	;;
7818bd23fbfaSmrg      *)
7819bd23fbfaSmrg	lt_prog_compiler_pic='-fPIC'
7820bd23fbfaSmrg	;;
7821bd23fbfaSmrg      esac
7822bd23fbfaSmrg      ;;
7823b042e37fSmrg
7824bd23fbfaSmrg    interix[3-9]*)
7825bd23fbfaSmrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7826bd23fbfaSmrg      # Instead, we relocate shared libraries at runtime.
7827bd23fbfaSmrg      ;;
7828b042e37fSmrg
7829bd23fbfaSmrg    msdosdjgpp*)
7830bd23fbfaSmrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
7831bd23fbfaSmrg      # on systems that don't support them.
7832bd23fbfaSmrg      lt_prog_compiler_can_build_shared=no
7833bd23fbfaSmrg      enable_shared=no
7834bd23fbfaSmrg      ;;
7835b042e37fSmrg
7836bd23fbfaSmrg    *nto* | *qnx*)
7837bd23fbfaSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
7838bd23fbfaSmrg      # it will coredump.
7839bd23fbfaSmrg      lt_prog_compiler_pic='-fPIC -shared'
7840bd23fbfaSmrg      ;;
7841b042e37fSmrg
7842bd23fbfaSmrg    sysv4*MP*)
7843bd23fbfaSmrg      if test -d /usr/nec; then
7844bd23fbfaSmrg	lt_prog_compiler_pic=-Kconform_pic
7845bd23fbfaSmrg      fi
7846bd23fbfaSmrg      ;;
7847b042e37fSmrg
78488c4a8e55Smrg    *)
7849bd23fbfaSmrg      lt_prog_compiler_pic='-fPIC'
7850b042e37fSmrg      ;;
78518c4a8e55Smrg    esac
7852b042e37fSmrg
7853bd23fbfaSmrg    case $cc_basename in
7854bd23fbfaSmrg    nvcc*) # Cuda Compiler Driver 2.2
7855bd23fbfaSmrg      lt_prog_compiler_wl='-Xlinker '
7856bd23fbfaSmrg      lt_prog_compiler_pic='-Xcompiler -fPIC'
7857bd23fbfaSmrg      ;;
7858bd23fbfaSmrg    esac
7859bd23fbfaSmrg  else
7860bd23fbfaSmrg    # PORTME Check for flag to pass linker flags through the system compiler.
7861bd23fbfaSmrg    case $host_os in
7862bd23fbfaSmrg    aix*)
7863bd23fbfaSmrg      lt_prog_compiler_wl='-Wl,'
7864bd23fbfaSmrg      if test "$host_cpu" = ia64; then
7865bd23fbfaSmrg	# AIX 5 now supports IA64 processor
7866bd23fbfaSmrg	lt_prog_compiler_static='-Bstatic'
7867bd23fbfaSmrg      else
7868bd23fbfaSmrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7869bd23fbfaSmrg      fi
7870bd23fbfaSmrg      ;;
7871b042e37fSmrg
7872bd23fbfaSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
7873bd23fbfaSmrg      # This hack is so that the source file can tell whether it is being
7874bd23fbfaSmrg      # built for inclusion in a dll (and should export symbols for example).
7875bd23fbfaSmrg      lt_prog_compiler_pic='-DDLL_EXPORT'
7876bd23fbfaSmrg      ;;
7877b042e37fSmrg
7878bd23fbfaSmrg    hpux9* | hpux10* | hpux11*)
7879bd23fbfaSmrg      lt_prog_compiler_wl='-Wl,'
7880bd23fbfaSmrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7881bd23fbfaSmrg      # not for PA HP-UX.
7882bd23fbfaSmrg      case $host_cpu in
7883bd23fbfaSmrg      hppa*64*|ia64*)
7884bd23fbfaSmrg	# +Z the default
7885bd23fbfaSmrg	;;
7886bd23fbfaSmrg      *)
7887bd23fbfaSmrg	lt_prog_compiler_pic='+Z'
7888bd23fbfaSmrg	;;
7889bd23fbfaSmrg      esac
7890bd23fbfaSmrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7891bd23fbfaSmrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
7892bd23fbfaSmrg      ;;
7893b042e37fSmrg
7894bd23fbfaSmrg    irix5* | irix6* | nonstopux*)
7895bd23fbfaSmrg      lt_prog_compiler_wl='-Wl,'
7896bd23fbfaSmrg      # PIC (with -KPIC) is the default.
7897bd23fbfaSmrg      lt_prog_compiler_static='-non_shared'
7898bd23fbfaSmrg      ;;
7899b042e37fSmrg
7900bd23fbfaSmrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7901bd23fbfaSmrg      case $cc_basename in
7902bd23fbfaSmrg      # old Intel for x86_64 which still supported -KPIC.
7903bd23fbfaSmrg      ecc*)
7904bd23fbfaSmrg	lt_prog_compiler_wl='-Wl,'
7905bd23fbfaSmrg	lt_prog_compiler_pic='-KPIC'
7906bd23fbfaSmrg	lt_prog_compiler_static='-static'
7907bd23fbfaSmrg        ;;
7908bd23fbfaSmrg      # icc used to be incompatible with GCC.
7909bd23fbfaSmrg      # ICC 10 doesn't accept -KPIC any more.
7910bd23fbfaSmrg      icc* | ifort*)
7911bd23fbfaSmrg	lt_prog_compiler_wl='-Wl,'
7912bd23fbfaSmrg	lt_prog_compiler_pic='-fPIC'
7913bd23fbfaSmrg	lt_prog_compiler_static='-static'
7914bd23fbfaSmrg        ;;
7915bd23fbfaSmrg      # Lahey Fortran 8.1.
7916bd23fbfaSmrg      lf95*)
7917bd23fbfaSmrg	lt_prog_compiler_wl='-Wl,'
7918bd23fbfaSmrg	lt_prog_compiler_pic='--shared'
7919bd23fbfaSmrg	lt_prog_compiler_static='--static'
7920bd23fbfaSmrg	;;
7921bd23fbfaSmrg      nagfor*)
7922bd23fbfaSmrg	# NAG Fortran compiler
7923bd23fbfaSmrg	lt_prog_compiler_wl='-Wl,-Wl,,'
7924bd23fbfaSmrg	lt_prog_compiler_pic='-PIC'
7925bd23fbfaSmrg	lt_prog_compiler_static='-Bstatic'
7926bd23fbfaSmrg	;;
7927bd23fbfaSmrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7928bd23fbfaSmrg        # Portland Group compilers (*not* the Pentium gcc compiler,
7929bd23fbfaSmrg	# which looks to be a dead project)
7930bd23fbfaSmrg	lt_prog_compiler_wl='-Wl,'
7931bd23fbfaSmrg	lt_prog_compiler_pic='-fpic'
7932bd23fbfaSmrg	lt_prog_compiler_static='-Bstatic'
7933bd23fbfaSmrg        ;;
7934bd23fbfaSmrg      ccc*)
7935bd23fbfaSmrg        lt_prog_compiler_wl='-Wl,'
7936bd23fbfaSmrg        # All Alpha code is PIC.
7937bd23fbfaSmrg        lt_prog_compiler_static='-non_shared'
7938bd23fbfaSmrg        ;;
7939bd23fbfaSmrg      xl* | bgxl* | bgf* | mpixl*)
7940bd23fbfaSmrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7941bd23fbfaSmrg	lt_prog_compiler_wl='-Wl,'
7942bd23fbfaSmrg	lt_prog_compiler_pic='-qpic'
7943bd23fbfaSmrg	lt_prog_compiler_static='-qstaticlink'
7944bd23fbfaSmrg	;;
7945bd23fbfaSmrg      *)
7946bd23fbfaSmrg	case `$CC -V 2>&1 | sed 5q` in
7947bd23fbfaSmrg	*Sun\ F* | *Sun*Fortran*)
7948bd23fbfaSmrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7949bd23fbfaSmrg	  lt_prog_compiler_pic='-KPIC'
7950bd23fbfaSmrg	  lt_prog_compiler_static='-Bstatic'
7951bd23fbfaSmrg	  lt_prog_compiler_wl=''
7952bd23fbfaSmrg	  ;;
7953bd23fbfaSmrg	*Sun\ C*)
7954bd23fbfaSmrg	  # Sun C 5.9
7955bd23fbfaSmrg	  lt_prog_compiler_pic='-KPIC'
7956bd23fbfaSmrg	  lt_prog_compiler_static='-Bstatic'
7957bd23fbfaSmrg	  lt_prog_compiler_wl='-Wl,'
7958bd23fbfaSmrg	  ;;
7959bd23fbfaSmrg	esac
7960bd23fbfaSmrg	;;
7961bd23fbfaSmrg      esac
7962bd23fbfaSmrg      ;;
7963b042e37fSmrg
7964bd23fbfaSmrg    newsos6)
7965bd23fbfaSmrg      lt_prog_compiler_pic='-KPIC'
7966bd23fbfaSmrg      lt_prog_compiler_static='-Bstatic'
7967bd23fbfaSmrg      ;;
7968b042e37fSmrg
7969bd23fbfaSmrg    *nto* | *qnx*)
7970bd23fbfaSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
7971bd23fbfaSmrg      # it will coredump.
7972bd23fbfaSmrg      lt_prog_compiler_pic='-fPIC -shared'
7973bd23fbfaSmrg      ;;
7974b042e37fSmrg
7975bd23fbfaSmrg    osf3* | osf4* | osf5*)
7976bd23fbfaSmrg      lt_prog_compiler_wl='-Wl,'
7977bd23fbfaSmrg      # All OSF/1 code is PIC.
7978bd23fbfaSmrg      lt_prog_compiler_static='-non_shared'
7979bd23fbfaSmrg      ;;
7980b042e37fSmrg
7981bd23fbfaSmrg    rdos*)
7982bd23fbfaSmrg      lt_prog_compiler_static='-non_shared'
7983bd23fbfaSmrg      ;;
7984b042e37fSmrg
7985bd23fbfaSmrg    solaris*)
7986bd23fbfaSmrg      lt_prog_compiler_pic='-KPIC'
7987bd23fbfaSmrg      lt_prog_compiler_static='-Bstatic'
7988bd23fbfaSmrg      case $cc_basename in
7989bd23fbfaSmrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7990bd23fbfaSmrg	lt_prog_compiler_wl='-Qoption ld ';;
7991bd23fbfaSmrg      *)
7992bd23fbfaSmrg	lt_prog_compiler_wl='-Wl,';;
7993bd23fbfaSmrg      esac
7994bd23fbfaSmrg      ;;
7995b042e37fSmrg
7996bd23fbfaSmrg    sunos4*)
7997bd23fbfaSmrg      lt_prog_compiler_wl='-Qoption ld '
7998bd23fbfaSmrg      lt_prog_compiler_pic='-PIC'
7999bd23fbfaSmrg      lt_prog_compiler_static='-Bstatic'
8000bd23fbfaSmrg      ;;
8001b042e37fSmrg
8002bd23fbfaSmrg    sysv4 | sysv4.2uw2* | sysv4.3*)
8003bd23fbfaSmrg      lt_prog_compiler_wl='-Wl,'
8004bd23fbfaSmrg      lt_prog_compiler_pic='-KPIC'
8005bd23fbfaSmrg      lt_prog_compiler_static='-Bstatic'
8006bd23fbfaSmrg      ;;
8007b042e37fSmrg
8008bd23fbfaSmrg    sysv4*MP*)
8009bd23fbfaSmrg      if test -d /usr/nec ;then
8010bd23fbfaSmrg	lt_prog_compiler_pic='-Kconform_pic'
8011bd23fbfaSmrg	lt_prog_compiler_static='-Bstatic'
8012bd23fbfaSmrg      fi
8013bd23fbfaSmrg      ;;
8014b042e37fSmrg
8015bd23fbfaSmrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8016bd23fbfaSmrg      lt_prog_compiler_wl='-Wl,'
8017bd23fbfaSmrg      lt_prog_compiler_pic='-KPIC'
8018bd23fbfaSmrg      lt_prog_compiler_static='-Bstatic'
8019bd23fbfaSmrg      ;;
8020b042e37fSmrg
8021bd23fbfaSmrg    unicos*)
8022bd23fbfaSmrg      lt_prog_compiler_wl='-Wl,'
8023bd23fbfaSmrg      lt_prog_compiler_can_build_shared=no
8024bd23fbfaSmrg      ;;
8025b042e37fSmrg
8026bd23fbfaSmrg    uts4*)
8027bd23fbfaSmrg      lt_prog_compiler_pic='-pic'
8028bd23fbfaSmrg      lt_prog_compiler_static='-Bstatic'
8029bd23fbfaSmrg      ;;
80308c4a8e55Smrg
8031b042e37fSmrg    *)
8032bd23fbfaSmrg      lt_prog_compiler_can_build_shared=no
8033b042e37fSmrg      ;;
8034b042e37fSmrg    esac
8035bd23fbfaSmrg  fi
8036b042e37fSmrg
8037bd23fbfaSmrgcase $host_os in
8038bd23fbfaSmrg  # For platforms which do not support PIC, -DPIC is meaningless:
8039bd23fbfaSmrg  *djgpp*)
8040bd23fbfaSmrg    lt_prog_compiler_pic=
8041bd23fbfaSmrg    ;;
8042bd23fbfaSmrg  *)
8043bd23fbfaSmrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8044bd23fbfaSmrg    ;;
8045bd23fbfaSmrgesac
8046b042e37fSmrg
8047bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8048bd23fbfaSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8049bd23fbfaSmrgif ${lt_cv_prog_compiler_pic+:} false; then :
8050bd23fbfaSmrg  $as_echo_n "(cached) " >&6
8051bd23fbfaSmrgelse
8052bd23fbfaSmrg  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8053bd23fbfaSmrgfi
8054bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8055bd23fbfaSmrg$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8056bd23fbfaSmrglt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8057b042e37fSmrg
8058bd23fbfaSmrg#
8059bd23fbfaSmrg# Check to make sure the PIC flag actually works.
8060bd23fbfaSmrg#
8061bd23fbfaSmrgif test -n "$lt_prog_compiler_pic"; then
8062bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8063bd23fbfaSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8064bd23fbfaSmrgif ${lt_cv_prog_compiler_pic_works+:} false; then :
8065bd23fbfaSmrg  $as_echo_n "(cached) " >&6
8066bd23fbfaSmrgelse
8067bd23fbfaSmrg  lt_cv_prog_compiler_pic_works=no
8068bd23fbfaSmrg   ac_outfile=conftest.$ac_objext
8069bd23fbfaSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070bd23fbfaSmrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8071bd23fbfaSmrg   # Insert the option either (1) after the last *FLAGS variable, or
8072bd23fbfaSmrg   # (2) before a word containing "conftest.", or (3) at the end.
8073bd23fbfaSmrg   # Note that $ac_compile itself does not contain backslashes and begins
8074bd23fbfaSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
8075bd23fbfaSmrg   # The option is referenced via a variable to avoid confusing sed.
8076bd23fbfaSmrg   lt_compile=`echo "$ac_compile" | $SED \
8077bd23fbfaSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078bd23fbfaSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079bd23fbfaSmrg   -e 's:$: $lt_compiler_flag:'`
8080bd23fbfaSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8081bd23fbfaSmrg   (eval "$lt_compile" 2>conftest.err)
8082bd23fbfaSmrg   ac_status=$?
8083bd23fbfaSmrg   cat conftest.err >&5
8084bd23fbfaSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085bd23fbfaSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
8086bd23fbfaSmrg     # The compiler can only warn and ignore the option if not recognized
8087bd23fbfaSmrg     # So say no if there are warnings other than the usual output.
8088bd23fbfaSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8089bd23fbfaSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8090bd23fbfaSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8091bd23fbfaSmrg       lt_cv_prog_compiler_pic_works=yes
8092bd23fbfaSmrg     fi
8093bd23fbfaSmrg   fi
8094bd23fbfaSmrg   $RM conftest*
8095b042e37fSmrg
8096bd23fbfaSmrgfi
8097bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8098bd23fbfaSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8099b042e37fSmrg
8100bd23fbfaSmrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8101bd23fbfaSmrg    case $lt_prog_compiler_pic in
8102bd23fbfaSmrg     "" | " "*) ;;
8103bd23fbfaSmrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8104bd23fbfaSmrg     esac
8105bd23fbfaSmrgelse
8106bd23fbfaSmrg    lt_prog_compiler_pic=
8107bd23fbfaSmrg     lt_prog_compiler_can_build_shared=no
8108bd23fbfaSmrgfi
8109b042e37fSmrg
8110bd23fbfaSmrgfi
8111b042e37fSmrg
8112b042e37fSmrg
8113b042e37fSmrg
8114b042e37fSmrg
8115b042e37fSmrg
8116b042e37fSmrg
8117b042e37fSmrg
8118b042e37fSmrg
8119b042e37fSmrg
8120b042e37fSmrg
8121b042e37fSmrg
8122bd23fbfaSmrg#
8123bd23fbfaSmrg# Check to make sure the static flag actually works.
8124bd23fbfaSmrg#
8125bd23fbfaSmrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8126bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8127bd23fbfaSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8128bd23fbfaSmrgif ${lt_cv_prog_compiler_static_works+:} false; then :
8129bd23fbfaSmrg  $as_echo_n "(cached) " >&6
8130bd23fbfaSmrgelse
8131bd23fbfaSmrg  lt_cv_prog_compiler_static_works=no
8132bd23fbfaSmrg   save_LDFLAGS="$LDFLAGS"
8133bd23fbfaSmrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8134bd23fbfaSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8135bd23fbfaSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8136bd23fbfaSmrg     # The linker can only warn and ignore the option if not recognized
8137bd23fbfaSmrg     # So say no if there are warnings
8138bd23fbfaSmrg     if test -s conftest.err; then
8139bd23fbfaSmrg       # Append any errors to the config.log.
8140bd23fbfaSmrg       cat conftest.err 1>&5
8141bd23fbfaSmrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8142bd23fbfaSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8143bd23fbfaSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
8144bd23fbfaSmrg         lt_cv_prog_compiler_static_works=yes
8145bd23fbfaSmrg       fi
8146bd23fbfaSmrg     else
8147bd23fbfaSmrg       lt_cv_prog_compiler_static_works=yes
8148bd23fbfaSmrg     fi
8149bd23fbfaSmrg   fi
8150bd23fbfaSmrg   $RM -r conftest*
8151bd23fbfaSmrg   LDFLAGS="$save_LDFLAGS"
8152b042e37fSmrg
8153bd23fbfaSmrgfi
8154bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8155bd23fbfaSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8156b042e37fSmrg
8157bd23fbfaSmrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
8158bd23fbfaSmrg    :
8159bd23fbfaSmrgelse
8160bd23fbfaSmrg    lt_prog_compiler_static=
8161bd23fbfaSmrgfi
8162b042e37fSmrg
8163b042e37fSmrg
8164b042e37fSmrg
8165706b6b52Smrg
8166b042e37fSmrg
8167b042e37fSmrg
8168b042e37fSmrg
8169bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8170bd23fbfaSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8171bd23fbfaSmrgif ${lt_cv_prog_compiler_c_o+:} false; then :
8172bd23fbfaSmrg  $as_echo_n "(cached) " >&6
8173bd23fbfaSmrgelse
8174bd23fbfaSmrg  lt_cv_prog_compiler_c_o=no
8175bd23fbfaSmrg   $RM -r conftest 2>/dev/null
8176bd23fbfaSmrg   mkdir conftest
8177bd23fbfaSmrg   cd conftest
8178bd23fbfaSmrg   mkdir out
8179bd23fbfaSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180b042e37fSmrg
8181bd23fbfaSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
8182bd23fbfaSmrg   # Insert the option either (1) after the last *FLAGS variable, or
8183bd23fbfaSmrg   # (2) before a word containing "conftest.", or (3) at the end.
8184bd23fbfaSmrg   # Note that $ac_compile itself does not contain backslashes and begins
8185bd23fbfaSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
8186bd23fbfaSmrg   lt_compile=`echo "$ac_compile" | $SED \
8187bd23fbfaSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188bd23fbfaSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189bd23fbfaSmrg   -e 's:$: $lt_compiler_flag:'`
8190bd23fbfaSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8191bd23fbfaSmrg   (eval "$lt_compile" 2>out/conftest.err)
8192bd23fbfaSmrg   ac_status=$?
8193bd23fbfaSmrg   cat out/conftest.err >&5
8194bd23fbfaSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195bd23fbfaSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8196bd23fbfaSmrg   then
8197bd23fbfaSmrg     # The compiler can only warn and ignore the option if not recognized
8198bd23fbfaSmrg     # So say no if there are warnings
8199bd23fbfaSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8200bd23fbfaSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8201bd23fbfaSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8202bd23fbfaSmrg       lt_cv_prog_compiler_c_o=yes
8203bd23fbfaSmrg     fi
8204bd23fbfaSmrg   fi
8205bd23fbfaSmrg   chmod u+w . 2>&5
8206bd23fbfaSmrg   $RM conftest*
8207bd23fbfaSmrg   # SGI C++ compiler will create directory out/ii_files/ for
8208bd23fbfaSmrg   # template instantiation
8209bd23fbfaSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8210bd23fbfaSmrg   $RM out/* && rmdir out
8211bd23fbfaSmrg   cd ..
8212bd23fbfaSmrg   $RM -r conftest
8213bd23fbfaSmrg   $RM conftest*
8214b042e37fSmrg
8215bd23fbfaSmrgfi
8216bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8217bd23fbfaSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8218b042e37fSmrg
8219b042e37fSmrg
8220b042e37fSmrg
8221b042e37fSmrg
8222b042e37fSmrg
8223b042e37fSmrg
8224bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8225bd23fbfaSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8226bd23fbfaSmrgif ${lt_cv_prog_compiler_c_o+:} false; then :
8227bd23fbfaSmrg  $as_echo_n "(cached) " >&6
8228bd23fbfaSmrgelse
8229bd23fbfaSmrg  lt_cv_prog_compiler_c_o=no
8230bd23fbfaSmrg   $RM -r conftest 2>/dev/null
8231bd23fbfaSmrg   mkdir conftest
8232bd23fbfaSmrg   cd conftest
8233bd23fbfaSmrg   mkdir out
8234bd23fbfaSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8235b042e37fSmrg
8236bd23fbfaSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
8237bd23fbfaSmrg   # Insert the option either (1) after the last *FLAGS variable, or
8238bd23fbfaSmrg   # (2) before a word containing "conftest.", or (3) at the end.
8239bd23fbfaSmrg   # Note that $ac_compile itself does not contain backslashes and begins
8240bd23fbfaSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
8241bd23fbfaSmrg   lt_compile=`echo "$ac_compile" | $SED \
8242bd23fbfaSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243bd23fbfaSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244bd23fbfaSmrg   -e 's:$: $lt_compiler_flag:'`
8245bd23fbfaSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246bd23fbfaSmrg   (eval "$lt_compile" 2>out/conftest.err)
8247bd23fbfaSmrg   ac_status=$?
8248bd23fbfaSmrg   cat out/conftest.err >&5
8249bd23fbfaSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250bd23fbfaSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8251bd23fbfaSmrg   then
8252bd23fbfaSmrg     # The compiler can only warn and ignore the option if not recognized
8253bd23fbfaSmrg     # So say no if there are warnings
8254bd23fbfaSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8255bd23fbfaSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8256bd23fbfaSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8257bd23fbfaSmrg       lt_cv_prog_compiler_c_o=yes
8258bd23fbfaSmrg     fi
8259bd23fbfaSmrg   fi
8260bd23fbfaSmrg   chmod u+w . 2>&5
8261bd23fbfaSmrg   $RM conftest*
8262bd23fbfaSmrg   # SGI C++ compiler will create directory out/ii_files/ for
8263bd23fbfaSmrg   # template instantiation
8264bd23fbfaSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8265bd23fbfaSmrg   $RM out/* && rmdir out
8266bd23fbfaSmrg   cd ..
8267bd23fbfaSmrg   $RM -r conftest
8268bd23fbfaSmrg   $RM conftest*
8269b042e37fSmrg
8270bd23fbfaSmrgfi
8271bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8272bd23fbfaSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
82738c4a8e55Smrg
82748c4a8e55Smrg
82758c4a8e55Smrg
8276b042e37fSmrg
8277bd23fbfaSmrghard_links="nottested"
8278bd23fbfaSmrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8279bd23fbfaSmrg  # do not overwrite the value of need_locks provided by the user
8280bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8281bd23fbfaSmrg$as_echo_n "checking if we can lock with hard links... " >&6; }
8282bd23fbfaSmrg  hard_links=yes
8283bd23fbfaSmrg  $RM conftest*
8284bd23fbfaSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8285bd23fbfaSmrg  touch conftest.a
8286bd23fbfaSmrg  ln conftest.a conftest.b 2>&5 || hard_links=no
8287bd23fbfaSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8288bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8289bd23fbfaSmrg$as_echo "$hard_links" >&6; }
8290bd23fbfaSmrg  if test "$hard_links" = no; then
8291bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8292bd23fbfaSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8293bd23fbfaSmrg    need_locks=warn
8294bd23fbfaSmrg  fi
82958c4a8e55Smrgelse
8296bd23fbfaSmrg  need_locks=no
82978c4a8e55Smrgfi
8298b042e37fSmrg
8299b042e37fSmrg
8300b042e37fSmrg
83018c4a8e55Smrg
8302b042e37fSmrg
8303b042e37fSmrg
8304bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8305bd23fbfaSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8306b042e37fSmrg
83078c4a8e55Smrg  runpath_var=
83088c4a8e55Smrg  allow_undefined_flag=
83098c4a8e55Smrg  always_export_symbols=no
83108c4a8e55Smrg  archive_cmds=
83118c4a8e55Smrg  archive_expsym_cmds=
83128c4a8e55Smrg  compiler_needs_object=no
83138c4a8e55Smrg  enable_shared_with_static_runtimes=no
83148c4a8e55Smrg  export_dynamic_flag_spec=
83158c4a8e55Smrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
83168c4a8e55Smrg  hardcode_automatic=no
83178c4a8e55Smrg  hardcode_direct=no
83188c4a8e55Smrg  hardcode_direct_absolute=no
83198c4a8e55Smrg  hardcode_libdir_flag_spec=
83208c4a8e55Smrg  hardcode_libdir_flag_spec_ld=
83218c4a8e55Smrg  hardcode_libdir_separator=
83228c4a8e55Smrg  hardcode_minus_L=no
83238c4a8e55Smrg  hardcode_shlibpath_var=unsupported
83248c4a8e55Smrg  inherit_rpath=no
83258c4a8e55Smrg  link_all_deplibs=unknown
83268c4a8e55Smrg  module_cmds=
83278c4a8e55Smrg  module_expsym_cmds=
83288c4a8e55Smrg  old_archive_from_new_cmds=
83298c4a8e55Smrg  old_archive_from_expsyms_cmds=
83308c4a8e55Smrg  thread_safe_flag_spec=
83318c4a8e55Smrg  whole_archive_flag_spec=
83328c4a8e55Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
83338c4a8e55Smrg  # included in the symbol list
83348c4a8e55Smrg  include_expsyms=
83358c4a8e55Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
83368c4a8e55Smrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
83378c4a8e55Smrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
83388c4a8e55Smrg  # as well as any symbol that contains `d'.
83398c4a8e55Smrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
83408c4a8e55Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
83418c4a8e55Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
83428c4a8e55Smrg  # the symbol is explicitly referenced.  Since portable code cannot
83438c4a8e55Smrg  # rely on this symbol name, it's probably fine to never include it in
83448c4a8e55Smrg  # preloaded symbol tables.
83458c4a8e55Smrg  # Exclude shared library initialization/finalization symbols.
83468c4a8e55Smrg  extract_expsyms_cmds=
8347b042e37fSmrg
83488c4a8e55Smrg  case $host_os in
83498c4a8e55Smrg  cygwin* | mingw* | pw32* | cegcc*)
83508c4a8e55Smrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
83518c4a8e55Smrg    # When not using gcc, we currently assume that we are using
83528c4a8e55Smrg    # Microsoft Visual C++.
83538c4a8e55Smrg    if test "$GCC" != yes; then
83548c4a8e55Smrg      with_gnu_ld=no
83558c4a8e55Smrg    fi
83568c4a8e55Smrg    ;;
83578c4a8e55Smrg  interix*)
83588c4a8e55Smrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
83598c4a8e55Smrg    with_gnu_ld=yes
83608c4a8e55Smrg    ;;
83618c4a8e55Smrg  openbsd*)
83628c4a8e55Smrg    with_gnu_ld=no
83638c4a8e55Smrg    ;;
83648c4a8e55Smrg  esac
8365b042e37fSmrg
83668c4a8e55Smrg  ld_shlibs=yes
8367706b6b52Smrg
8368706b6b52Smrg  # On some targets, GNU ld is compatible enough with the native linker
8369706b6b52Smrg  # that we're better off using the native interface for both.
8370706b6b52Smrg  lt_use_gnu_ld_interface=no
83718c4a8e55Smrg  if test "$with_gnu_ld" = yes; then
8372706b6b52Smrg    case $host_os in
8373706b6b52Smrg      aix*)
8374706b6b52Smrg	# The AIX port of GNU ld has always aspired to compatibility
8375706b6b52Smrg	# with the native linker.  However, as the warning in the GNU ld
8376706b6b52Smrg	# block says, versions before 2.19.5* couldn't really create working
8377706b6b52Smrg	# shared libraries, regardless of the interface used.
8378706b6b52Smrg	case `$LD -v 2>&1` in
8379706b6b52Smrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8380706b6b52Smrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8381706b6b52Smrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8382706b6b52Smrg	  *)
8383706b6b52Smrg	    lt_use_gnu_ld_interface=yes
8384706b6b52Smrg	    ;;
8385706b6b52Smrg	esac
8386706b6b52Smrg	;;
8387706b6b52Smrg      *)
8388706b6b52Smrg	lt_use_gnu_ld_interface=yes
8389706b6b52Smrg	;;
8390706b6b52Smrg    esac
8391706b6b52Smrg  fi
8392706b6b52Smrg
8393706b6b52Smrg  if test "$lt_use_gnu_ld_interface" = yes; then
83948c4a8e55Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
83958c4a8e55Smrg    wlarc='${wl}'
8396b042e37fSmrg
83978c4a8e55Smrg    # Set some defaults for GNU ld with shared library support. These
83988c4a8e55Smrg    # are reset later if shared libraries are not supported. Putting them
83998c4a8e55Smrg    # here allows them to be overridden if necessary.
84008c4a8e55Smrg    runpath_var=LD_RUN_PATH
84018c4a8e55Smrg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
84028c4a8e55Smrg    export_dynamic_flag_spec='${wl}--export-dynamic'
84038c4a8e55Smrg    # ancient GNU ld didn't support --whole-archive et. al.
84048c4a8e55Smrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
84058c4a8e55Smrg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
84068c4a8e55Smrg    else
84078c4a8e55Smrg      whole_archive_flag_spec=
84088c4a8e55Smrg    fi
84098c4a8e55Smrg    supports_anon_versioning=no
84108c4a8e55Smrg    case `$LD -v 2>&1` in
8411706b6b52Smrg      *GNU\ gold*) supports_anon_versioning=yes ;;
84128c4a8e55Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
84138c4a8e55Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
84148c4a8e55Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
84158c4a8e55Smrg      *\ 2.11.*) ;; # other 2.11 versions
84168c4a8e55Smrg      *) supports_anon_versioning=yes ;;
84178c4a8e55Smrg    esac
8418b042e37fSmrg
84198c4a8e55Smrg    # See if GNU ld supports shared libraries.
84208c4a8e55Smrg    case $host_os in
84218c4a8e55Smrg    aix[3-9]*)
84228c4a8e55Smrg      # On AIX/PPC, the GNU linker is very broken
84238c4a8e55Smrg      if test "$host_cpu" != ia64; then
84248c4a8e55Smrg	ld_shlibs=no
84258c4a8e55Smrg	cat <<_LT_EOF 1>&2
8426b042e37fSmrg
8427706b6b52Smrg*** Warning: the GNU linker, at least up to release 2.19, is reported
84288c4a8e55Smrg*** to be unable to reliably create shared libraries on AIX.
84298c4a8e55Smrg*** Therefore, libtool is disabling shared libraries support.  If you
8430706b6b52Smrg*** really care for shared libraries, you may want to install binutils
8431706b6b52Smrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8432706b6b52Smrg*** You will then need to restart the configuration process.
8433b042e37fSmrg
84348c4a8e55Smrg_LT_EOF
84358c4a8e55Smrg      fi
84368c4a8e55Smrg      ;;
8437b042e37fSmrg
84388c4a8e55Smrg    amigaos*)
84398c4a8e55Smrg      case $host_cpu in
84408c4a8e55Smrg      powerpc)
84418c4a8e55Smrg            # see comment about AmigaOS4 .so support
84428c4a8e55Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
84438c4a8e55Smrg            archive_expsym_cmds=''
84448c4a8e55Smrg        ;;
84458c4a8e55Smrg      m68k)
84468c4a8e55Smrg            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)'
84478c4a8e55Smrg            hardcode_libdir_flag_spec='-L$libdir'
84488c4a8e55Smrg            hardcode_minus_L=yes
84498c4a8e55Smrg        ;;
84508c4a8e55Smrg      esac
84518c4a8e55Smrg      ;;
8452b042e37fSmrg
84538c4a8e55Smrg    beos*)
84548c4a8e55Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
84558c4a8e55Smrg	allow_undefined_flag=unsupported
84568c4a8e55Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
84578c4a8e55Smrg	# support --undefined.  This deserves some investigation.  FIXME
84588c4a8e55Smrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
84598c4a8e55Smrg      else
84608c4a8e55Smrg	ld_shlibs=no
84618c4a8e55Smrg      fi
84628c4a8e55Smrg      ;;
8463b042e37fSmrg
84648c4a8e55Smrg    cygwin* | mingw* | pw32* | cegcc*)
84658c4a8e55Smrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
84668c4a8e55Smrg      # as there is no search path for DLLs.
84678c4a8e55Smrg      hardcode_libdir_flag_spec='-L$libdir'
8468706b6b52Smrg      export_dynamic_flag_spec='${wl}--export-all-symbols'
84698c4a8e55Smrg      allow_undefined_flag=unsupported
84708c4a8e55Smrg      always_export_symbols=no
84718c4a8e55Smrg      enable_shared_with_static_runtimes=yes
8472bd23fbfaSmrg      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'
8473bd23fbfaSmrg      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8474b042e37fSmrg
84758c4a8e55Smrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
84768c4a8e55Smrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
84778c4a8e55Smrg	# If the export-symbols file already is a .def file (1st line
84788c4a8e55Smrg	# is EXPORTS), use it as is; otherwise, prepend...
84798c4a8e55Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
84808c4a8e55Smrg	  cp $export_symbols $output_objdir/$soname.def;
84818c4a8e55Smrg	else
84828c4a8e55Smrg	  echo EXPORTS > $output_objdir/$soname.def;
84838c4a8e55Smrg	  cat $export_symbols >> $output_objdir/$soname.def;
84848c4a8e55Smrg	fi~
84858c4a8e55Smrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
84868c4a8e55Smrg      else
84878c4a8e55Smrg	ld_shlibs=no
84888c4a8e55Smrg      fi
84898c4a8e55Smrg      ;;
8490b042e37fSmrg
8491706b6b52Smrg    haiku*)
8492706b6b52Smrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8493706b6b52Smrg      link_all_deplibs=yes
8494706b6b52Smrg      ;;
8495706b6b52Smrg
84968c4a8e55Smrg    interix[3-9]*)
84978c4a8e55Smrg      hardcode_direct=no
84988c4a8e55Smrg      hardcode_shlibpath_var=no
84998c4a8e55Smrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
85008c4a8e55Smrg      export_dynamic_flag_spec='${wl}-E'
85018c4a8e55Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
85028c4a8e55Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
85038c4a8e55Smrg      # default) and relocated if they conflict, which is a slow very memory
85048c4a8e55Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
85058c4a8e55Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
85068c4a8e55Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
85078c4a8e55Smrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
85088c4a8e55Smrg      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'
85098c4a8e55Smrg      ;;
8510b042e37fSmrg
8511706b6b52Smrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
85128c4a8e55Smrg      tmp_diet=no
85138c4a8e55Smrg      if test "$host_os" = linux-dietlibc; then
85148c4a8e55Smrg	case $cc_basename in
85158c4a8e55Smrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
85168c4a8e55Smrg	esac
85178c4a8e55Smrg      fi
85188c4a8e55Smrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
85198c4a8e55Smrg	 && test "$tmp_diet" = no
85208c4a8e55Smrg      then
8521bd23fbfaSmrg	tmp_addflag=' $pic_flag'
85228c4a8e55Smrg	tmp_sharedflag='-shared'
85238c4a8e55Smrg	case $cc_basename,$host_cpu in
85248c4a8e55Smrg        pgcc*)				# Portland Group C compiler
8525706b6b52Smrg	  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'
85268c4a8e55Smrg	  tmp_addflag=' $pic_flag'
85278c4a8e55Smrg	  ;;
8528706b6b52Smrg	pgf77* | pgf90* | pgf95* | pgfortran*)
8529706b6b52Smrg					# Portland Group f77 and f90 compilers
8530706b6b52Smrg	  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'
85318c4a8e55Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
85328c4a8e55Smrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
85338c4a8e55Smrg	  tmp_addflag=' -i_dynamic' ;;
85348c4a8e55Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
85358c4a8e55Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
85368c4a8e55Smrg	ifc* | ifort*)			# Intel Fortran compiler
85378c4a8e55Smrg	  tmp_addflag=' -nofor_main' ;;
85388c4a8e55Smrg	lf95*)				# Lahey Fortran 8.1
85398c4a8e55Smrg	  whole_archive_flag_spec=
85408c4a8e55Smrg	  tmp_sharedflag='--shared' ;;
8541706b6b52Smrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
85428c4a8e55Smrg	  tmp_sharedflag='-qmkshrobj'
85438c4a8e55Smrg	  tmp_addflag= ;;
8544706b6b52Smrg	nvcc*)	# Cuda Compiler Driver 2.2
8545706b6b52Smrg	  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'
8546706b6b52Smrg	  compiler_needs_object=yes
8547706b6b52Smrg	  ;;
85488c4a8e55Smrg	esac
85498c4a8e55Smrg	case `$CC -V 2>&1 | sed 5q` in
85508c4a8e55Smrg	*Sun\ C*)			# Sun C 5.9
8551706b6b52Smrg	  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'
85528c4a8e55Smrg	  compiler_needs_object=yes
85538c4a8e55Smrg	  tmp_sharedflag='-G' ;;
85548c4a8e55Smrg	*Sun\ F*)			# Sun Fortran 8.3
85558c4a8e55Smrg	  tmp_sharedflag='-G' ;;
85568c4a8e55Smrg	esac
85578c4a8e55Smrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558b042e37fSmrg
85598c4a8e55Smrg        if test "x$supports_anon_versioning" = xyes; then
85608c4a8e55Smrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
85618c4a8e55Smrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
85628c4a8e55Smrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
85638c4a8e55Smrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
85648c4a8e55Smrg        fi
8565b042e37fSmrg
85668c4a8e55Smrg	case $cc_basename in
8567706b6b52Smrg	xlf* | bgf* | bgxlf* | mpixlf*)
85688c4a8e55Smrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
85698c4a8e55Smrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
85708c4a8e55Smrg	  hardcode_libdir_flag_spec=
85718c4a8e55Smrg	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8572706b6b52Smrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
85738c4a8e55Smrg	  if test "x$supports_anon_versioning" = xyes; then
85748c4a8e55Smrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
85758c4a8e55Smrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
85768c4a8e55Smrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
8577706b6b52Smrg	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
85788c4a8e55Smrg	  fi
85798c4a8e55Smrg	  ;;
85808c4a8e55Smrg	esac
85818c4a8e55Smrg      else
85828c4a8e55Smrg        ld_shlibs=no
85838c4a8e55Smrg      fi
85848c4a8e55Smrg      ;;
8585b042e37fSmrg
85868c4a8e55Smrg    netbsd*)
85878c4a8e55Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
85888c4a8e55Smrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
85898c4a8e55Smrg	wlarc=
85908c4a8e55Smrg      else
8591bd23fbfaSmrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592bd23fbfaSmrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
85938c4a8e55Smrg      fi
85948c4a8e55Smrg      ;;
8595b042e37fSmrg
85968c4a8e55Smrg    solaris*)
85978c4a8e55Smrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
85988c4a8e55Smrg	ld_shlibs=no
85998c4a8e55Smrg	cat <<_LT_EOF 1>&2
8600b042e37fSmrg
86018c4a8e55Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
86028c4a8e55Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
86038c4a8e55Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
86048c4a8e55Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
86058c4a8e55Smrg*** your PATH or compiler configuration so that the native linker is
86068c4a8e55Smrg*** used, and then restart.
8607b042e37fSmrg
86088c4a8e55Smrg_LT_EOF
86098c4a8e55Smrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8610bd23fbfaSmrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611bd23fbfaSmrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
86128c4a8e55Smrg      else
86138c4a8e55Smrg	ld_shlibs=no
86148c4a8e55Smrg      fi
86158c4a8e55Smrg      ;;
8616b042e37fSmrg
86178c4a8e55Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
86188c4a8e55Smrg      case `$LD -v 2>&1` in
86198c4a8e55Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
86208c4a8e55Smrg	ld_shlibs=no
86218c4a8e55Smrg	cat <<_LT_EOF 1>&2
8622b042e37fSmrg
86238c4a8e55Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
86248c4a8e55Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
86258c4a8e55Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
86268c4a8e55Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
86278c4a8e55Smrg*** your PATH or compiler configuration so that the native linker is
86288c4a8e55Smrg*** used, and then restart.
8629b042e37fSmrg
86308c4a8e55Smrg_LT_EOF
86318c4a8e55Smrg	;;
86328c4a8e55Smrg	*)
86338c4a8e55Smrg	  # For security reasons, it is highly recommended that you always
86348c4a8e55Smrg	  # use absolute paths for naming shared libraries, and exclude the
86358c4a8e55Smrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
86368c4a8e55Smrg	  # requires that you compile everything twice, which is a pain.
86378c4a8e55Smrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
86388c4a8e55Smrg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
86398c4a8e55Smrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
86408c4a8e55Smrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
86418c4a8e55Smrg	  else
86428c4a8e55Smrg	    ld_shlibs=no
86438c4a8e55Smrg	  fi
86448c4a8e55Smrg	;;
86458c4a8e55Smrg      esac
86468c4a8e55Smrg      ;;
8647b042e37fSmrg
86488c4a8e55Smrg    sunos4*)
86498c4a8e55Smrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
86508c4a8e55Smrg      wlarc=
86518c4a8e55Smrg      hardcode_direct=yes
86528c4a8e55Smrg      hardcode_shlibpath_var=no
86538c4a8e55Smrg      ;;
8654b042e37fSmrg
86558c4a8e55Smrg    *)
86568c4a8e55Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657bd23fbfaSmrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658bd23fbfaSmrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
86598c4a8e55Smrg      else
86608c4a8e55Smrg	ld_shlibs=no
86618c4a8e55Smrg      fi
86628c4a8e55Smrg      ;;
86638c4a8e55Smrg    esac
8664b042e37fSmrg
86658c4a8e55Smrg    if test "$ld_shlibs" = no; then
86668c4a8e55Smrg      runpath_var=
86678c4a8e55Smrg      hardcode_libdir_flag_spec=
86688c4a8e55Smrg      export_dynamic_flag_spec=
86698c4a8e55Smrg      whole_archive_flag_spec=
86708c4a8e55Smrg    fi
86718c4a8e55Smrg  else
86728c4a8e55Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
86738c4a8e55Smrg    case $host_os in
86748c4a8e55Smrg    aix3*)
86758c4a8e55Smrg      allow_undefined_flag=unsupported
86768c4a8e55Smrg      always_export_symbols=yes
86778c4a8e55Smrg      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'
86788c4a8e55Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
86798c4a8e55Smrg      # are no directories specified by -L.
86808c4a8e55Smrg      hardcode_minus_L=yes
86818c4a8e55Smrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
86828c4a8e55Smrg	# Neither direct hardcoding nor static linking is supported with a
86838c4a8e55Smrg	# broken collect2.
86848c4a8e55Smrg	hardcode_direct=unsupported
86858c4a8e55Smrg      fi
86868c4a8e55Smrg      ;;
8687b042e37fSmrg
86888c4a8e55Smrg    aix[4-9]*)
86898c4a8e55Smrg      if test "$host_cpu" = ia64; then
86908c4a8e55Smrg	# On IA64, the linker does run time linking by default, so we don't
86918c4a8e55Smrg	# have to do anything special.
86928c4a8e55Smrg	aix_use_runtimelinking=no
86938c4a8e55Smrg	exp_sym_flag='-Bexport'
86948c4a8e55Smrg	no_entry_flag=""
86958c4a8e55Smrg      else
86968c4a8e55Smrg	# If we're using GNU nm, then we don't want the "-C" option.
86978c4a8e55Smrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8698706b6b52Smrg	# Also, AIX nm treats weak defined symbols like other global
8699706b6b52Smrg	# defined symbols, whereas GNU nm marks them as "W".
87008c4a8e55Smrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8701706b6b52Smrg	  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'
87028c4a8e55Smrg	else
87038c4a8e55Smrg	  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'
87048c4a8e55Smrg	fi
87058c4a8e55Smrg	aix_use_runtimelinking=no
8706b042e37fSmrg
87078c4a8e55Smrg	# Test if we are trying to use run time linking or normal
87088c4a8e55Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
87098c4a8e55Smrg	# need to do runtime linking.
87108c4a8e55Smrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
87118c4a8e55Smrg	  for ld_flag in $LDFLAGS; do
87128c4a8e55Smrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
87138c4a8e55Smrg	    aix_use_runtimelinking=yes
87148c4a8e55Smrg	    break
87158c4a8e55Smrg	  fi
87168c4a8e55Smrg	  done
87178c4a8e55Smrg	  ;;
87188c4a8e55Smrg	esac
8719b042e37fSmrg
87208c4a8e55Smrg	exp_sym_flag='-bexport'
87218c4a8e55Smrg	no_entry_flag='-bnoentry'
87228c4a8e55Smrg      fi
8723b042e37fSmrg
87248c4a8e55Smrg      # When large executables or shared objects are built, AIX ld can
87258c4a8e55Smrg      # have problems creating the table of contents.  If linking a library
87268c4a8e55Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
87278c4a8e55Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
87288c4a8e55Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8729b042e37fSmrg
87308c4a8e55Smrg      archive_cmds=''
87318c4a8e55Smrg      hardcode_direct=yes
87328c4a8e55Smrg      hardcode_direct_absolute=yes
87338c4a8e55Smrg      hardcode_libdir_separator=':'
87348c4a8e55Smrg      link_all_deplibs=yes
87358c4a8e55Smrg      file_list_spec='${wl}-f,'
8736b042e37fSmrg
87378c4a8e55Smrg      if test "$GCC" = yes; then
87388c4a8e55Smrg	case $host_os in aix4.[012]|aix4.[012].*)
87398c4a8e55Smrg	# We only want to do this on AIX 4.2 and lower, the check
87408c4a8e55Smrg	# below for broken collect2 doesn't work under 4.3+
87418c4a8e55Smrg	  collect2name=`${CC} -print-prog-name=collect2`
87428c4a8e55Smrg	  if test -f "$collect2name" &&
87438c4a8e55Smrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
87448c4a8e55Smrg	  then
87458c4a8e55Smrg	  # We have reworked collect2
87468c4a8e55Smrg	  :
87478c4a8e55Smrg	  else
87488c4a8e55Smrg	  # We have old collect2
87498c4a8e55Smrg	  hardcode_direct=unsupported
87508c4a8e55Smrg	  # It fails to find uninstalled libraries when the uninstalled
87518c4a8e55Smrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
87528c4a8e55Smrg	  # to unsupported forces relinking
87538c4a8e55Smrg	  hardcode_minus_L=yes
87548c4a8e55Smrg	  hardcode_libdir_flag_spec='-L$libdir'
87558c4a8e55Smrg	  hardcode_libdir_separator=
87568c4a8e55Smrg	  fi
87578c4a8e55Smrg	  ;;
87588c4a8e55Smrg	esac
87598c4a8e55Smrg	shared_flag='-shared'
87608c4a8e55Smrg	if test "$aix_use_runtimelinking" = yes; then
87618c4a8e55Smrg	  shared_flag="$shared_flag "'${wl}-G'
87628c4a8e55Smrg	fi
87638c4a8e55Smrg      else
87648c4a8e55Smrg	# not using gcc
87658c4a8e55Smrg	if test "$host_cpu" = ia64; then
87668c4a8e55Smrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
87678c4a8e55Smrg	# chokes on -Wl,-G. The following line is correct:
87688c4a8e55Smrg	  shared_flag='-G'
87698c4a8e55Smrg	else
87708c4a8e55Smrg	  if test "$aix_use_runtimelinking" = yes; then
87718c4a8e55Smrg	    shared_flag='${wl}-G'
87728c4a8e55Smrg	  else
87738c4a8e55Smrg	    shared_flag='${wl}-bM:SRE'
87748c4a8e55Smrg	  fi
87758c4a8e55Smrg	fi
87768c4a8e55Smrg      fi
8777b042e37fSmrg
87788c4a8e55Smrg      export_dynamic_flag_spec='${wl}-bexpall'
87798c4a8e55Smrg      # It seems that -bexpall does not export symbols beginning with
87808c4a8e55Smrg      # underscore (_), so it is better to generate a list of symbols to export.
87818c4a8e55Smrg      always_export_symbols=yes
87828c4a8e55Smrg      if test "$aix_use_runtimelinking" = yes; then
87838c4a8e55Smrg	# Warning - without using the other runtime loading flags (-brtl),
87848c4a8e55Smrg	# -berok will link without error, but may produce a broken library.
87858c4a8e55Smrg	allow_undefined_flag='-berok'
87868c4a8e55Smrg        # Determine the default libpath from the value encoded in an
87878c4a8e55Smrg        # empty executable.
8788bd23fbfaSmrg        if test "${lt_cv_aix_libpath+set}" = set; then
8789bd23fbfaSmrg  aix_libpath=$lt_cv_aix_libpath
8790bd23fbfaSmrgelse
8791bd23fbfaSmrg  if ${lt_cv_aix_libpath_+:} false; then :
8792bd23fbfaSmrg  $as_echo_n "(cached) " >&6
8793bd23fbfaSmrgelse
8794bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87958c4a8e55Smrg/* end confdefs.h.  */
8796b042e37fSmrg
87978c4a8e55Smrgint
87988c4a8e55Smrgmain ()
87998c4a8e55Smrg{
8800b042e37fSmrg
88018c4a8e55Smrg  ;
88028c4a8e55Smrg  return 0;
88038c4a8e55Smrg}
88048c4a8e55Smrg_ACEOF
8805706b6b52Smrgif ac_fn_c_try_link "$LINENO"; then :
8806b042e37fSmrg
8807bd23fbfaSmrg  lt_aix_libpath_sed='
8808bd23fbfaSmrg      /Import File Strings/,/^$/ {
8809bd23fbfaSmrg	  /^0/ {
8810bd23fbfaSmrg	      s/^0  *\([^ ]*\) *$/\1/
8811bd23fbfaSmrg	      p
8812bd23fbfaSmrg	  }
8813bd23fbfaSmrg      }'
8814bd23fbfaSmrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8815bd23fbfaSmrg  # Check for a 64-bit object if we didn't find anything.
8816bd23fbfaSmrg  if test -z "$lt_cv_aix_libpath_"; then
8817bd23fbfaSmrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8818bd23fbfaSmrg  fi
88198c4a8e55Smrgfi
8820706b6b52Smrgrm -f core conftest.err conftest.$ac_objext \
8821706b6b52Smrg    conftest$ac_exeext conftest.$ac_ext
8822bd23fbfaSmrg  if test -z "$lt_cv_aix_libpath_"; then
8823bd23fbfaSmrg    lt_cv_aix_libpath_="/usr/lib:/lib"
8824bd23fbfaSmrg  fi
8825bd23fbfaSmrg
8826bd23fbfaSmrgfi
8827bd23fbfaSmrg
8828bd23fbfaSmrg  aix_libpath=$lt_cv_aix_libpath_
8829bd23fbfaSmrgfi
8830b042e37fSmrg
88318c4a8e55Smrg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8832706b6b52Smrg        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"
88338c4a8e55Smrg      else
88348c4a8e55Smrg	if test "$host_cpu" = ia64; then
88358c4a8e55Smrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
88368c4a8e55Smrg	  allow_undefined_flag="-z nodefs"
88378c4a8e55Smrg	  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"
88388c4a8e55Smrg	else
88398c4a8e55Smrg	 # Determine the default libpath from the value encoded in an
88408c4a8e55Smrg	 # empty executable.
8841bd23fbfaSmrg	 if test "${lt_cv_aix_libpath+set}" = set; then
8842bd23fbfaSmrg  aix_libpath=$lt_cv_aix_libpath
8843bd23fbfaSmrgelse
8844bd23fbfaSmrg  if ${lt_cv_aix_libpath_+:} false; then :
8845bd23fbfaSmrg  $as_echo_n "(cached) " >&6
8846bd23fbfaSmrgelse
8847bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88488c4a8e55Smrg/* end confdefs.h.  */
8849b042e37fSmrg
88508c4a8e55Smrgint
88518c4a8e55Smrgmain ()
88528c4a8e55Smrg{
8853b042e37fSmrg
88548c4a8e55Smrg  ;
88558c4a8e55Smrg  return 0;
88568c4a8e55Smrg}
88578c4a8e55Smrg_ACEOF
8858706b6b52Smrgif ac_fn_c_try_link "$LINENO"; then :
8859b042e37fSmrg
8860bd23fbfaSmrg  lt_aix_libpath_sed='
8861bd23fbfaSmrg      /Import File Strings/,/^$/ {
8862bd23fbfaSmrg	  /^0/ {
8863bd23fbfaSmrg	      s/^0  *\([^ ]*\) *$/\1/
8864bd23fbfaSmrg	      p
8865bd23fbfaSmrg	  }
8866bd23fbfaSmrg      }'
8867bd23fbfaSmrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8868bd23fbfaSmrg  # Check for a 64-bit object if we didn't find anything.
8869bd23fbfaSmrg  if test -z "$lt_cv_aix_libpath_"; then
8870bd23fbfaSmrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8871bd23fbfaSmrg  fi
8872b042e37fSmrgfi
8873706b6b52Smrgrm -f core conftest.err conftest.$ac_objext \
8874706b6b52Smrg    conftest$ac_exeext conftest.$ac_ext
8875bd23fbfaSmrg  if test -z "$lt_cv_aix_libpath_"; then
8876bd23fbfaSmrg    lt_cv_aix_libpath_="/usr/lib:/lib"
8877bd23fbfaSmrg  fi
8878bd23fbfaSmrg
8879bd23fbfaSmrgfi
8880bd23fbfaSmrg
8881bd23fbfaSmrg  aix_libpath=$lt_cv_aix_libpath_
8882bd23fbfaSmrgfi
8883b042e37fSmrg
88848c4a8e55Smrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
88858c4a8e55Smrg	  # Warning - without using the other run time loading flags,
88868c4a8e55Smrg	  # -berok will link without error, but may produce a broken library.
88878c4a8e55Smrg	  no_undefined_flag=' ${wl}-bernotok'
88888c4a8e55Smrg	  allow_undefined_flag=' ${wl}-berok'
8889706b6b52Smrg	  if test "$with_gnu_ld" = yes; then
8890706b6b52Smrg	    # We only use this code for GNU lds that support --whole-archive.
8891706b6b52Smrg	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8892706b6b52Smrg	  else
8893706b6b52Smrg	    # Exported symbols can be pulled into shared objects from archives
8894706b6b52Smrg	    whole_archive_flag_spec='$convenience'
8895706b6b52Smrg	  fi
88968c4a8e55Smrg	  archive_cmds_need_lc=yes
88978c4a8e55Smrg	  # This is similar to how AIX traditionally builds its shared libraries.
88988c4a8e55Smrg	  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'
88998c4a8e55Smrg	fi
89008c4a8e55Smrg      fi
89018c4a8e55Smrg      ;;
8902b042e37fSmrg
89038c4a8e55Smrg    amigaos*)
89048c4a8e55Smrg      case $host_cpu in
89058c4a8e55Smrg      powerpc)
89068c4a8e55Smrg            # see comment about AmigaOS4 .so support
89078c4a8e55Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
89088c4a8e55Smrg            archive_expsym_cmds=''
89098c4a8e55Smrg        ;;
89108c4a8e55Smrg      m68k)
89118c4a8e55Smrg            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)'
89128c4a8e55Smrg            hardcode_libdir_flag_spec='-L$libdir'
89138c4a8e55Smrg            hardcode_minus_L=yes
89148c4a8e55Smrg        ;;
8915b042e37fSmrg      esac
89168c4a8e55Smrg      ;;
8917b042e37fSmrg
89188c4a8e55Smrg    bsdi[45]*)
89198c4a8e55Smrg      export_dynamic_flag_spec=-rdynamic
89208c4a8e55Smrg      ;;
8921b042e37fSmrg
89228c4a8e55Smrg    cygwin* | mingw* | pw32* | cegcc*)
89238c4a8e55Smrg      # When not using gcc, we currently assume that we are using
89248c4a8e55Smrg      # Microsoft Visual C++.
89258c4a8e55Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
89268c4a8e55Smrg      # no search path for DLLs.
8927bd23fbfaSmrg      case $cc_basename in
8928bd23fbfaSmrg      cl*)
8929bd23fbfaSmrg	# Native MSVC
8930bd23fbfaSmrg	hardcode_libdir_flag_spec=' '
8931bd23fbfaSmrg	allow_undefined_flag=unsupported
8932bd23fbfaSmrg	always_export_symbols=yes
8933bd23fbfaSmrg	file_list_spec='@'
8934bd23fbfaSmrg	# Tell ltmain to make .lib files, not .a files.
8935bd23fbfaSmrg	libext=lib
8936bd23fbfaSmrg	# Tell ltmain to make .dll files, not .so files.
8937bd23fbfaSmrg	shrext_cmds=".dll"
8938bd23fbfaSmrg	# FIXME: Setting linknames here is a bad hack.
8939bd23fbfaSmrg	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8940bd23fbfaSmrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8941bd23fbfaSmrg	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8942bd23fbfaSmrg	  else
8943bd23fbfaSmrg	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8944bd23fbfaSmrg	  fi~
8945bd23fbfaSmrg	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8946bd23fbfaSmrg	  linknames='
8947bd23fbfaSmrg	# The linker will not automatically build a static lib if we build a DLL.
8948bd23fbfaSmrg	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8949bd23fbfaSmrg	enable_shared_with_static_runtimes=yes
8950bd23fbfaSmrg	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8951bd23fbfaSmrg	# Don't use ranlib
8952bd23fbfaSmrg	old_postinstall_cmds='chmod 644 $oldlib'
8953bd23fbfaSmrg	postlink_cmds='lt_outputfile="@OUTPUT@"~
8954bd23fbfaSmrg	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8955bd23fbfaSmrg	  case $lt_outputfile in
8956bd23fbfaSmrg	    *.exe|*.EXE) ;;
8957bd23fbfaSmrg	    *)
8958bd23fbfaSmrg	      lt_outputfile="$lt_outputfile.exe"
8959bd23fbfaSmrg	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8960bd23fbfaSmrg	      ;;
8961bd23fbfaSmrg	  esac~
8962bd23fbfaSmrg	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8963bd23fbfaSmrg	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8964bd23fbfaSmrg	    $RM "$lt_outputfile.manifest";
8965bd23fbfaSmrg	  fi'
8966bd23fbfaSmrg	;;
8967bd23fbfaSmrg      *)
8968bd23fbfaSmrg	# Assume MSVC wrapper
8969bd23fbfaSmrg	hardcode_libdir_flag_spec=' '
8970bd23fbfaSmrg	allow_undefined_flag=unsupported
8971bd23fbfaSmrg	# Tell ltmain to make .lib files, not .a files.
8972bd23fbfaSmrg	libext=lib
8973bd23fbfaSmrg	# Tell ltmain to make .dll files, not .so files.
8974bd23fbfaSmrg	shrext_cmds=".dll"
8975bd23fbfaSmrg	# FIXME: Setting linknames here is a bad hack.
8976bd23fbfaSmrg	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8977bd23fbfaSmrg	# The linker will automatically build a .lib file if we build a DLL.
8978bd23fbfaSmrg	old_archive_from_new_cmds='true'
8979bd23fbfaSmrg	# FIXME: Should let the user specify the lib program.
8980bd23fbfaSmrg	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8981bd23fbfaSmrg	enable_shared_with_static_runtimes=yes
8982bd23fbfaSmrg	;;
8983bd23fbfaSmrg      esac
89848c4a8e55Smrg      ;;
8985b042e37fSmrg
89868c4a8e55Smrg    darwin* | rhapsody*)
8987b042e37fSmrg
8988b042e37fSmrg
89898c4a8e55Smrg  archive_cmds_need_lc=no
89908c4a8e55Smrg  hardcode_direct=no
89918c4a8e55Smrg  hardcode_automatic=yes
89928c4a8e55Smrg  hardcode_shlibpath_var=unsupported
8993706b6b52Smrg  if test "$lt_cv_ld_force_load" = "yes"; then
8994706b6b52Smrg    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\"`'
8995706b6b52Smrg  else
8996706b6b52Smrg    whole_archive_flag_spec=''
8997706b6b52Smrg  fi
89988c4a8e55Smrg  link_all_deplibs=yes
89998c4a8e55Smrg  allow_undefined_flag="$_lt_dar_allow_undefined"
90008c4a8e55Smrg  case $cc_basename in
90018c4a8e55Smrg     ifort*) _lt_dar_can_shared=yes ;;
90028c4a8e55Smrg     *) _lt_dar_can_shared=$GCC ;;
90038c4a8e55Smrg  esac
90048c4a8e55Smrg  if test "$_lt_dar_can_shared" = "yes"; then
9005706b6b52Smrg    output_verbose_link_cmd=func_echo_all
90068c4a8e55Smrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
90078c4a8e55Smrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
90088c4a8e55Smrg    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}"
90098c4a8e55Smrg    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}"
9010b042e37fSmrg
9011b042e37fSmrg  else
90128c4a8e55Smrg  ld_shlibs=no
9013b042e37fSmrg  fi
9014b042e37fSmrg
90158c4a8e55Smrg      ;;
9016b042e37fSmrg
90178c4a8e55Smrg    dgux*)
90188c4a8e55Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
90198c4a8e55Smrg      hardcode_libdir_flag_spec='-L$libdir'
90208c4a8e55Smrg      hardcode_shlibpath_var=no
90218c4a8e55Smrg      ;;
9022b042e37fSmrg
90238c4a8e55Smrg    freebsd1*)
90248c4a8e55Smrg      ld_shlibs=no
90258c4a8e55Smrg      ;;
9026b042e37fSmrg
90278c4a8e55Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
90288c4a8e55Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
90298c4a8e55Smrg    # does not break anything, and helps significantly (at the cost of a little
90308c4a8e55Smrg    # extra space).
90318c4a8e55Smrg    freebsd2.2*)
90328c4a8e55Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
90338c4a8e55Smrg      hardcode_libdir_flag_spec='-R$libdir'
90348c4a8e55Smrg      hardcode_direct=yes
90358c4a8e55Smrg      hardcode_shlibpath_var=no
90368c4a8e55Smrg      ;;
9037b042e37fSmrg
90388c4a8e55Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
90398c4a8e55Smrg    freebsd2*)
90408c4a8e55Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
90418c4a8e55Smrg      hardcode_direct=yes
90428c4a8e55Smrg      hardcode_minus_L=yes
90438c4a8e55Smrg      hardcode_shlibpath_var=no
90448c4a8e55Smrg      ;;
9045b042e37fSmrg
90468c4a8e55Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
90478c4a8e55Smrg    freebsd* | dragonfly*)
9048bd23fbfaSmrg      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
90498c4a8e55Smrg      hardcode_libdir_flag_spec='-R$libdir'
90508c4a8e55Smrg      hardcode_direct=yes
90518c4a8e55Smrg      hardcode_shlibpath_var=no
90528c4a8e55Smrg      ;;
9053b042e37fSmrg
90548c4a8e55Smrg    hpux9*)
90558c4a8e55Smrg      if test "$GCC" = yes; then
9056bd23fbfaSmrg	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'
90578c4a8e55Smrg      else
90588c4a8e55Smrg	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'
90598c4a8e55Smrg      fi
90608c4a8e55Smrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
90618c4a8e55Smrg      hardcode_libdir_separator=:
90628c4a8e55Smrg      hardcode_direct=yes
9063b042e37fSmrg
90648c4a8e55Smrg      # hardcode_minus_L: Not really in the search PATH,
90658c4a8e55Smrg      # but as the default location of the library.
90668c4a8e55Smrg      hardcode_minus_L=yes
90678c4a8e55Smrg      export_dynamic_flag_spec='${wl}-E'
90688c4a8e55Smrg      ;;
9069b042e37fSmrg
90708c4a8e55Smrg    hpux10*)
9071706b6b52Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9072bd23fbfaSmrg	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9073b042e37fSmrg      else
90748c4a8e55Smrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
90758c4a8e55Smrg      fi
90768c4a8e55Smrg      if test "$with_gnu_ld" = no; then
90778c4a8e55Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
90788c4a8e55Smrg	hardcode_libdir_flag_spec_ld='+b $libdir'
90798c4a8e55Smrg	hardcode_libdir_separator=:
90808c4a8e55Smrg	hardcode_direct=yes
90818c4a8e55Smrg	hardcode_direct_absolute=yes
90828c4a8e55Smrg	export_dynamic_flag_spec='${wl}-E'
90838c4a8e55Smrg	# hardcode_minus_L: Not really in the search PATH,
90848c4a8e55Smrg	# but as the default location of the library.
90858c4a8e55Smrg	hardcode_minus_L=yes
90868c4a8e55Smrg      fi
90878c4a8e55Smrg      ;;
9088b042e37fSmrg
90898c4a8e55Smrg    hpux11*)
9090706b6b52Smrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
90918c4a8e55Smrg	case $host_cpu in
90928c4a8e55Smrg	hppa*64*)
90938c4a8e55Smrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
90948c4a8e55Smrg	  ;;
90958c4a8e55Smrg	ia64*)
9096bd23fbfaSmrg	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
90978c4a8e55Smrg	  ;;
90988c4a8e55Smrg	*)
9099bd23fbfaSmrg	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
91008c4a8e55Smrg	  ;;
91018c4a8e55Smrg	esac
91028c4a8e55Smrg      else
91038c4a8e55Smrg	case $host_cpu in
91048c4a8e55Smrg	hppa*64*)
91058c4a8e55Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
91068c4a8e55Smrg	  ;;
91078c4a8e55Smrg	ia64*)
91088c4a8e55Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
91098c4a8e55Smrg	  ;;
91108c4a8e55Smrg	*)
9111706b6b52Smrg
9112706b6b52Smrg	  # Older versions of the 11.00 compiler do not understand -b yet
9113706b6b52Smrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9114706b6b52Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9115706b6b52Smrg$as_echo_n "checking if $CC understands -b... " >&6; }
9116706b6b52Smrgif ${lt_cv_prog_compiler__b+:} false; then :
9117706b6b52Smrg  $as_echo_n "(cached) " >&6
9118706b6b52Smrgelse
9119706b6b52Smrg  lt_cv_prog_compiler__b=no
9120706b6b52Smrg   save_LDFLAGS="$LDFLAGS"
9121706b6b52Smrg   LDFLAGS="$LDFLAGS -b"
9122706b6b52Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9123706b6b52Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9124706b6b52Smrg     # The linker can only warn and ignore the option if not recognized
9125706b6b52Smrg     # So say no if there are warnings
9126706b6b52Smrg     if test -s conftest.err; then
9127706b6b52Smrg       # Append any errors to the config.log.
9128706b6b52Smrg       cat conftest.err 1>&5
9129706b6b52Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9130706b6b52Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9131706b6b52Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
9132706b6b52Smrg         lt_cv_prog_compiler__b=yes
9133706b6b52Smrg       fi
9134706b6b52Smrg     else
9135706b6b52Smrg       lt_cv_prog_compiler__b=yes
9136706b6b52Smrg     fi
9137706b6b52Smrg   fi
9138706b6b52Smrg   $RM -r conftest*
9139706b6b52Smrg   LDFLAGS="$save_LDFLAGS"
9140706b6b52Smrg
9141706b6b52Smrgfi
9142706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9143706b6b52Smrg$as_echo "$lt_cv_prog_compiler__b" >&6; }
9144706b6b52Smrg
9145706b6b52Smrgif test x"$lt_cv_prog_compiler__b" = xyes; then
9146706b6b52Smrg    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9147706b6b52Smrgelse
9148706b6b52Smrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9149706b6b52Smrgfi
9150706b6b52Smrg
91518c4a8e55Smrg	  ;;
91528c4a8e55Smrg	esac
91538c4a8e55Smrg      fi
91548c4a8e55Smrg      if test "$with_gnu_ld" = no; then
91558c4a8e55Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
91568c4a8e55Smrg	hardcode_libdir_separator=:
9157b042e37fSmrg
91588c4a8e55Smrg	case $host_cpu in
91598c4a8e55Smrg	hppa*64*|ia64*)
91608c4a8e55Smrg	  hardcode_direct=no
91618c4a8e55Smrg	  hardcode_shlibpath_var=no
91628c4a8e55Smrg	  ;;
91638c4a8e55Smrg	*)
91648c4a8e55Smrg	  hardcode_direct=yes
91658c4a8e55Smrg	  hardcode_direct_absolute=yes
91668c4a8e55Smrg	  export_dynamic_flag_spec='${wl}-E'
91678c4a8e55Smrg
91688c4a8e55Smrg	  # hardcode_minus_L: Not really in the search PATH,
91698c4a8e55Smrg	  # but as the default location of the library.
91708c4a8e55Smrg	  hardcode_minus_L=yes
91718c4a8e55Smrg	  ;;
91728c4a8e55Smrg	esac
91738c4a8e55Smrg      fi
91748c4a8e55Smrg      ;;
91758c4a8e55Smrg
91768c4a8e55Smrg    irix5* | irix6* | nonstopux*)
91778c4a8e55Smrg      if test "$GCC" = yes; then
9178bd23fbfaSmrg	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'
91798c4a8e55Smrg	# Try to use the -exported_symbol ld option, if it does not
91808c4a8e55Smrg	# work, assume that -exports_file does not work either and
91818c4a8e55Smrg	# implicitly export all symbols.
9182bd23fbfaSmrg	# This should be the same for all languages, so no per-tag cache variable.
9183bd23fbfaSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9184bd23fbfaSmrg$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9185bd23fbfaSmrgif ${lt_cv_irix_exported_symbol+:} false; then :
9186bd23fbfaSmrg  $as_echo_n "(cached) " >&6
9187bd23fbfaSmrgelse
9188bd23fbfaSmrg  save_LDFLAGS="$LDFLAGS"
9189bd23fbfaSmrg	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9190bd23fbfaSmrg	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191706b6b52Smrg/* end confdefs.h.  */
9192bd23fbfaSmrgint foo (void) { return 0; }
9193b042e37fSmrg_ACEOF
9194706b6b52Smrgif ac_fn_c_try_link "$LINENO"; then :
9195bd23fbfaSmrg  lt_cv_irix_exported_symbol=yes
9196bd23fbfaSmrgelse
9197bd23fbfaSmrg  lt_cv_irix_exported_symbol=no
9198b042e37fSmrgfi
9199706b6b52Smrgrm -f core conftest.err conftest.$ac_objext \
9200706b6b52Smrg    conftest$ac_exeext conftest.$ac_ext
9201bd23fbfaSmrg           LDFLAGS="$save_LDFLAGS"
9202bd23fbfaSmrgfi
9203bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9204bd23fbfaSmrg$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9205bd23fbfaSmrg	if test "$lt_cv_irix_exported_symbol" = yes; then
9206bd23fbfaSmrg          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'
9207bd23fbfaSmrg	fi
92088c4a8e55Smrg      else
9209706b6b52Smrg	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'
9210706b6b52Smrg	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'
92118c4a8e55Smrg      fi
92128c4a8e55Smrg      archive_cmds_need_lc='no'
92138c4a8e55Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
92148c4a8e55Smrg      hardcode_libdir_separator=:
92158c4a8e55Smrg      inherit_rpath=yes
92168c4a8e55Smrg      link_all_deplibs=yes
92178c4a8e55Smrg      ;;
9218b042e37fSmrg
92198c4a8e55Smrg    netbsd*)
92208c4a8e55Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
92218c4a8e55Smrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
92228c4a8e55Smrg      else
92238c4a8e55Smrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9224b042e37fSmrg      fi
92258c4a8e55Smrg      hardcode_libdir_flag_spec='-R$libdir'
92268c4a8e55Smrg      hardcode_direct=yes
92278c4a8e55Smrg      hardcode_shlibpath_var=no
92288c4a8e55Smrg      ;;
9229b042e37fSmrg
92308c4a8e55Smrg    newsos6)
92318c4a8e55Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
92328c4a8e55Smrg      hardcode_direct=yes
92338c4a8e55Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
92348c4a8e55Smrg      hardcode_libdir_separator=:
92358c4a8e55Smrg      hardcode_shlibpath_var=no
92368c4a8e55Smrg      ;;
9237b042e37fSmrg
92388c4a8e55Smrg    *nto* | *qnx*)
92398c4a8e55Smrg      ;;
9240b042e37fSmrg
92418c4a8e55Smrg    openbsd*)
92428c4a8e55Smrg      if test -f /usr/libexec/ld.so; then
92438c4a8e55Smrg	hardcode_direct=yes
92448c4a8e55Smrg	hardcode_shlibpath_var=no
92458c4a8e55Smrg	hardcode_direct_absolute=yes
92468c4a8e55Smrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
92478c4a8e55Smrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
92488c4a8e55Smrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
92498c4a8e55Smrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
92508c4a8e55Smrg	  export_dynamic_flag_spec='${wl}-E'
92518c4a8e55Smrg	else
92528c4a8e55Smrg	  case $host_os in
92538c4a8e55Smrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
92548c4a8e55Smrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
92558c4a8e55Smrg	     hardcode_libdir_flag_spec='-R$libdir'
92568c4a8e55Smrg	     ;;
92578c4a8e55Smrg	   *)
92588c4a8e55Smrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
92598c4a8e55Smrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
92608c4a8e55Smrg	     ;;
92618c4a8e55Smrg	  esac
92628c4a8e55Smrg	fi
9263b042e37fSmrg      else
92648c4a8e55Smrg	ld_shlibs=no
9265b042e37fSmrg      fi
9266b042e37fSmrg      ;;
92678c4a8e55Smrg
92688c4a8e55Smrg    os2*)
92698c4a8e55Smrg      hardcode_libdir_flag_spec='-L$libdir'
92708c4a8e55Smrg      hardcode_minus_L=yes
92718c4a8e55Smrg      allow_undefined_flag=unsupported
9272706b6b52Smrg      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'
92738c4a8e55Smrg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9274b042e37fSmrg      ;;
92758c4a8e55Smrg
92768c4a8e55Smrg    osf3*)
92778c4a8e55Smrg      if test "$GCC" = yes; then
92788c4a8e55Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9279706b6b52Smrg	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'
9280b042e37fSmrg      else
92818c4a8e55Smrg	allow_undefined_flag=' -expect_unresolved \*'
9282706b6b52Smrg	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'
9283b042e37fSmrg      fi
92848c4a8e55Smrg      archive_cmds_need_lc='no'
92858c4a8e55Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
92868c4a8e55Smrg      hardcode_libdir_separator=:
9287b042e37fSmrg      ;;
9288b042e37fSmrg
92898c4a8e55Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
92908c4a8e55Smrg      if test "$GCC" = yes; then
92918c4a8e55Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9292bd23fbfaSmrg	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'
92938c4a8e55Smrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
92948c4a8e55Smrg      else
92958c4a8e55Smrg	allow_undefined_flag=' -expect_unresolved \*'
9296706b6b52Smrg	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'
92978c4a8e55Smrg	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~
9298706b6b52Smrg	$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'
92998c4a8e55Smrg
93008c4a8e55Smrg	# Both c and cxx compiler support -rpath directly
93018c4a8e55Smrg	hardcode_libdir_flag_spec='-rpath $libdir'
93028c4a8e55Smrg      fi
93038c4a8e55Smrg      archive_cmds_need_lc='no'
93048c4a8e55Smrg      hardcode_libdir_separator=:
9305b042e37fSmrg      ;;
9306b042e37fSmrg
93078c4a8e55Smrg    solaris*)
93088c4a8e55Smrg      no_undefined_flag=' -z defs'
93098c4a8e55Smrg      if test "$GCC" = yes; then
93108c4a8e55Smrg	wlarc='${wl}'
9311bd23fbfaSmrg	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
93128c4a8e55Smrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9313bd23fbfaSmrg	  $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'
93148c4a8e55Smrg      else
93158c4a8e55Smrg	case `$CC -V 2>&1` in
93168c4a8e55Smrg	*"Compilers 5.0"*)
93178c4a8e55Smrg	  wlarc=''
93188c4a8e55Smrg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
93198c4a8e55Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
93208c4a8e55Smrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9321b042e37fSmrg	  ;;
9322b042e37fSmrg	*)
93238c4a8e55Smrg	  wlarc='${wl}'
93248c4a8e55Smrg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
93258c4a8e55Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
93268c4a8e55Smrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9327b042e37fSmrg	  ;;
9328b042e37fSmrg	esac
93298c4a8e55Smrg      fi
93308c4a8e55Smrg      hardcode_libdir_flag_spec='-R$libdir'
93318c4a8e55Smrg      hardcode_shlibpath_var=no
93328c4a8e55Smrg      case $host_os in
93338c4a8e55Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
9334b042e37fSmrg      *)
93358c4a8e55Smrg	# The compiler driver will combine and reorder linker options,
93368c4a8e55Smrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
93378c4a8e55Smrg	# but is careful enough not to reorder.
93388c4a8e55Smrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
93398c4a8e55Smrg	if test "$GCC" = yes; then
93408c4a8e55Smrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9341b042e37fSmrg	else
93428c4a8e55Smrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9343b042e37fSmrg	fi
9344b042e37fSmrg	;;
93458c4a8e55Smrg      esac
93468c4a8e55Smrg      link_all_deplibs=yes
93478c4a8e55Smrg      ;;
9348b042e37fSmrg
93498c4a8e55Smrg    sunos4*)
93508c4a8e55Smrg      if test "x$host_vendor" = xsequent; then
93518c4a8e55Smrg	# Use $CC to link under sequent, because it throws in some extra .o
93528c4a8e55Smrg	# files that make .init and .fini sections work.
93538c4a8e55Smrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
93548c4a8e55Smrg      else
93558c4a8e55Smrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
93568c4a8e55Smrg      fi
93578c4a8e55Smrg      hardcode_libdir_flag_spec='-L$libdir'
93588c4a8e55Smrg      hardcode_direct=yes
93598c4a8e55Smrg      hardcode_minus_L=yes
93608c4a8e55Smrg      hardcode_shlibpath_var=no
93618c4a8e55Smrg      ;;
9362b042e37fSmrg
93638c4a8e55Smrg    sysv4)
93648c4a8e55Smrg      case $host_vendor in
93658c4a8e55Smrg	sni)
93668c4a8e55Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
93678c4a8e55Smrg	  hardcode_direct=yes # is this really true???
9368b042e37fSmrg	;;
93698c4a8e55Smrg	siemens)
93708c4a8e55Smrg	  ## LD is ld it makes a PLAMLIB
93718c4a8e55Smrg	  ## CC just makes a GrossModule.
93728c4a8e55Smrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
93738c4a8e55Smrg	  reload_cmds='$CC -r -o $output$reload_objs'
93748c4a8e55Smrg	  hardcode_direct=no
93758c4a8e55Smrg        ;;
93768c4a8e55Smrg	motorola)
93778c4a8e55Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
93788c4a8e55Smrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9379b042e37fSmrg	;;
93808c4a8e55Smrg      esac
93818c4a8e55Smrg      runpath_var='LD_RUN_PATH'
93828c4a8e55Smrg      hardcode_shlibpath_var=no
93838c4a8e55Smrg      ;;
9384b042e37fSmrg
93858c4a8e55Smrg    sysv4.3*)
93868c4a8e55Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
93878c4a8e55Smrg      hardcode_shlibpath_var=no
93888c4a8e55Smrg      export_dynamic_flag_spec='-Bexport'
93898c4a8e55Smrg      ;;
9390b042e37fSmrg
93918c4a8e55Smrg    sysv4*MP*)
93928c4a8e55Smrg      if test -d /usr/nec; then
93938c4a8e55Smrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
93948c4a8e55Smrg	hardcode_shlibpath_var=no
93958c4a8e55Smrg	runpath_var=LD_RUN_PATH
93968c4a8e55Smrg	hardcode_runpath_var=yes
93978c4a8e55Smrg	ld_shlibs=yes
93988c4a8e55Smrg      fi
93998c4a8e55Smrg      ;;
9400b042e37fSmrg
94018c4a8e55Smrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
94028c4a8e55Smrg      no_undefined_flag='${wl}-z,text'
94038c4a8e55Smrg      archive_cmds_need_lc=no
94048c4a8e55Smrg      hardcode_shlibpath_var=no
94058c4a8e55Smrg      runpath_var='LD_RUN_PATH'
9406b042e37fSmrg
94078c4a8e55Smrg      if test "$GCC" = yes; then
94088c4a8e55Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94098c4a8e55Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94108c4a8e55Smrg      else
94118c4a8e55Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94128c4a8e55Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94138c4a8e55Smrg      fi
94148c4a8e55Smrg      ;;
9415b042e37fSmrg
94168c4a8e55Smrg    sysv5* | sco3.2v5* | sco5v6*)
94178c4a8e55Smrg      # Note: We can NOT use -z defs as we might desire, because we do not
94188c4a8e55Smrg      # link with -lc, and that would cause any symbols used from libc to
94198c4a8e55Smrg      # always be unresolved, which means just about no library would
94208c4a8e55Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
94218c4a8e55Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
94228c4a8e55Smrg      # as -z defs.
94238c4a8e55Smrg      no_undefined_flag='${wl}-z,text'
94248c4a8e55Smrg      allow_undefined_flag='${wl}-z,nodefs'
94258c4a8e55Smrg      archive_cmds_need_lc=no
94268c4a8e55Smrg      hardcode_shlibpath_var=no
94278c4a8e55Smrg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
94288c4a8e55Smrg      hardcode_libdir_separator=':'
94298c4a8e55Smrg      link_all_deplibs=yes
94308c4a8e55Smrg      export_dynamic_flag_spec='${wl}-Bexport'
94318c4a8e55Smrg      runpath_var='LD_RUN_PATH'
9432b042e37fSmrg
94338c4a8e55Smrg      if test "$GCC" = yes; then
94348c4a8e55Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94358c4a8e55Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94368c4a8e55Smrg      else
94378c4a8e55Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94388c4a8e55Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
94398c4a8e55Smrg      fi
94408c4a8e55Smrg      ;;
9441b042e37fSmrg
94428c4a8e55Smrg    uts4*)
94438c4a8e55Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
94448c4a8e55Smrg      hardcode_libdir_flag_spec='-L$libdir'
94458c4a8e55Smrg      hardcode_shlibpath_var=no
94468c4a8e55Smrg      ;;
9447b042e37fSmrg
94488c4a8e55Smrg    *)
94498c4a8e55Smrg      ld_shlibs=no
94508c4a8e55Smrg      ;;
9451b042e37fSmrg    esac
94528c4a8e55Smrg
94538c4a8e55Smrg    if test x$host_vendor = xsni; then
94548c4a8e55Smrg      case $host in
94558c4a8e55Smrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
94568c4a8e55Smrg	export_dynamic_flag_spec='${wl}-Blargedynsym'
9457b042e37fSmrg	;;
94588c4a8e55Smrg      esac
94598c4a8e55Smrg    fi
94608c4a8e55Smrg  fi
9461b042e37fSmrg
9462706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
94638c4a8e55Smrg$as_echo "$ld_shlibs" >&6; }
94648c4a8e55Smrgtest "$ld_shlibs" = no && can_build_shared=no
9465b042e37fSmrg
94668c4a8e55Smrgwith_gnu_ld=$with_gnu_ld
9467b042e37fSmrg
9468b042e37fSmrg
9469b042e37fSmrg
9470b042e37fSmrg
9471b042e37fSmrg
9472b042e37fSmrg
9473b042e37fSmrg
9474b042e37fSmrg
9475b042e37fSmrg
9476b042e37fSmrg
9477b042e37fSmrg
9478b042e37fSmrg
9479b042e37fSmrg
9480b042e37fSmrg
9481b042e37fSmrg
94828c4a8e55Smrg#
94838c4a8e55Smrg# Do we need to explicitly link libc?
94848c4a8e55Smrg#
94858c4a8e55Smrgcase "x$archive_cmds_need_lc" in
94868c4a8e55Smrgx|xyes)
94878c4a8e55Smrg  # Assume -lc should be added
94888c4a8e55Smrg  archive_cmds_need_lc=yes
9489b042e37fSmrg
94908c4a8e55Smrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
94918c4a8e55Smrg    case $archive_cmds in
94928c4a8e55Smrg    *'~'*)
94938c4a8e55Smrg      # FIXME: we may have to deal with multi-command sequences.
9494b042e37fSmrg      ;;
94958c4a8e55Smrg    '$CC '*)
94968c4a8e55Smrg      # Test whether the compiler implicitly links with -lc since on some
94978c4a8e55Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
94988c4a8e55Smrg      # to ld, don't add -lc before -lgcc.
9499706b6b52Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
95008c4a8e55Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9501706b6b52Smrgif ${lt_cv_archive_cmds_need_lc+:} false; then :
9502706b6b52Smrg  $as_echo_n "(cached) " >&6
9503706b6b52Smrgelse
9504706b6b52Smrg  $RM conftest*
9505706b6b52Smrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
95068c4a8e55Smrg
9507706b6b52Smrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
95088c4a8e55Smrg  (eval $ac_compile) 2>&5
95098c4a8e55Smrg  ac_status=$?
9510706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9511706b6b52Smrg  test $ac_status = 0; } 2>conftest.err; then
9512706b6b52Smrg	  soname=conftest
9513706b6b52Smrg	  lib=conftest
9514706b6b52Smrg	  libobjs=conftest.$ac_objext
9515706b6b52Smrg	  deplibs=
9516706b6b52Smrg	  wl=$lt_prog_compiler_wl
9517706b6b52Smrg	  pic_flag=$lt_prog_compiler_pic
9518706b6b52Smrg	  compiler_flags=-v
9519706b6b52Smrg	  linker_flags=-v
9520706b6b52Smrg	  verstring=
9521706b6b52Smrg	  output_objdir=.
9522706b6b52Smrg	  libname=conftest
9523706b6b52Smrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
9524706b6b52Smrg	  allow_undefined_flag=
9525706b6b52Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
95268c4a8e55Smrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
95278c4a8e55Smrg  ac_status=$?
9528706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9529706b6b52Smrg  test $ac_status = 0; }
9530706b6b52Smrg	  then
9531706b6b52Smrg	    lt_cv_archive_cmds_need_lc=no
9532706b6b52Smrg	  else
9533706b6b52Smrg	    lt_cv_archive_cmds_need_lc=yes
9534706b6b52Smrg	  fi
9535706b6b52Smrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
9536706b6b52Smrg	else
9537706b6b52Smrg	  cat conftest.err 1>&5
9538706b6b52Smrg	fi
9539706b6b52Smrg	$RM conftest*
9540706b6b52Smrg
9541706b6b52Smrgfi
9542706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9543706b6b52Smrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9544706b6b52Smrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9545b042e37fSmrg      ;;
9546b042e37fSmrg    esac
9547b042e37fSmrg  fi
95488c4a8e55Smrg  ;;
95498c4a8e55Smrgesac
9550b042e37fSmrg
9551b042e37fSmrg
9552b042e37fSmrg
9553b042e37fSmrg
9554b042e37fSmrg
9555b042e37fSmrg
9556b042e37fSmrg
9557b042e37fSmrg
9558b042e37fSmrg
9559b042e37fSmrg
9560b042e37fSmrg
9561b042e37fSmrg
9562b042e37fSmrg
9563b042e37fSmrg
9564b042e37fSmrg
9565b042e37fSmrg
9566b042e37fSmrg
9567b042e37fSmrg
9568b042e37fSmrg
9569b042e37fSmrg
9570b042e37fSmrg
9571b042e37fSmrg
9572b042e37fSmrg
9573b042e37fSmrg
9574b042e37fSmrg
9575b042e37fSmrg
95768c4a8e55Smrg
95778c4a8e55Smrg
95788c4a8e55Smrg
95798c4a8e55Smrg
95808c4a8e55Smrg
95818c4a8e55Smrg
95828c4a8e55Smrg
95838c4a8e55Smrg
95848c4a8e55Smrg
95858c4a8e55Smrg
95868c4a8e55Smrg
95878c4a8e55Smrg
95888c4a8e55Smrg
95898c4a8e55Smrg
95908c4a8e55Smrg
95918c4a8e55Smrg
95928c4a8e55Smrg
95938c4a8e55Smrg
95948c4a8e55Smrg
95958c4a8e55Smrg
95968c4a8e55Smrg
95978c4a8e55Smrg
95988c4a8e55Smrg
95998c4a8e55Smrg
96008c4a8e55Smrg
96018c4a8e55Smrg
96028c4a8e55Smrg
96038c4a8e55Smrg
96048c4a8e55Smrg
96058c4a8e55Smrg
96068c4a8e55Smrg
96078c4a8e55Smrg
96088c4a8e55Smrg
96098c4a8e55Smrg
96108c4a8e55Smrg
96118c4a8e55Smrg
96128c4a8e55Smrg
96138c4a8e55Smrg
96148c4a8e55Smrg
96158c4a8e55Smrg
96168c4a8e55Smrg
96178c4a8e55Smrg
96188c4a8e55Smrg
96198c4a8e55Smrg
96208c4a8e55Smrg
96218c4a8e55Smrg
96228c4a8e55Smrg
96238c4a8e55Smrg
96248c4a8e55Smrg
96258c4a8e55Smrg
96268c4a8e55Smrg
96278c4a8e55Smrg
96288c4a8e55Smrg
96298c4a8e55Smrg
96308c4a8e55Smrg
96318c4a8e55Smrg
96328c4a8e55Smrg
96338c4a8e55Smrg
96348c4a8e55Smrg
96358c4a8e55Smrg
96368c4a8e55Smrg
96378c4a8e55Smrg
96388c4a8e55Smrg
96398c4a8e55Smrg
96408c4a8e55Smrg
96418c4a8e55Smrg
96428c4a8e55Smrg
96438c4a8e55Smrg
96448c4a8e55Smrg
96458c4a8e55Smrg
96468c4a8e55Smrg
96478c4a8e55Smrg
96488c4a8e55Smrg
96498c4a8e55Smrg
96508c4a8e55Smrg
96518c4a8e55Smrg
96528c4a8e55Smrg
96538c4a8e55Smrg
96548c4a8e55Smrg
96558c4a8e55Smrg
96568c4a8e55Smrg
96578c4a8e55Smrg
96588c4a8e55Smrg
96598c4a8e55Smrg
96608c4a8e55Smrg
96618c4a8e55Smrg
96628c4a8e55Smrg
96638c4a8e55Smrg
96648c4a8e55Smrg
96658c4a8e55Smrg
96668c4a8e55Smrg
96678c4a8e55Smrg
96688c4a8e55Smrg
96698c4a8e55Smrg
96708c4a8e55Smrg
96718c4a8e55Smrg
96728c4a8e55Smrg
96738c4a8e55Smrg
96748c4a8e55Smrg
96758c4a8e55Smrg
96768c4a8e55Smrg
96778c4a8e55Smrg
96788c4a8e55Smrg
96798c4a8e55Smrg
96808c4a8e55Smrg
96818c4a8e55Smrg
96828c4a8e55Smrg
96838c4a8e55Smrg
96848c4a8e55Smrg
96858c4a8e55Smrg
96868c4a8e55Smrg
96878c4a8e55Smrg
96888c4a8e55Smrg
96898c4a8e55Smrg
96908c4a8e55Smrg
96918c4a8e55Smrg
96928c4a8e55Smrg
96938c4a8e55Smrg
96948c4a8e55Smrg
96958c4a8e55Smrg
96968c4a8e55Smrg
96978c4a8e55Smrg
96988c4a8e55Smrg
96998c4a8e55Smrg
97008c4a8e55Smrg
97018c4a8e55Smrg
97028c4a8e55Smrg
97038c4a8e55Smrg
97048c4a8e55Smrg
97058c4a8e55Smrg
97068c4a8e55Smrg
9707bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9708bd23fbfaSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
9709bd23fbfaSmrg
9710bd23fbfaSmrgif test "$GCC" = yes; then
9711bd23fbfaSmrg  case $host_os in
9712bd23fbfaSmrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9713bd23fbfaSmrg    *) lt_awk_arg="/^libraries:/" ;;
9714bd23fbfaSmrg  esac
9715bd23fbfaSmrg  case $host_os in
9716bd23fbfaSmrg    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9717bd23fbfaSmrg    *) lt_sed_strip_eq="s,=/,/,g" ;;
9718bd23fbfaSmrg  esac
9719bd23fbfaSmrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9720bd23fbfaSmrg  case $lt_search_path_spec in
9721bd23fbfaSmrg  *\;*)
9722bd23fbfaSmrg    # if the path contains ";" then we assume it to be the separator
9723bd23fbfaSmrg    # otherwise default to the standard path separator (i.e. ":") - it is
9724bd23fbfaSmrg    # assumed that no part of a normal pathname contains ";" but that should
9725bd23fbfaSmrg    # okay in the real world where ";" in dirpaths is itself problematic.
9726bd23fbfaSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9727bd23fbfaSmrg    ;;
9728bd23fbfaSmrg  *)
9729bd23fbfaSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9730bd23fbfaSmrg    ;;
9731bd23fbfaSmrg  esac
9732bd23fbfaSmrg  # Ok, now we have the path, separated by spaces, we can step through it
9733bd23fbfaSmrg  # and add multilib dir if necessary.
9734bd23fbfaSmrg  lt_tmp_lt_search_path_spec=
9735bd23fbfaSmrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9736bd23fbfaSmrg  for lt_sys_path in $lt_search_path_spec; do
9737bd23fbfaSmrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9738bd23fbfaSmrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9739bd23fbfaSmrg    else
9740bd23fbfaSmrg      test -d "$lt_sys_path" && \
9741bd23fbfaSmrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9742bd23fbfaSmrg    fi
9743bd23fbfaSmrg  done
9744bd23fbfaSmrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9745bd23fbfaSmrgBEGIN {RS=" "; FS="/|\n";} {
9746bd23fbfaSmrg  lt_foo="";
9747bd23fbfaSmrg  lt_count=0;
9748bd23fbfaSmrg  for (lt_i = NF; lt_i > 0; lt_i--) {
9749bd23fbfaSmrg    if ($lt_i != "" && $lt_i != ".") {
9750bd23fbfaSmrg      if ($lt_i == "..") {
9751bd23fbfaSmrg        lt_count++;
9752bd23fbfaSmrg      } else {
9753bd23fbfaSmrg        if (lt_count == 0) {
9754bd23fbfaSmrg          lt_foo="/" $lt_i lt_foo;
9755bd23fbfaSmrg        } else {
9756bd23fbfaSmrg          lt_count--;
9757bd23fbfaSmrg        }
9758bd23fbfaSmrg      }
9759bd23fbfaSmrg    }
9760bd23fbfaSmrg  }
9761bd23fbfaSmrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
9762bd23fbfaSmrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9763bd23fbfaSmrg}'`
9764bd23fbfaSmrg  # AWK program above erroneously prepends '/' to C:/dos/paths
9765bd23fbfaSmrg  # for these hosts.
9766bd23fbfaSmrg  case $host_os in
9767bd23fbfaSmrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9768bd23fbfaSmrg      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9769bd23fbfaSmrg  esac
9770bd23fbfaSmrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9771bd23fbfaSmrgelse
9772bd23fbfaSmrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9773bd23fbfaSmrgfi
9774bd23fbfaSmrglibrary_names_spec=
9775bd23fbfaSmrglibname_spec='lib$name'
9776bd23fbfaSmrgsoname_spec=
9777bd23fbfaSmrgshrext_cmds=".so"
9778bd23fbfaSmrgpostinstall_cmds=
9779bd23fbfaSmrgpostuninstall_cmds=
9780bd23fbfaSmrgfinish_cmds=
9781bd23fbfaSmrgfinish_eval=
9782bd23fbfaSmrgshlibpath_var=
9783bd23fbfaSmrgshlibpath_overrides_runpath=unknown
9784bd23fbfaSmrgversion_type=none
9785bd23fbfaSmrgdynamic_linker="$host_os ld.so"
9786bd23fbfaSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
9787bd23fbfaSmrgneed_lib_prefix=unknown
9788bd23fbfaSmrghardcode_into_libs=no
9789bd23fbfaSmrg
9790bd23fbfaSmrg# when you set need_version to no, make sure it does not cause -set_version
9791bd23fbfaSmrg# flags to be left without arguments
9792bd23fbfaSmrgneed_version=unknown
9793bd23fbfaSmrg
9794bd23fbfaSmrgcase $host_os in
9795bd23fbfaSmrgaix3*)
9796bd23fbfaSmrg  version_type=linux
9797bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9798bd23fbfaSmrg  shlibpath_var=LIBPATH
9799bd23fbfaSmrg
9800bd23fbfaSmrg  # AIX 3 has no versioning support, so we append a major version to the name.
9801bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
9802bd23fbfaSmrg  ;;
9803bd23fbfaSmrg
9804bd23fbfaSmrgaix[4-9]*)
9805bd23fbfaSmrg  version_type=linux
9806bd23fbfaSmrg  need_lib_prefix=no
9807bd23fbfaSmrg  need_version=no
9808bd23fbfaSmrg  hardcode_into_libs=yes
9809bd23fbfaSmrg  if test "$host_cpu" = ia64; then
9810bd23fbfaSmrg    # AIX 5 supports IA64
9811bd23fbfaSmrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9812bd23fbfaSmrg    shlibpath_var=LD_LIBRARY_PATH
9813bd23fbfaSmrg  else
9814bd23fbfaSmrg    # With GCC up to 2.95.x, collect2 would create an import file
9815bd23fbfaSmrg    # for dependence libraries.  The import file would start with
9816bd23fbfaSmrg    # the line `#! .'.  This would cause the generated library to
9817bd23fbfaSmrg    # depend on `.', always an invalid library.  This was fixed in
9818bd23fbfaSmrg    # development snapshots of GCC prior to 3.0.
9819bd23fbfaSmrg    case $host_os in
9820bd23fbfaSmrg      aix4 | aix4.[01] | aix4.[01].*)
9821bd23fbfaSmrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9822bd23fbfaSmrg	   echo ' yes '
9823bd23fbfaSmrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9824bd23fbfaSmrg	:
9825bd23fbfaSmrg      else
9826bd23fbfaSmrg	can_build_shared=no
9827bd23fbfaSmrg      fi
9828bd23fbfaSmrg      ;;
9829bd23fbfaSmrg    esac
9830bd23fbfaSmrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9831bd23fbfaSmrg    # soname into executable. Probably we can add versioning support to
9832bd23fbfaSmrg    # collect2, so additional links can be useful in future.
9833bd23fbfaSmrg    if test "$aix_use_runtimelinking" = yes; then
9834bd23fbfaSmrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9835bd23fbfaSmrg      # instead of lib<name>.a to let people know that these are not
9836bd23fbfaSmrg      # typical AIX shared libraries.
9837bd23fbfaSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838bd23fbfaSmrg    else
9839bd23fbfaSmrg      # We preserve .a as extension for shared libraries through AIX4.2
9840bd23fbfaSmrg      # and later when we are not doing run time linking.
9841bd23fbfaSmrg      library_names_spec='${libname}${release}.a $libname.a'
9842bd23fbfaSmrg      soname_spec='${libname}${release}${shared_ext}$major'
9843bd23fbfaSmrg    fi
9844bd23fbfaSmrg    shlibpath_var=LIBPATH
9845bd23fbfaSmrg  fi
9846bd23fbfaSmrg  ;;
9847bd23fbfaSmrg
9848bd23fbfaSmrgamigaos*)
9849bd23fbfaSmrg  case $host_cpu in
9850bd23fbfaSmrg  powerpc)
9851bd23fbfaSmrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
9852bd23fbfaSmrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9853bd23fbfaSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854bd23fbfaSmrg    ;;
9855bd23fbfaSmrg  m68k)
9856bd23fbfaSmrg    library_names_spec='$libname.ixlibrary $libname.a'
9857bd23fbfaSmrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9858bd23fbfaSmrg    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'
9859bd23fbfaSmrg    ;;
9860bd23fbfaSmrg  esac
9861bd23fbfaSmrg  ;;
9862bd23fbfaSmrg
9863bd23fbfaSmrgbeos*)
9864bd23fbfaSmrg  library_names_spec='${libname}${shared_ext}'
9865bd23fbfaSmrg  dynamic_linker="$host_os ld.so"
9866bd23fbfaSmrg  shlibpath_var=LIBRARY_PATH
9867bd23fbfaSmrg  ;;
9868bd23fbfaSmrg
9869bd23fbfaSmrgbsdi[45]*)
9870bd23fbfaSmrg  version_type=linux
9871bd23fbfaSmrg  need_version=no
9872bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
9874bd23fbfaSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9875bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
9876bd23fbfaSmrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9877bd23fbfaSmrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9878bd23fbfaSmrg  # the default ld.so.conf also contains /usr/contrib/lib and
9879bd23fbfaSmrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9880bd23fbfaSmrg  # libtool to hard-code these into programs
9881bd23fbfaSmrg  ;;
9882bd23fbfaSmrg
9883bd23fbfaSmrgcygwin* | mingw* | pw32* | cegcc*)
9884bd23fbfaSmrg  version_type=windows
9885bd23fbfaSmrg  shrext_cmds=".dll"
9886bd23fbfaSmrg  need_version=no
9887bd23fbfaSmrg  need_lib_prefix=no
9888bd23fbfaSmrg
9889bd23fbfaSmrg  case $GCC,$cc_basename in
9890bd23fbfaSmrg  yes,*)
9891bd23fbfaSmrg    # gcc
9892bd23fbfaSmrg    library_names_spec='$libname.dll.a'
9893bd23fbfaSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9894bd23fbfaSmrg    postinstall_cmds='base_file=`basename \${file}`~
9895bd23fbfaSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9896bd23fbfaSmrg      dldir=$destdir/`dirname \$dlpath`~
9897bd23fbfaSmrg      test -d \$dldir || mkdir -p \$dldir~
9898bd23fbfaSmrg      $install_prog $dir/$dlname \$dldir/$dlname~
9899bd23fbfaSmrg      chmod a+x \$dldir/$dlname~
9900bd23fbfaSmrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9901bd23fbfaSmrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9902bd23fbfaSmrg      fi'
9903bd23fbfaSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9904bd23fbfaSmrg      dlpath=$dir/\$dldll~
9905bd23fbfaSmrg       $RM \$dlpath'
9906bd23fbfaSmrg    shlibpath_overrides_runpath=yes
9907bd23fbfaSmrg
9908bd23fbfaSmrg    case $host_os in
9909bd23fbfaSmrg    cygwin*)
9910bd23fbfaSmrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9911bd23fbfaSmrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912bd23fbfaSmrg
9913bd23fbfaSmrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9914bd23fbfaSmrg      ;;
9915bd23fbfaSmrg    mingw* | cegcc*)
9916bd23fbfaSmrg      # MinGW DLLs use traditional 'lib' prefix
9917bd23fbfaSmrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918bd23fbfaSmrg      ;;
9919bd23fbfaSmrg    pw32*)
9920bd23fbfaSmrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
9921bd23fbfaSmrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9922bd23fbfaSmrg      ;;
9923bd23fbfaSmrg    esac
9924bd23fbfaSmrg    dynamic_linker='Win32 ld.exe'
9925bd23fbfaSmrg    ;;
9926bd23fbfaSmrg
9927bd23fbfaSmrg  *,cl*)
9928bd23fbfaSmrg    # Native MSVC
9929bd23fbfaSmrg    libname_spec='$name'
9930bd23fbfaSmrg    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9931bd23fbfaSmrg    library_names_spec='${libname}.dll.lib'
9932bd23fbfaSmrg
9933bd23fbfaSmrg    case $build_os in
9934bd23fbfaSmrg    mingw*)
9935bd23fbfaSmrg      sys_lib_search_path_spec=
9936bd23fbfaSmrg      lt_save_ifs=$IFS
9937bd23fbfaSmrg      IFS=';'
9938bd23fbfaSmrg      for lt_path in $LIB
9939bd23fbfaSmrg      do
9940bd23fbfaSmrg        IFS=$lt_save_ifs
9941bd23fbfaSmrg        # Let DOS variable expansion print the short 8.3 style file name.
9942bd23fbfaSmrg        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9943bd23fbfaSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9944bd23fbfaSmrg      done
9945bd23fbfaSmrg      IFS=$lt_save_ifs
9946bd23fbfaSmrg      # Convert to MSYS style.
9947bd23fbfaSmrg      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9948bd23fbfaSmrg      ;;
9949bd23fbfaSmrg    cygwin*)
9950bd23fbfaSmrg      # Convert to unix form, then to dos form, then back to unix form
9951bd23fbfaSmrg      # but this time dos style (no spaces!) so that the unix form looks
9952bd23fbfaSmrg      # like /cygdrive/c/PROGRA~1:/cygdr...
9953bd23fbfaSmrg      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9954bd23fbfaSmrg      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9955bd23fbfaSmrg      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9956bd23fbfaSmrg      ;;
9957bd23fbfaSmrg    *)
9958bd23fbfaSmrg      sys_lib_search_path_spec="$LIB"
9959bd23fbfaSmrg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9960bd23fbfaSmrg        # It is most probably a Windows format PATH.
9961bd23fbfaSmrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9962bd23fbfaSmrg      else
9963bd23fbfaSmrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9964bd23fbfaSmrg      fi
9965bd23fbfaSmrg      # FIXME: find the short name or the path components, as spaces are
9966bd23fbfaSmrg      # common. (e.g. "Program Files" -> "PROGRA~1")
9967bd23fbfaSmrg      ;;
9968bd23fbfaSmrg    esac
9969bd23fbfaSmrg
9970bd23fbfaSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9971bd23fbfaSmrg    postinstall_cmds='base_file=`basename \${file}`~
9972bd23fbfaSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9973bd23fbfaSmrg      dldir=$destdir/`dirname \$dlpath`~
9974bd23fbfaSmrg      test -d \$dldir || mkdir -p \$dldir~
9975bd23fbfaSmrg      $install_prog $dir/$dlname \$dldir/$dlname'
9976bd23fbfaSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9977bd23fbfaSmrg      dlpath=$dir/\$dldll~
9978bd23fbfaSmrg       $RM \$dlpath'
9979bd23fbfaSmrg    shlibpath_overrides_runpath=yes
9980bd23fbfaSmrg    dynamic_linker='Win32 link.exe'
9981bd23fbfaSmrg    ;;
9982bd23fbfaSmrg
9983bd23fbfaSmrg  *)
9984bd23fbfaSmrg    # Assume MSVC wrapper
9985bd23fbfaSmrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9986bd23fbfaSmrg    dynamic_linker='Win32 ld.exe'
9987bd23fbfaSmrg    ;;
9988bd23fbfaSmrg  esac
9989bd23fbfaSmrg  # FIXME: first we should search . and the directory the executable is in
9990bd23fbfaSmrg  shlibpath_var=PATH
9991bd23fbfaSmrg  ;;
9992bd23fbfaSmrg
9993bd23fbfaSmrgdarwin* | rhapsody*)
9994bd23fbfaSmrg  dynamic_linker="$host_os dyld"
9995bd23fbfaSmrg  version_type=darwin
9996bd23fbfaSmrg  need_lib_prefix=no
9997bd23fbfaSmrg  need_version=no
9998bd23fbfaSmrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9999bd23fbfaSmrg  soname_spec='${libname}${release}${major}$shared_ext'
10000bd23fbfaSmrg  shlibpath_overrides_runpath=yes
10001bd23fbfaSmrg  shlibpath_var=DYLD_LIBRARY_PATH
10002bd23fbfaSmrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10003bd23fbfaSmrg
10004bd23fbfaSmrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10005bd23fbfaSmrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10006bd23fbfaSmrg  ;;
10007bd23fbfaSmrg
10008bd23fbfaSmrgdgux*)
10009bd23fbfaSmrg  version_type=linux
10010bd23fbfaSmrg  need_lib_prefix=no
10011bd23fbfaSmrg  need_version=no
10012bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10013bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10014bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10015bd23fbfaSmrg  ;;
10016bd23fbfaSmrg
10017bd23fbfaSmrgfreebsd1*)
10018bd23fbfaSmrg  dynamic_linker=no
10019bd23fbfaSmrg  ;;
10020bd23fbfaSmrg
10021bd23fbfaSmrgfreebsd* | dragonfly*)
10022bd23fbfaSmrg  # DragonFly does not have aout.  When/if they implement a new
10023bd23fbfaSmrg  # versioning mechanism, adjust this.
10024bd23fbfaSmrg  if test -x /usr/bin/objformat; then
10025bd23fbfaSmrg    objformat=`/usr/bin/objformat`
10026bd23fbfaSmrg  else
10027bd23fbfaSmrg    case $host_os in
10028bd23fbfaSmrg    freebsd[123]*) objformat=aout ;;
10029bd23fbfaSmrg    *) objformat=elf ;;
10030bd23fbfaSmrg    esac
10031bd23fbfaSmrg  fi
10032bd23fbfaSmrg  version_type=freebsd-$objformat
10033bd23fbfaSmrg  case $version_type in
10034bd23fbfaSmrg    freebsd-elf*)
10035bd23fbfaSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10036bd23fbfaSmrg      need_version=no
10037bd23fbfaSmrg      need_lib_prefix=no
10038bd23fbfaSmrg      ;;
10039bd23fbfaSmrg    freebsd-*)
10040bd23fbfaSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10041bd23fbfaSmrg      need_version=yes
10042bd23fbfaSmrg      ;;
10043bd23fbfaSmrg  esac
10044bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10045bd23fbfaSmrg  case $host_os in
10046bd23fbfaSmrg  freebsd2*)
10047bd23fbfaSmrg    shlibpath_overrides_runpath=yes
10048bd23fbfaSmrg    ;;
10049bd23fbfaSmrg  freebsd3.[01]* | freebsdelf3.[01]*)
10050bd23fbfaSmrg    shlibpath_overrides_runpath=yes
10051bd23fbfaSmrg    hardcode_into_libs=yes
10052bd23fbfaSmrg    ;;
10053bd23fbfaSmrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10054bd23fbfaSmrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10055bd23fbfaSmrg    shlibpath_overrides_runpath=no
10056bd23fbfaSmrg    hardcode_into_libs=yes
10057bd23fbfaSmrg    ;;
10058bd23fbfaSmrg  *) # from 4.6 on, and DragonFly
10059bd23fbfaSmrg    shlibpath_overrides_runpath=yes
10060bd23fbfaSmrg    hardcode_into_libs=yes
10061bd23fbfaSmrg    ;;
10062bd23fbfaSmrg  esac
10063bd23fbfaSmrg  ;;
10064bd23fbfaSmrg
10065bd23fbfaSmrggnu*)
10066bd23fbfaSmrg  version_type=linux
10067bd23fbfaSmrg  need_lib_prefix=no
10068bd23fbfaSmrg  need_version=no
10069bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10070bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10071bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10072bd23fbfaSmrg  hardcode_into_libs=yes
10073bd23fbfaSmrg  ;;
10074bd23fbfaSmrg
10075bd23fbfaSmrghaiku*)
10076bd23fbfaSmrg  version_type=linux
10077bd23fbfaSmrg  need_lib_prefix=no
10078bd23fbfaSmrg  need_version=no
10079bd23fbfaSmrg  dynamic_linker="$host_os runtime_loader"
10080bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10081bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10082bd23fbfaSmrg  shlibpath_var=LIBRARY_PATH
10083bd23fbfaSmrg  shlibpath_overrides_runpath=yes
10084bd23fbfaSmrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10085bd23fbfaSmrg  hardcode_into_libs=yes
10086bd23fbfaSmrg  ;;
10087bd23fbfaSmrg
10088bd23fbfaSmrghpux9* | hpux10* | hpux11*)
10089bd23fbfaSmrg  # Give a soname corresponding to the major version so that dld.sl refuses to
10090bd23fbfaSmrg  # link against other versions.
10091bd23fbfaSmrg  version_type=sunos
10092bd23fbfaSmrg  need_lib_prefix=no
10093bd23fbfaSmrg  need_version=no
10094bd23fbfaSmrg  case $host_cpu in
10095bd23fbfaSmrg  ia64*)
10096bd23fbfaSmrg    shrext_cmds='.so'
10097bd23fbfaSmrg    hardcode_into_libs=yes
10098bd23fbfaSmrg    dynamic_linker="$host_os dld.so"
10099bd23fbfaSmrg    shlibpath_var=LD_LIBRARY_PATH
10100bd23fbfaSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10101bd23fbfaSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102bd23fbfaSmrg    soname_spec='${libname}${release}${shared_ext}$major'
10103bd23fbfaSmrg    if test "X$HPUX_IA64_MODE" = X32; then
10104bd23fbfaSmrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10105bd23fbfaSmrg    else
10106bd23fbfaSmrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10107bd23fbfaSmrg    fi
10108bd23fbfaSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109bd23fbfaSmrg    ;;
10110bd23fbfaSmrg  hppa*64*)
10111bd23fbfaSmrg    shrext_cmds='.sl'
10112bd23fbfaSmrg    hardcode_into_libs=yes
10113bd23fbfaSmrg    dynamic_linker="$host_os dld.sl"
10114bd23fbfaSmrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10115bd23fbfaSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116bd23fbfaSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117bd23fbfaSmrg    soname_spec='${libname}${release}${shared_ext}$major'
10118bd23fbfaSmrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10119bd23fbfaSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10120bd23fbfaSmrg    ;;
10121bd23fbfaSmrg  *)
10122bd23fbfaSmrg    shrext_cmds='.sl'
10123bd23fbfaSmrg    dynamic_linker="$host_os dld.sl"
10124bd23fbfaSmrg    shlibpath_var=SHLIB_PATH
10125bd23fbfaSmrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10126bd23fbfaSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127bd23fbfaSmrg    soname_spec='${libname}${release}${shared_ext}$major'
10128bd23fbfaSmrg    ;;
10129bd23fbfaSmrg  esac
10130bd23fbfaSmrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10131bd23fbfaSmrg  postinstall_cmds='chmod 555 $lib'
10132bd23fbfaSmrg  # or fails outright, so override atomically:
10133bd23fbfaSmrg  install_override_mode=555
10134bd23fbfaSmrg  ;;
10135bd23fbfaSmrg
10136bd23fbfaSmrginterix[3-9]*)
10137bd23fbfaSmrg  version_type=linux
10138bd23fbfaSmrg  need_lib_prefix=no
10139bd23fbfaSmrg  need_version=no
10140bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10141bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10142bd23fbfaSmrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10143bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10144bd23fbfaSmrg  shlibpath_overrides_runpath=no
10145bd23fbfaSmrg  hardcode_into_libs=yes
10146bd23fbfaSmrg  ;;
10147bd23fbfaSmrg
10148bd23fbfaSmrgirix5* | irix6* | nonstopux*)
10149bd23fbfaSmrg  case $host_os in
10150bd23fbfaSmrg    nonstopux*) version_type=nonstopux ;;
10151bd23fbfaSmrg    *)
10152bd23fbfaSmrg	if test "$lt_cv_prog_gnu_ld" = yes; then
10153bd23fbfaSmrg		version_type=linux
10154bd23fbfaSmrg	else
10155bd23fbfaSmrg		version_type=irix
10156bd23fbfaSmrg	fi ;;
10157bd23fbfaSmrg  esac
10158bd23fbfaSmrg  need_lib_prefix=no
10159bd23fbfaSmrg  need_version=no
10160bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10161bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10162bd23fbfaSmrg  case $host_os in
10163bd23fbfaSmrg  irix5* | nonstopux*)
10164bd23fbfaSmrg    libsuff= shlibsuff=
10165bd23fbfaSmrg    ;;
10166bd23fbfaSmrg  *)
10167bd23fbfaSmrg    case $LD in # libtool.m4 will add one of these switches to LD
10168bd23fbfaSmrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10169bd23fbfaSmrg      libsuff= shlibsuff= libmagic=32-bit;;
10170bd23fbfaSmrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10171bd23fbfaSmrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
10172bd23fbfaSmrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10173bd23fbfaSmrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10174bd23fbfaSmrg    *) libsuff= shlibsuff= libmagic=never-match;;
10175bd23fbfaSmrg    esac
10176bd23fbfaSmrg    ;;
10177bd23fbfaSmrg  esac
10178bd23fbfaSmrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10179bd23fbfaSmrg  shlibpath_overrides_runpath=no
10180bd23fbfaSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10181bd23fbfaSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10182bd23fbfaSmrg  hardcode_into_libs=yes
10183bd23fbfaSmrg  ;;
10184bd23fbfaSmrg
10185bd23fbfaSmrg# No shared lib support for Linux oldld, aout, or coff.
10186bd23fbfaSmrglinux*oldld* | linux*aout* | linux*coff*)
10187bd23fbfaSmrg  dynamic_linker=no
10188bd23fbfaSmrg  ;;
10189bd23fbfaSmrg
10190bd23fbfaSmrg# This must be Linux ELF.
10191bd23fbfaSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
10192bd23fbfaSmrg  version_type=linux
10193bd23fbfaSmrg  need_lib_prefix=no
10194bd23fbfaSmrg  need_version=no
10195bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10197bd23fbfaSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10198bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10199bd23fbfaSmrg  shlibpath_overrides_runpath=no
10200bd23fbfaSmrg
10201bd23fbfaSmrg  # Some binutils ld are patched to set DT_RUNPATH
10202bd23fbfaSmrg  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10203bd23fbfaSmrg  $as_echo_n "(cached) " >&6
10204bd23fbfaSmrgelse
10205bd23fbfaSmrg  lt_cv_shlibpath_overrides_runpath=no
10206bd23fbfaSmrg    save_LDFLAGS=$LDFLAGS
10207bd23fbfaSmrg    save_libdir=$libdir
10208bd23fbfaSmrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10209bd23fbfaSmrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10210bd23fbfaSmrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211bd23fbfaSmrg/* end confdefs.h.  */
10212bd23fbfaSmrg
10213bd23fbfaSmrgint
10214bd23fbfaSmrgmain ()
10215bd23fbfaSmrg{
10216bd23fbfaSmrg
10217bd23fbfaSmrg  ;
10218bd23fbfaSmrg  return 0;
10219bd23fbfaSmrg}
10220bd23fbfaSmrg_ACEOF
10221bd23fbfaSmrgif ac_fn_c_try_link "$LINENO"; then :
10222bd23fbfaSmrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10223bd23fbfaSmrg  lt_cv_shlibpath_overrides_runpath=yes
10224bd23fbfaSmrgfi
10225bd23fbfaSmrgfi
10226bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext \
10227bd23fbfaSmrg    conftest$ac_exeext conftest.$ac_ext
10228bd23fbfaSmrg    LDFLAGS=$save_LDFLAGS
10229bd23fbfaSmrg    libdir=$save_libdir
10230bd23fbfaSmrg
10231bd23fbfaSmrgfi
10232bd23fbfaSmrg
10233bd23fbfaSmrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10234bd23fbfaSmrg
10235bd23fbfaSmrg  # This implies no fast_install, which is unacceptable.
10236bd23fbfaSmrg  # Some rework will be needed to allow for fast_install
10237bd23fbfaSmrg  # before this can be enabled.
10238bd23fbfaSmrg  hardcode_into_libs=yes
10239bd23fbfaSmrg
10240bd23fbfaSmrg  # Append ld.so.conf contents to the search path
10241bd23fbfaSmrg  if test -f /etc/ld.so.conf; then
10242bd23fbfaSmrg    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' ' '`
10243bd23fbfaSmrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10244bd23fbfaSmrg  fi
10245bd23fbfaSmrg
10246bd23fbfaSmrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
10247bd23fbfaSmrg  # powerpc, because MkLinux only supported shared libraries with the
10248bd23fbfaSmrg  # GNU dynamic linker.  Since this was broken with cross compilers,
10249bd23fbfaSmrg  # most powerpc-linux boxes support dynamic linking these days and
10250bd23fbfaSmrg  # people can always --disable-shared, the test was removed, and we
10251bd23fbfaSmrg  # assume the GNU/Linux dynamic linker is in use.
10252bd23fbfaSmrg  dynamic_linker='GNU/Linux ld.so'
10253bd23fbfaSmrg  ;;
10254bd23fbfaSmrg
10255bd23fbfaSmrgnetbsd*)
10256bd23fbfaSmrg  version_type=sunos
10257bd23fbfaSmrg  need_lib_prefix=no
10258bd23fbfaSmrg  need_version=no
10259bd23fbfaSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10260bd23fbfaSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10261bd23fbfaSmrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10262bd23fbfaSmrg    dynamic_linker='NetBSD (a.out) ld.so'
10263bd23fbfaSmrg  else
10264bd23fbfaSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10265bd23fbfaSmrg    soname_spec='${libname}${release}${shared_ext}$major'
10266bd23fbfaSmrg    dynamic_linker='NetBSD ld.elf_so'
10267bd23fbfaSmrg  fi
10268bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10269bd23fbfaSmrg  shlibpath_overrides_runpath=yes
10270bd23fbfaSmrg  hardcode_into_libs=yes
10271bd23fbfaSmrg  ;;
10272bd23fbfaSmrg
10273bd23fbfaSmrgnewsos6)
10274bd23fbfaSmrg  version_type=linux
10275bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10277bd23fbfaSmrg  shlibpath_overrides_runpath=yes
10278bd23fbfaSmrg  ;;
10279bd23fbfaSmrg
10280bd23fbfaSmrg*nto* | *qnx*)
10281bd23fbfaSmrg  version_type=qnx
10282bd23fbfaSmrg  need_lib_prefix=no
10283bd23fbfaSmrg  need_version=no
10284bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10286bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10287bd23fbfaSmrg  shlibpath_overrides_runpath=no
10288bd23fbfaSmrg  hardcode_into_libs=yes
10289bd23fbfaSmrg  dynamic_linker='ldqnx.so'
10290bd23fbfaSmrg  ;;
102918c4a8e55Smrg
10292bd23fbfaSmrgopenbsd*)
10293bd23fbfaSmrg  version_type=sunos
10294bd23fbfaSmrg  sys_lib_dlsearch_path_spec="/usr/lib"
10295bd23fbfaSmrg  need_lib_prefix=no
10296bd23fbfaSmrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10297706b6b52Smrg  case $host_os in
10298bd23fbfaSmrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10299bd23fbfaSmrg    *)				need_version=no  ;;
10300706b6b52Smrg  esac
10301bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10302bd23fbfaSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10303bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10304bd23fbfaSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10305bd23fbfaSmrg    case $host_os in
10306bd23fbfaSmrg      openbsd2.[89] | openbsd2.[89].*)
10307bd23fbfaSmrg	shlibpath_overrides_runpath=no
10308bd23fbfaSmrg	;;
10309bd23fbfaSmrg      *)
10310bd23fbfaSmrg	shlibpath_overrides_runpath=yes
10311bd23fbfaSmrg	;;
10312bd23fbfaSmrg      esac
10313bd23fbfaSmrg  else
10314bd23fbfaSmrg    shlibpath_overrides_runpath=yes
10315bd23fbfaSmrg  fi
10316bd23fbfaSmrg  ;;
103178c4a8e55Smrg
10318bd23fbfaSmrgos2*)
10319bd23fbfaSmrg  libname_spec='$name'
10320bd23fbfaSmrg  shrext_cmds=".dll"
10321bd23fbfaSmrg  need_lib_prefix=no
10322bd23fbfaSmrg  library_names_spec='$libname${shared_ext} $libname.a'
10323bd23fbfaSmrg  dynamic_linker='OS/2 ld.exe'
103248c4a8e55Smrg  shlibpath_var=LIBPATH
10325bd23fbfaSmrg  ;;
103268c4a8e55Smrg
10327bd23fbfaSmrgosf3* | osf4* | osf5*)
10328bd23fbfaSmrg  version_type=osf
10329bd23fbfaSmrg  need_lib_prefix=no
10330bd23fbfaSmrg  need_version=no
103318c4a8e55Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10332bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10334bd23fbfaSmrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10335bd23fbfaSmrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
103368c4a8e55Smrg  ;;
103378c4a8e55Smrg
10338bd23fbfaSmrgrdos*)
10339bd23fbfaSmrg  dynamic_linker=no
10340bd23fbfaSmrg  ;;
10341bd23fbfaSmrg
10342bd23fbfaSmrgsolaris*)
103438c4a8e55Smrg  version_type=linux
103448c4a8e55Smrg  need_lib_prefix=no
103458c4a8e55Smrg  need_version=no
10346bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10348bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10349bd23fbfaSmrg  shlibpath_overrides_runpath=yes
103508c4a8e55Smrg  hardcode_into_libs=yes
10351bd23fbfaSmrg  # ldd complains unless libraries are executable
10352bd23fbfaSmrg  postinstall_cmds='chmod +x $lib'
10353bd23fbfaSmrg  ;;
10354bd23fbfaSmrg
10355bd23fbfaSmrgsunos4*)
10356bd23fbfaSmrg  version_type=sunos
10357bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10358bd23fbfaSmrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10359bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10360bd23fbfaSmrg  shlibpath_overrides_runpath=yes
10361bd23fbfaSmrg  if test "$with_gnu_ld" = yes; then
10362bd23fbfaSmrg    need_lib_prefix=no
10363b042e37fSmrg  fi
10364bd23fbfaSmrg  need_version=yes
10365b042e37fSmrg  ;;
10366b042e37fSmrg
10367bd23fbfaSmrgsysv4 | sysv4.3*)
10368bd23fbfaSmrg  version_type=linux
10369bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370bd23fbfaSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10371bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10372bd23fbfaSmrg  case $host_vendor in
10373bd23fbfaSmrg    sni)
10374bd23fbfaSmrg      shlibpath_overrides_runpath=no
10375bd23fbfaSmrg      need_lib_prefix=no
10376bd23fbfaSmrg      runpath_var=LD_RUN_PATH
10377bd23fbfaSmrg      ;;
10378bd23fbfaSmrg    siemens)
10379bd23fbfaSmrg      need_lib_prefix=no
10380bd23fbfaSmrg      ;;
10381bd23fbfaSmrg    motorola)
10382bd23fbfaSmrg      need_lib_prefix=no
10383bd23fbfaSmrg      need_version=no
10384bd23fbfaSmrg      shlibpath_overrides_runpath=no
10385bd23fbfaSmrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10386bd23fbfaSmrg      ;;
103878c4a8e55Smrg  esac
10388b042e37fSmrg  ;;
10389b042e37fSmrg
10390bd23fbfaSmrgsysv4*MP*)
10391bd23fbfaSmrg  if test -d /usr/nec ;then
10392bd23fbfaSmrg    version_type=linux
10393bd23fbfaSmrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10394bd23fbfaSmrg    soname_spec='$libname${shared_ext}.$major'
10395bd23fbfaSmrg    shlibpath_var=LD_LIBRARY_PATH
10396bd23fbfaSmrg  fi
10397b042e37fSmrg  ;;
10398b042e37fSmrg
10399bd23fbfaSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10400bd23fbfaSmrg  version_type=freebsd-elf
10401bd23fbfaSmrg  need_lib_prefix=no
10402b042e37fSmrg  need_version=no
10403bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10404b042e37fSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10405b042e37fSmrg  shlibpath_var=LD_LIBRARY_PATH
10406bd23fbfaSmrg  shlibpath_overrides_runpath=yes
10407bd23fbfaSmrg  hardcode_into_libs=yes
10408bd23fbfaSmrg  if test "$with_gnu_ld" = yes; then
10409bd23fbfaSmrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10410bd23fbfaSmrg  else
10411bd23fbfaSmrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10412b042e37fSmrg    case $host_os in
10413bd23fbfaSmrg      sco3.2v5*)
10414bd23fbfaSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10415bd23fbfaSmrg	;;
10416b042e37fSmrg    esac
10417bd23fbfaSmrg  fi
10418bd23fbfaSmrg  sys_lib_dlsearch_path_spec='/usr/lib'
10419b042e37fSmrg  ;;
10420b042e37fSmrg
10421bd23fbfaSmrgtpf*)
10422bd23fbfaSmrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10423bd23fbfaSmrg  version_type=linux
10424b042e37fSmrg  need_lib_prefix=no
10425b042e37fSmrg  need_version=no
10426bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427bd23fbfaSmrg  shlibpath_var=LD_LIBRARY_PATH
10428bd23fbfaSmrg  shlibpath_overrides_runpath=no
10429bd23fbfaSmrg  hardcode_into_libs=yes
10430b042e37fSmrg  ;;
10431b042e37fSmrg
10432bd23fbfaSmrguts4*)
10433b042e37fSmrg  version_type=linux
10434bd23fbfaSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435b042e37fSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10436b042e37fSmrg  shlibpath_var=LD_LIBRARY_PATH
10437b042e37fSmrg  ;;
10438b042e37fSmrg
10439bd23fbfaSmrg*)
10440bd23fbfaSmrg  dynamic_linker=no
10441bd23fbfaSmrg  ;;
10442bd23fbfaSmrgesac
10443bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10444bd23fbfaSmrg$as_echo "$dynamic_linker" >&6; }
10445bd23fbfaSmrgtest "$dynamic_linker" = no && can_build_shared=no
10446bd23fbfaSmrg
10447bd23fbfaSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10448bd23fbfaSmrgif test "$GCC" = yes; then
10449bd23fbfaSmrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10450bd23fbfaSmrgfi
10451bd23fbfaSmrg
10452bd23fbfaSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10453bd23fbfaSmrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10454bd23fbfaSmrgfi
10455bd23fbfaSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10456bd23fbfaSmrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10457bd23fbfaSmrgfi
10458bd23fbfaSmrg
10459bd23fbfaSmrg
10460bd23fbfaSmrg
10461bd23fbfaSmrg
10462bd23fbfaSmrg
10463bd23fbfaSmrg
10464bd23fbfaSmrg
10465bd23fbfaSmrg
10466bd23fbfaSmrg
10467bd23fbfaSmrg
10468bd23fbfaSmrg
10469bd23fbfaSmrg
10470bd23fbfaSmrg
10471bd23fbfaSmrg
10472bd23fbfaSmrg
10473bd23fbfaSmrg
10474bd23fbfaSmrg
10475bd23fbfaSmrg
10476bd23fbfaSmrg
10477bd23fbfaSmrg
10478bd23fbfaSmrg
10479bd23fbfaSmrg
10480bd23fbfaSmrg
10481bd23fbfaSmrg
10482bd23fbfaSmrg
10483bd23fbfaSmrg
10484bd23fbfaSmrg
10485bd23fbfaSmrg
10486bd23fbfaSmrg
10487bd23fbfaSmrg
10488bd23fbfaSmrg
10489bd23fbfaSmrg
10490bd23fbfaSmrg
10491bd23fbfaSmrg
10492bd23fbfaSmrg
10493bd23fbfaSmrg
10494bd23fbfaSmrg
10495bd23fbfaSmrg
10496bd23fbfaSmrg
10497bd23fbfaSmrg
10498bd23fbfaSmrg
10499bd23fbfaSmrg
10500bd23fbfaSmrg
10501bd23fbfaSmrg
10502bd23fbfaSmrg
10503bd23fbfaSmrg
10504bd23fbfaSmrg
10505bd23fbfaSmrg
10506bd23fbfaSmrg
10507bd23fbfaSmrg
10508bd23fbfaSmrg
10509bd23fbfaSmrg
10510bd23fbfaSmrg
10511bd23fbfaSmrg
10512bd23fbfaSmrg
10513bd23fbfaSmrg
10514bd23fbfaSmrg
10515bd23fbfaSmrg
10516bd23fbfaSmrg
10517bd23fbfaSmrg
10518bd23fbfaSmrg
10519bd23fbfaSmrg
10520bd23fbfaSmrg
10521bd23fbfaSmrg
10522bd23fbfaSmrg
10523bd23fbfaSmrg
10524bd23fbfaSmrg
10525bd23fbfaSmrg
10526bd23fbfaSmrg
10527bd23fbfaSmrg
10528bd23fbfaSmrg
10529bd23fbfaSmrg
10530bd23fbfaSmrg
10531bd23fbfaSmrg
10532bd23fbfaSmrg
10533bd23fbfaSmrg
10534bd23fbfaSmrg
10535bd23fbfaSmrg
10536bd23fbfaSmrg
10537bd23fbfaSmrg
10538bd23fbfaSmrg
10539bd23fbfaSmrg
10540bd23fbfaSmrg
10541bd23fbfaSmrg
10542bd23fbfaSmrg
10543bd23fbfaSmrg
10544bd23fbfaSmrg
10545bd23fbfaSmrg
10546bd23fbfaSmrg
10547bd23fbfaSmrg
10548bd23fbfaSmrg
10549bd23fbfaSmrg
10550bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10551bd23fbfaSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10552bd23fbfaSmrghardcode_action=
10553bd23fbfaSmrgif test -n "$hardcode_libdir_flag_spec" ||
10554bd23fbfaSmrg   test -n "$runpath_var" ||
10555bd23fbfaSmrg   test "X$hardcode_automatic" = "Xyes" ; then
10556bd23fbfaSmrg
10557bd23fbfaSmrg  # We can hardcode non-existent directories.
10558bd23fbfaSmrg  if test "$hardcode_direct" != no &&
10559bd23fbfaSmrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10560bd23fbfaSmrg     # have to relink, otherwise we might link with an installed library
10561bd23fbfaSmrg     # when we should be linking with a yet-to-be-installed one
10562bd23fbfaSmrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10563bd23fbfaSmrg     test "$hardcode_minus_L" != no; then
10564bd23fbfaSmrg    # Linking always hardcodes the temporary library directory.
10565bd23fbfaSmrg    hardcode_action=relink
10566bd23fbfaSmrg  else
10567bd23fbfaSmrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10568bd23fbfaSmrg    hardcode_action=immediate
10569bd23fbfaSmrg  fi
10570bd23fbfaSmrgelse
10571bd23fbfaSmrg  # We cannot hardcode anything, or else we can only hardcode existing
10572bd23fbfaSmrg  # directories.
10573bd23fbfaSmrg  hardcode_action=unsupported
10574bd23fbfaSmrgfi
10575bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10576bd23fbfaSmrg$as_echo "$hardcode_action" >&6; }
10577bd23fbfaSmrg
10578bd23fbfaSmrgif test "$hardcode_action" = relink ||
10579bd23fbfaSmrg   test "$inherit_rpath" = yes; then
10580bd23fbfaSmrg  # Fast installation is not supported
10581bd23fbfaSmrg  enable_fast_install=no
10582bd23fbfaSmrgelif test "$shlibpath_overrides_runpath" = yes ||
10583bd23fbfaSmrg     test "$enable_shared" = no; then
10584bd23fbfaSmrg  # Fast installation is not necessary
10585bd23fbfaSmrg  enable_fast_install=needless
10586bd23fbfaSmrgfi
10587bd23fbfaSmrg
10588bd23fbfaSmrg
10589b042e37fSmrg
10590b042e37fSmrg
10591b042e37fSmrg
10592706b6b52Smrg
10593bd23fbfaSmrg  if test "x$enable_dlopen" != xyes; then
10594bd23fbfaSmrg  enable_dlopen=unknown
10595bd23fbfaSmrg  enable_dlopen_self=unknown
10596bd23fbfaSmrg  enable_dlopen_self_static=unknown
10597bd23fbfaSmrgelse
10598bd23fbfaSmrg  lt_cv_dlopen=no
10599bd23fbfaSmrg  lt_cv_dlopen_libs=
10600bd23fbfaSmrg
10601bd23fbfaSmrg  case $host_os in
10602bd23fbfaSmrg  beos*)
10603bd23fbfaSmrg    lt_cv_dlopen="load_add_on"
10604bd23fbfaSmrg    lt_cv_dlopen_libs=
10605bd23fbfaSmrg    lt_cv_dlopen_self=yes
10606b042e37fSmrg    ;;
10607bd23fbfaSmrg
10608bd23fbfaSmrg  mingw* | pw32* | cegcc*)
10609bd23fbfaSmrg    lt_cv_dlopen="LoadLibrary"
10610bd23fbfaSmrg    lt_cv_dlopen_libs=
106118c4a8e55Smrg    ;;
10612bd23fbfaSmrg
10613bd23fbfaSmrg  cygwin*)
10614bd23fbfaSmrg    lt_cv_dlopen="dlopen"
10615bd23fbfaSmrg    lt_cv_dlopen_libs=
10616b042e37fSmrg    ;;
10617b042e37fSmrg
10618bd23fbfaSmrg  darwin*)
10619bd23fbfaSmrg  # if libdl is installed we need to link against it
10620bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10621bd23fbfaSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
10622bd23fbfaSmrgif ${ac_cv_lib_dl_dlopen+:} false; then :
10623bd23fbfaSmrg  $as_echo_n "(cached) " >&6
10624bd23fbfaSmrgelse
10625bd23fbfaSmrg  ac_check_lib_save_LIBS=$LIBS
10626bd23fbfaSmrgLIBS="-ldl  $LIBS"
10627bd23fbfaSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628bd23fbfaSmrg/* end confdefs.h.  */
10629b042e37fSmrg
10630bd23fbfaSmrg/* Override any GCC internal prototype to avoid an error.
10631bd23fbfaSmrg   Use char because int might match the return type of a GCC
10632bd23fbfaSmrg   builtin and then its argument prototype would still apply.  */
10633bd23fbfaSmrg#ifdef __cplusplus
10634bd23fbfaSmrgextern "C"
10635bd23fbfaSmrg#endif
10636bd23fbfaSmrgchar dlopen ();
10637bd23fbfaSmrgint
10638bd23fbfaSmrgmain ()
10639bd23fbfaSmrg{
10640bd23fbfaSmrgreturn dlopen ();
10641bd23fbfaSmrg  ;
10642bd23fbfaSmrg  return 0;
10643bd23fbfaSmrg}
10644bd23fbfaSmrg_ACEOF
10645bd23fbfaSmrgif ac_fn_c_try_link "$LINENO"; then :
10646bd23fbfaSmrg  ac_cv_lib_dl_dlopen=yes
10647bd23fbfaSmrgelse
10648bd23fbfaSmrg  ac_cv_lib_dl_dlopen=no
10649bd23fbfaSmrgfi
10650bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext \
10651bd23fbfaSmrg    conftest$ac_exeext conftest.$ac_ext
10652bd23fbfaSmrgLIBS=$ac_check_lib_save_LIBS
10653bd23fbfaSmrgfi
10654bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10655bd23fbfaSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10656bd23fbfaSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10657bd23fbfaSmrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10658bd23fbfaSmrgelse
10659b042e37fSmrg
10660bd23fbfaSmrg    lt_cv_dlopen="dyld"
10661bd23fbfaSmrg    lt_cv_dlopen_libs=
10662bd23fbfaSmrg    lt_cv_dlopen_self=yes
10663b042e37fSmrg
10664bd23fbfaSmrgfi
10665706b6b52Smrg
10666bd23fbfaSmrg    ;;
10667bd23fbfaSmrg
10668bd23fbfaSmrg  *)
10669bd23fbfaSmrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10670bd23fbfaSmrgif test "x$ac_cv_func_shl_load" = xyes; then :
10671bd23fbfaSmrg  lt_cv_dlopen="shl_load"
10672706b6b52Smrgelse
10673bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10674bd23fbfaSmrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
10675bd23fbfaSmrgif ${ac_cv_lib_dld_shl_load+:} false; then :
10676bd23fbfaSmrg  $as_echo_n "(cached) " >&6
10677bd23fbfaSmrgelse
10678bd23fbfaSmrg  ac_check_lib_save_LIBS=$LIBS
10679bd23fbfaSmrgLIBS="-ldld  $LIBS"
10680bd23fbfaSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
106818c4a8e55Smrg/* end confdefs.h.  */
10682b042e37fSmrg
10683bd23fbfaSmrg/* Override any GCC internal prototype to avoid an error.
10684bd23fbfaSmrg   Use char because int might match the return type of a GCC
10685bd23fbfaSmrg   builtin and then its argument prototype would still apply.  */
10686bd23fbfaSmrg#ifdef __cplusplus
10687bd23fbfaSmrgextern "C"
10688bd23fbfaSmrg#endif
10689bd23fbfaSmrgchar shl_load ();
106908c4a8e55Smrgint
106918c4a8e55Smrgmain ()
106928c4a8e55Smrg{
10693bd23fbfaSmrgreturn shl_load ();
106948c4a8e55Smrg  ;
106958c4a8e55Smrg  return 0;
106968c4a8e55Smrg}
106978c4a8e55Smrg_ACEOF
10698706b6b52Smrgif ac_fn_c_try_link "$LINENO"; then :
10699bd23fbfaSmrg  ac_cv_lib_dld_shl_load=yes
10700bd23fbfaSmrgelse
10701bd23fbfaSmrg  ac_cv_lib_dld_shl_load=no
10702706b6b52Smrgfi
10703706b6b52Smrgrm -f core conftest.err conftest.$ac_objext \
10704706b6b52Smrg    conftest$ac_exeext conftest.$ac_ext
10705bd23fbfaSmrgLIBS=$ac_check_lib_save_LIBS
107068c4a8e55Smrgfi
10707bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10708bd23fbfaSmrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10709bd23fbfaSmrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10710bd23fbfaSmrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10711bd23fbfaSmrgelse
10712bd23fbfaSmrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10713bd23fbfaSmrgif test "x$ac_cv_func_dlopen" = xyes; then :
10714bd23fbfaSmrg  lt_cv_dlopen="dlopen"
10715bd23fbfaSmrgelse
10716bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10717bd23fbfaSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
10718bd23fbfaSmrgif ${ac_cv_lib_dl_dlopen+:} false; then :
10719bd23fbfaSmrg  $as_echo_n "(cached) " >&6
10720bd23fbfaSmrgelse
10721bd23fbfaSmrg  ac_check_lib_save_LIBS=$LIBS
10722bd23fbfaSmrgLIBS="-ldl  $LIBS"
10723bd23fbfaSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724bd23fbfaSmrg/* end confdefs.h.  */
107258c4a8e55Smrg
10726bd23fbfaSmrg/* Override any GCC internal prototype to avoid an error.
10727bd23fbfaSmrg   Use char because int might match the return type of a GCC
10728bd23fbfaSmrg   builtin and then its argument prototype would still apply.  */
10729bd23fbfaSmrg#ifdef __cplusplus
10730bd23fbfaSmrgextern "C"
10731bd23fbfaSmrg#endif
10732bd23fbfaSmrgchar dlopen ();
10733bd23fbfaSmrgint
10734bd23fbfaSmrgmain ()
10735bd23fbfaSmrg{
10736bd23fbfaSmrgreturn dlopen ();
10737bd23fbfaSmrg  ;
10738bd23fbfaSmrg  return 0;
10739bd23fbfaSmrg}
10740bd23fbfaSmrg_ACEOF
10741bd23fbfaSmrgif ac_fn_c_try_link "$LINENO"; then :
10742bd23fbfaSmrg  ac_cv_lib_dl_dlopen=yes
10743bd23fbfaSmrgelse
10744bd23fbfaSmrg  ac_cv_lib_dl_dlopen=no
10745bd23fbfaSmrgfi
10746bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext \
10747bd23fbfaSmrg    conftest$ac_exeext conftest.$ac_ext
10748bd23fbfaSmrgLIBS=$ac_check_lib_save_LIBS
10749bd23fbfaSmrgfi
10750bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10751bd23fbfaSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10752bd23fbfaSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10753bd23fbfaSmrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10754bd23fbfaSmrgelse
10755bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10756bd23fbfaSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10757bd23fbfaSmrgif ${ac_cv_lib_svld_dlopen+:} false; then :
10758bd23fbfaSmrg  $as_echo_n "(cached) " >&6
10759bd23fbfaSmrgelse
10760bd23fbfaSmrg  ac_check_lib_save_LIBS=$LIBS
10761bd23fbfaSmrgLIBS="-lsvld  $LIBS"
10762bd23fbfaSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763bd23fbfaSmrg/* end confdefs.h.  */
10764b042e37fSmrg
10765bd23fbfaSmrg/* Override any GCC internal prototype to avoid an error.
10766bd23fbfaSmrg   Use char because int might match the return type of a GCC
10767bd23fbfaSmrg   builtin and then its argument prototype would still apply.  */
10768bd23fbfaSmrg#ifdef __cplusplus
10769bd23fbfaSmrgextern "C"
10770bd23fbfaSmrg#endif
10771bd23fbfaSmrgchar dlopen ();
10772bd23fbfaSmrgint
10773bd23fbfaSmrgmain ()
10774bd23fbfaSmrg{
10775bd23fbfaSmrgreturn dlopen ();
10776bd23fbfaSmrg  ;
10777bd23fbfaSmrg  return 0;
10778bd23fbfaSmrg}
10779bd23fbfaSmrg_ACEOF
10780bd23fbfaSmrgif ac_fn_c_try_link "$LINENO"; then :
10781bd23fbfaSmrg  ac_cv_lib_svld_dlopen=yes
10782bd23fbfaSmrgelse
10783bd23fbfaSmrg  ac_cv_lib_svld_dlopen=no
10784bd23fbfaSmrgfi
10785bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext \
10786bd23fbfaSmrg    conftest$ac_exeext conftest.$ac_ext
10787bd23fbfaSmrgLIBS=$ac_check_lib_save_LIBS
10788b042e37fSmrgfi
10789bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10790bd23fbfaSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10791bd23fbfaSmrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10792bd23fbfaSmrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10793bd23fbfaSmrgelse
10794bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10795bd23fbfaSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
10796bd23fbfaSmrgif ${ac_cv_lib_dld_dld_link+:} false; then :
10797bd23fbfaSmrg  $as_echo_n "(cached) " >&6
10798bd23fbfaSmrgelse
10799bd23fbfaSmrg  ac_check_lib_save_LIBS=$LIBS
10800bd23fbfaSmrgLIBS="-ldld  $LIBS"
10801bd23fbfaSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802bd23fbfaSmrg/* end confdefs.h.  */
10803b042e37fSmrg
10804bd23fbfaSmrg/* Override any GCC internal prototype to avoid an error.
10805bd23fbfaSmrg   Use char because int might match the return type of a GCC
10806bd23fbfaSmrg   builtin and then its argument prototype would still apply.  */
10807bd23fbfaSmrg#ifdef __cplusplus
10808bd23fbfaSmrgextern "C"
10809bd23fbfaSmrg#endif
10810bd23fbfaSmrgchar dld_link ();
10811bd23fbfaSmrgint
10812bd23fbfaSmrgmain ()
10813bd23fbfaSmrg{
10814bd23fbfaSmrgreturn dld_link ();
10815bd23fbfaSmrg  ;
10816bd23fbfaSmrg  return 0;
10817bd23fbfaSmrg}
10818bd23fbfaSmrg_ACEOF
10819bd23fbfaSmrgif ac_fn_c_try_link "$LINENO"; then :
10820bd23fbfaSmrg  ac_cv_lib_dld_dld_link=yes
10821bd23fbfaSmrgelse
10822bd23fbfaSmrg  ac_cv_lib_dld_dld_link=no
10823b042e37fSmrgfi
10824bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext \
10825bd23fbfaSmrg    conftest$ac_exeext conftest.$ac_ext
10826bd23fbfaSmrgLIBS=$ac_check_lib_save_LIBS
10827bd23fbfaSmrgfi
10828bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10829bd23fbfaSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10830bd23fbfaSmrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10831bd23fbfaSmrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10832b042e37fSmrgfi
10833b042e37fSmrg
10834b042e37fSmrg
10835bd23fbfaSmrgfi
10836b042e37fSmrg
10837b042e37fSmrg
10838bd23fbfaSmrgfi
10839b042e37fSmrg
10840b042e37fSmrg
10841bd23fbfaSmrgfi
10842b042e37fSmrg
10843b042e37fSmrg
10844bd23fbfaSmrgfi
10845b042e37fSmrg
10846b042e37fSmrg
10847bd23fbfaSmrgfi
10848b042e37fSmrg
10849bd23fbfaSmrg    ;;
10850bd23fbfaSmrg  esac
10851b042e37fSmrg
10852bd23fbfaSmrg  if test "x$lt_cv_dlopen" != xno; then
10853bd23fbfaSmrg    enable_dlopen=yes
10854bd23fbfaSmrg  else
10855bd23fbfaSmrg    enable_dlopen=no
10856bd23fbfaSmrg  fi
10857b042e37fSmrg
10858bd23fbfaSmrg  case $lt_cv_dlopen in
10859bd23fbfaSmrg  dlopen)
10860bd23fbfaSmrg    save_CPPFLAGS="$CPPFLAGS"
10861bd23fbfaSmrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10862b042e37fSmrg
10863bd23fbfaSmrg    save_LDFLAGS="$LDFLAGS"
10864bd23fbfaSmrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10865b042e37fSmrg
10866bd23fbfaSmrg    save_LIBS="$LIBS"
10867bd23fbfaSmrg    LIBS="$lt_cv_dlopen_libs $LIBS"
10868b042e37fSmrg
10869bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10870bd23fbfaSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10871bd23fbfaSmrgif ${lt_cv_dlopen_self+:} false; then :
10872bd23fbfaSmrg  $as_echo_n "(cached) " >&6
10873bd23fbfaSmrgelse
10874bd23fbfaSmrg  	  if test "$cross_compiling" = yes; then :
10875bd23fbfaSmrg  lt_cv_dlopen_self=cross
10876bd23fbfaSmrgelse
10877bd23fbfaSmrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10878bd23fbfaSmrg  lt_status=$lt_dlunknown
10879bd23fbfaSmrg  cat > conftest.$ac_ext <<_LT_EOF
10880bd23fbfaSmrg#line $LINENO "configure"
10881bd23fbfaSmrg#include "confdefs.h"
10882b042e37fSmrg
10883bd23fbfaSmrg#if HAVE_DLFCN_H
10884bd23fbfaSmrg#include <dlfcn.h>
10885bd23fbfaSmrg#endif
10886b042e37fSmrg
10887bd23fbfaSmrg#include <stdio.h>
10888b042e37fSmrg
10889bd23fbfaSmrg#ifdef RTLD_GLOBAL
10890bd23fbfaSmrg#  define LT_DLGLOBAL		RTLD_GLOBAL
10891bd23fbfaSmrg#else
10892bd23fbfaSmrg#  ifdef DL_GLOBAL
10893bd23fbfaSmrg#    define LT_DLGLOBAL		DL_GLOBAL
10894bd23fbfaSmrg#  else
10895bd23fbfaSmrg#    define LT_DLGLOBAL		0
10896bd23fbfaSmrg#  endif
10897bd23fbfaSmrg#endif
10898b042e37fSmrg
10899bd23fbfaSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10900bd23fbfaSmrg   find out it does not work in some platform. */
10901bd23fbfaSmrg#ifndef LT_DLLAZY_OR_NOW
10902bd23fbfaSmrg#  ifdef RTLD_LAZY
10903bd23fbfaSmrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10904bd23fbfaSmrg#  else
10905bd23fbfaSmrg#    ifdef DL_LAZY
10906bd23fbfaSmrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
10907bd23fbfaSmrg#    else
10908bd23fbfaSmrg#      ifdef RTLD_NOW
10909bd23fbfaSmrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10910bd23fbfaSmrg#      else
10911bd23fbfaSmrg#        ifdef DL_NOW
10912bd23fbfaSmrg#          define LT_DLLAZY_OR_NOW	DL_NOW
10913bd23fbfaSmrg#        else
10914bd23fbfaSmrg#          define LT_DLLAZY_OR_NOW	0
10915bd23fbfaSmrg#        endif
10916bd23fbfaSmrg#      endif
10917bd23fbfaSmrg#    endif
10918bd23fbfaSmrg#  endif
10919bd23fbfaSmrg#endif
10920b042e37fSmrg
10921bd23fbfaSmrg/* When -fvisbility=hidden is used, assume the code has been annotated
10922bd23fbfaSmrg   correspondingly for the symbols needed.  */
10923bd23fbfaSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10924bd23fbfaSmrgint fnord () __attribute__((visibility("default")));
10925bd23fbfaSmrg#endif
10926b042e37fSmrg
10927bd23fbfaSmrgint fnord () { return 42; }
10928bd23fbfaSmrgint main ()
10929bd23fbfaSmrg{
10930bd23fbfaSmrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10931bd23fbfaSmrg  int status = $lt_dlunknown;
10932b042e37fSmrg
10933bd23fbfaSmrg  if (self)
10934bd23fbfaSmrg    {
10935bd23fbfaSmrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10936bd23fbfaSmrg      else
10937bd23fbfaSmrg        {
10938bd23fbfaSmrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10939bd23fbfaSmrg          else puts (dlerror ());
10940bd23fbfaSmrg	}
10941bd23fbfaSmrg      /* dlclose (self); */
10942bd23fbfaSmrg    }
10943bd23fbfaSmrg  else
10944bd23fbfaSmrg    puts (dlerror ());
10945b042e37fSmrg
10946bd23fbfaSmrg  return status;
10947bd23fbfaSmrg}
10948bd23fbfaSmrg_LT_EOF
10949bd23fbfaSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10950bd23fbfaSmrg  (eval $ac_link) 2>&5
10951bd23fbfaSmrg  ac_status=$?
10952bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10953bd23fbfaSmrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10954bd23fbfaSmrg    (./conftest; exit; ) >&5 2>/dev/null
10955bd23fbfaSmrg    lt_status=$?
10956bd23fbfaSmrg    case x$lt_status in
10957bd23fbfaSmrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10958bd23fbfaSmrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10959bd23fbfaSmrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10960bd23fbfaSmrg    esac
10961bd23fbfaSmrg  else :
10962bd23fbfaSmrg    # compilation failed
10963bd23fbfaSmrg    lt_cv_dlopen_self=no
10964bd23fbfaSmrg  fi
10965bd23fbfaSmrgfi
10966bd23fbfaSmrgrm -fr conftest*
10967b042e37fSmrg
10968b042e37fSmrg
10969bd23fbfaSmrgfi
10970bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10971bd23fbfaSmrg$as_echo "$lt_cv_dlopen_self" >&6; }
10972b042e37fSmrg
10973bd23fbfaSmrg    if test "x$lt_cv_dlopen_self" = xyes; then
10974bd23fbfaSmrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10975bd23fbfaSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10976bd23fbfaSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10977bd23fbfaSmrgif ${lt_cv_dlopen_self_static+:} false; then :
10978bd23fbfaSmrg  $as_echo_n "(cached) " >&6
10979bd23fbfaSmrgelse
10980bd23fbfaSmrg  	  if test "$cross_compiling" = yes; then :
10981bd23fbfaSmrg  lt_cv_dlopen_self_static=cross
10982bd23fbfaSmrgelse
10983bd23fbfaSmrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10984bd23fbfaSmrg  lt_status=$lt_dlunknown
10985bd23fbfaSmrg  cat > conftest.$ac_ext <<_LT_EOF
10986bd23fbfaSmrg#line $LINENO "configure"
10987bd23fbfaSmrg#include "confdefs.h"
10988b042e37fSmrg
10989bd23fbfaSmrg#if HAVE_DLFCN_H
10990bd23fbfaSmrg#include <dlfcn.h>
10991bd23fbfaSmrg#endif
10992b042e37fSmrg
10993bd23fbfaSmrg#include <stdio.h>
10994b042e37fSmrg
10995bd23fbfaSmrg#ifdef RTLD_GLOBAL
10996bd23fbfaSmrg#  define LT_DLGLOBAL		RTLD_GLOBAL
10997bd23fbfaSmrg#else
10998bd23fbfaSmrg#  ifdef DL_GLOBAL
10999bd23fbfaSmrg#    define LT_DLGLOBAL		DL_GLOBAL
11000bd23fbfaSmrg#  else
11001bd23fbfaSmrg#    define LT_DLGLOBAL		0
11002bd23fbfaSmrg#  endif
11003bd23fbfaSmrg#endif
11004b042e37fSmrg
11005bd23fbfaSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11006bd23fbfaSmrg   find out it does not work in some platform. */
11007bd23fbfaSmrg#ifndef LT_DLLAZY_OR_NOW
11008bd23fbfaSmrg#  ifdef RTLD_LAZY
11009bd23fbfaSmrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11010bd23fbfaSmrg#  else
11011bd23fbfaSmrg#    ifdef DL_LAZY
11012bd23fbfaSmrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
11013bd23fbfaSmrg#    else
11014bd23fbfaSmrg#      ifdef RTLD_NOW
11015bd23fbfaSmrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11016bd23fbfaSmrg#      else
11017bd23fbfaSmrg#        ifdef DL_NOW
11018bd23fbfaSmrg#          define LT_DLLAZY_OR_NOW	DL_NOW
11019bd23fbfaSmrg#        else
11020bd23fbfaSmrg#          define LT_DLLAZY_OR_NOW	0
11021bd23fbfaSmrg#        endif
11022bd23fbfaSmrg#      endif
11023bd23fbfaSmrg#    endif
11024bd23fbfaSmrg#  endif
11025bd23fbfaSmrg#endif
11026b042e37fSmrg
11027bd23fbfaSmrg/* When -fvisbility=hidden is used, assume the code has been annotated
11028bd23fbfaSmrg   correspondingly for the symbols needed.  */
11029bd23fbfaSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11030bd23fbfaSmrgint fnord () __attribute__((visibility("default")));
11031bd23fbfaSmrg#endif
11032b042e37fSmrg
11033bd23fbfaSmrgint fnord () { return 42; }
11034bd23fbfaSmrgint main ()
11035bd23fbfaSmrg{
11036bd23fbfaSmrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11037bd23fbfaSmrg  int status = $lt_dlunknown;
11038b042e37fSmrg
11039bd23fbfaSmrg  if (self)
11040bd23fbfaSmrg    {
11041bd23fbfaSmrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11042bd23fbfaSmrg      else
11043bd23fbfaSmrg        {
11044bd23fbfaSmrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11045bd23fbfaSmrg          else puts (dlerror ());
11046bd23fbfaSmrg	}
11047bd23fbfaSmrg      /* dlclose (self); */
11048bd23fbfaSmrg    }
11049bd23fbfaSmrg  else
11050bd23fbfaSmrg    puts (dlerror ());
11051b042e37fSmrg
11052bd23fbfaSmrg  return status;
11053bd23fbfaSmrg}
11054bd23fbfaSmrg_LT_EOF
11055bd23fbfaSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11056bd23fbfaSmrg  (eval $ac_link) 2>&5
11057bd23fbfaSmrg  ac_status=$?
11058bd23fbfaSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11059bd23fbfaSmrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11060bd23fbfaSmrg    (./conftest; exit; ) >&5 2>/dev/null
11061bd23fbfaSmrg    lt_status=$?
11062bd23fbfaSmrg    case x$lt_status in
11063bd23fbfaSmrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11064bd23fbfaSmrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11065bd23fbfaSmrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11066bd23fbfaSmrg    esac
11067bd23fbfaSmrg  else :
11068bd23fbfaSmrg    # compilation failed
11069bd23fbfaSmrg    lt_cv_dlopen_self_static=no
11070bd23fbfaSmrg  fi
11071bd23fbfaSmrgfi
11072bd23fbfaSmrgrm -fr conftest*
11073b042e37fSmrg
11074b042e37fSmrg
11075bd23fbfaSmrgfi
11076bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11077bd23fbfaSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
11078bd23fbfaSmrg    fi
11079b042e37fSmrg
11080bd23fbfaSmrg    CPPFLAGS="$save_CPPFLAGS"
11081bd23fbfaSmrg    LDFLAGS="$save_LDFLAGS"
11082bd23fbfaSmrg    LIBS="$save_LIBS"
11083bd23fbfaSmrg    ;;
11084bd23fbfaSmrg  esac
11085b042e37fSmrg
11086bd23fbfaSmrg  case $lt_cv_dlopen_self in
11087bd23fbfaSmrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11088bd23fbfaSmrg  *) enable_dlopen_self=unknown ;;
11089bd23fbfaSmrg  esac
11090b042e37fSmrg
11091bd23fbfaSmrg  case $lt_cv_dlopen_self_static in
11092bd23fbfaSmrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11093bd23fbfaSmrg  *) enable_dlopen_self_static=unknown ;;
11094bd23fbfaSmrg  esac
11095bd23fbfaSmrgfi
11096b042e37fSmrg
11097b042e37fSmrg
11098b042e37fSmrg
11099b042e37fSmrg
11100b042e37fSmrg
11101b042e37fSmrg
11102b042e37fSmrg
11103b042e37fSmrg
11104b042e37fSmrg
11105b042e37fSmrg
11106b042e37fSmrg
11107b042e37fSmrg
11108b042e37fSmrg
11109b042e37fSmrg
11110b042e37fSmrg
11111b042e37fSmrg
11112b042e37fSmrg
11113bd23fbfaSmrgstriplib=
11114bd23fbfaSmrgold_striplib=
11115bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11116bd23fbfaSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11117bd23fbfaSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11118bd23fbfaSmrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11119bd23fbfaSmrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11120bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11121bd23fbfaSmrg$as_echo "yes" >&6; }
11122bd23fbfaSmrgelse
11123bd23fbfaSmrg# FIXME - insert some real tests, host_os isn't really good enough
11124bd23fbfaSmrg  case $host_os in
11125bd23fbfaSmrg  darwin*)
11126bd23fbfaSmrg    if test -n "$STRIP" ; then
11127bd23fbfaSmrg      striplib="$STRIP -x"
11128bd23fbfaSmrg      old_striplib="$STRIP -S"
11129bd23fbfaSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11130bd23fbfaSmrg$as_echo "yes" >&6; }
11131bd23fbfaSmrg    else
11132bd23fbfaSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133bd23fbfaSmrg$as_echo "no" >&6; }
11134bd23fbfaSmrg    fi
11135bd23fbfaSmrg    ;;
11136bd23fbfaSmrg  *)
11137bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138bd23fbfaSmrg$as_echo "no" >&6; }
11139bd23fbfaSmrg    ;;
11140bd23fbfaSmrg  esac
11141bd23fbfaSmrgfi
11142b042e37fSmrg
11143b042e37fSmrg
11144b042e37fSmrg
11145b042e37fSmrg
11146b042e37fSmrg
11147b042e37fSmrg
11148b042e37fSmrg
11149b042e37fSmrg
11150b042e37fSmrg
11151b042e37fSmrg
11152b042e37fSmrg
11153b042e37fSmrg
11154bd23fbfaSmrg  # Report which library types will actually be built
11155bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11156bd23fbfaSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11157bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11158bd23fbfaSmrg$as_echo "$can_build_shared" >&6; }
11159b042e37fSmrg
11160bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11161bd23fbfaSmrg$as_echo_n "checking whether to build shared libraries... " >&6; }
11162bd23fbfaSmrg  test "$can_build_shared" = "no" && enable_shared=no
11163b042e37fSmrg
11164bd23fbfaSmrg  # On AIX, shared libraries and static libraries use the same namespace, and
11165bd23fbfaSmrg  # are all built from PIC.
11166bd23fbfaSmrg  case $host_os in
11167bd23fbfaSmrg  aix3*)
11168bd23fbfaSmrg    test "$enable_shared" = yes && enable_static=no
11169bd23fbfaSmrg    if test -n "$RANLIB"; then
11170bd23fbfaSmrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11171bd23fbfaSmrg      postinstall_cmds='$RANLIB $lib'
11172bd23fbfaSmrg    fi
11173bd23fbfaSmrg    ;;
11174b042e37fSmrg
11175bd23fbfaSmrg  aix[4-9]*)
11176bd23fbfaSmrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11177bd23fbfaSmrg      test "$enable_shared" = yes && enable_static=no
11178bd23fbfaSmrg    fi
11179bd23fbfaSmrg    ;;
11180bd23fbfaSmrg  esac
11181bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11182bd23fbfaSmrg$as_echo "$enable_shared" >&6; }
11183b042e37fSmrg
11184bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11185bd23fbfaSmrg$as_echo_n "checking whether to build static libraries... " >&6; }
11186bd23fbfaSmrg  # Make sure either enable_shared or enable_static is yes.
11187bd23fbfaSmrg  test "$enable_shared" = yes || enable_static=yes
11188bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11189bd23fbfaSmrg$as_echo "$enable_static" >&6; }
11190b042e37fSmrg
11191b042e37fSmrg
11192b042e37fSmrg
11193b042e37fSmrg
11194bd23fbfaSmrgfi
11195bd23fbfaSmrgac_ext=c
11196bd23fbfaSmrgac_cpp='$CPP $CPPFLAGS'
11197bd23fbfaSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11198bd23fbfaSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11199bd23fbfaSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
11200b042e37fSmrg
11201bd23fbfaSmrgCC="$lt_save_CC"
11202b042e37fSmrg
11203b042e37fSmrg
11204b042e37fSmrg
11205b042e37fSmrg
11206b042e37fSmrg
11207b042e37fSmrg
11208b042e37fSmrg
11209b042e37fSmrg
11210b042e37fSmrg
11211706b6b52Smrg
11212706b6b52Smrg
11213706b6b52Smrg
11214706b6b52Smrg
11215bd23fbfaSmrg        ac_config_commands="$ac_config_commands libtool"
11216706b6b52Smrg
11217b042e37fSmrg
11218b042e37fSmrg
11219b042e37fSmrg
11220bd23fbfaSmrg# Only expand once:
11221b042e37fSmrg
11222b042e37fSmrg
11223b042e37fSmrg
11224bd23fbfaSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11225b042e37fSmrg
11226b042e37fSmrg
11227b042e37fSmrg
11228b042e37fSmrg
11229b042e37fSmrg
11230b042e37fSmrg
11231b042e37fSmrg
11232706b6b52Smrg
11233b042e37fSmrg
11234706b6b52Smrg
11235706b6b52Smrg
11236bd23fbfaSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11237bd23fbfaSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11238bd23fbfaSmrgif ${ac_cv_prog_cc_c99+:} false; then :
112398c4a8e55Smrg  $as_echo_n "(cached) " >&6
11240bd23fbfaSmrgelse
11241bd23fbfaSmrg  ac_cv_prog_cc_c99=no
11242bd23fbfaSmrgac_save_CC=$CC
11243706b6b52Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
112448c4a8e55Smrg/* end confdefs.h.  */
11245bd23fbfaSmrg#include <stdarg.h>
11246bd23fbfaSmrg#include <stdbool.h>
11247bd23fbfaSmrg#include <stdlib.h>
11248bd23fbfaSmrg#include <wchar.h>
11249bd23fbfaSmrg#include <stdio.h>
11250b042e37fSmrg
11251bd23fbfaSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11252bd23fbfaSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
11253bd23fbfaSmrg#define showlist(...) puts (#__VA_ARGS__)
11254bd23fbfaSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11255bd23fbfaSmrgstatic void
11256bd23fbfaSmrgtest_varargs_macros (void)
112578c4a8e55Smrg{
11258bd23fbfaSmrg  int x = 1234;
11259bd23fbfaSmrg  int y = 5678;
11260bd23fbfaSmrg  debug ("Flag");
11261bd23fbfaSmrg  debug ("X = %d\n", x);
11262bd23fbfaSmrg  showlist (The first, second, and third items.);
11263bd23fbfaSmrg  report (x>y, "x is %d but y is %d", x, y);
112648c4a8e55Smrg}
11265b042e37fSmrg
11266bd23fbfaSmrg// Check long long types.
11267bd23fbfaSmrg#define BIG64 18446744073709551615ull
11268bd23fbfaSmrg#define BIG32 4294967295ul
11269bd23fbfaSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11270bd23fbfaSmrg#if !BIG_OK
11271bd23fbfaSmrg  your preprocessor is broken;
112728c4a8e55Smrg#endif
11273bd23fbfaSmrg#if BIG_OK
11274bd23fbfaSmrg#else
11275bd23fbfaSmrg  your preprocessor is broken;
11276bd23fbfaSmrg#endif
11277bd23fbfaSmrgstatic long long int bignum = -9223372036854775807LL;
11278bd23fbfaSmrgstatic unsigned long long int ubignum = BIG64;
11279bd23fbfaSmrg
11280bd23fbfaSmrgstruct incomplete_array
112818c4a8e55Smrg{
11282bd23fbfaSmrg  int datasize;
11283bd23fbfaSmrg  double data[];
11284bd23fbfaSmrg};
11285bd23fbfaSmrg
11286bd23fbfaSmrgstruct named_init {
11287bd23fbfaSmrg  int number;
11288bd23fbfaSmrg  const wchar_t *name;
11289bd23fbfaSmrg  double average;
11290bd23fbfaSmrg};
11291bd23fbfaSmrg
11292bd23fbfaSmrgtypedef const char *ccp;
11293bd23fbfaSmrg
11294bd23fbfaSmrgstatic inline int
11295bd23fbfaSmrgtest_restrict (ccp restrict text)
11296bd23fbfaSmrg{
11297bd23fbfaSmrg  // See if C++-style comments work.
11298bd23fbfaSmrg  // Iterate through items via the restricted pointer.
11299bd23fbfaSmrg  // Also check for declarations in for loops.
11300bd23fbfaSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11301bd23fbfaSmrg    continue;
113028c4a8e55Smrg  return 0;
113038c4a8e55Smrg}
113048c4a8e55Smrg
11305bd23fbfaSmrg// Check varargs and va_copy.
11306bd23fbfaSmrgstatic void
11307bd23fbfaSmrgtest_varargs (const char *format, ...)
113088c4a8e55Smrg{
11309bd23fbfaSmrg  va_list args;
11310bd23fbfaSmrg  va_start (args, format);
11311bd23fbfaSmrg  va_list args_copy;
11312bd23fbfaSmrg  va_copy (args_copy, args);
11313bd23fbfaSmrg
11314bd23fbfaSmrg  const char *str;
11315bd23fbfaSmrg  int number;
11316bd23fbfaSmrg  float fnumber;
11317bd23fbfaSmrg
11318bd23fbfaSmrg  while (*format)
11319bd23fbfaSmrg    {
11320bd23fbfaSmrg      switch (*format++)
11321bd23fbfaSmrg	{
11322bd23fbfaSmrg	case 's': // string
11323bd23fbfaSmrg	  str = va_arg (args_copy, const char *);
11324bd23fbfaSmrg	  break;
11325bd23fbfaSmrg	case 'd': // int
11326bd23fbfaSmrg	  number = va_arg (args_copy, int);
11327bd23fbfaSmrg	  break;
11328bd23fbfaSmrg	case 'f': // float
11329bd23fbfaSmrg	  fnumber = va_arg (args_copy, double);
11330bd23fbfaSmrg	  break;
11331bd23fbfaSmrg	default:
11332bd23fbfaSmrg	  break;
11333bd23fbfaSmrg	}
11334bd23fbfaSmrg    }
11335bd23fbfaSmrg  va_end (args_copy);
11336bd23fbfaSmrg  va_end (args);
113378c4a8e55Smrg}
11338b042e37fSmrg
113398c4a8e55Smrgint
113408c4a8e55Smrgmain ()
113418c4a8e55Smrg{
11342bd23fbfaSmrg
11343bd23fbfaSmrg  // Check bool.
11344bd23fbfaSmrg  _Bool success = false;
11345bd23fbfaSmrg
11346bd23fbfaSmrg  // Check restrict.
11347bd23fbfaSmrg  if (test_restrict ("String literal") == 0)
11348bd23fbfaSmrg    success = true;
11349bd23fbfaSmrg  char *restrict newvar = "Another string";
11350bd23fbfaSmrg
11351bd23fbfaSmrg  // Check varargs.
11352bd23fbfaSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
11353bd23fbfaSmrg  test_varargs_macros ();
11354bd23fbfaSmrg
11355bd23fbfaSmrg  // Check flexible array members.
11356bd23fbfaSmrg  struct incomplete_array *ia =
11357bd23fbfaSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11358bd23fbfaSmrg  ia->datasize = 10;
11359bd23fbfaSmrg  for (int i = 0; i < ia->datasize; ++i)
11360bd23fbfaSmrg    ia->data[i] = i * 1.234;
11361bd23fbfaSmrg
11362bd23fbfaSmrg  // Check named initializers.
11363bd23fbfaSmrg  struct named_init ni = {
11364bd23fbfaSmrg    .number = 34,
11365bd23fbfaSmrg    .name = L"Test wide string",
11366bd23fbfaSmrg    .average = 543.34343,
11367bd23fbfaSmrg  };
11368bd23fbfaSmrg
11369bd23fbfaSmrg  ni.number = 58;
11370bd23fbfaSmrg
11371bd23fbfaSmrg  int dynamic_array[ni.number];
11372bd23fbfaSmrg  dynamic_array[ni.number - 1] = 543;
11373bd23fbfaSmrg
11374bd23fbfaSmrg  // work around unused variable warnings
11375bd23fbfaSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11376bd23fbfaSmrg	  || dynamic_array[ni.number - 1] != 543);
11377bd23fbfaSmrg
113788c4a8e55Smrg  ;
113798c4a8e55Smrg  return 0;
113808c4a8e55Smrg}
113818c4a8e55Smrg_ACEOF
11382bd23fbfaSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11383bd23fbfaSmrgdo
11384bd23fbfaSmrg  CC="$ac_save_CC $ac_arg"
11385bd23fbfaSmrg  if ac_fn_c_try_compile "$LINENO"; then :
11386bd23fbfaSmrg  ac_cv_prog_cc_c99=$ac_arg
11387b042e37fSmrgfi
11388bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext
11389bd23fbfaSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
11390bd23fbfaSmrgdone
11391bd23fbfaSmrgrm -f conftest.$ac_ext
11392bd23fbfaSmrgCC=$ac_save_CC
11393b042e37fSmrg
113948c4a8e55Smrgfi
11395bd23fbfaSmrg# AC_CACHE_VAL
11396bd23fbfaSmrgcase "x$ac_cv_prog_cc_c99" in
11397bd23fbfaSmrg  x)
11398bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11399bd23fbfaSmrg$as_echo "none needed" >&6; } ;;
11400bd23fbfaSmrg  xno)
11401bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11402bd23fbfaSmrg$as_echo "unsupported" >&6; } ;;
11403bd23fbfaSmrg  *)
11404bd23fbfaSmrg    CC="$CC $ac_cv_prog_cc_c99"
11405bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11406bd23fbfaSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11407bd23fbfaSmrgesac
11408bd23fbfaSmrgif test "x$ac_cv_prog_cc_c99" != xno; then :
11409b042e37fSmrg
114108c4a8e55Smrgfi
11411b042e37fSmrg
11412b042e37fSmrg
11413b042e37fSmrg
11414b042e37fSmrg
11415bd23fbfaSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11416bd23fbfaSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
11417bd23fbfaSmrg  CLANGCC="yes"
11418bd23fbfaSmrgelse
11419bd23fbfaSmrg  CLANGCC="no"
114208c4a8e55Smrgfi
11421b042e37fSmrg
11422bd23fbfaSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11423bd23fbfaSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11424bd23fbfaSmrg  INTELCC="yes"
11425bd23fbfaSmrgelse
11426bd23fbfaSmrg  INTELCC="no"
114278c4a8e55Smrgfi
11428b042e37fSmrg
11429bd23fbfaSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11430bd23fbfaSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11431bd23fbfaSmrg  SUNCC="yes"
11432bd23fbfaSmrgelse
11433bd23fbfaSmrg  SUNCC="no"
11434bd23fbfaSmrgfi
11435b042e37fSmrg
11436b042e37fSmrg
11437b042e37fSmrg
11438b042e37fSmrg
11439bd23fbfaSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11440bd23fbfaSmrg	if test -n "$ac_tool_prefix"; then
11441bd23fbfaSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11442bd23fbfaSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11443bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
11445bd23fbfaSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
114468c4a8e55Smrg  $as_echo_n "(cached) " >&6
114478c4a8e55Smrgelse
11448bd23fbfaSmrg  case $PKG_CONFIG in
11449bd23fbfaSmrg  [\\/]* | ?:[\\/]*)
11450bd23fbfaSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11451bd23fbfaSmrg  ;;
11452bd23fbfaSmrg  *)
11453bd23fbfaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454bd23fbfaSmrgfor as_dir in $PATH
11455bd23fbfaSmrgdo
11456bd23fbfaSmrg  IFS=$as_save_IFS
11457bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
11458bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
11459bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11460bd23fbfaSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11461bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462bd23fbfaSmrg    break 2
114638c4a8e55Smrg  fi
11464bd23fbfaSmrgdone
11465bd23fbfaSmrg  done
11466bd23fbfaSmrgIFS=$as_save_IFS
11467bd23fbfaSmrg
11468bd23fbfaSmrg  ;;
11469bd23fbfaSmrgesac
11470bd23fbfaSmrgfi
11471bd23fbfaSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
11472bd23fbfaSmrgif test -n "$PKG_CONFIG"; then
11473bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11474bd23fbfaSmrg$as_echo "$PKG_CONFIG" >&6; }
11475bd23fbfaSmrgelse
11476bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477bd23fbfaSmrg$as_echo "no" >&6; }
114788c4a8e55Smrgfi
11479b042e37fSmrg
11480b042e37fSmrg
114818c4a8e55Smrgfi
11482bd23fbfaSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
11483bd23fbfaSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
11484bd23fbfaSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
11485bd23fbfaSmrgset dummy pkg-config; ac_word=$2
11486bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487bd23fbfaSmrg$as_echo_n "checking for $ac_word... " >&6; }
11488bd23fbfaSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
114898c4a8e55Smrg  $as_echo_n "(cached) " >&6
114908c4a8e55Smrgelse
11491bd23fbfaSmrg  case $ac_pt_PKG_CONFIG in
11492bd23fbfaSmrg  [\\/]* | ?:[\\/]*)
11493bd23fbfaSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11494bd23fbfaSmrg  ;;
11495bd23fbfaSmrg  *)
11496bd23fbfaSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497bd23fbfaSmrgfor as_dir in $PATH
11498bd23fbfaSmrgdo
11499bd23fbfaSmrg  IFS=$as_save_IFS
11500bd23fbfaSmrg  test -z "$as_dir" && as_dir=.
11501bd23fbfaSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
11502bd23fbfaSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11503bd23fbfaSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11504bd23fbfaSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505bd23fbfaSmrg    break 2
11506bd23fbfaSmrg  fi
11507bd23fbfaSmrgdone
11508bd23fbfaSmrg  done
11509bd23fbfaSmrgIFS=$as_save_IFS
11510bd23fbfaSmrg
11511bd23fbfaSmrg  ;;
11512bd23fbfaSmrgesac
11513bd23fbfaSmrgfi
11514bd23fbfaSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11515bd23fbfaSmrgif test -n "$ac_pt_PKG_CONFIG"; then
11516bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11517bd23fbfaSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
115188c4a8e55Smrgelse
11519bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520bd23fbfaSmrg$as_echo "no" >&6; }
11521bd23fbfaSmrgfi
11522b042e37fSmrg
11523bd23fbfaSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
11524bd23fbfaSmrg    PKG_CONFIG=""
11525bd23fbfaSmrg  else
11526bd23fbfaSmrg    case $cross_compiling:$ac_tool_warned in
11527bd23fbfaSmrgyes:)
11528bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11529bd23fbfaSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11530bd23fbfaSmrgac_tool_warned=yes ;;
11531bd23fbfaSmrgesac
11532bd23fbfaSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
11533bd23fbfaSmrg  fi
11534bd23fbfaSmrgelse
11535bd23fbfaSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11536bd23fbfaSmrgfi
11537b042e37fSmrg
11538bd23fbfaSmrgfi
11539bd23fbfaSmrgif test -n "$PKG_CONFIG"; then
11540bd23fbfaSmrg	_pkg_min_version=0.9.0
11541bd23fbfaSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11542bd23fbfaSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11543bd23fbfaSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11544bd23fbfaSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545bd23fbfaSmrg$as_echo "yes" >&6; }
11546bd23fbfaSmrg	else
11547bd23fbfaSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548bd23fbfaSmrg$as_echo "no" >&6; }
11549bd23fbfaSmrg		PKG_CONFIG=""
11550bd23fbfaSmrg	fi
11551b042e37fSmrg
11552bd23fbfaSmrgfi
11553b042e37fSmrg
11554b042e37fSmrg
11555706b6b52Smrg
11556b042e37fSmrg
11557b042e37fSmrg
11558bd23fbfaSmrgif  test "x$GCC" = xyes ; then
11559bd23fbfaSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11560bd23fbfaSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11561bd23fbfaSmrg-Wbad-function-cast -Wformat=2"
11562bd23fbfaSmrg    case `$CC -dumpversion` in
11563bd23fbfaSmrg    3.4.* | 4.*)
11564bd23fbfaSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11565bd23fbfaSmrg	;;
115668c4a8e55Smrg    esac
11567bd23fbfaSmrgelse
11568bd23fbfaSmrg    if test "x$SUNCC" = "xyes"; then
11569bd23fbfaSmrg	CWARNFLAGS="-v"
11570bd23fbfaSmrg    fi
115718c4a8e55Smrgfi
11572b042e37fSmrg
11573b042e37fSmrg
11574b042e37fSmrg
11575bd23fbfaSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
11576b042e37fSmrg
11577b042e37fSmrg
11578bd23fbfaSmrg
11579bd23fbfaSmrg
11580bd23fbfaSmrg# Check whether --enable-strict-compilation was given.
11581bd23fbfaSmrgif test "${enable_strict_compilation+set}" = set; then :
11582bd23fbfaSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11583bd23fbfaSmrgelse
11584bd23fbfaSmrg  STRICT_COMPILE=no
11585bd23fbfaSmrgfi
11586bd23fbfaSmrg
11587bd23fbfaSmrgif test "x$GCC" = xyes ; then
11588bd23fbfaSmrg    STRICT_CFLAGS="-pedantic -Werror"
11589bd23fbfaSmrg    # Add -Werror=attributes if supported (gcc 4.2 & later)
11590bd23fbfaSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11591bd23fbfaSmrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11592bd23fbfaSmrg    save_CFLAGS="$CFLAGS"
11593bd23fbfaSmrg    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
11594bd23fbfaSmrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595bd23fbfaSmrg/* end confdefs.h.  */
11596bd23fbfaSmrgreturn 0;
11597bd23fbfaSmrg_ACEOF
11598bd23fbfaSmrgif ac_fn_c_try_compile "$LINENO"; then :
11599bd23fbfaSmrg  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11600bd23fbfaSmrg		       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11601bd23fbfaSmrg$as_echo "yes" >&6; }
11602bd23fbfaSmrgelse
11603bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604bd23fbfaSmrg$as_echo "no" >&6; }
11605bd23fbfaSmrgfi
11606bd23fbfaSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607bd23fbfaSmrg    CFLAGS="$save_CFLAGS"
11608bd23fbfaSmrgelif test "x$SUNCC" = "xyes"; then
11609bd23fbfaSmrg    STRICT_CFLAGS="-errwarn"
11610bd23fbfaSmrgelif test "x$INTELCC" = "xyes"; then
11611bd23fbfaSmrg    STRICT_CFLAGS="-Werror"
11612bd23fbfaSmrgfi
11613bd23fbfaSmrgif test "x$STRICT_COMPILE" = "xyes"; then
11614bd23fbfaSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
116158c4a8e55Smrgfi
11616b042e37fSmrg
11617b042e37fSmrg
11618b042e37fSmrg
11619b042e37fSmrg
11620b042e37fSmrg
11621bd23fbfaSmrgcat >>confdefs.h <<_ACEOF
11622bd23fbfaSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11623bd23fbfaSmrg_ACEOF
11624bd23fbfaSmrg
11625bd23fbfaSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11626bd23fbfaSmrg	if test "x$PVM" = "x"; then
11627bd23fbfaSmrg		PVM="0"
11628bd23fbfaSmrg	fi
11629b042e37fSmrg
11630bd23fbfaSmrgcat >>confdefs.h <<_ACEOF
11631bd23fbfaSmrg#define PACKAGE_VERSION_MINOR $PVM
11632bd23fbfaSmrg_ACEOF
11633b042e37fSmrg
11634bd23fbfaSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11635bd23fbfaSmrg	if test "x$PVP" = "x"; then
11636bd23fbfaSmrg		PVP="0"
11637bd23fbfaSmrg	fi
11638b042e37fSmrg
11639bd23fbfaSmrgcat >>confdefs.h <<_ACEOF
11640bd23fbfaSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
11641bd23fbfaSmrg_ACEOF
11642b042e37fSmrg
11643b042e37fSmrg
11644b042e37fSmrg
11645bd23fbfaSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11646bd23fbfaSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11647bd23fbfaSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11648bd23fbfaSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
11649b042e37fSmrg
11650b042e37fSmrg
11651b042e37fSmrg
11652b042e37fSmrg
11653bd23fbfaSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11654bd23fbfaSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11655bd23fbfaSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11656bd23fbfaSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11657bd23fbfaSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11658b042e37fSmrg
11659b042e37fSmrg
11660b042e37fSmrg
11661b042e37fSmrg
11662b042e37fSmrg
11663b042e37fSmrg
11664bd23fbfaSmrgif test x$APP_MAN_SUFFIX = x    ; then
11665bd23fbfaSmrg    APP_MAN_SUFFIX=1
11666bd23fbfaSmrgfi
11667bd23fbfaSmrgif test x$APP_MAN_DIR = x    ; then
11668bd23fbfaSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11669bd23fbfaSmrgfi
11670b042e37fSmrg
11671bd23fbfaSmrgif test x$LIB_MAN_SUFFIX = x    ; then
11672bd23fbfaSmrg    LIB_MAN_SUFFIX=3
11673bd23fbfaSmrgfi
11674bd23fbfaSmrgif test x$LIB_MAN_DIR = x    ; then
11675bd23fbfaSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11676bd23fbfaSmrgfi
11677b042e37fSmrg
11678bd23fbfaSmrgif test x$FILE_MAN_SUFFIX = x    ; then
11679bd23fbfaSmrg    case $host_os in
11680bd23fbfaSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
11681bd23fbfaSmrg	*)		FILE_MAN_SUFFIX=5  ;;
11682bd23fbfaSmrg    esac
11683bd23fbfaSmrgfi
11684bd23fbfaSmrgif test x$FILE_MAN_DIR = x    ; then
11685bd23fbfaSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11686bd23fbfaSmrgfi
11687b042e37fSmrg
11688bd23fbfaSmrgif test x$MISC_MAN_SUFFIX = x    ; then
11689bd23fbfaSmrg    case $host_os in
11690bd23fbfaSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
11691bd23fbfaSmrg	*)		MISC_MAN_SUFFIX=7  ;;
11692bd23fbfaSmrg    esac
11693bd23fbfaSmrgfi
11694bd23fbfaSmrgif test x$MISC_MAN_DIR = x    ; then
11695bd23fbfaSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11696bd23fbfaSmrgfi
11697b042e37fSmrg
11698bd23fbfaSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11699bd23fbfaSmrg    case $host_os in
11700bd23fbfaSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11701bd23fbfaSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
11702bd23fbfaSmrg    esac
11703bd23fbfaSmrgfi
11704bd23fbfaSmrgif test x$DRIVER_MAN_DIR = x    ; then
11705bd23fbfaSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11706bd23fbfaSmrgfi
11707b042e37fSmrg
11708bd23fbfaSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11709bd23fbfaSmrg    case $host_os in
11710bd23fbfaSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11711bd23fbfaSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
11712bd23fbfaSmrg    esac
11713bd23fbfaSmrgfi
11714bd23fbfaSmrgif test x$ADMIN_MAN_DIR = x    ; then
11715bd23fbfaSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11716bd23fbfaSmrgfi
11717b042e37fSmrg
11718b042e37fSmrg
11719b042e37fSmrg
11720b042e37fSmrg
11721b042e37fSmrg
11722b042e37fSmrg
11723b042e37fSmrg
11724b042e37fSmrg
11725b042e37fSmrg
11726b042e37fSmrg
11727b042e37fSmrg
11728b042e37fSmrg
11729b042e37fSmrg
11730b042e37fSmrg
11731b042e37fSmrg
11732bd23fbfaSmrgXORG_MAN_PAGE="X Version 11"
11733b042e37fSmrg
11734bd23fbfaSmrgMAN_SUBSTS="\
11735bd23fbfaSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11736bd23fbfaSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11737bd23fbfaSmrg	-e 's|__xservername__|Xorg|g' \
11738bd23fbfaSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
11739bd23fbfaSmrg	-e 's|__projectroot__|\$(prefix)|g' \
11740bd23fbfaSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11741bd23fbfaSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11742bd23fbfaSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11743bd23fbfaSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11744bd23fbfaSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11745bd23fbfaSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11746bd23fbfaSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11747b042e37fSmrg
11748b042e37fSmrg
11749b042e37fSmrg
11750bd23fbfaSmrg# Check whether --enable-silent-rules was given.
11751bd23fbfaSmrgif test "${enable_silent_rules+set}" = set; then :
11752bd23fbfaSmrg  enableval=$enable_silent_rules;
11753bd23fbfaSmrgfi
11754b042e37fSmrg
11755bd23fbfaSmrgcase $enable_silent_rules in
11756bd23fbfaSmrgyes) AM_DEFAULT_VERBOSITY=0;;
11757bd23fbfaSmrgno)  AM_DEFAULT_VERBOSITY=1;;
11758bd23fbfaSmrg*)   AM_DEFAULT_VERBOSITY=0;;
11759bd23fbfaSmrgesac
11760bd23fbfaSmrgAM_BACKSLASH='\'
11761b042e37fSmrg
11762b042e37fSmrg
11763b042e37fSmrg
11764bd23fbfaSmrg# Check whether --enable-malloc0returnsnull was given.
11765bd23fbfaSmrgif test "${enable_malloc0returnsnull+set}" = set; then :
11766bd23fbfaSmrg  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11767bd23fbfaSmrgelse
11768bd23fbfaSmrg  MALLOC_ZERO_RETURNS_NULL=auto
11769bd23fbfaSmrgfi
11770b042e37fSmrg
11771b042e37fSmrg
11772bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11773bd23fbfaSmrg$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11774bd23fbfaSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11775bd23fbfaSmrg	if test "$cross_compiling" = yes; then :
11776bd23fbfaSmrg  MALLOC_ZERO_RETURNS_NULL=yes
11777bd23fbfaSmrgelse
11778bd23fbfaSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779bd23fbfaSmrg/* end confdefs.h.  */
11780b042e37fSmrg
11781bd23fbfaSmrg#include <stdlib.h>
11782bd23fbfaSmrg
11783bd23fbfaSmrgint
11784bd23fbfaSmrgmain ()
11785bd23fbfaSmrg{
11786bd23fbfaSmrg
11787bd23fbfaSmrg    char *m0, *r0, *c0, *p;
11788bd23fbfaSmrg    m0 = malloc(0);
11789bd23fbfaSmrg    p = malloc(10);
11790bd23fbfaSmrg    r0 = realloc(p,0);
11791bd23fbfaSmrg    c0 = calloc(0,10);
11792bd23fbfaSmrg    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
11793bd23fbfaSmrg
11794bd23fbfaSmrg  ;
11795bd23fbfaSmrg  return 0;
11796bd23fbfaSmrg}
11797bd23fbfaSmrg_ACEOF
11798bd23fbfaSmrgif ac_fn_c_try_run "$LINENO"; then :
11799bd23fbfaSmrg  MALLOC_ZERO_RETURNS_NULL=yes
11800bd23fbfaSmrgelse
11801bd23fbfaSmrg  MALLOC_ZERO_RETURNS_NULL=no
11802bd23fbfaSmrgfi
11803bd23fbfaSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11804bd23fbfaSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
11805bd23fbfaSmrgfi
11806bd23fbfaSmrg
11807bd23fbfaSmrgfi
11808bd23fbfaSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11809bd23fbfaSmrg$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11810bd23fbfaSmrg
11811bd23fbfaSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11812bd23fbfaSmrg	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11813bd23fbfaSmrg	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11814bd23fbfaSmrg	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11815bd23fbfaSmrgelse
11816bd23fbfaSmrg	MALLOC_ZERO_CFLAGS=""
11817bd23fbfaSmrg	XMALLOC_ZERO_CFLAGS=""
11818bd23fbfaSmrg	XTMALLOC_ZERO_CFLAGS=""
11819bd23fbfaSmrgfi
11820b042e37fSmrg
11821b042e37fSmrg
11822b042e37fSmrg
11823b042e37fSmrg
11824b042e37fSmrg
11825b042e37fSmrg
11826706b6b52Smrg# Check randr configuration, strip extra digits from package version to
11827706b6b52Smrg# find the required protocol version
11828706b6b52SmrgRANDR_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11829b042e37fSmrg
11830b042e37fSmrg
11831bd23fbfaSmrg# Obtain compiler/linker options for depedencies
11832bd23fbfaSmrg
118338c4a8e55Smrgpkg_failed=no
11834706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR" >&5
118358c4a8e55Smrg$as_echo_n "checking for RANDR... " >&6; }
118368c4a8e55Smrg
118378c4a8e55Smrgif test -n "$RANDR_CFLAGS"; then
118388c4a8e55Smrg    pkg_cv_RANDR_CFLAGS="$RANDR_CFLAGS"
118398c4a8e55Smrg elif test -n "$PKG_CONFIG"; then
118408c4a8e55Smrg    if test -n "$PKG_CONFIG" && \
11841706b6b52Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
118428c4a8e55Smrg  ($PKG_CONFIG --exists --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
118438c4a8e55Smrg  ac_status=$?
11844706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11845706b6b52Smrg  test $ac_status = 0; }; then
118468c4a8e55Smrg  pkg_cv_RANDR_CFLAGS=`$PKG_CONFIG --cflags "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
118478c4a8e55Smrgelse
118488c4a8e55Smrg  pkg_failed=yes
118498c4a8e55Smrgfi
118508c4a8e55Smrg else
118518c4a8e55Smrg    pkg_failed=untried
118528c4a8e55Smrgfi
118538c4a8e55Smrgif test -n "$RANDR_LIBS"; then
118548c4a8e55Smrg    pkg_cv_RANDR_LIBS="$RANDR_LIBS"
118558c4a8e55Smrg elif test -n "$PKG_CONFIG"; then
118568c4a8e55Smrg    if test -n "$PKG_CONFIG" && \
11857706b6b52Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
118588c4a8e55Smrg  ($PKG_CONFIG --exists --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
118598c4a8e55Smrg  ac_status=$?
11860706b6b52Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11861706b6b52Smrg  test $ac_status = 0; }; then
118628c4a8e55Smrg  pkg_cv_RANDR_LIBS=`$PKG_CONFIG --libs "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
118638c4a8e55Smrgelse
118648c4a8e55Smrg  pkg_failed=yes
118658c4a8e55Smrgfi
118668c4a8e55Smrg else
118678c4a8e55Smrg    pkg_failed=untried
118688c4a8e55Smrgfi
11869b042e37fSmrg
11870b042e37fSmrg
11871b042e37fSmrg
118728c4a8e55Smrgif test $pkg_failed = yes; then
11873b042e37fSmrg
118748c4a8e55Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
118758c4a8e55Smrg        _pkg_short_errors_supported=yes
118768c4a8e55Smrgelse
118778c4a8e55Smrg        _pkg_short_errors_supported=no
118788c4a8e55Smrgfi
118798c4a8e55Smrg        if test $_pkg_short_errors_supported = yes; then
118808c4a8e55Smrg	        RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
118818c4a8e55Smrg        else
118828c4a8e55Smrg	        RANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
118838c4a8e55Smrg        fi
118848c4a8e55Smrg	# Put the nasty error message in config.log where it belongs
118858c4a8e55Smrg	echo "$RANDR_PKG_ERRORS" >&5
11886b042e37fSmrg
11887706b6b52Smrg	as_fn_error $? "Package requirements (x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) were not met:
11888b042e37fSmrg
118898c4a8e55Smrg$RANDR_PKG_ERRORS
11890b042e37fSmrg
118918c4a8e55SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
118928c4a8e55Smrginstalled software in a non-standard prefix.
11893b042e37fSmrg
118948c4a8e55SmrgAlternatively, you may set the environment variables RANDR_CFLAGS
118958c4a8e55Smrgand RANDR_LIBS to avoid the need to call pkg-config.
118968c4a8e55SmrgSee the pkg-config man page for more details.
11897706b6b52Smrg" "$LINENO" 5
118988c4a8e55Smrgelif test $pkg_failed = untried; then
11899706b6b52Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
119008c4a8e55Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901706b6b52Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
119028c4a8e55Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
119038c4a8e55Smrgpath to pkg-config.
11904b042e37fSmrg
119058c4a8e55SmrgAlternatively, you may set the environment variables RANDR_CFLAGS
119068c4a8e55Smrgand RANDR_LIBS to avoid the need to call pkg-config.
119078c4a8e55SmrgSee the pkg-config man page for more details.
11908b042e37fSmrg
119098c4a8e55SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11910706b6b52SmrgSee \`config.log' for more details" "$LINENO" 5; }
119118c4a8e55Smrgelse
119128c4a8e55Smrg	RANDR_CFLAGS=$pkg_cv_RANDR_CFLAGS
119138c4a8e55Smrg	RANDR_LIBS=$pkg_cv_RANDR_LIBS
11914706b6b52Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
119158c4a8e55Smrg$as_echo "yes" >&6; }
119168c4a8e55Smrg	:
119178c4a8e55Smrgfi
11918b042e37fSmrg
119198c4a8e55Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xrandr.pc"
11920b042e37fSmrg
119218c4a8e55Smrgcat >confcache <<\_ACEOF
119228c4a8e55Smrg# This file is a shell script that caches the results of configure
119238c4a8e55Smrg# tests run on this system so they can be shared between configure
119248c4a8e55Smrg# scripts and configure runs, see configure's option --config-cache.
119258c4a8e55Smrg# It is not useful on other systems.  If it contains results you don't
119268c4a8e55Smrg# want to keep, you may remove or edit it.
119278c4a8e55Smrg#
119288c4a8e55Smrg# config.status only pays attention to the cache file if you give it
119298c4a8e55Smrg# the --recheck option to rerun configure.
119308c4a8e55Smrg#
119318c4a8e55Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
119328c4a8e55Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
119338c4a8e55Smrg# following values.
11934b042e37fSmrg
119358c4a8e55Smrg_ACEOF
11936b042e37fSmrg
119378c4a8e55Smrg# The following way of writing the cache mishandles newlines in values,
119388c4a8e55Smrg# but we know of no workaround that is simple, portable, and efficient.
119398c4a8e55Smrg# So, we kill variables containing newlines.
119408c4a8e55Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
119418c4a8e55Smrg# and sets the high bit in the cache file unless we assign to the vars.
119428c4a8e55Smrg(
119438c4a8e55Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
119448c4a8e55Smrg    eval ac_val=\$$ac_var
119458c4a8e55Smrg    case $ac_val in #(
119468c4a8e55Smrg    *${as_nl}*)
119478c4a8e55Smrg      case $ac_var in #(
11948706b6b52Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
119498c4a8e55Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
119508c4a8e55Smrg      esac
119518c4a8e55Smrg      case $ac_var in #(
119528c4a8e55Smrg      _ | IFS | as_nl) ;; #(
119538c4a8e55Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11954706b6b52Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
119558c4a8e55Smrg      esac ;;
119568c4a8e55Smrg    esac
119578c4a8e55Smrg  done
11958b042e37fSmrg
119598c4a8e55Smrg  (set) 2>&1 |
119608c4a8e55Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
119618c4a8e55Smrg    *${as_nl}ac_space=\ *)
11962706b6b52Smrg      # `set' does not quote correctly, so add quotes: double-quote
11963706b6b52Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
119648c4a8e55Smrg      sed -n \
119658c4a8e55Smrg	"s/'/'\\\\''/g;
119668c4a8e55Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
119678c4a8e55Smrg      ;; #(
119688c4a8e55Smrg    *)
119698c4a8e55Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
119708c4a8e55Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
119718c4a8e55Smrg      ;;
119728c4a8e55Smrg    esac |
119738c4a8e55Smrg    sort
119748c4a8e55Smrg) |
119758c4a8e55Smrg  sed '
119768c4a8e55Smrg     /^ac_cv_env_/b end
119778c4a8e55Smrg     t clear
119788c4a8e55Smrg     :clear
119798c4a8e55Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
119808c4a8e55Smrg     t end
119818c4a8e55Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
119828c4a8e55Smrg     :end' >>confcache
119838c4a8e55Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
119848c4a8e55Smrg  if test -w "$cache_file"; then
11985706b6b52Smrg    if test "x$cache_file" != "x/dev/null"; then
11986706b6b52Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
119878c4a8e55Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
11988706b6b52Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11989706b6b52Smrg	cat confcache >"$cache_file"
11990706b6b52Smrg      else
11991706b6b52Smrg        case $cache_file in #(
11992706b6b52Smrg        */* | ?:*)
11993706b6b52Smrg	  mv -f confcache "$cache_file"$$ &&
11994706b6b52Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11995706b6b52Smrg        *)
11996706b6b52Smrg	  mv -f confcache "$cache_file" ;;
11997706b6b52Smrg	esac
11998706b6b52Smrg      fi
11999706b6b52Smrg    fi
120008c4a8e55Smrg  else
12001706b6b52Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
120028c4a8e55Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
120038c4a8e55Smrg  fi
120048c4a8e55Smrgfi
120058c4a8e55Smrgrm -f confcache
12006b042e37fSmrg
120078c4a8e55Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
120088c4a8e55Smrg# Let make expand exec_prefix.
120098c4a8e55Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12010b042e37fSmrg
120118c4a8e55SmrgDEFS=-DHAVE_CONFIG_H
12012b042e37fSmrg
120138c4a8e55Smrgac_libobjs=
120148c4a8e55Smrgac_ltlibobjs=
12015706b6b52SmrgU=
120168c4a8e55Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
120178c4a8e55Smrg  # 1. Remove the extension, and $U if already installed.
120188c4a8e55Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
120198c4a8e55Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
120208c4a8e55Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
120218c4a8e55Smrg  #    will be set to the directory where LIBOBJS objects are built.
12022706b6b52Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12023706b6b52Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
120248c4a8e55Smrgdone
120258c4a8e55SmrgLIBOBJS=$ac_libobjs
12026b042e37fSmrg
120278c4a8e55SmrgLTLIBOBJS=$ac_ltlibobjs
12028b042e37fSmrg
12029b042e37fSmrg
12030706b6b52Smrg if test -n "$EXEEXT"; then
12031706b6b52Smrg  am__EXEEXT_TRUE=
12032706b6b52Smrg  am__EXEEXT_FALSE='#'
12033706b6b52Smrgelse
12034706b6b52Smrg  am__EXEEXT_TRUE='#'
12035706b6b52Smrg  am__EXEEXT_FALSE=
12036706b6b52Smrgfi
12037706b6b52Smrg
120388c4a8e55Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12039706b6b52Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12040706b6b52SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
120418c4a8e55Smrgfi
120428c4a8e55Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12043706b6b52Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
12044706b6b52SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
12045706b6b52Smrgfi
12046706b6b52Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12047706b6b52Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12048706b6b52SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
120498c4a8e55Smrgfi
12050b042e37fSmrg
12051706b6b52Smrg: "${CONFIG_STATUS=./config.status}"
120528c4a8e55Smrgac_write_fail=0
120538c4a8e55Smrgac_clean_files_save=$ac_clean_files
120548c4a8e55Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
12055706b6b52Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
120568c4a8e55Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12057706b6b52Smrgas_write_fail=0
12058706b6b52Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
120598c4a8e55Smrg#! $SHELL
120608c4a8e55Smrg# Generated by $as_me.
120618c4a8e55Smrg# Run this file to recreate the current configuration.
120628c4a8e55Smrg# Compiler output produced by configure, useful for debugging
120638c4a8e55Smrg# configure, is in config.log if it exists.
12064b042e37fSmrg
120658c4a8e55Smrgdebug=false
120668c4a8e55Smrgac_cs_recheck=false
120678c4a8e55Smrgac_cs_silent=false
12068b042e37fSmrg
12069706b6b52SmrgSHELL=\${CONFIG_SHELL-$SHELL}
12070706b6b52Smrgexport SHELL
12071706b6b52Smrg_ASEOF
12072706b6b52Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12073706b6b52Smrg## -------------------- ##
12074706b6b52Smrg## M4sh Initialization. ##
12075706b6b52Smrg## -------------------- ##
12076b042e37fSmrg
120778c4a8e55Smrg# Be more Bourne compatible
120788c4a8e55SmrgDUALCASE=1; export DUALCASE # for MKS sh
12079706b6b52Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
120808c4a8e55Smrg  emulate sh
120818c4a8e55Smrg  NULLCMD=:
120828c4a8e55Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
120838c4a8e55Smrg  # is contrary to our usage.  Disable this feature.
120848c4a8e55Smrg  alias -g '${1+"$@"}'='"$@"'
120858c4a8e55Smrg  setopt NO_GLOB_SUBST
120868c4a8e55Smrgelse
12087706b6b52Smrg  case `(set -o) 2>/dev/null` in #(
12088706b6b52Smrg  *posix*) :
12089706b6b52Smrg    set -o posix ;; #(
12090706b6b52Smrg  *) :
12091706b6b52Smrg     ;;
120928c4a8e55Smrgesac
120938c4a8e55Smrgfi
12094b042e37fSmrg
12095b042e37fSmrg
120968c4a8e55Smrgas_nl='
120978c4a8e55Smrg'
120988c4a8e55Smrgexport as_nl
120998c4a8e55Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
121008c4a8e55Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
121018c4a8e55Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
121028c4a8e55Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12103706b6b52Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
12104706b6b52Smrg# but without wasting forks for bash or zsh.
12105706b6b52Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
12106706b6b52Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12107706b6b52Smrg  as_echo='print -r --'
12108706b6b52Smrg  as_echo_n='print -rn --'
12109706b6b52Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
121108c4a8e55Smrg  as_echo='printf %s\n'
121118c4a8e55Smrg  as_echo_n='printf %s'
121128c4a8e55Smrgelse
121138c4a8e55Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
121148c4a8e55Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
121158c4a8e55Smrg    as_echo_n='/usr/ucb/echo -n'
121168c4a8e55Smrg  else
121178c4a8e55Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
121188c4a8e55Smrg    as_echo_n_body='eval
121198c4a8e55Smrg      arg=$1;
12120706b6b52Smrg      case $arg in #(
121218c4a8e55Smrg      *"$as_nl"*)
121228c4a8e55Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
121238c4a8e55Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
121248c4a8e55Smrg      esac;
121258c4a8e55Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
121268c4a8e55Smrg    '
121278c4a8e55Smrg    export as_echo_n_body
121288c4a8e55Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
121298c4a8e55Smrg  fi
121308c4a8e55Smrg  export as_echo_body
121318c4a8e55Smrg  as_echo='sh -c $as_echo_body as_echo'
121328c4a8e55Smrgfi
12133b042e37fSmrg
121348c4a8e55Smrg# The user is always right.
121358c4a8e55Smrgif test "${PATH_SEPARATOR+set}" != set; then
121368c4a8e55Smrg  PATH_SEPARATOR=:
121378c4a8e55Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
121388c4a8e55Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
121398c4a8e55Smrg      PATH_SEPARATOR=';'
121408c4a8e55Smrg  }
121418c4a8e55Smrgfi
12142b042e37fSmrg
12143b042e37fSmrg
121448c4a8e55Smrg# IFS
121458c4a8e55Smrg# We need space, tab and new line, in precisely that order.  Quoting is
121468c4a8e55Smrg# there to prevent editors from complaining about space-tab.
121478c4a8e55Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
121488c4a8e55Smrg# splitting by setting IFS to empty value.)
121498c4a8e55SmrgIFS=" ""	$as_nl"
12150b042e37fSmrg
121518c4a8e55Smrg# Find who we are.  Look in the path if we contain no directory separator.
12152706b6b52Smrgas_myself=
12153706b6b52Smrgcase $0 in #((
121548c4a8e55Smrg  *[\\/]* ) as_myself=$0 ;;
121558c4a8e55Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
121568c4a8e55Smrgfor as_dir in $PATH
121578c4a8e55Smrgdo
121588c4a8e55Smrg  IFS=$as_save_IFS
121598c4a8e55Smrg  test -z "$as_dir" && as_dir=.
12160706b6b52Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12161706b6b52Smrg  done
121628c4a8e55SmrgIFS=$as_save_IFS
12163b042e37fSmrg
121648c4a8e55Smrg     ;;
121658c4a8e55Smrgesac
121668c4a8e55Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
121678c4a8e55Smrg# in which case we are not to be found in the path.
121688c4a8e55Smrgif test "x$as_myself" = x; then
121698c4a8e55Smrg  as_myself=$0
121708c4a8e55Smrgfi
121718c4a8e55Smrgif test ! -f "$as_myself"; then
121728c4a8e55Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12173706b6b52Smrg  exit 1
12174b042e37fSmrgfi
12175b042e37fSmrg
12176706b6b52Smrg# Unset variables that we do not need and which cause bugs (e.g. in
12177706b6b52Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12178706b6b52Smrg# suppresses any "Segmentation fault" message there.  '((' could
12179706b6b52Smrg# trigger a bug in pdksh 5.2.14.
12180706b6b52Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12181706b6b52Smrgdo eval test x\${$as_var+set} = xset \
12182706b6b52Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121838c4a8e55Smrgdone
121848c4a8e55SmrgPS1='$ '
121858c4a8e55SmrgPS2='> '
121868c4a8e55SmrgPS4='+ '
12187b042e37fSmrg
121888c4a8e55Smrg# NLS nuisances.
121898c4a8e55SmrgLC_ALL=C
121908c4a8e55Smrgexport LC_ALL
121918c4a8e55SmrgLANGUAGE=C
121928c4a8e55Smrgexport LANGUAGE
12193b042e37fSmrg
12194706b6b52Smrg# CDPATH.
12195706b6b52Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12196706b6b52Smrg
12197706b6b52Smrg
12198706b6b52Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
12199706b6b52Smrg# ----------------------------------------
12200706b6b52Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12201706b6b52Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12202706b6b52Smrg# script with STATUS, using 1 if that was 0.
12203706b6b52Smrgas_fn_error ()
12204706b6b52Smrg{
12205706b6b52Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
12206706b6b52Smrg  if test "$4"; then
12207706b6b52Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12208706b6b52Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12209706b6b52Smrg  fi
12210706b6b52Smrg  $as_echo "$as_me: error: $2" >&2
12211706b6b52Smrg  as_fn_exit $as_status
12212706b6b52Smrg} # as_fn_error
12213706b6b52Smrg
12214706b6b52Smrg
12215706b6b52Smrg# as_fn_set_status STATUS
12216706b6b52Smrg# -----------------------
12217706b6b52Smrg# Set $? to STATUS, without forking.
12218706b6b52Smrgas_fn_set_status ()
12219706b6b52Smrg{
12220706b6b52Smrg  return $1
12221706b6b52Smrg} # as_fn_set_status
12222706b6b52Smrg
12223706b6b52Smrg# as_fn_exit STATUS
12224706b6b52Smrg# -----------------
12225706b6b52Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12226706b6b52Smrgas_fn_exit ()
12227706b6b52Smrg{
12228706b6b52Smrg  set +e
12229706b6b52Smrg  as_fn_set_status $1
12230706b6b52Smrg  exit $1
12231706b6b52Smrg} # as_fn_exit
12232706b6b52Smrg
12233706b6b52Smrg# as_fn_unset VAR
12234706b6b52Smrg# ---------------
12235706b6b52Smrg# Portably unset VAR.
12236706b6b52Smrgas_fn_unset ()
12237706b6b52Smrg{
12238706b6b52Smrg  { eval $1=; unset $1;}
12239706b6b52Smrg}
12240706b6b52Smrgas_unset=as_fn_unset
12241706b6b52Smrg# as_fn_append VAR VALUE
12242706b6b52Smrg# ----------------------
12243706b6b52Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
12244706b6b52Smrg# advantage of any shell optimizations that allow amortized linear growth over
12245706b6b52Smrg# repeated appends, instead of the typical quadratic growth present in naive
12246706b6b52Smrg# implementations.
12247706b6b52Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12248706b6b52Smrg  eval 'as_fn_append ()
12249706b6b52Smrg  {
12250706b6b52Smrg    eval $1+=\$2
12251706b6b52Smrg  }'
12252706b6b52Smrgelse
12253706b6b52Smrg  as_fn_append ()
12254706b6b52Smrg  {
12255706b6b52Smrg    eval $1=\$$1\$2
12256706b6b52Smrg  }
12257706b6b52Smrgfi # as_fn_append
12258706b6b52Smrg
12259706b6b52Smrg# as_fn_arith ARG...
12260706b6b52Smrg# ------------------
12261706b6b52Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
12262706b6b52Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
12263706b6b52Smrg# must be portable across $(()) and expr.
12264706b6b52Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12265706b6b52Smrg  eval 'as_fn_arith ()
12266706b6b52Smrg  {
12267706b6b52Smrg    as_val=$(( $* ))
12268706b6b52Smrg  }'
12269706b6b52Smrgelse
12270706b6b52Smrg  as_fn_arith ()
12271706b6b52Smrg  {
12272706b6b52Smrg    as_val=`expr "$@" || test $? -eq 1`
12273706b6b52Smrg  }
12274706b6b52Smrgfi # as_fn_arith
12275706b6b52Smrg
12276706b6b52Smrg
122778c4a8e55Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
122788c4a8e55Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
122798c4a8e55Smrg  as_expr=expr
122808c4a8e55Smrgelse
122818c4a8e55Smrg  as_expr=false
122828c4a8e55Smrgfi
12283b042e37fSmrg
122848c4a8e55Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122858c4a8e55Smrg  as_basename=basename
122868c4a8e55Smrgelse
122878c4a8e55Smrg  as_basename=false
122888c4a8e55Smrgfi
12289b042e37fSmrg
12290706b6b52Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12291706b6b52Smrg  as_dirname=dirname
12292706b6b52Smrgelse
12293706b6b52Smrg  as_dirname=false
12294706b6b52Smrgfi
12295b042e37fSmrg
122968c4a8e55Smrgas_me=`$as_basename -- "$0" ||
122978c4a8e55Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
122988c4a8e55Smrg	 X"$0" : 'X\(//\)$' \| \
122998c4a8e55Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
123008c4a8e55Smrg$as_echo X/"$0" |
123018c4a8e55Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
123028c4a8e55Smrg	    s//\1/
123038c4a8e55Smrg	    q
123048c4a8e55Smrg	  }
123058c4a8e55Smrg	  /^X\/\(\/\/\)$/{
123068c4a8e55Smrg	    s//\1/
123078c4a8e55Smrg	    q
123088c4a8e55Smrg	  }
123098c4a8e55Smrg	  /^X\/\(\/\).*/{
123108c4a8e55Smrg	    s//\1/
123118c4a8e55Smrg	    q
123128c4a8e55Smrg	  }
123138c4a8e55Smrg	  s/.*/./; q'`
12314b042e37fSmrg
12315706b6b52Smrg# Avoid depending upon Character Ranges.
12316706b6b52Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
12317706b6b52Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12318706b6b52Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
12319706b6b52Smrgas_cr_digits='0123456789'
12320706b6b52Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
12321b042e37fSmrg
123228c4a8e55SmrgECHO_C= ECHO_N= ECHO_T=
12323706b6b52Smrgcase `echo -n x` in #(((((
123248c4a8e55Smrg-n*)
12325706b6b52Smrg  case `echo 'xy\c'` in
123268c4a8e55Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12327706b6b52Smrg  xy)  ECHO_C='\c';;
12328706b6b52Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12329706b6b52Smrg       ECHO_T='	';;
123308c4a8e55Smrg  esac;;
123318c4a8e55Smrg*)
123328c4a8e55Smrg  ECHO_N='-n';;
123338c4a8e55Smrgesac
12334b042e37fSmrg
123358c4a8e55Smrgrm -f conf$$ conf$$.exe conf$$.file
123368c4a8e55Smrgif test -d conf$$.dir; then
123378c4a8e55Smrg  rm -f conf$$.dir/conf$$.file
123388c4a8e55Smrgelse
123398c4a8e55Smrg  rm -f conf$$.dir
123408c4a8e55Smrg  mkdir conf$$.dir 2>/dev/null
123418c4a8e55Smrgfi
123428c4a8e55Smrgif (echo >conf$$.file) 2>/dev/null; then
123438c4a8e55Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
123448c4a8e55Smrg    as_ln_s='ln -s'
123458c4a8e55Smrg    # ... but there are two gotchas:
123468c4a8e55Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
123478c4a8e55Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
123488c4a8e55Smrg    # In both cases, we have to default to `cp -p'.
123498c4a8e55Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
123508c4a8e55Smrg      as_ln_s='cp -p'
123518c4a8e55Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
123528c4a8e55Smrg    as_ln_s=ln
123538c4a8e55Smrg  else
123548c4a8e55Smrg    as_ln_s='cp -p'
123558c4a8e55Smrg  fi
123568c4a8e55Smrgelse
123578c4a8e55Smrg  as_ln_s='cp -p'
123588c4a8e55Smrgfi
123598c4a8e55Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
123608c4a8e55Smrgrmdir conf$$.dir 2>/dev/null
12361b042e37fSmrg
12362706b6b52Smrg
12363706b6b52Smrg# as_fn_mkdir_p
12364706b6b52Smrg# -------------
12365706b6b52Smrg# Create "$as_dir" as a directory, including parents if necessary.
12366706b6b52Smrgas_fn_mkdir_p ()
12367706b6b52Smrg{
12368706b6b52Smrg
12369706b6b52Smrg  case $as_dir in #(
12370706b6b52Smrg  -*) as_dir=./$as_dir;;
12371706b6b52Smrg  esac
12372706b6b52Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
12373706b6b52Smrg    as_dirs=
12374706b6b52Smrg    while :; do
12375706b6b52Smrg      case $as_dir in #(
12376706b6b52Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12377706b6b52Smrg      *) as_qdir=$as_dir;;
12378706b6b52Smrg      esac
12379706b6b52Smrg      as_dirs="'$as_qdir' $as_dirs"
12380706b6b52Smrg      as_dir=`$as_dirname -- "$as_dir" ||
12381706b6b52Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12382706b6b52Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
12383706b6b52Smrg	 X"$as_dir" : 'X\(//\)$' \| \
12384706b6b52Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12385706b6b52Smrg$as_echo X"$as_dir" |
12386706b6b52Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12387706b6b52Smrg	    s//\1/
12388706b6b52Smrg	    q
12389706b6b52Smrg	  }
12390706b6b52Smrg	  /^X\(\/\/\)[^/].*/{
12391706b6b52Smrg	    s//\1/
12392706b6b52Smrg	    q
12393706b6b52Smrg	  }
12394706b6b52Smrg	  /^X\(\/\/\)$/{
12395706b6b52Smrg	    s//\1/
12396706b6b52Smrg	    q
12397706b6b52Smrg	  }
12398706b6b52Smrg	  /^X\(\/\).*/{
12399706b6b52Smrg	    s//\1/
12400706b6b52Smrg	    q
12401706b6b52Smrg	  }
12402706b6b52Smrg	  s/.*/./; q'`
12403706b6b52Smrg      test -d "$as_dir" && break
12404706b6b52Smrg    done
12405706b6b52Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
12406706b6b52Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12407706b6b52Smrg
12408706b6b52Smrg
12409706b6b52Smrg} # as_fn_mkdir_p
124108c4a8e55Smrgif mkdir -p . 2>/dev/null; then
12411706b6b52Smrg  as_mkdir_p='mkdir -p "$as_dir"'
124128c4a8e55Smrgelse
124138c4a8e55Smrg  test -d ./-p && rmdir ./-p
124148c4a8e55Smrg  as_mkdir_p=false
124158c4a8e55Smrgfi
12416b042e37fSmrg
124178c4a8e55Smrgif test -x / >/dev/null 2>&1; then
124188c4a8e55Smrg  as_test_x='test -x'
124198c4a8e55Smrgelse
124208c4a8e55Smrg  if ls -dL / >/dev/null 2>&1; then
124218c4a8e55Smrg    as_ls_L_option=L
124228c4a8e55Smrg  else
124238c4a8e55Smrg    as_ls_L_option=
124248c4a8e55Smrg  fi
124258c4a8e55Smrg  as_test_x='
124268c4a8e55Smrg    eval sh -c '\''
124278c4a8e55Smrg      if test -d "$1"; then
124288c4a8e55Smrg	test -d "$1/.";
124298c4a8e55Smrg      else
12430706b6b52Smrg	case $1 in #(
124318c4a8e55Smrg	-*)set "./$1";;
124328c4a8e55Smrg	esac;
12433706b6b52Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
124348c4a8e55Smrg	???[sx]*):;;*)false;;esac;fi
124358c4a8e55Smrg    '\'' sh
124368c4a8e55Smrg  '
124378c4a8e55Smrgfi
124388c4a8e55Smrgas_executable_p=$as_test_x
12439b042e37fSmrg
124408c4a8e55Smrg# Sed expression to map a string onto a valid CPP name.
124418c4a8e55Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12442b042e37fSmrg
124438c4a8e55Smrg# Sed expression to map a string onto a valid variable name.
124448c4a8e55Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12445b042e37fSmrg
12446b042e37fSmrg
124478c4a8e55Smrgexec 6>&1
12448706b6b52Smrg## ----------------------------------- ##
12449706b6b52Smrg## Main body of $CONFIG_STATUS script. ##
12450706b6b52Smrg## ----------------------------------- ##
12451706b6b52Smrg_ASEOF
12452706b6b52Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12453b042e37fSmrg
12454706b6b52Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12455706b6b52Smrg# Save the log message, to keep $0 and so on meaningful, and to
124568c4a8e55Smrg# report actual input values of CONFIG_FILES etc. instead of their
124578c4a8e55Smrg# values after options handling.
124588c4a8e55Smrgac_log="
12459bd23fbfaSmrgThis file was extended by libXrandr $as_me 1.3.2, which was
12460706b6b52Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
12461b042e37fSmrg
124628c4a8e55Smrg  CONFIG_FILES    = $CONFIG_FILES
124638c4a8e55Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
124648c4a8e55Smrg  CONFIG_LINKS    = $CONFIG_LINKS
124658c4a8e55Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
124668c4a8e55Smrg  $ $0 $@
12467b042e37fSmrg
124688c4a8e55Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
124698c4a8e55Smrg"
12470b042e37fSmrg
124718c4a8e55Smrg_ACEOF
12472b042e37fSmrg
124738c4a8e55Smrgcase $ac_config_files in *"
124748c4a8e55Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
12475b042e37fSmrgesac
12476b042e37fSmrg
124778c4a8e55Smrgcase $ac_config_headers in *"
124788c4a8e55Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12479b042e37fSmrgesac
12480b042e37fSmrg
12481b042e37fSmrg
124828c4a8e55Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
124838c4a8e55Smrg# Files that config.status was made for.
124848c4a8e55Smrgconfig_files="$ac_config_files"
124858c4a8e55Smrgconfig_headers="$ac_config_headers"
124868c4a8e55Smrgconfig_commands="$ac_config_commands"
12487b042e37fSmrg
124888c4a8e55Smrg_ACEOF
12489b042e37fSmrg
124908c4a8e55Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124918c4a8e55Smrgac_cs_usage="\
12492706b6b52Smrg\`$as_me' instantiates files and other configuration actions
12493706b6b52Smrgfrom templates according to the current configuration.  Unless the files
12494706b6b52Smrgand actions are specified as TAGs, all are instantiated by default.
12495b042e37fSmrg
12496706b6b52SmrgUsage: $0 [OPTION]... [TAG]...
12497b042e37fSmrg
124988c4a8e55Smrg  -h, --help       print this help, then exit
124998c4a8e55Smrg  -V, --version    print version number and configuration settings, then exit
12500706b6b52Smrg      --config     print configuration, then exit
125018c4a8e55Smrg  -q, --quiet, --silent
125028c4a8e55Smrg                   do not print progress messages
125038c4a8e55Smrg  -d, --debug      don't remove temporary files
125048c4a8e55Smrg      --recheck    update $as_me by reconfiguring in the same conditions
125058c4a8e55Smrg      --file=FILE[:TEMPLATE]
125068c4a8e55Smrg                   instantiate the configuration file FILE
125078c4a8e55Smrg      --header=FILE[:TEMPLATE]
125088c4a8e55Smrg                   instantiate the configuration header FILE
12509b042e37fSmrg
125108c4a8e55SmrgConfiguration files:
125118c4a8e55Smrg$config_files
12512b042e37fSmrg
125138c4a8e55SmrgConfiguration headers:
125148c4a8e55Smrg$config_headers
12515b042e37fSmrg
125168c4a8e55SmrgConfiguration commands:
125178c4a8e55Smrg$config_commands
12518b042e37fSmrg
12519706b6b52SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12520b042e37fSmrg
125218c4a8e55Smrg_ACEOF
125228c4a8e55Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12523706b6b52Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
125248c4a8e55Smrgac_cs_version="\\
12525bd23fbfaSmrglibXrandr config.status 1.3.2
12526706b6b52Smrgconfigured by $0, generated by GNU Autoconf 2.68,
12527706b6b52Smrg  with options \\"\$ac_cs_config\\"
12528b042e37fSmrg
12529706b6b52SmrgCopyright (C) 2010 Free Software Foundation, Inc.
125308c4a8e55SmrgThis config.status script is free software; the Free Software Foundation
125318c4a8e55Smrggives unlimited permission to copy, distribute and modify it."
12532b042e37fSmrg
125338c4a8e55Smrgac_pwd='$ac_pwd'
125348c4a8e55Smrgsrcdir='$srcdir'
125358c4a8e55SmrgINSTALL='$INSTALL'
125368c4a8e55SmrgMKDIR_P='$MKDIR_P'
125378c4a8e55SmrgAWK='$AWK'
125388c4a8e55Smrgtest -n "\$AWK" || AWK=awk
125398c4a8e55Smrg_ACEOF
12540b042e37fSmrg
125418c4a8e55Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
125428c4a8e55Smrg# The default lists apply if the user does not specify any file.
125438c4a8e55Smrgac_need_defaults=:
125448c4a8e55Smrgwhile test $# != 0
125458c4a8e55Smrgdo
125468c4a8e55Smrg  case $1 in
12547706b6b52Smrg  --*=?*)
125488c4a8e55Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
125498c4a8e55Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
125508c4a8e55Smrg    ac_shift=:
125518c4a8e55Smrg    ;;
12552706b6b52Smrg  --*=)
12553706b6b52Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12554706b6b52Smrg    ac_optarg=
12555706b6b52Smrg    ac_shift=:
12556706b6b52Smrg    ;;
125578c4a8e55Smrg  *)
125588c4a8e55Smrg    ac_option=$1
125598c4a8e55Smrg    ac_optarg=$2
125608c4a8e55Smrg    ac_shift=shift
125618c4a8e55Smrg    ;;
125628c4a8e55Smrg  esac
12563b042e37fSmrg
125648c4a8e55Smrg  case $ac_option in
125658c4a8e55Smrg  # Handling of the options.
125668c4a8e55Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
125678c4a8e55Smrg    ac_cs_recheck=: ;;
125688c4a8e55Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
125698c4a8e55Smrg    $as_echo "$ac_cs_version"; exit ;;
12570706b6b52Smrg  --config | --confi | --conf | --con | --co | --c )
12571706b6b52Smrg    $as_echo "$ac_cs_config"; exit ;;
125728c4a8e55Smrg  --debug | --debu | --deb | --de | --d | -d )
125738c4a8e55Smrg    debug=: ;;
125748c4a8e55Smrg  --file | --fil | --fi | --f )
125758c4a8e55Smrg    $ac_shift
125768c4a8e55Smrg    case $ac_optarg in
125778c4a8e55Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12578706b6b52Smrg    '') as_fn_error $? "missing file argument" ;;
125798c4a8e55Smrg    esac
12580706b6b52Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
125818c4a8e55Smrg    ac_need_defaults=false;;
125828c4a8e55Smrg  --header | --heade | --head | --hea )
125838c4a8e55Smrg    $ac_shift
125848c4a8e55Smrg    case $ac_optarg in
125858c4a8e55Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
125868c4a8e55Smrg    esac
12587706b6b52Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
125888c4a8e55Smrg    ac_need_defaults=false;;
125898c4a8e55Smrg  --he | --h)
125908c4a8e55Smrg    # Conflict between --help and --header
12591706b6b52Smrg    as_fn_error $? "ambiguous option: \`$1'
12592706b6b52SmrgTry \`$0 --help' for more information.";;
125938c4a8e55Smrg  --help | --hel | -h )
125948c4a8e55Smrg    $as_echo "$ac_cs_usage"; exit ;;
125958c4a8e55Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
125968c4a8e55Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
125978c4a8e55Smrg    ac_cs_silent=: ;;
12598b042e37fSmrg
125998c4a8e55Smrg  # This is an error.
12600706b6b52Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
12601706b6b52SmrgTry \`$0 --help' for more information." ;;
12602b042e37fSmrg
12603706b6b52Smrg  *) as_fn_append ac_config_targets " $1"
126048c4a8e55Smrg     ac_need_defaults=false ;;
12605b042e37fSmrg
126068c4a8e55Smrg  esac
126078c4a8e55Smrg  shift
126088c4a8e55Smrgdone
12609b042e37fSmrg
126108c4a8e55Smrgac_configure_extra_args=
12611b042e37fSmrg
126128c4a8e55Smrgif $ac_cs_silent; then
126138c4a8e55Smrg  exec 6>/dev/null
126148c4a8e55Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
12615b042e37fSmrgfi
12616b042e37fSmrg
126178c4a8e55Smrg_ACEOF
126188c4a8e55Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
126198c4a8e55Smrgif \$ac_cs_recheck; then
126208c4a8e55Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
126218c4a8e55Smrg  shift
126228c4a8e55Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
126238c4a8e55Smrg  CONFIG_SHELL='$SHELL'
126248c4a8e55Smrg  export CONFIG_SHELL
126258c4a8e55Smrg  exec "\$@"
126268c4a8e55Smrgfi
12627b042e37fSmrg
126288c4a8e55Smrg_ACEOF
126298c4a8e55Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
126308c4a8e55Smrgexec 5>>config.log
126318c4a8e55Smrg{
126328c4a8e55Smrg  echo
126338c4a8e55Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
126348c4a8e55Smrg## Running $as_me. ##
126358c4a8e55Smrg_ASBOX
126368c4a8e55Smrg  $as_echo "$ac_log"
126378c4a8e55Smrg} >&5
12638b042e37fSmrg
126398c4a8e55Smrg_ACEOF
126408c4a8e55Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
126418c4a8e55Smrg#
126428c4a8e55Smrg# INIT-COMMANDS
126438c4a8e55Smrg#
126448c4a8e55SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12645b042e37fSmrg
12646b042e37fSmrg
126478c4a8e55Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
126488c4a8e55Smrg# if CDPATH is set.
126498c4a8e55Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12650b042e37fSmrg
126518c4a8e55Smrgsed_quote_subst='$sed_quote_subst'
126528c4a8e55Smrgdouble_quote_subst='$double_quote_subst'
126538c4a8e55Smrgdelay_variable_subst='$delay_variable_subst'
12654706b6b52Smrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12655706b6b52Smrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12656706b6b52Smrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12657706b6b52Smrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12658706b6b52Smrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12659706b6b52Smrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12660706b6b52SmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12661706b6b52SmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12662706b6b52Smrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12663706b6b52Smrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12664706b6b52Smrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12665706b6b52Smrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12666706b6b52Smrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12667706b6b52Smrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12668706b6b52SmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12669706b6b52SmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12670706b6b52SmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12671706b6b52SmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12672706b6b52SmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12673706b6b52SmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12674706b6b52SmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12675706b6b52SmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12676706b6b52Smrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12677706b6b52Smrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12678706b6b52Smrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12679706b6b52Smrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12680706b6b52Smrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12681706b6b52Smrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12682bd23fbfaSmrglt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12683bd23fbfaSmrglt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12684706b6b52Smrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12685706b6b52Smrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12686706b6b52SmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12687706b6b52Smrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12688706b6b52Smrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12689bd23fbfaSmrgfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12690bd23fbfaSmrgwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12691bd23fbfaSmrgDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12692bd23fbfaSmrgsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12693706b6b52SmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12694706b6b52SmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12695bd23fbfaSmrgarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12696706b6b52SmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12697706b6b52SmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12698706b6b52Smrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12699706b6b52Smrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12700706b6b52Smrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12701706b6b52Smrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12702706b6b52SmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12703706b6b52SmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12704706b6b52Smrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12705706b6b52SmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12706706b6b52Smrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12707706b6b52Smrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12708706b6b52Smrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12709706b6b52Smrglt_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"`'
12710bd23fbfaSmrgnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12711bd23fbfaSmrglt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12712706b6b52Smrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12713706b6b52SmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12714706b6b52Smrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12715706b6b52Smrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12716bd23fbfaSmrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12717706b6b52Smrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12718706b6b52Smrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12719706b6b52Smrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12720bd23fbfaSmrgMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12721706b6b52SmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12722706b6b52SmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12723706b6b52SmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12724706b6b52SmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12725706b6b52SmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12726706b6b52Smrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12727706b6b52Smrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12728706b6b52Smrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12729706b6b52Smrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12730706b6b52Smrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12731706b6b52Smrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12732706b6b52Smrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12733706b6b52Smrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12734706b6b52Smrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12735706b6b52Smrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12736706b6b52Smrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12737706b6b52Smrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12738706b6b52Smrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12739706b6b52Smrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12740706b6b52Smrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12741706b6b52Smrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12742706b6b52Smrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12743706b6b52Smrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12744706b6b52Smrghardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12745706b6b52Smrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12746706b6b52Smrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12747706b6b52Smrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12748706b6b52Smrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12749706b6b52Smrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12750706b6b52Smrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12751706b6b52Smrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12752706b6b52Smrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12753706b6b52Smrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12754706b6b52Smrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12755706b6b52Smrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12756706b6b52Smrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12757706b6b52Smrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12758bd23fbfaSmrgpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12759706b6b52Smrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12760706b6b52Smrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12761706b6b52Smrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12762706b6b52Smrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12763706b6b52Smrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12764706b6b52Smrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12765706b6b52Smrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12766706b6b52Smrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12767706b6b52Smrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12768706b6b52Smrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12769706b6b52Smrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12770706b6b52Smrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12771706b6b52Smrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12772706b6b52Smrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12773706b6b52Smrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12774706b6b52Smrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12775706b6b52Smrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12776706b6b52Smrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12777706b6b52Smrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12778706b6b52Smrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12779706b6b52Smrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12780706b6b52Smrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12781706b6b52Smrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12782706b6b52Smrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12783706b6b52Smrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
127848c4a8e55Smrg
127858c4a8e55SmrgLTCC='$LTCC'
127868c4a8e55SmrgLTCFLAGS='$LTCFLAGS'
127878c4a8e55Smrgcompiler='$compiler_DEFAULT'
127888c4a8e55Smrg
12789706b6b52Smrg# A function that is used when there is no print builtin or printf.
12790706b6b52Smrgfunc_fallback_echo ()
12791706b6b52Smrg{
12792706b6b52Smrg  eval 'cat <<_LTECHO_EOF
12793706b6b52Smrg\$1
12794706b6b52Smrg_LTECHO_EOF'
12795706b6b52Smrg}
12796706b6b52Smrg
127978c4a8e55Smrg# Quote evaled strings.
12798706b6b52Smrgfor var in SHELL \
12799706b6b52SmrgECHO \
12800706b6b52SmrgSED \
128018c4a8e55SmrgGREP \
128028c4a8e55SmrgEGREP \
128038c4a8e55SmrgFGREP \
128048c4a8e55SmrgLD \
128058c4a8e55SmrgNM \
128068c4a8e55SmrgLN_S \
128078c4a8e55Smrglt_SP2NL \
128088c4a8e55Smrglt_NL2SP \
128098c4a8e55Smrgreload_flag \
128108c4a8e55SmrgOBJDUMP \
128118c4a8e55Smrgdeplibs_check_method \
128128c4a8e55Smrgfile_magic_cmd \
12813bd23fbfaSmrgfile_magic_glob \
12814bd23fbfaSmrgwant_nocaseglob \
12815bd23fbfaSmrgDLLTOOL \
12816bd23fbfaSmrgsharedlib_from_linklib_cmd \
128178c4a8e55SmrgAR \
128188c4a8e55SmrgAR_FLAGS \
12819bd23fbfaSmrgarchiver_list_spec \
128208c4a8e55SmrgSTRIP \
128218c4a8e55SmrgRANLIB \
128228c4a8e55SmrgCC \
128238c4a8e55SmrgCFLAGS \
128248c4a8e55Smrgcompiler \
128258c4a8e55Smrglt_cv_sys_global_symbol_pipe \
128268c4a8e55Smrglt_cv_sys_global_symbol_to_cdecl \
128278c4a8e55Smrglt_cv_sys_global_symbol_to_c_name_address \
128288c4a8e55Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12829bd23fbfaSmrgnm_file_list_spec \
128308c4a8e55Smrglt_prog_compiler_no_builtin_flag \
128318c4a8e55Smrglt_prog_compiler_pic \
12832bd23fbfaSmrglt_prog_compiler_wl \
128338c4a8e55Smrglt_prog_compiler_static \
128348c4a8e55Smrglt_cv_prog_compiler_c_o \
128358c4a8e55Smrgneed_locks \
12836bd23fbfaSmrgMANIFEST_TOOL \
128378c4a8e55SmrgDSYMUTIL \
128388c4a8e55SmrgNMEDIT \
128398c4a8e55SmrgLIPO \
128408c4a8e55SmrgOTOOL \
128418c4a8e55SmrgOTOOL64 \
128428c4a8e55Smrgshrext_cmds \
128438c4a8e55Smrgexport_dynamic_flag_spec \
128448c4a8e55Smrgwhole_archive_flag_spec \
128458c4a8e55Smrgcompiler_needs_object \
128468c4a8e55Smrgwith_gnu_ld \
128478c4a8e55Smrgallow_undefined_flag \
128488c4a8e55Smrgno_undefined_flag \
128498c4a8e55Smrghardcode_libdir_flag_spec \
128508c4a8e55Smrghardcode_libdir_flag_spec_ld \
128518c4a8e55Smrghardcode_libdir_separator \
128528c4a8e55Smrgexclude_expsyms \
128538c4a8e55Smrginclude_expsyms \
128548c4a8e55Smrgfile_list_spec \
128558c4a8e55Smrgvariables_saved_for_relink \
128568c4a8e55Smrglibname_spec \
128578c4a8e55Smrglibrary_names_spec \
128588c4a8e55Smrgsoname_spec \
12859706b6b52Smrginstall_override_mode \
128608c4a8e55Smrgfinish_eval \
128618c4a8e55Smrgold_striplib \
128628c4a8e55Smrgstriplib; do
12863706b6b52Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
128648c4a8e55Smrg    *[\\\\\\\`\\"\\\$]*)
12865706b6b52Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
128668c4a8e55Smrg      ;;
128678c4a8e55Smrg    *)
128688c4a8e55Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
128698c4a8e55Smrg      ;;
128708c4a8e55Smrg    esac
128718c4a8e55Smrgdone
12872b042e37fSmrg
128738c4a8e55Smrg# Double-quote double-evaled strings.
128748c4a8e55Smrgfor var in reload_cmds \
128758c4a8e55Smrgold_postinstall_cmds \
128768c4a8e55Smrgold_postuninstall_cmds \
128778c4a8e55Smrgold_archive_cmds \
128788c4a8e55Smrgextract_expsyms_cmds \
128798c4a8e55Smrgold_archive_from_new_cmds \
128808c4a8e55Smrgold_archive_from_expsyms_cmds \
128818c4a8e55Smrgarchive_cmds \
128828c4a8e55Smrgarchive_expsym_cmds \
128838c4a8e55Smrgmodule_cmds \
128848c4a8e55Smrgmodule_expsym_cmds \
128858c4a8e55Smrgexport_symbols_cmds \
128868c4a8e55Smrgprelink_cmds \
12887bd23fbfaSmrgpostlink_cmds \
128888c4a8e55Smrgpostinstall_cmds \
128898c4a8e55Smrgpostuninstall_cmds \
128908c4a8e55Smrgfinish_cmds \
128918c4a8e55Smrgsys_lib_search_path_spec \
128928c4a8e55Smrgsys_lib_dlsearch_path_spec; do
12893706b6b52Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
128948c4a8e55Smrg    *[\\\\\\\`\\"\\\$]*)
12895706b6b52Smrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
128968c4a8e55Smrg      ;;
128978c4a8e55Smrg    *)
128988c4a8e55Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
128998c4a8e55Smrg      ;;
129008c4a8e55Smrg    esac
129018c4a8e55Smrgdone
12902b042e37fSmrg
129038c4a8e55Smrgac_aux_dir='$ac_aux_dir'
129048c4a8e55Smrgxsi_shell='$xsi_shell'
129058c4a8e55Smrglt_shell_append='$lt_shell_append'
12906b042e37fSmrg
129078c4a8e55Smrg# See if we are running on zsh, and set the options which allow our
129088c4a8e55Smrg# commands through without removal of \ escapes INIT.
129098c4a8e55Smrgif test -n "\${ZSH_VERSION+set}" ; then
129108c4a8e55Smrg   setopt NO_GLOB_SUBST
12911b042e37fSmrgfi
12912b042e37fSmrg
12913b042e37fSmrg
129148c4a8e55Smrg    PACKAGE='$PACKAGE'
129158c4a8e55Smrg    VERSION='$VERSION'
129168c4a8e55Smrg    TIMESTAMP='$TIMESTAMP'
129178c4a8e55Smrg    RM='$RM'
129188c4a8e55Smrg    ofile='$ofile'
12919b042e37fSmrg
12920b042e37fSmrg
12921b042e37fSmrg
12922b042e37fSmrg
129238c4a8e55Smrg_ACEOF
12924b042e37fSmrg
129258c4a8e55Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12926b042e37fSmrg
129278c4a8e55Smrg# Handling of arguments.
129288c4a8e55Smrgfor ac_config_target in $ac_config_targets
129298c4a8e55Smrgdo
129308c4a8e55Smrg  case $ac_config_target in
12931706b6b52Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12932bd23fbfaSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
129338c4a8e55Smrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
129348c4a8e55Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
129358c4a8e55Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
129368c4a8e55Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
129378c4a8e55Smrg    "xrandr.pc") CONFIG_FILES="$CONFIG_FILES xrandr.pc" ;;
12938b042e37fSmrg
12939706b6b52Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
129408c4a8e55Smrg  esac
129418c4a8e55Smrgdone
12942b042e37fSmrg
12943b042e37fSmrg
129448c4a8e55Smrg# If the user did not use the arguments to specify the items to instantiate,
129458c4a8e55Smrg# then the envvar interface is used.  Set only those that are not.
129468c4a8e55Smrg# We use the long form for the default assignment because of an extremely
129478c4a8e55Smrg# bizarre bug on SunOS 4.1.3.
129488c4a8e55Smrgif $ac_need_defaults; then
129498c4a8e55Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
129508c4a8e55Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
129518c4a8e55Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12952b042e37fSmrgfi
12953b042e37fSmrg
129548c4a8e55Smrg# Have a temporary directory for convenience.  Make it in the build tree
129558c4a8e55Smrg# simply because there is no reason against having it here, and in addition,
129568c4a8e55Smrg# creating and moving files from /tmp can sometimes cause problems.
129578c4a8e55Smrg# Hook for its removal unless debugging.
129588c4a8e55Smrg# Note that there is a small window in which the directory will not be cleaned:
129598c4a8e55Smrg# after its creation but before its name has been assigned to `$tmp'.
129608c4a8e55Smrg$debug ||
129618c4a8e55Smrg{
12962706b6b52Smrg  tmp= ac_tmp=
129638c4a8e55Smrg  trap 'exit_status=$?
12964706b6b52Smrg  : "${ac_tmp:=$tmp}"
12965706b6b52Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
129668c4a8e55Smrg' 0
12967706b6b52Smrg  trap 'as_fn_exit 1' 1 2 13 15
129688c4a8e55Smrg}
129698c4a8e55Smrg# Create a (secure) tmp directory for tmp files.
129708c4a8e55Smrg
129718c4a8e55Smrg{
129728c4a8e55Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12973706b6b52Smrg  test -d "$tmp"
129748c4a8e55Smrg}  ||
129758c4a8e55Smrg{
129768c4a8e55Smrg  tmp=./conf$$-$RANDOM
129778c4a8e55Smrg  (umask 077 && mkdir "$tmp")
12978706b6b52Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12979706b6b52Smrgac_tmp=$tmp
12980b042e37fSmrg
129818c4a8e55Smrg# Set up the scripts for CONFIG_FILES section.
129828c4a8e55Smrg# No need to generate them if there are no CONFIG_FILES.
129838c4a8e55Smrg# This happens for instance with `./config.status config.h'.
129848c4a8e55Smrgif test -n "$CONFIG_FILES"; then
12985b042e37fSmrg
12986b042e37fSmrg
12987706b6b52Smrgac_cr=`echo X | tr X '\015'`
12988706b6b52Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12989706b6b52Smrg# But we know of no other shell where ac_cr would be empty at this
12990706b6b52Smrg# point, so we can use a bashism as a fallback.
12991706b6b52Smrgif test "x$ac_cr" = x; then
12992706b6b52Smrg  eval ac_cr=\$\'\\r\'
12993706b6b52Smrgfi
129948c4a8e55Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
129958c4a8e55Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
129968c4a8e55Smrg  ac_cs_awk_cr='\\r'
12997b042e37fSmrgelse
129988c4a8e55Smrg  ac_cs_awk_cr=$ac_cr
12999b042e37fSmrgfi
13000b042e37fSmrg
13001706b6b52Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
130028c4a8e55Smrg_ACEOF
13003b042e37fSmrg
130048c4a8e55Smrg
130058c4a8e55Smrg{
130068c4a8e55Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
130078c4a8e55Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
130088c4a8e55Smrg  echo "_ACEOF"
130098c4a8e55Smrg} >conf$$subs.sh ||
13010706b6b52Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13011706b6b52Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
130128c4a8e55Smrgac_delim='%!_!# '
130138c4a8e55Smrgfor ac_last_try in false false false false false :; do
130148c4a8e55Smrg  . ./conf$$subs.sh ||
13015706b6b52Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13016b042e37fSmrg
130178c4a8e55Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
130188c4a8e55Smrg  if test $ac_delim_n = $ac_delim_num; then
130198c4a8e55Smrg    break
130208c4a8e55Smrg  elif $ac_last_try; then
13021706b6b52Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
130228c4a8e55Smrg  else
130238c4a8e55Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
130248c4a8e55Smrg  fi
130258c4a8e55Smrgdone
130268c4a8e55Smrgrm -f conf$$subs.sh
130278c4a8e55Smrg
130288c4a8e55Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13029706b6b52Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
130308c4a8e55Smrg_ACEOF
130318c4a8e55Smrgsed -n '
130328c4a8e55Smrgh
130338c4a8e55Smrgs/^/S["/; s/!.*/"]=/
130348c4a8e55Smrgp
130358c4a8e55Smrgg
130368c4a8e55Smrgs/^[^!]*!//
130378c4a8e55Smrg:repl
130388c4a8e55Smrgt repl
130398c4a8e55Smrgs/'"$ac_delim"'$//
130408c4a8e55Smrgt delim
130418c4a8e55Smrg:nl
130428c4a8e55Smrgh
13043706b6b52Smrgs/\(.\{148\}\)..*/\1/
130448c4a8e55Smrgt more1
130458c4a8e55Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
130468c4a8e55Smrgp
130478c4a8e55Smrgn
130488c4a8e55Smrgb repl
130498c4a8e55Smrg:more1
130508c4a8e55Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
130518c4a8e55Smrgp
130528c4a8e55Smrgg
130538c4a8e55Smrgs/.\{148\}//
130548c4a8e55Smrgt nl
130558c4a8e55Smrg:delim
130568c4a8e55Smrgh
13057706b6b52Smrgs/\(.\{148\}\)..*/\1/
130588c4a8e55Smrgt more2
130598c4a8e55Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
130608c4a8e55Smrgp
130618c4a8e55Smrgb
130628c4a8e55Smrg:more2
130638c4a8e55Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
130648c4a8e55Smrgp
130658c4a8e55Smrgg
130668c4a8e55Smrgs/.\{148\}//
130678c4a8e55Smrgt delim
130688c4a8e55Smrg' <conf$$subs.awk | sed '
130698c4a8e55Smrg/^[^""]/{
130708c4a8e55Smrg  N
130718c4a8e55Smrg  s/\n//
13072b042e37fSmrg}
130738c4a8e55Smrg' >>$CONFIG_STATUS || ac_write_fail=1
130748c4a8e55Smrgrm -f conf$$subs.awk
130758c4a8e55Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
130768c4a8e55Smrg_ACAWK
13077706b6b52Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
130788c4a8e55Smrg  for (key in S) S_is_set[key] = 1
130798c4a8e55Smrg  FS = ""
13080b042e37fSmrg
130818c4a8e55Smrg}
130828c4a8e55Smrg{
130838c4a8e55Smrg  line = $ 0
130848c4a8e55Smrg  nfields = split(line, field, "@")
130858c4a8e55Smrg  substed = 0
130868c4a8e55Smrg  len = length(field[1])
130878c4a8e55Smrg  for (i = 2; i < nfields; i++) {
130888c4a8e55Smrg    key = field[i]
130898c4a8e55Smrg    keylen = length(key)
130908c4a8e55Smrg    if (S_is_set[key]) {
130918c4a8e55Smrg      value = S[key]
130928c4a8e55Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
130938c4a8e55Smrg      len += length(value) + length(field[++i])
130948c4a8e55Smrg      substed = 1
130958c4a8e55Smrg    } else
130968c4a8e55Smrg      len += 1 + keylen
130978c4a8e55Smrg  }
130988c4a8e55Smrg
130998c4a8e55Smrg  print line
131008c4a8e55Smrg}
13101b042e37fSmrg
131028c4a8e55Smrg_ACAWK
131038c4a8e55Smrg_ACEOF
131048c4a8e55Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
131058c4a8e55Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
131068c4a8e55Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13107b042e37fSmrgelse
131088c4a8e55Smrg  cat
13109706b6b52Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13110706b6b52Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
131118c4a8e55Smrg_ACEOF
131128c4a8e55Smrg
13113706b6b52Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13114706b6b52Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
131158c4a8e55Smrg# trailing colons and then remove the whole line if VPATH becomes empty
131168c4a8e55Smrg# (actually we leave an empty line to preserve line numbers).
131178c4a8e55Smrgif test "x$srcdir" = x.; then
13118706b6b52Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13119706b6b52Smrgh
13120706b6b52Smrgs///
13121706b6b52Smrgs/^/:/
13122706b6b52Smrgs/[	 ]*$/:/
13123706b6b52Smrgs/:\$(srcdir):/:/g
13124706b6b52Smrgs/:\${srcdir}:/:/g
13125706b6b52Smrgs/:@srcdir@:/:/g
13126706b6b52Smrgs/^:*//
131278c4a8e55Smrgs/:*$//
13128706b6b52Smrgx
13129706b6b52Smrgs/\(=[	 ]*\).*/\1/
13130706b6b52SmrgG
13131706b6b52Smrgs/\n//
131328c4a8e55Smrgs/^[^=]*=[	 ]*$//
131338c4a8e55Smrg}'
13134b042e37fSmrgfi
13135b042e37fSmrg
131368c4a8e55Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
131378c4a8e55Smrgfi # test -n "$CONFIG_FILES"
13138b042e37fSmrg
131398c4a8e55Smrg# Set up the scripts for CONFIG_HEADERS section.
131408c4a8e55Smrg# No need to generate them if there are no CONFIG_HEADERS.
131418c4a8e55Smrg# This happens for instance with `./config.status Makefile'.
131428c4a8e55Smrgif test -n "$CONFIG_HEADERS"; then
13143706b6b52Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
131448c4a8e55SmrgBEGIN {
131458c4a8e55Smrg_ACEOF
13146b042e37fSmrg
131478c4a8e55Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
131488c4a8e55Smrg# here-document in config.status, that substitutes the proper values into
131498c4a8e55Smrg# config.h.in to produce config.h.
13150b042e37fSmrg
131518c4a8e55Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
131528c4a8e55Smrg# handling of long lines.
131538c4a8e55Smrgac_delim='%!_!# '
131548c4a8e55Smrgfor ac_last_try in false false :; do
13155706b6b52Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13156706b6b52Smrg  if test -z "$ac_tt"; then
131578c4a8e55Smrg    break
131588c4a8e55Smrg  elif $ac_last_try; then
13159706b6b52Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
131608c4a8e55Smrg  else
131618c4a8e55Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
131628c4a8e55Smrg  fi
131638c4a8e55Smrgdone
13164b042e37fSmrg
131658c4a8e55Smrg# For the awk script, D is an array of macro values keyed by name,
131668c4a8e55Smrg# likewise P contains macro parameters if any.  Preserve backslash
131678c4a8e55Smrg# newline sequences.
13168b042e37fSmrg
131698c4a8e55Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
131708c4a8e55Smrgsed -n '
131718c4a8e55Smrgs/.\{148\}/&'"$ac_delim"'/g
131728c4a8e55Smrgt rset
131738c4a8e55Smrg:rset
131748c4a8e55Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
131758c4a8e55Smrgt def
131768c4a8e55Smrgd
131778c4a8e55Smrg:def
131788c4a8e55Smrgs/\\$//
131798c4a8e55Smrgt bsnl
131808c4a8e55Smrgs/["\\]/\\&/g
131818c4a8e55Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
131828c4a8e55SmrgD["\1"]=" \3"/p
131838c4a8e55Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
131848c4a8e55Smrgd
131858c4a8e55Smrg:bsnl
131868c4a8e55Smrgs/["\\]/\\&/g
131878c4a8e55Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
131888c4a8e55SmrgD["\1"]=" \3\\\\\\n"\\/p
131898c4a8e55Smrgt cont
131908c4a8e55Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
131918c4a8e55Smrgt cont
131928c4a8e55Smrgd
131938c4a8e55Smrg:cont
131948c4a8e55Smrgn
131958c4a8e55Smrgs/.\{148\}/&'"$ac_delim"'/g
131968c4a8e55Smrgt clear
131978c4a8e55Smrg:clear
131988c4a8e55Smrgs/\\$//
131998c4a8e55Smrgt bsnlc
132008c4a8e55Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
132018c4a8e55Smrgd
132028c4a8e55Smrg:bsnlc
132038c4a8e55Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
132048c4a8e55Smrgb cont
132058c4a8e55Smrg' <confdefs.h | sed '
132068c4a8e55Smrgs/'"$ac_delim"'/"\\\
132078c4a8e55Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
132088c4a8e55Smrg
132098c4a8e55Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
132108c4a8e55Smrg  for (key in D) D_is_set[key] = 1
132118c4a8e55Smrg  FS = ""
132128c4a8e55Smrg}
132138c4a8e55Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
132148c4a8e55Smrg  line = \$ 0
132158c4a8e55Smrg  split(line, arg, " ")
132168c4a8e55Smrg  if (arg[1] == "#") {
132178c4a8e55Smrg    defundef = arg[2]
132188c4a8e55Smrg    mac1 = arg[3]
132198c4a8e55Smrg  } else {
132208c4a8e55Smrg    defundef = substr(arg[1], 2)
132218c4a8e55Smrg    mac1 = arg[2]
132228c4a8e55Smrg  }
132238c4a8e55Smrg  split(mac1, mac2, "(") #)
132248c4a8e55Smrg  macro = mac2[1]
132258c4a8e55Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
132268c4a8e55Smrg  if (D_is_set[macro]) {
132278c4a8e55Smrg    # Preserve the white space surrounding the "#".
132288c4a8e55Smrg    print prefix "define", macro P[macro] D[macro]
132298c4a8e55Smrg    next
132308c4a8e55Smrg  } else {
132318c4a8e55Smrg    # Replace #undef with comments.  This is necessary, for example,
132328c4a8e55Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
132338c4a8e55Smrg    # on some systems where configure will not decide to define it.
132348c4a8e55Smrg    if (defundef == "undef") {
132358c4a8e55Smrg      print "/*", prefix defundef, macro, "*/"
132368c4a8e55Smrg      next
132378c4a8e55Smrg    }
132388c4a8e55Smrg  }
132398c4a8e55Smrg}
132408c4a8e55Smrg{ print }
132418c4a8e55Smrg_ACAWK
132428c4a8e55Smrg_ACEOF
132438c4a8e55Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13244706b6b52Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
132458c4a8e55Smrgfi # test -n "$CONFIG_HEADERS"
13246b042e37fSmrg
13247b042e37fSmrg
132488c4a8e55Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
132498c4a8e55Smrgshift
132508c4a8e55Smrgfor ac_tag
132518c4a8e55Smrgdo
132528c4a8e55Smrg  case $ac_tag in
132538c4a8e55Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
132548c4a8e55Smrg  esac
132558c4a8e55Smrg  case $ac_mode$ac_tag in
132568c4a8e55Smrg  :[FHL]*:*);;
13257706b6b52Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
132588c4a8e55Smrg  :[FH]-) ac_tag=-:-;;
132598c4a8e55Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
132608c4a8e55Smrg  esac
132618c4a8e55Smrg  ac_save_IFS=$IFS
132628c4a8e55Smrg  IFS=:
132638c4a8e55Smrg  set x $ac_tag
132648c4a8e55Smrg  IFS=$ac_save_IFS
132658c4a8e55Smrg  shift
132668c4a8e55Smrg  ac_file=$1
132678c4a8e55Smrg  shift
13268b042e37fSmrg
132698c4a8e55Smrg  case $ac_mode in
132708c4a8e55Smrg  :L) ac_source=$1;;
132718c4a8e55Smrg  :[FH])
132728c4a8e55Smrg    ac_file_inputs=
132738c4a8e55Smrg    for ac_f
132748c4a8e55Smrg    do
132758c4a8e55Smrg      case $ac_f in
13276706b6b52Smrg      -) ac_f="$ac_tmp/stdin";;
132778c4a8e55Smrg      *) # Look for the file first in the build tree, then in the source tree
132788c4a8e55Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
132798c4a8e55Smrg	 # because $ac_f cannot contain `:'.
132808c4a8e55Smrg	 test -f "$ac_f" ||
132818c4a8e55Smrg	   case $ac_f in
132828c4a8e55Smrg	   [\\/$]*) false;;
132838c4a8e55Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
132848c4a8e55Smrg	   esac ||
13285706b6b52Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
132868c4a8e55Smrg      esac
132878c4a8e55Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13288706b6b52Smrg      as_fn_append ac_file_inputs " '$ac_f'"
132898c4a8e55Smrg    done
13290b042e37fSmrg
132918c4a8e55Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
132928c4a8e55Smrg    # use $as_me), people would be surprised to read:
132938c4a8e55Smrg    #    /* config.h.  Generated by config.status.  */
132948c4a8e55Smrg    configure_input='Generated from '`
132958c4a8e55Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
132968c4a8e55Smrg	`' by configure.'
132978c4a8e55Smrg    if test x"$ac_file" != x-; then
132988c4a8e55Smrg      configure_input="$ac_file.  $configure_input"
13299706b6b52Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
133008c4a8e55Smrg$as_echo "$as_me: creating $ac_file" >&6;}
133018c4a8e55Smrg    fi
133028c4a8e55Smrg    # Neutralize special characters interpreted by sed in replacement strings.
133038c4a8e55Smrg    case $configure_input in #(
133048c4a8e55Smrg    *\&* | *\|* | *\\* )
133058c4a8e55Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
133068c4a8e55Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
133078c4a8e55Smrg    *) ac_sed_conf_input=$configure_input;;
13308b042e37fSmrg    esac
13309b042e37fSmrg
133108c4a8e55Smrg    case $ac_tag in
13311706b6b52Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13312706b6b52Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13313b042e37fSmrg    esac
133148c4a8e55Smrg    ;;
133158c4a8e55Smrg  esac
13316b042e37fSmrg
133178c4a8e55Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
133188c4a8e55Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
133198c4a8e55Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
133208c4a8e55Smrg	 X"$ac_file" : 'X\(//\)$' \| \
133218c4a8e55Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
133228c4a8e55Smrg$as_echo X"$ac_file" |
133238c4a8e55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
133248c4a8e55Smrg	    s//\1/
133258c4a8e55Smrg	    q
133268c4a8e55Smrg	  }
133278c4a8e55Smrg	  /^X\(\/\/\)[^/].*/{
133288c4a8e55Smrg	    s//\1/
133298c4a8e55Smrg	    q
133308c4a8e55Smrg	  }
133318c4a8e55Smrg	  /^X\(\/\/\)$/{
133328c4a8e55Smrg	    s//\1/
133338c4a8e55Smrg	    q
133348c4a8e55Smrg	  }
133358c4a8e55Smrg	  /^X\(\/\).*/{
133368c4a8e55Smrg	    s//\1/
133378c4a8e55Smrg	    q
133388c4a8e55Smrg	  }
133398c4a8e55Smrg	  s/.*/./; q'`
13340706b6b52Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
133418c4a8e55Smrg  ac_builddir=.
13342b042e37fSmrg
133438c4a8e55Smrgcase "$ac_dir" in
133448c4a8e55Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
133458c4a8e55Smrg*)
133468c4a8e55Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
133478c4a8e55Smrg  # A ".." for each directory in $ac_dir_suffix.
133488c4a8e55Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
133498c4a8e55Smrg  case $ac_top_builddir_sub in
133508c4a8e55Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
133518c4a8e55Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
133528c4a8e55Smrg  esac ;;
133538c4a8e55Smrgesac
133548c4a8e55Smrgac_abs_top_builddir=$ac_pwd
133558c4a8e55Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
133568c4a8e55Smrg# for backward compatibility:
133578c4a8e55Smrgac_top_builddir=$ac_top_build_prefix
13358b042e37fSmrg
133598c4a8e55Smrgcase $srcdir in
133608c4a8e55Smrg  .)  # We are building in place.
133618c4a8e55Smrg    ac_srcdir=.
133628c4a8e55Smrg    ac_top_srcdir=$ac_top_builddir_sub
133638c4a8e55Smrg    ac_abs_top_srcdir=$ac_pwd ;;
133648c4a8e55Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
133658c4a8e55Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
133668c4a8e55Smrg    ac_top_srcdir=$srcdir
133678c4a8e55Smrg    ac_abs_top_srcdir=$srcdir ;;
133688c4a8e55Smrg  *) # Relative name.
133698c4a8e55Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
133708c4a8e55Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
133718c4a8e55Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
133728c4a8e55Smrgesac
133738c4a8e55Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13374b042e37fSmrg
13375b042e37fSmrg
133768c4a8e55Smrg  case $ac_mode in
133778c4a8e55Smrg  :F)
133788c4a8e55Smrg  #
133798c4a8e55Smrg  # CONFIG_FILE
133808c4a8e55Smrg  #
13381b042e37fSmrg
133828c4a8e55Smrg  case $INSTALL in
133838c4a8e55Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
133848c4a8e55Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
133858c4a8e55Smrg  esac
133868c4a8e55Smrg  ac_MKDIR_P=$MKDIR_P
133878c4a8e55Smrg  case $MKDIR_P in
133888c4a8e55Smrg  [\\/$]* | ?:[\\/]* ) ;;
133898c4a8e55Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
133908c4a8e55Smrg  esac
133918c4a8e55Smrg_ACEOF
13392b042e37fSmrg
133938c4a8e55Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
133948c4a8e55Smrg# If the template does not know about datarootdir, expand it.
133958c4a8e55Smrg# FIXME: This hack should be removed a few years after 2.60.
133968c4a8e55Smrgac_datarootdir_hack=; ac_datarootdir_seen=
133978c4a8e55Smrgac_sed_dataroot='
133988c4a8e55Smrg/datarootdir/ {
133998c4a8e55Smrg  p
134008c4a8e55Smrg  q
134018c4a8e55Smrg}
134028c4a8e55Smrg/@datadir@/p
134038c4a8e55Smrg/@docdir@/p
134048c4a8e55Smrg/@infodir@/p
134058c4a8e55Smrg/@localedir@/p
13406706b6b52Smrg/@mandir@/p'
134078c4a8e55Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
134088c4a8e55Smrg*datarootdir*) ac_datarootdir_seen=yes;;
134098c4a8e55Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13410706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
134118c4a8e55Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
134128c4a8e55Smrg_ACEOF
134138c4a8e55Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
134148c4a8e55Smrg  ac_datarootdir_hack='
134158c4a8e55Smrg  s&@datadir@&$datadir&g
134168c4a8e55Smrg  s&@docdir@&$docdir&g
134178c4a8e55Smrg  s&@infodir@&$infodir&g
134188c4a8e55Smrg  s&@localedir@&$localedir&g
134198c4a8e55Smrg  s&@mandir@&$mandir&g
13420706b6b52Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
134218c4a8e55Smrgesac
134228c4a8e55Smrg_ACEOF
13423b042e37fSmrg
134248c4a8e55Smrg# Neutralize VPATH when `$srcdir' = `.'.
134258c4a8e55Smrg# Shell code in configure.ac might set extrasub.
134268c4a8e55Smrg# FIXME: do we really want to maintain this feature?
134278c4a8e55Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
134288c4a8e55Smrgac_sed_extra="$ac_vpsub
134298c4a8e55Smrg$extrasub
134308c4a8e55Smrg_ACEOF
134318c4a8e55Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
134328c4a8e55Smrg:t
134338c4a8e55Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
134348c4a8e55Smrgs|@configure_input@|$ac_sed_conf_input|;t t
134358c4a8e55Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
134368c4a8e55Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
134378c4a8e55Smrgs&@srcdir@&$ac_srcdir&;t t
134388c4a8e55Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
134398c4a8e55Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
134408c4a8e55Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
134418c4a8e55Smrgs&@builddir@&$ac_builddir&;t t
134428c4a8e55Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
134438c4a8e55Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
134448c4a8e55Smrgs&@INSTALL@&$ac_INSTALL&;t t
134458c4a8e55Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
134468c4a8e55Smrg$ac_datarootdir_hack
134478c4a8e55Smrg"
13448706b6b52Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13449706b6b52Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13450b042e37fSmrg
134518c4a8e55Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13452706b6b52Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13453706b6b52Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13454706b6b52Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13455706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13456706b6b52Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
134578c4a8e55Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13458706b6b52Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
13459b042e37fSmrg
13460706b6b52Smrg  rm -f "$ac_tmp/stdin"
134618c4a8e55Smrg  case $ac_file in
13462706b6b52Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13463706b6b52Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
134648c4a8e55Smrg  esac \
13465706b6b52Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
134668c4a8e55Smrg ;;
134678c4a8e55Smrg  :H)
134688c4a8e55Smrg  #
134698c4a8e55Smrg  # CONFIG_HEADER
134708c4a8e55Smrg  #
134718c4a8e55Smrg  if test x"$ac_file" != x-; then
134728c4a8e55Smrg    {
134738c4a8e55Smrg      $as_echo "/* $configure_input  */" \
13474706b6b52Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13475706b6b52Smrg    } >"$ac_tmp/config.h" \
13476706b6b52Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13477706b6b52Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13478706b6b52Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
134798c4a8e55Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
134808c4a8e55Smrg    else
134818c4a8e55Smrg      rm -f "$ac_file"
13482706b6b52Smrg      mv "$ac_tmp/config.h" "$ac_file" \
13483706b6b52Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
134848c4a8e55Smrg    fi
134858c4a8e55Smrg  else
134868c4a8e55Smrg    $as_echo "/* $configure_input  */" \
13487706b6b52Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13488706b6b52Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
134898c4a8e55Smrg  fi
134908c4a8e55Smrg# Compute "$ac_file"'s index in $config_headers.
134918c4a8e55Smrg_am_arg="$ac_file"
134928c4a8e55Smrg_am_stamp_count=1
134938c4a8e55Smrgfor _am_header in $config_headers :; do
134948c4a8e55Smrg  case $_am_header in
134958c4a8e55Smrg    $_am_arg | $_am_arg:* )
134968c4a8e55Smrg      break ;;
134978c4a8e55Smrg    * )
134988c4a8e55Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
134998c4a8e55Smrg  esac
135008c4a8e55Smrgdone
135018c4a8e55Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
135028c4a8e55Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
135038c4a8e55Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
135048c4a8e55Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
135058c4a8e55Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
135068c4a8e55Smrg$as_echo X"$_am_arg" |
135078c4a8e55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
135088c4a8e55Smrg	    s//\1/
135098c4a8e55Smrg	    q
135108c4a8e55Smrg	  }
135118c4a8e55Smrg	  /^X\(\/\/\)[^/].*/{
135128c4a8e55Smrg	    s//\1/
135138c4a8e55Smrg	    q
135148c4a8e55Smrg	  }
135158c4a8e55Smrg	  /^X\(\/\/\)$/{
135168c4a8e55Smrg	    s//\1/
135178c4a8e55Smrg	    q
135188c4a8e55Smrg	  }
135198c4a8e55Smrg	  /^X\(\/\).*/{
135208c4a8e55Smrg	    s//\1/
135218c4a8e55Smrg	    q
135228c4a8e55Smrg	  }
135238c4a8e55Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
135248c4a8e55Smrg ;;
13525b042e37fSmrg
13526706b6b52Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
135278c4a8e55Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
135288c4a8e55Smrg ;;
135298c4a8e55Smrg  esac
13530b042e37fSmrg
13531b042e37fSmrg
135328c4a8e55Smrg  case $ac_file$ac_mode in
13533706b6b52Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13534706b6b52Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13535706b6b52Smrg  # are listed without --file.  Let's play safe and only enable the eval
13536706b6b52Smrg  # if we detect the quoting.
13537706b6b52Smrg  case $CONFIG_FILES in
13538706b6b52Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
13539706b6b52Smrg  *)   set x $CONFIG_FILES ;;
13540706b6b52Smrg  esac
13541706b6b52Smrg  shift
13542706b6b52Smrg  for mf
13543706b6b52Smrg  do
13544706b6b52Smrg    # Strip MF so we end up with the name of the file.
13545706b6b52Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
13546706b6b52Smrg    # Check whether this is an Automake generated Makefile or not.
13547706b6b52Smrg    # We used to match only the files named `Makefile.in', but
13548706b6b52Smrg    # some people rename them; so instead we look at the file content.
13549706b6b52Smrg    # Grep'ing the first line is not enough: some people post-process
13550706b6b52Smrg    # each Makefile.in and add a new line on top of each file to say so.
13551706b6b52Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
13552706b6b52Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
13553706b6b52Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13554706b6b52Smrg      dirpart=`$as_dirname -- "$mf" ||
135558c4a8e55Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
135568c4a8e55Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
135578c4a8e55Smrg	 X"$mf" : 'X\(//\)$' \| \
135588c4a8e55Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
135598c4a8e55Smrg$as_echo X"$mf" |
135608c4a8e55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
135618c4a8e55Smrg	    s//\1/
135628c4a8e55Smrg	    q
135638c4a8e55Smrg	  }
135648c4a8e55Smrg	  /^X\(\/\/\)[^/].*/{
135658c4a8e55Smrg	    s//\1/
135668c4a8e55Smrg	    q
135678c4a8e55Smrg	  }
135688c4a8e55Smrg	  /^X\(\/\/\)$/{
135698c4a8e55Smrg	    s//\1/
135708c4a8e55Smrg	    q
135718c4a8e55Smrg	  }
135728c4a8e55Smrg	  /^X\(\/\).*/{
135738c4a8e55Smrg	    s//\1/
135748c4a8e55Smrg	    q
135758c4a8e55Smrg	  }
135768c4a8e55Smrg	  s/.*/./; q'`
13577706b6b52Smrg    else
13578706b6b52Smrg      continue
13579706b6b52Smrg    fi
13580706b6b52Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
13581706b6b52Smrg    # from the Makefile without running `make'.
13582706b6b52Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13583706b6b52Smrg    test -z "$DEPDIR" && continue
13584706b6b52Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13585706b6b52Smrg    test -z "am__include" && continue
13586706b6b52Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13587706b6b52Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
13588706b6b52Smrg    U=`sed -n 's/^U = //p' < "$mf"`
13589706b6b52Smrg    # Find all dependency output files, they are included files with
13590706b6b52Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13591706b6b52Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
13592706b6b52Smrg    # expansion.
13593706b6b52Smrg    for file in `sed -n "
13594706b6b52Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13595706b6b52Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13596706b6b52Smrg      # Make sure the directory exists.
13597706b6b52Smrg      test -f "$dirpart/$file" && continue
13598706b6b52Smrg      fdir=`$as_dirname -- "$file" ||
135998c4a8e55Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
136008c4a8e55Smrg	 X"$file" : 'X\(//\)[^/]' \| \
136018c4a8e55Smrg	 X"$file" : 'X\(//\)$' \| \
136028c4a8e55Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
136038c4a8e55Smrg$as_echo X"$file" |
136048c4a8e55Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
136058c4a8e55Smrg	    s//\1/
136068c4a8e55Smrg	    q
136078c4a8e55Smrg	  }
136088c4a8e55Smrg	  /^X\(\/\/\)[^/].*/{
136098c4a8e55Smrg	    s//\1/
136108c4a8e55Smrg	    q
136118c4a8e55Smrg	  }
136128c4a8e55Smrg	  /^X\(\/\/\)$/{
136138c4a8e55Smrg	    s//\1/
136148c4a8e55Smrg	    q
136158c4a8e55Smrg	  }
136168c4a8e55Smrg	  /^X\(\/\).*/{
136178c4a8e55Smrg	    s//\1/
136188c4a8e55Smrg	    q
136198c4a8e55Smrg	  }
136208c4a8e55Smrg	  s/.*/./; q'`
13621706b6b52Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13622706b6b52Smrg      # echo "creating $dirpart/$file"
13623706b6b52Smrg      echo '# dummy' > "$dirpart/$file"
136248c4a8e55Smrg    done
136258c4a8e55Smrg  done
13626706b6b52Smrg}
136278c4a8e55Smrg ;;
136288c4a8e55Smrg    "libtool":C)
13629b042e37fSmrg
136308c4a8e55Smrg    # See if we are running on zsh, and set the options which allow our
136318c4a8e55Smrg    # commands through without removal of \ escapes.
136328c4a8e55Smrg    if test -n "${ZSH_VERSION+set}" ; then
136338c4a8e55Smrg      setopt NO_GLOB_SUBST
136348c4a8e55Smrg    fi
13635b042e37fSmrg
136368c4a8e55Smrg    cfgfile="${ofile}T"
136378c4a8e55Smrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
136388c4a8e55Smrg    $RM "$cfgfile"
13639b042e37fSmrg
136408c4a8e55Smrg    cat <<_LT_EOF >> "$cfgfile"
136418c4a8e55Smrg#! $SHELL
13642b042e37fSmrg
136438c4a8e55Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
136448c4a8e55Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
136458c4a8e55Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
136468c4a8e55Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
136478c4a8e55Smrg#
136488c4a8e55Smrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13649706b6b52Smrg#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13650706b6b52Smrg#                 Inc.
136518c4a8e55Smrg#   Written by Gordon Matzigkeit, 1996
136528c4a8e55Smrg#
136538c4a8e55Smrg#   This file is part of GNU Libtool.
136548c4a8e55Smrg#
136558c4a8e55Smrg# GNU Libtool is free software; you can redistribute it and/or
136568c4a8e55Smrg# modify it under the terms of the GNU General Public License as
136578c4a8e55Smrg# published by the Free Software Foundation; either version 2 of
136588c4a8e55Smrg# the License, or (at your option) any later version.
136598c4a8e55Smrg#
136608c4a8e55Smrg# As a special exception to the GNU General Public License,
136618c4a8e55Smrg# if you distribute this file as part of a program or library that
136628c4a8e55Smrg# is built using GNU Libtool, you may include this file under the
136638c4a8e55Smrg# same distribution terms that you use for the rest of that program.
136648c4a8e55Smrg#
136658c4a8e55Smrg# GNU Libtool is distributed in the hope that it will be useful,
136668c4a8e55Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
136678c4a8e55Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
136688c4a8e55Smrg# GNU General Public License for more details.
136698c4a8e55Smrg#
136708c4a8e55Smrg# You should have received a copy of the GNU General Public License
136718c4a8e55Smrg# along with GNU Libtool; see the file COPYING.  If not, a copy
136728c4a8e55Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
136738c4a8e55Smrg# obtained by writing to the Free Software Foundation, Inc.,
136748c4a8e55Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13675b042e37fSmrg
13676b042e37fSmrg
136778c4a8e55Smrg# The names of the tagged configurations supported by this script.
136788c4a8e55Smrgavailable_tags=""
13679b042e37fSmrg
136808c4a8e55Smrg# ### BEGIN LIBTOOL CONFIG
13681b042e37fSmrg
136828c4a8e55Smrg# Which release of libtool.m4 was used?
136838c4a8e55Smrgmacro_version=$macro_version
136848c4a8e55Smrgmacro_revision=$macro_revision
13685b042e37fSmrg
136868c4a8e55Smrg# Whether or not to build shared libraries.
136878c4a8e55Smrgbuild_libtool_libs=$enable_shared
13688b042e37fSmrg
136898c4a8e55Smrg# Whether or not to build static libraries.
136908c4a8e55Smrgbuild_old_libs=$enable_static
13691b042e37fSmrg
136928c4a8e55Smrg# What type of objects to build.
136938c4a8e55Smrgpic_mode=$pic_mode
13694b042e37fSmrg
136958c4a8e55Smrg# Whether or not to optimize for fast installation.
136968c4a8e55Smrgfast_install=$enable_fast_install
13697b042e37fSmrg
13698706b6b52Smrg# Shell to use when invoking shell scripts.
13699706b6b52SmrgSHELL=$lt_SHELL
13700706b6b52Smrg
13701706b6b52Smrg# An echo program that protects backslashes.
13702706b6b52SmrgECHO=$lt_ECHO
13703706b6b52Smrg
137048c4a8e55Smrg# The host system.
137058c4a8e55Smrghost_alias=$host_alias
137068c4a8e55Smrghost=$host
137078c4a8e55Smrghost_os=$host_os
13708b042e37fSmrg
137098c4a8e55Smrg# The build system.
137108c4a8e55Smrgbuild_alias=$build_alias
137118c4a8e55Smrgbuild=$build
137128c4a8e55Smrgbuild_os=$build_os
13713b042e37fSmrg
137148c4a8e55Smrg# A sed program that does not truncate output.
137158c4a8e55SmrgSED=$lt_SED
13716b042e37fSmrg
137178c4a8e55Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
137188c4a8e55SmrgXsed="\$SED -e 1s/^X//"
13719b042e37fSmrg
137208c4a8e55Smrg# A grep program that handles long lines.
137218c4a8e55SmrgGREP=$lt_GREP
13722b042e37fSmrg
137238c4a8e55Smrg# An ERE matcher.
137248c4a8e55SmrgEGREP=$lt_EGREP
13725b042e37fSmrg
137268c4a8e55Smrg# A literal string matcher.
137278c4a8e55SmrgFGREP=$lt_FGREP
13728b042e37fSmrg
137298c4a8e55Smrg# A BSD- or MS-compatible name lister.
137308c4a8e55SmrgNM=$lt_NM
13731b042e37fSmrg
137328c4a8e55Smrg# Whether we need soft or hard links.
137338c4a8e55SmrgLN_S=$lt_LN_S
13734b042e37fSmrg
137358c4a8e55Smrg# What is the maximum length of a command?
137368c4a8e55Smrgmax_cmd_len=$max_cmd_len
13737b042e37fSmrg
137388c4a8e55Smrg# Object file suffix (normally "o").
137398c4a8e55Smrgobjext=$ac_objext
13740b042e37fSmrg
137418c4a8e55Smrg# Executable file suffix (normally "").
137428c4a8e55Smrgexeext=$exeext
13743b042e37fSmrg
137448c4a8e55Smrg# whether the shell understands "unset".
137458c4a8e55Smrglt_unset=$lt_unset
13746b042e37fSmrg
137478c4a8e55Smrg# turn spaces into newlines.
137488c4a8e55SmrgSP2NL=$lt_lt_SP2NL
13749b042e37fSmrg
137508c4a8e55Smrg# turn newlines into spaces.
137518c4a8e55SmrgNL2SP=$lt_lt_NL2SP
13752b042e37fSmrg
13753bd23fbfaSmrg# convert \$build file names to \$host format.
13754bd23fbfaSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd
13755bd23fbfaSmrg
13756bd23fbfaSmrg# convert \$build files to toolchain format.
13757bd23fbfaSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
13758bd23fbfaSmrg
137598c4a8e55Smrg# An object symbol dumper.
137608c4a8e55SmrgOBJDUMP=$lt_OBJDUMP
13761b042e37fSmrg
137628c4a8e55Smrg# Method to check whether dependent libraries are shared objects.
137638c4a8e55Smrgdeplibs_check_method=$lt_deplibs_check_method
13764b042e37fSmrg
13765bd23fbfaSmrg# Command to use when deplibs_check_method = "file_magic".
137668c4a8e55Smrgfile_magic_cmd=$lt_file_magic_cmd
13767b042e37fSmrg
13768bd23fbfaSmrg# How to find potential files when deplibs_check_method = "file_magic".
13769bd23fbfaSmrgfile_magic_glob=$lt_file_magic_glob
13770bd23fbfaSmrg
13771bd23fbfaSmrg# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13772bd23fbfaSmrgwant_nocaseglob=$lt_want_nocaseglob
13773bd23fbfaSmrg
13774bd23fbfaSmrg# DLL creation program.
13775bd23fbfaSmrgDLLTOOL=$lt_DLLTOOL
13776bd23fbfaSmrg
13777bd23fbfaSmrg# Command to associate shared and link libraries.
13778bd23fbfaSmrgsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13779bd23fbfaSmrg
137808c4a8e55Smrg# The archiver.
137818c4a8e55SmrgAR=$lt_AR
13782bd23fbfaSmrg
13783bd23fbfaSmrg# Flags to create an archive.
137848c4a8e55SmrgAR_FLAGS=$lt_AR_FLAGS
13785b042e37fSmrg
13786bd23fbfaSmrg# How to feed a file listing to the archiver.
13787bd23fbfaSmrgarchiver_list_spec=$lt_archiver_list_spec
13788bd23fbfaSmrg
137898c4a8e55Smrg# A symbol stripping program.
137908c4a8e55SmrgSTRIP=$lt_STRIP
13791b042e37fSmrg
137928c4a8e55Smrg# Commands used to install an old-style archive.
137938c4a8e55SmrgRANLIB=$lt_RANLIB
137948c4a8e55Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
137958c4a8e55Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
13796b042e37fSmrg
13797706b6b52Smrg# Whether to use a lock for old archive extraction.
13798706b6b52Smrglock_old_archive_extraction=$lock_old_archive_extraction
13799706b6b52Smrg
138008c4a8e55Smrg# A C compiler.
138018c4a8e55SmrgLTCC=$lt_CC
13802b042e37fSmrg
138038c4a8e55Smrg# LTCC compiler flags.
138048c4a8e55SmrgLTCFLAGS=$lt_CFLAGS
13805b042e37fSmrg
138068c4a8e55Smrg# Take the output of nm and produce a listing of raw symbols and C names.
138078c4a8e55Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13808b042e37fSmrg
138098c4a8e55Smrg# Transform the output of nm in a proper C declaration.
138108c4a8e55Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13811b042e37fSmrg
138128c4a8e55Smrg# Transform the output of nm in a C name address pair.
138138c4a8e55Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13814b042e37fSmrg
138158c4a8e55Smrg# Transform the output of nm in a C name address pair when lib prefix is needed.
138168c4a8e55Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13817b042e37fSmrg
13818bd23fbfaSmrg# Specify filename containing input files for \$NM.
13819bd23fbfaSmrgnm_file_list_spec=$lt_nm_file_list_spec
13820bd23fbfaSmrg
13821bd23fbfaSmrg# The root where to search for dependent libraries,and in which our libraries should be installed.
13822bd23fbfaSmrglt_sysroot=$lt_sysroot
13823bd23fbfaSmrg
138248c4a8e55Smrg# The name of the directory that contains temporary libtool files.
138258c4a8e55Smrgobjdir=$objdir
13826b042e37fSmrg
138278c4a8e55Smrg# Used to examine libraries when file_magic_cmd begins with "file".
138288c4a8e55SmrgMAGIC_CMD=$MAGIC_CMD
13829b042e37fSmrg
138308c4a8e55Smrg# Must we lock files when doing compilation?
138318c4a8e55Smrgneed_locks=$lt_need_locks
13832b042e37fSmrg
13833bd23fbfaSmrg# Manifest tool.
13834bd23fbfaSmrgMANIFEST_TOOL=$lt_MANIFEST_TOOL
13835bd23fbfaSmrg
138368c4a8e55Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
138378c4a8e55SmrgDSYMUTIL=$lt_DSYMUTIL
13838b042e37fSmrg
138398c4a8e55Smrg# Tool to change global to local symbols on Mac OS X.
138408c4a8e55SmrgNMEDIT=$lt_NMEDIT
13841b042e37fSmrg
138428c4a8e55Smrg# Tool to manipulate fat objects and archives on Mac OS X.
138438c4a8e55SmrgLIPO=$lt_LIPO
13844b042e37fSmrg
138458c4a8e55Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
138468c4a8e55SmrgOTOOL=$lt_OTOOL
13847b042e37fSmrg
138488c4a8e55Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
138498c4a8e55SmrgOTOOL64=$lt_OTOOL64
13850b042e37fSmrg
138518c4a8e55Smrg# Old archive suffix (normally "a").
138528c4a8e55Smrglibext=$libext
13853b042e37fSmrg
138548c4a8e55Smrg# Shared library suffix (normally ".so").
138558c4a8e55Smrgshrext_cmds=$lt_shrext_cmds
13856b042e37fSmrg
138578c4a8e55Smrg# The commands to extract the exported symbol list from a shared archive.
138588c4a8e55Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
13859b042e37fSmrg
138608c4a8e55Smrg# Variables whose values should be saved in libtool wrapper scripts and
138618c4a8e55Smrg# restored at link time.
138628c4a8e55Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink
138638c4a8e55Smrg
138648c4a8e55Smrg# Do we need the "lib" prefix for modules?
138658c4a8e55Smrgneed_lib_prefix=$need_lib_prefix
138668c4a8e55Smrg
138678c4a8e55Smrg# Do we need a version for libraries?
138688c4a8e55Smrgneed_version=$need_version
138698c4a8e55Smrg
138708c4a8e55Smrg# Library versioning type.
138718c4a8e55Smrgversion_type=$version_type
138728c4a8e55Smrg
138738c4a8e55Smrg# Shared library runtime path variable.
138748c4a8e55Smrgrunpath_var=$runpath_var
13875b042e37fSmrg
138768c4a8e55Smrg# Shared library path variable.
138778c4a8e55Smrgshlibpath_var=$shlibpath_var
13878b042e37fSmrg
138798c4a8e55Smrg# Is shlibpath searched before the hard-coded library search path?
138808c4a8e55Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
13881b042e37fSmrg
138828c4a8e55Smrg# Format of library name prefix.
138838c4a8e55Smrglibname_spec=$lt_libname_spec
13884b042e37fSmrg
138858c4a8e55Smrg# List of archive names.  First name is the real one, the rest are links.
138868c4a8e55Smrg# The last name is the one that the linker finds with -lNAME
138878c4a8e55Smrglibrary_names_spec=$lt_library_names_spec
13888b042e37fSmrg
138898c4a8e55Smrg# The coded name of the library, if different from the real name.
138908c4a8e55Smrgsoname_spec=$lt_soname_spec
13891b042e37fSmrg
13892706b6b52Smrg# Permission mode override for installation of shared libraries.
13893706b6b52Smrginstall_override_mode=$lt_install_override_mode
13894706b6b52Smrg
138958c4a8e55Smrg# Command to use after installation of a shared archive.
138968c4a8e55Smrgpostinstall_cmds=$lt_postinstall_cmds
13897b042e37fSmrg
138988c4a8e55Smrg# Command to use after uninstallation of a shared archive.
138998c4a8e55Smrgpostuninstall_cmds=$lt_postuninstall_cmds
13900b042e37fSmrg
139018c4a8e55Smrg# Commands used to finish a libtool library installation in a directory.
139028c4a8e55Smrgfinish_cmds=$lt_finish_cmds
13903b042e37fSmrg
139048c4a8e55Smrg# As "finish_cmds", except a single script fragment to be evaled but
139058c4a8e55Smrg# not shown.
139068c4a8e55Smrgfinish_eval=$lt_finish_eval
13907b042e37fSmrg
139088c4a8e55Smrg# Whether we should hardcode library paths into libraries.
139098c4a8e55Smrghardcode_into_libs=$hardcode_into_libs
13910b042e37fSmrg
139118c4a8e55Smrg# Compile-time system search path for libraries.
139128c4a8e55Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13913b042e37fSmrg
139148c4a8e55Smrg# Run-time system search path for libraries.
139158c4a8e55Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13916b042e37fSmrg
139178c4a8e55Smrg# Whether dlopen is supported.
139188c4a8e55Smrgdlopen_support=$enable_dlopen
13919b042e37fSmrg
139208c4a8e55Smrg# Whether dlopen of programs is supported.
139218c4a8e55Smrgdlopen_self=$enable_dlopen_self
13922b042e37fSmrg
139238c4a8e55Smrg# Whether dlopen of statically linked programs is supported.
139248c4a8e55Smrgdlopen_self_static=$enable_dlopen_self_static
13925b042e37fSmrg
139268c4a8e55Smrg# Commands to strip libraries.
139278c4a8e55Smrgold_striplib=$lt_old_striplib
139288c4a8e55Smrgstriplib=$lt_striplib
13929b042e37fSmrg
13930b042e37fSmrg
139318c4a8e55Smrg# The linker used to build libraries.
139328c4a8e55SmrgLD=$lt_LD
13933b042e37fSmrg
13934706b6b52Smrg# How to create reloadable object files.
13935706b6b52Smrgreload_flag=$lt_reload_flag
13936706b6b52Smrgreload_cmds=$lt_reload_cmds
13937706b6b52Smrg
139388c4a8e55Smrg# Commands used to build an old-style archive.
139398c4a8e55Smrgold_archive_cmds=$lt_old_archive_cmds
13940b042e37fSmrg
139418c4a8e55Smrg# A language specific compiler.
139428c4a8e55SmrgCC=$lt_compiler
13943b042e37fSmrg
139448c4a8e55Smrg# Is the compiler the GNU compiler?
139458c4a8e55Smrgwith_gcc=$GCC
13946b042e37fSmrg
139478c4a8e55Smrg# Compiler flag to turn off builtin functions.
139488c4a8e55Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13949b042e37fSmrg
139508c4a8e55Smrg# Additional compiler flags for building library objects.
139518c4a8e55Smrgpic_flag=$lt_lt_prog_compiler_pic
13952b042e37fSmrg
13953bd23fbfaSmrg# How to pass a linker flag through the compiler.
13954bd23fbfaSmrgwl=$lt_lt_prog_compiler_wl
13955bd23fbfaSmrg
139568c4a8e55Smrg# Compiler flag to prevent dynamic linking.
139578c4a8e55Smrglink_static_flag=$lt_lt_prog_compiler_static
13958b042e37fSmrg
139598c4a8e55Smrg# Does compiler simultaneously support -c and -o options?
139608c4a8e55Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
13961b042e37fSmrg
139628c4a8e55Smrg# Whether or not to add -lc for building shared libraries.
139638c4a8e55Smrgbuild_libtool_need_lc=$archive_cmds_need_lc
13964b042e37fSmrg
139658c4a8e55Smrg# Whether or not to disallow shared libs when runtime libs are static.
139668c4a8e55Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13967b042e37fSmrg
139688c4a8e55Smrg# Compiler flag to allow reflexive dlopens.
139698c4a8e55Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13970b042e37fSmrg
139718c4a8e55Smrg# Compiler flag to generate shared objects directly from archives.
139728c4a8e55Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
13973b042e37fSmrg
139748c4a8e55Smrg# Whether the compiler copes with passing no objects directly.
139758c4a8e55Smrgcompiler_needs_object=$lt_compiler_needs_object
13976b042e37fSmrg
139778c4a8e55Smrg# Create an old-style archive from a shared archive.
139788c4a8e55Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13979b042e37fSmrg
139808c4a8e55Smrg# Create a temporary old-style archive to link instead of a shared archive.
139818c4a8e55Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13982b042e37fSmrg
139838c4a8e55Smrg# Commands used to build a shared archive.
139848c4a8e55Smrgarchive_cmds=$lt_archive_cmds
139858c4a8e55Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds
13986b042e37fSmrg
139878c4a8e55Smrg# Commands used to build a loadable module if different from building
139888c4a8e55Smrg# a shared archive.
139898c4a8e55Smrgmodule_cmds=$lt_module_cmds
139908c4a8e55Smrgmodule_expsym_cmds=$lt_module_expsym_cmds
13991b042e37fSmrg
139928c4a8e55Smrg# Whether we are building with GNU ld or not.
139938c4a8e55Smrgwith_gnu_ld=$lt_with_gnu_ld
13994b042e37fSmrg
139958c4a8e55Smrg# Flag that allows shared libraries with undefined symbols to be built.
139968c4a8e55Smrgallow_undefined_flag=$lt_allow_undefined_flag
13997b042e37fSmrg
139988c4a8e55Smrg# Flag that enforces no undefined symbols.
139998c4a8e55Smrgno_undefined_flag=$lt_no_undefined_flag
14000b042e37fSmrg
140018c4a8e55Smrg# Flag to hardcode \$libdir into a binary during linking.
140028c4a8e55Smrg# This must work even if \$libdir does not exist
140038c4a8e55Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14004b042e37fSmrg
140058c4a8e55Smrg# If ld is used when linking, flag to hardcode \$libdir into a binary
140068c4a8e55Smrg# during linking.  This must work even if \$libdir does not exist.
140078c4a8e55Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14008b042e37fSmrg
140098c4a8e55Smrg# Whether we need a single "-rpath" flag with a separated argument.
140108c4a8e55Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator
14011b042e37fSmrg
140128c4a8e55Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
140138c4a8e55Smrg# DIR into the resulting binary.
140148c4a8e55Smrghardcode_direct=$hardcode_direct
14015b042e37fSmrg
140168c4a8e55Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
140178c4a8e55Smrg# DIR into the resulting binary and the resulting library dependency is
140188c4a8e55Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
140198c4a8e55Smrg# library is relocated.
140208c4a8e55Smrghardcode_direct_absolute=$hardcode_direct_absolute
14021b042e37fSmrg
140228c4a8e55Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
140238c4a8e55Smrg# into the resulting binary.
140248c4a8e55Smrghardcode_minus_L=$hardcode_minus_L
14025b042e37fSmrg
140268c4a8e55Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
140278c4a8e55Smrg# into the resulting binary.
140288c4a8e55Smrghardcode_shlibpath_var=$hardcode_shlibpath_var
14029b042e37fSmrg
140308c4a8e55Smrg# Set to "yes" if building a shared library automatically hardcodes DIR
140318c4a8e55Smrg# into the library and all subsequent libraries and executables linked
140328c4a8e55Smrg# against it.
140338c4a8e55Smrghardcode_automatic=$hardcode_automatic
14034b042e37fSmrg
140358c4a8e55Smrg# Set to yes if linker adds runtime paths of dependent libraries
140368c4a8e55Smrg# to runtime path list.
140378c4a8e55Smrginherit_rpath=$inherit_rpath
14038b042e37fSmrg
140398c4a8e55Smrg# Whether libtool must link a program against all its dependency libraries.
140408c4a8e55Smrglink_all_deplibs=$link_all_deplibs
14041b042e37fSmrg
140428c4a8e55Smrg# Set to "yes" if exported symbols are required.
140438c4a8e55Smrgalways_export_symbols=$always_export_symbols
14044b042e37fSmrg
140458c4a8e55Smrg# The commands to list exported symbols.
140468c4a8e55Smrgexport_symbols_cmds=$lt_export_symbols_cmds
14047b042e37fSmrg
140488c4a8e55Smrg# Symbols that should not be listed in the preloaded symbols.
140498c4a8e55Smrgexclude_expsyms=$lt_exclude_expsyms
14050b042e37fSmrg
140518c4a8e55Smrg# Symbols that must always be exported.
140528c4a8e55Smrginclude_expsyms=$lt_include_expsyms
14053b042e37fSmrg
140548c4a8e55Smrg# Commands necessary for linking programs (against libraries) with templates.
140558c4a8e55Smrgprelink_cmds=$lt_prelink_cmds
14056b042e37fSmrg
14057bd23fbfaSmrg# Commands necessary for finishing linking programs.
14058bd23fbfaSmrgpostlink_cmds=$lt_postlink_cmds
14059bd23fbfaSmrg
140608c4a8e55Smrg# Specify filename containing input files.
140618c4a8e55Smrgfile_list_spec=$lt_file_list_spec
14062b042e37fSmrg
140638c4a8e55Smrg# How to hardcode a shared library path into an executable.
140648c4a8e55Smrghardcode_action=$hardcode_action
14065b042e37fSmrg
140668c4a8e55Smrg# ### END LIBTOOL CONFIG
14067b042e37fSmrg
140688c4a8e55Smrg_LT_EOF
140698c4a8e55Smrg
140708c4a8e55Smrg  case $host_os in
140718c4a8e55Smrg  aix3*)
140728c4a8e55Smrg    cat <<\_LT_EOF >> "$cfgfile"
140738c4a8e55Smrg# AIX sometimes has problems with the GCC collect2 program.  For some
140748c4a8e55Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems
140758c4a8e55Smrg# vanish in a puff of smoke.
140768c4a8e55Smrgif test "X${COLLECT_NAMES+set}" != Xset; then
140778c4a8e55Smrg  COLLECT_NAMES=
140788c4a8e55Smrg  export COLLECT_NAMES
14079b042e37fSmrgfi
140808c4a8e55Smrg_LT_EOF
140818c4a8e55Smrg    ;;
140828c4a8e55Smrg  esac
14083b042e37fSmrg
140848c4a8e55Smrg
140858c4a8e55Smrgltmain="$ac_aux_dir/ltmain.sh"
14086b042e37fSmrg
14087b042e37fSmrg
140888c4a8e55Smrg  # We use sed instead of cat because bash on DJGPP gets confused if
140898c4a8e55Smrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
140908c4a8e55Smrg  # text mode, it properly converts lines to CR/LF.  This bash problem
140918c4a8e55Smrg  # is reportedly fixed, but why not run on old versions too?
14092bd23fbfaSmrg  sed '$q' "$ltmain" >> "$cfgfile" \
14093bd23fbfaSmrg     || (rm -f "$cfgfile"; exit 1)
14094bd23fbfaSmrg
14095bd23fbfaSmrg  if test x"$xsi_shell" = xyes; then
14096bd23fbfaSmrg  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14097bd23fbfaSmrgfunc_dirname ()\
14098bd23fbfaSmrg{\
14099bd23fbfaSmrg\    case ${1} in\
14100bd23fbfaSmrg\      */*) func_dirname_result="${1%/*}${2}" ;;\
14101bd23fbfaSmrg\      *  ) func_dirname_result="${3}" ;;\
14102bd23fbfaSmrg\    esac\
14103bd23fbfaSmrg} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14104bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14105bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14106bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14107bd23fbfaSmrg
14108bd23fbfaSmrg
14109bd23fbfaSmrg  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14110bd23fbfaSmrgfunc_basename ()\
14111bd23fbfaSmrg{\
14112bd23fbfaSmrg\    func_basename_result="${1##*/}"\
14113bd23fbfaSmrg} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14114bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14115bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14116bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14117bd23fbfaSmrg
14118bd23fbfaSmrg
14119bd23fbfaSmrg  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14120bd23fbfaSmrgfunc_dirname_and_basename ()\
14121bd23fbfaSmrg{\
14122bd23fbfaSmrg\    case ${1} in\
14123bd23fbfaSmrg\      */*) func_dirname_result="${1%/*}${2}" ;;\
14124bd23fbfaSmrg\      *  ) func_dirname_result="${3}" ;;\
14125bd23fbfaSmrg\    esac\
14126bd23fbfaSmrg\    func_basename_result="${1##*/}"\
14127bd23fbfaSmrg} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14128bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14129bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14130bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14131bd23fbfaSmrg
14132bd23fbfaSmrg
14133bd23fbfaSmrg  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14134bd23fbfaSmrgfunc_stripname ()\
14135bd23fbfaSmrg{\
14136bd23fbfaSmrg\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14137bd23fbfaSmrg\    # positional parameters, so assign one to ordinary parameter first.\
14138bd23fbfaSmrg\    func_stripname_result=${3}\
14139bd23fbfaSmrg\    func_stripname_result=${func_stripname_result#"${1}"}\
14140bd23fbfaSmrg\    func_stripname_result=${func_stripname_result%"${2}"}\
14141bd23fbfaSmrg} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14142bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14143bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14144bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14145bd23fbfaSmrg
14146bd23fbfaSmrg
14147bd23fbfaSmrg  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14148bd23fbfaSmrgfunc_split_long_opt ()\
14149bd23fbfaSmrg{\
14150bd23fbfaSmrg\    func_split_long_opt_name=${1%%=*}\
14151bd23fbfaSmrg\    func_split_long_opt_arg=${1#*=}\
14152bd23fbfaSmrg} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14153bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14154bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14155bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14156bd23fbfaSmrg
14157bd23fbfaSmrg
14158bd23fbfaSmrg  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14159bd23fbfaSmrgfunc_split_short_opt ()\
14160bd23fbfaSmrg{\
14161bd23fbfaSmrg\    func_split_short_opt_arg=${1#??}\
14162bd23fbfaSmrg\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14163bd23fbfaSmrg} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14164bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14165bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14166bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14167bd23fbfaSmrg
14168bd23fbfaSmrg
14169bd23fbfaSmrg  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14170bd23fbfaSmrgfunc_lo2o ()\
14171bd23fbfaSmrg{\
14172bd23fbfaSmrg\    case ${1} in\
14173bd23fbfaSmrg\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14174bd23fbfaSmrg\      *)    func_lo2o_result=${1} ;;\
14175bd23fbfaSmrg\    esac\
14176bd23fbfaSmrg} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14177bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14178bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14179bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14180bd23fbfaSmrg
14181bd23fbfaSmrg
14182bd23fbfaSmrg  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14183bd23fbfaSmrgfunc_xform ()\
14184bd23fbfaSmrg{\
14185bd23fbfaSmrg    func_xform_result=${1%.*}.lo\
14186bd23fbfaSmrg} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14187bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14188bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14189bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14190bd23fbfaSmrg
14191bd23fbfaSmrg
14192bd23fbfaSmrg  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14193bd23fbfaSmrgfunc_arith ()\
14194bd23fbfaSmrg{\
14195bd23fbfaSmrg    func_arith_result=$(( $* ))\
14196bd23fbfaSmrg} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14197bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14198bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14199bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14200bd23fbfaSmrg
14201bd23fbfaSmrg
14202bd23fbfaSmrg  sed -e '/^func_len ()$/,/^} # func_len /c\
14203bd23fbfaSmrgfunc_len ()\
14204bd23fbfaSmrg{\
14205bd23fbfaSmrg    func_len_result=${#1}\
14206bd23fbfaSmrg} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14207bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14208bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14209bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14210bd23fbfaSmrg
14211bd23fbfaSmrgfi
14212bd23fbfaSmrg
14213bd23fbfaSmrgif test x"$lt_shell_append" = xyes; then
14214bd23fbfaSmrg  sed -e '/^func_append ()$/,/^} # func_append /c\
14215bd23fbfaSmrgfunc_append ()\
14216bd23fbfaSmrg{\
14217bd23fbfaSmrg    eval "${1}+=\\${2}"\
14218bd23fbfaSmrg} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14219bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14220bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14221bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14222bd23fbfaSmrg
14223bd23fbfaSmrg
14224bd23fbfaSmrg  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14225bd23fbfaSmrgfunc_append_quoted ()\
14226bd23fbfaSmrg{\
14227bd23fbfaSmrg\    func_quote_for_eval "${2}"\
14228bd23fbfaSmrg\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14229bd23fbfaSmrg} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14230bd23fbfaSmrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
14231bd23fbfaSmrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14232bd23fbfaSmrgtest 0 -eq $? || _lt_function_replace_fail=:
14233bd23fbfaSmrg
14234bd23fbfaSmrg
14235bd23fbfaSmrg  # Save a `func_append' function call where possible by direct use of '+='
14236bd23fbfaSmrg  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14237bd23fbfaSmrg    && mv -f "$cfgfile.tmp" "$cfgfile" \
14238bd23fbfaSmrg      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14239bd23fbfaSmrg  test 0 -eq $? || _lt_function_replace_fail=:
14240bd23fbfaSmrgelse
14241bd23fbfaSmrg  # Save a `func_append' function call even when '+=' is not available
14242bd23fbfaSmrg  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14243bd23fbfaSmrg    && mv -f "$cfgfile.tmp" "$cfgfile" \
14244bd23fbfaSmrg      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14245bd23fbfaSmrg  test 0 -eq $? || _lt_function_replace_fail=:
14246bd23fbfaSmrgfi
14247bd23fbfaSmrg
14248bd23fbfaSmrgif test x"$_lt_function_replace_fail" = x":"; then
14249bd23fbfaSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14250bd23fbfaSmrg$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14251bd23fbfaSmrgfi
14252bd23fbfaSmrg
14253bd23fbfaSmrg
14254bd23fbfaSmrg   mv -f "$cfgfile" "$ofile" ||
142558c4a8e55Smrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
142568c4a8e55Smrg  chmod +x "$ofile"
142578c4a8e55Smrg
14258b042e37fSmrg ;;
14259b042e37fSmrg
14260b042e37fSmrg  esac
14261b042e37fSmrgdone # for ac_tag
14262b042e37fSmrg
14263b042e37fSmrg
14264706b6b52Smrgas_fn_exit 0
14265b042e37fSmrg_ACEOF
14266b042e37fSmrgac_clean_files=$ac_clean_files_save
14267b042e37fSmrg
142688c4a8e55Smrgtest $ac_write_fail = 0 ||
14269706b6b52Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
142708c4a8e55Smrg
14271b042e37fSmrg
14272b042e37fSmrg# configure is writing to config.log, and then calls config.status.
14273b042e37fSmrg# config.status does its own redirection, appending to config.log.
14274b042e37fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
14275b042e37fSmrg# by configure, so config.status won't be able to write to it; its
14276b042e37fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
14277b042e37fSmrg# effectively closing config.log, so it can be properly (re)opened and
14278b042e37fSmrg# appended to by config.status.  When coming back to configure, we
14279b042e37fSmrg# need to make the FD available again.
14280b042e37fSmrgif test "$no_create" != yes; then
14281b042e37fSmrg  ac_cs_success=:
14282b042e37fSmrg  ac_config_status_args=
14283b042e37fSmrg  test "$silent" = yes &&
14284b042e37fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
14285b042e37fSmrg  exec 5>/dev/null
14286b042e37fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14287b042e37fSmrg  exec 5>>config.log
14288b042e37fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14289b042e37fSmrg  # would make configure fail if this is the last instruction.
14290706b6b52Smrg  $ac_cs_success || as_fn_exit 1
14291b042e37fSmrgfi
142928c4a8e55Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14293706b6b52Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
142948c4a8e55Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
142958c4a8e55Smrgfi
14296b042e37fSmrg
14297