1dfe64dd3Smacallan#! /bin/sh
2dfe64dd3Smacallan# Guess values for system-dependent variables and create Makefiles.
3dfe64dd3Smacallan# Generated by GNU Autoconf 2.67 for xf86-video-xgi 1.6.0.
4dfe64dd3Smacallan#
5dfe64dd3Smacallan# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6dfe64dd3Smacallan#
7dfe64dd3Smacallan#
8dfe64dd3Smacallan# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9dfe64dd3Smacallan# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10dfe64dd3Smacallan# Foundation, Inc.
11dfe64dd3Smacallan#
12dfe64dd3Smacallan#
13dfe64dd3Smacallan# This configure script is free software; the Free Software Foundation
14dfe64dd3Smacallan# gives unlimited permission to copy, distribute and modify it.
15dfe64dd3Smacallan## -------------------- ##
16dfe64dd3Smacallan## M4sh Initialization. ##
17dfe64dd3Smacallan## -------------------- ##
18dfe64dd3Smacallan
19dfe64dd3Smacallan# Be more Bourne compatible
20dfe64dd3SmacallanDUALCASE=1; export DUALCASE # for MKS sh
21dfe64dd3Smacallanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22dfe64dd3Smacallan  emulate sh
23dfe64dd3Smacallan  NULLCMD=:
24dfe64dd3Smacallan  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25dfe64dd3Smacallan  # is contrary to our usage.  Disable this feature.
26dfe64dd3Smacallan  alias -g '${1+"$@"}'='"$@"'
27dfe64dd3Smacallan  setopt NO_GLOB_SUBST
28dfe64dd3Smacallanelse
29dfe64dd3Smacallan  case `(set -o) 2>/dev/null` in #(
30dfe64dd3Smacallan  *posix*) :
31dfe64dd3Smacallan    set -o posix ;; #(
32dfe64dd3Smacallan  *) :
33dfe64dd3Smacallan     ;;
34dfe64dd3Smacallanesac
35dfe64dd3Smacallanfi
36dfe64dd3Smacallan
37dfe64dd3Smacallan
38dfe64dd3Smacallanas_nl='
39dfe64dd3Smacallan'
40dfe64dd3Smacallanexport as_nl
41dfe64dd3Smacallan# Printing a long string crashes Solaris 7 /usr/bin/printf.
42dfe64dd3Smacallanas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43dfe64dd3Smacallanas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44dfe64dd3Smacallanas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45dfe64dd3Smacallan# Prefer a ksh shell builtin over an external printf program on Solaris,
46dfe64dd3Smacallan# but without wasting forks for bash or zsh.
47dfe64dd3Smacallanif test -z "$BASH_VERSION$ZSH_VERSION" \
48dfe64dd3Smacallan    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49dfe64dd3Smacallan  as_echo='print -r --'
50dfe64dd3Smacallan  as_echo_n='print -rn --'
51dfe64dd3Smacallanelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52dfe64dd3Smacallan  as_echo='printf %s\n'
53dfe64dd3Smacallan  as_echo_n='printf %s'
54dfe64dd3Smacallanelse
55dfe64dd3Smacallan  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56dfe64dd3Smacallan    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57dfe64dd3Smacallan    as_echo_n='/usr/ucb/echo -n'
58dfe64dd3Smacallan  else
59dfe64dd3Smacallan    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60dfe64dd3Smacallan    as_echo_n_body='eval
61dfe64dd3Smacallan      arg=$1;
62dfe64dd3Smacallan      case $arg in #(
63dfe64dd3Smacallan      *"$as_nl"*)
64dfe64dd3Smacallan	expr "X$arg" : "X\\(.*\\)$as_nl";
65dfe64dd3Smacallan	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66dfe64dd3Smacallan      esac;
67dfe64dd3Smacallan      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68dfe64dd3Smacallan    '
69dfe64dd3Smacallan    export as_echo_n_body
70dfe64dd3Smacallan    as_echo_n='sh -c $as_echo_n_body as_echo'
71dfe64dd3Smacallan  fi
72dfe64dd3Smacallan  export as_echo_body
73dfe64dd3Smacallan  as_echo='sh -c $as_echo_body as_echo'
74dfe64dd3Smacallanfi
75dfe64dd3Smacallan
76dfe64dd3Smacallan# The user is always right.
77dfe64dd3Smacallanif test "${PATH_SEPARATOR+set}" != set; then
78dfe64dd3Smacallan  PATH_SEPARATOR=:
79dfe64dd3Smacallan  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80dfe64dd3Smacallan    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81dfe64dd3Smacallan      PATH_SEPARATOR=';'
82dfe64dd3Smacallan  }
83dfe64dd3Smacallanfi
84dfe64dd3Smacallan
85dfe64dd3Smacallan
86dfe64dd3Smacallan# IFS
87dfe64dd3Smacallan# We need space, tab and new line, in precisely that order.  Quoting is
88dfe64dd3Smacallan# there to prevent editors from complaining about space-tab.
89dfe64dd3Smacallan# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90dfe64dd3Smacallan# splitting by setting IFS to empty value.)
91dfe64dd3SmacallanIFS=" ""	$as_nl"
92dfe64dd3Smacallan
93dfe64dd3Smacallan# Find who we are.  Look in the path if we contain no directory separator.
94dfe64dd3Smacallancase $0 in #((
95dfe64dd3Smacallan  *[\\/]* ) as_myself=$0 ;;
96dfe64dd3Smacallan  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97dfe64dd3Smacallanfor as_dir in $PATH
98dfe64dd3Smacallando
99dfe64dd3Smacallan  IFS=$as_save_IFS
100dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
101dfe64dd3Smacallan    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102dfe64dd3Smacallan  done
103dfe64dd3SmacallanIFS=$as_save_IFS
104dfe64dd3Smacallan
105dfe64dd3Smacallan     ;;
106dfe64dd3Smacallanesac
107dfe64dd3Smacallan# We did not find ourselves, most probably we were run as `sh COMMAND'
108dfe64dd3Smacallan# in which case we are not to be found in the path.
109dfe64dd3Smacallanif test "x$as_myself" = x; then
110dfe64dd3Smacallan  as_myself=$0
111dfe64dd3Smacallanfi
112dfe64dd3Smacallanif test ! -f "$as_myself"; then
113dfe64dd3Smacallan  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114dfe64dd3Smacallan  exit 1
115dfe64dd3Smacallanfi
116dfe64dd3Smacallan
117dfe64dd3Smacallan# Unset variables that we do not need and which cause bugs (e.g. in
118dfe64dd3Smacallan# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119dfe64dd3Smacallan# suppresses any "Segmentation fault" message there.  '((' could
120dfe64dd3Smacallan# trigger a bug in pdksh 5.2.14.
121dfe64dd3Smacallanfor as_var in BASH_ENV ENV MAIL MAILPATH
122dfe64dd3Smacallando eval test x\${$as_var+set} = xset \
123dfe64dd3Smacallan  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124dfe64dd3Smacallandone
125dfe64dd3SmacallanPS1='$ '
126dfe64dd3SmacallanPS2='> '
127dfe64dd3SmacallanPS4='+ '
128dfe64dd3Smacallan
129dfe64dd3Smacallan# NLS nuisances.
130dfe64dd3SmacallanLC_ALL=C
131dfe64dd3Smacallanexport LC_ALL
132dfe64dd3SmacallanLANGUAGE=C
133dfe64dd3Smacallanexport LANGUAGE
134dfe64dd3Smacallan
135dfe64dd3Smacallan# CDPATH.
136dfe64dd3Smacallan(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137dfe64dd3Smacallan
138dfe64dd3Smacallanif test "x$CONFIG_SHELL" = x; then
139dfe64dd3Smacallan  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140dfe64dd3Smacallan  emulate sh
141dfe64dd3Smacallan  NULLCMD=:
142dfe64dd3Smacallan  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143dfe64dd3Smacallan  # is contrary to our usage.  Disable this feature.
144dfe64dd3Smacallan  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145dfe64dd3Smacallan  setopt NO_GLOB_SUBST
146dfe64dd3Smacallanelse
147dfe64dd3Smacallan  case \`(set -o) 2>/dev/null\` in #(
148dfe64dd3Smacallan  *posix*) :
149dfe64dd3Smacallan    set -o posix ;; #(
150dfe64dd3Smacallan  *) :
151dfe64dd3Smacallan     ;;
152dfe64dd3Smacallanesac
153dfe64dd3Smacallanfi
154dfe64dd3Smacallan"
155dfe64dd3Smacallan  as_required="as_fn_return () { (exit \$1); }
156dfe64dd3Smacallanas_fn_success () { as_fn_return 0; }
157dfe64dd3Smacallanas_fn_failure () { as_fn_return 1; }
158dfe64dd3Smacallanas_fn_ret_success () { return 0; }
159dfe64dd3Smacallanas_fn_ret_failure () { return 1; }
160dfe64dd3Smacallan
161dfe64dd3Smacallanexitcode=0
162dfe64dd3Smacallanas_fn_success || { exitcode=1; echo as_fn_success failed.; }
163dfe64dd3Smacallanas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164dfe64dd3Smacallanas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165dfe64dd3Smacallanas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166dfe64dd3Smacallanif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167dfe64dd3Smacallan
168dfe64dd3Smacallanelse
169dfe64dd3Smacallan  exitcode=1; echo positional parameters were not saved.
170dfe64dd3Smacallanfi
171dfe64dd3Smacallantest x\$exitcode = x0 || exit 1"
172dfe64dd3Smacallan  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173dfe64dd3Smacallan  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174dfe64dd3Smacallan  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175dfe64dd3Smacallan  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176dfe64dd3Smacallantest \$(( 1 + 1 )) = 2 || exit 1"
177dfe64dd3Smacallan  if (eval "$as_required") 2>/dev/null; then :
178dfe64dd3Smacallan  as_have_required=yes
179dfe64dd3Smacallanelse
180dfe64dd3Smacallan  as_have_required=no
181dfe64dd3Smacallanfi
182dfe64dd3Smacallan  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183dfe64dd3Smacallan
184dfe64dd3Smacallanelse
185dfe64dd3Smacallan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186dfe64dd3Smacallanas_found=false
187dfe64dd3Smacallanfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188dfe64dd3Smacallando
189dfe64dd3Smacallan  IFS=$as_save_IFS
190dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
191dfe64dd3Smacallan  as_found=:
192dfe64dd3Smacallan  case $as_dir in #(
193dfe64dd3Smacallan	 /*)
194dfe64dd3Smacallan	   for as_base in sh bash ksh sh5; do
195dfe64dd3Smacallan	     # Try only shells that exist, to save several forks.
196dfe64dd3Smacallan	     as_shell=$as_dir/$as_base
197dfe64dd3Smacallan	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198dfe64dd3Smacallan		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199dfe64dd3Smacallan  CONFIG_SHELL=$as_shell as_have_required=yes
200dfe64dd3Smacallan		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201dfe64dd3Smacallan  break 2
202dfe64dd3Smacallanfi
203dfe64dd3Smacallanfi
204dfe64dd3Smacallan	   done;;
205dfe64dd3Smacallan       esac
206dfe64dd3Smacallan  as_found=false
207dfe64dd3Smacallandone
208dfe64dd3Smacallan$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209dfe64dd3Smacallan	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210dfe64dd3Smacallan  CONFIG_SHELL=$SHELL as_have_required=yes
211dfe64dd3Smacallanfi; }
212dfe64dd3SmacallanIFS=$as_save_IFS
213dfe64dd3Smacallan
214dfe64dd3Smacallan
215dfe64dd3Smacallan      if test "x$CONFIG_SHELL" != x; then :
216dfe64dd3Smacallan  # We cannot yet assume a decent shell, so we have to provide a
217dfe64dd3Smacallan	# neutralization value for shells without unset; and this also
218dfe64dd3Smacallan	# works around shells that cannot unset nonexistent variables.
219dfe64dd3Smacallan	BASH_ENV=/dev/null
220dfe64dd3Smacallan	ENV=/dev/null
221dfe64dd3Smacallan	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222dfe64dd3Smacallan	export CONFIG_SHELL
223dfe64dd3Smacallan	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224dfe64dd3Smacallanfi
225dfe64dd3Smacallan
226dfe64dd3Smacallan    if test x$as_have_required = xno; then :
227dfe64dd3Smacallan  $as_echo "$0: This script requires a shell more modern than all"
228dfe64dd3Smacallan  $as_echo "$0: the shells that I found on your system."
229dfe64dd3Smacallan  if test x${ZSH_VERSION+set} = xset ; then
230dfe64dd3Smacallan    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231dfe64dd3Smacallan    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232dfe64dd3Smacallan  else
233dfe64dd3Smacallan    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234dfe64dd3Smacallan$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235dfe64dd3Smacallan$0: about your system, including any error possibly output
236dfe64dd3Smacallan$0: before this message. Then install a modern shell, or
237dfe64dd3Smacallan$0: manually run the script under such a shell if you do
238dfe64dd3Smacallan$0: have one."
239dfe64dd3Smacallan  fi
240dfe64dd3Smacallan  exit 1
241dfe64dd3Smacallanfi
242dfe64dd3Smacallanfi
243dfe64dd3Smacallanfi
244dfe64dd3SmacallanSHELL=${CONFIG_SHELL-/bin/sh}
245dfe64dd3Smacallanexport SHELL
246dfe64dd3Smacallan# Unset more variables known to interfere with behavior of common tools.
247dfe64dd3SmacallanCLICOLOR_FORCE= GREP_OPTIONS=
248dfe64dd3Smacallanunset CLICOLOR_FORCE GREP_OPTIONS
249dfe64dd3Smacallan
250dfe64dd3Smacallan## --------------------- ##
251dfe64dd3Smacallan## M4sh Shell Functions. ##
252dfe64dd3Smacallan## --------------------- ##
253dfe64dd3Smacallan# as_fn_unset VAR
254dfe64dd3Smacallan# ---------------
255dfe64dd3Smacallan# Portably unset VAR.
256dfe64dd3Smacallanas_fn_unset ()
257dfe64dd3Smacallan{
258dfe64dd3Smacallan  { eval $1=; unset $1;}
259dfe64dd3Smacallan}
260dfe64dd3Smacallanas_unset=as_fn_unset
261dfe64dd3Smacallan
262dfe64dd3Smacallan# as_fn_set_status STATUS
263dfe64dd3Smacallan# -----------------------
264dfe64dd3Smacallan# Set $? to STATUS, without forking.
265dfe64dd3Smacallanas_fn_set_status ()
266dfe64dd3Smacallan{
267dfe64dd3Smacallan  return $1
268dfe64dd3Smacallan} # as_fn_set_status
269dfe64dd3Smacallan
270dfe64dd3Smacallan# as_fn_exit STATUS
271dfe64dd3Smacallan# -----------------
272dfe64dd3Smacallan# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273dfe64dd3Smacallanas_fn_exit ()
274dfe64dd3Smacallan{
275dfe64dd3Smacallan  set +e
276dfe64dd3Smacallan  as_fn_set_status $1
277dfe64dd3Smacallan  exit $1
278dfe64dd3Smacallan} # as_fn_exit
279dfe64dd3Smacallan
280dfe64dd3Smacallan# as_fn_mkdir_p
281dfe64dd3Smacallan# -------------
282dfe64dd3Smacallan# Create "$as_dir" as a directory, including parents if necessary.
283dfe64dd3Smacallanas_fn_mkdir_p ()
284dfe64dd3Smacallan{
285dfe64dd3Smacallan
286dfe64dd3Smacallan  case $as_dir in #(
287dfe64dd3Smacallan  -*) as_dir=./$as_dir;;
288dfe64dd3Smacallan  esac
289dfe64dd3Smacallan  test -d "$as_dir" || eval $as_mkdir_p || {
290dfe64dd3Smacallan    as_dirs=
291dfe64dd3Smacallan    while :; do
292dfe64dd3Smacallan      case $as_dir in #(
293dfe64dd3Smacallan      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294dfe64dd3Smacallan      *) as_qdir=$as_dir;;
295dfe64dd3Smacallan      esac
296dfe64dd3Smacallan      as_dirs="'$as_qdir' $as_dirs"
297dfe64dd3Smacallan      as_dir=`$as_dirname -- "$as_dir" ||
298dfe64dd3Smacallan$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299dfe64dd3Smacallan	 X"$as_dir" : 'X\(//\)[^/]' \| \
300dfe64dd3Smacallan	 X"$as_dir" : 'X\(//\)$' \| \
301dfe64dd3Smacallan	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302dfe64dd3Smacallan$as_echo X"$as_dir" |
303dfe64dd3Smacallan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304dfe64dd3Smacallan	    s//\1/
305dfe64dd3Smacallan	    q
306dfe64dd3Smacallan	  }
307dfe64dd3Smacallan	  /^X\(\/\/\)[^/].*/{
308dfe64dd3Smacallan	    s//\1/
309dfe64dd3Smacallan	    q
310dfe64dd3Smacallan	  }
311dfe64dd3Smacallan	  /^X\(\/\/\)$/{
312dfe64dd3Smacallan	    s//\1/
313dfe64dd3Smacallan	    q
314dfe64dd3Smacallan	  }
315dfe64dd3Smacallan	  /^X\(\/\).*/{
316dfe64dd3Smacallan	    s//\1/
317dfe64dd3Smacallan	    q
318dfe64dd3Smacallan	  }
319dfe64dd3Smacallan	  s/.*/./; q'`
320dfe64dd3Smacallan      test -d "$as_dir" && break
321dfe64dd3Smacallan    done
322dfe64dd3Smacallan    test -z "$as_dirs" || eval "mkdir $as_dirs"
323dfe64dd3Smacallan  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324dfe64dd3Smacallan
325dfe64dd3Smacallan
326dfe64dd3Smacallan} # as_fn_mkdir_p
327dfe64dd3Smacallan# as_fn_append VAR VALUE
328dfe64dd3Smacallan# ----------------------
329dfe64dd3Smacallan# Append the text in VALUE to the end of the definition contained in VAR. Take
330dfe64dd3Smacallan# advantage of any shell optimizations that allow amortized linear growth over
331dfe64dd3Smacallan# repeated appends, instead of the typical quadratic growth present in naive
332dfe64dd3Smacallan# implementations.
333dfe64dd3Smacallanif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334dfe64dd3Smacallan  eval 'as_fn_append ()
335dfe64dd3Smacallan  {
336dfe64dd3Smacallan    eval $1+=\$2
337dfe64dd3Smacallan  }'
338dfe64dd3Smacallanelse
339dfe64dd3Smacallan  as_fn_append ()
340dfe64dd3Smacallan  {
341dfe64dd3Smacallan    eval $1=\$$1\$2
342dfe64dd3Smacallan  }
343dfe64dd3Smacallanfi # as_fn_append
344dfe64dd3Smacallan
345dfe64dd3Smacallan# as_fn_arith ARG...
346dfe64dd3Smacallan# ------------------
347dfe64dd3Smacallan# Perform arithmetic evaluation on the ARGs, and store the result in the
348dfe64dd3Smacallan# global $as_val. Take advantage of shells that can avoid forks. The arguments
349dfe64dd3Smacallan# must be portable across $(()) and expr.
350dfe64dd3Smacallanif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351dfe64dd3Smacallan  eval 'as_fn_arith ()
352dfe64dd3Smacallan  {
353dfe64dd3Smacallan    as_val=$(( $* ))
354dfe64dd3Smacallan  }'
355dfe64dd3Smacallanelse
356dfe64dd3Smacallan  as_fn_arith ()
357dfe64dd3Smacallan  {
358dfe64dd3Smacallan    as_val=`expr "$@" || test $? -eq 1`
359dfe64dd3Smacallan  }
360dfe64dd3Smacallanfi # as_fn_arith
361dfe64dd3Smacallan
362dfe64dd3Smacallan
363dfe64dd3Smacallan# as_fn_error STATUS ERROR [LINENO LOG_FD]
364dfe64dd3Smacallan# ----------------------------------------
365dfe64dd3Smacallan# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366dfe64dd3Smacallan# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367dfe64dd3Smacallan# script with STATUS, using 1 if that was 0.
368dfe64dd3Smacallanas_fn_error ()
369dfe64dd3Smacallan{
370dfe64dd3Smacallan  as_status=$1; test $as_status -eq 0 && as_status=1
371dfe64dd3Smacallan  if test "$4"; then
372dfe64dd3Smacallan    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374dfe64dd3Smacallan  fi
375dfe64dd3Smacallan  $as_echo "$as_me: error: $2" >&2
376dfe64dd3Smacallan  as_fn_exit $as_status
377dfe64dd3Smacallan} # as_fn_error
378dfe64dd3Smacallan
379dfe64dd3Smacallanif expr a : '\(a\)' >/dev/null 2>&1 &&
380dfe64dd3Smacallan   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381dfe64dd3Smacallan  as_expr=expr
382dfe64dd3Smacallanelse
383dfe64dd3Smacallan  as_expr=false
384dfe64dd3Smacallanfi
385dfe64dd3Smacallan
386dfe64dd3Smacallanif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387dfe64dd3Smacallan  as_basename=basename
388dfe64dd3Smacallanelse
389dfe64dd3Smacallan  as_basename=false
390dfe64dd3Smacallanfi
391dfe64dd3Smacallan
392dfe64dd3Smacallanif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393dfe64dd3Smacallan  as_dirname=dirname
394dfe64dd3Smacallanelse
395dfe64dd3Smacallan  as_dirname=false
396dfe64dd3Smacallanfi
397dfe64dd3Smacallan
398dfe64dd3Smacallanas_me=`$as_basename -- "$0" ||
399dfe64dd3Smacallan$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400dfe64dd3Smacallan	 X"$0" : 'X\(//\)$' \| \
401dfe64dd3Smacallan	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402dfe64dd3Smacallan$as_echo X/"$0" |
403dfe64dd3Smacallan    sed '/^.*\/\([^/][^/]*\)\/*$/{
404dfe64dd3Smacallan	    s//\1/
405dfe64dd3Smacallan	    q
406dfe64dd3Smacallan	  }
407dfe64dd3Smacallan	  /^X\/\(\/\/\)$/{
408dfe64dd3Smacallan	    s//\1/
409dfe64dd3Smacallan	    q
410dfe64dd3Smacallan	  }
411dfe64dd3Smacallan	  /^X\/\(\/\).*/{
412dfe64dd3Smacallan	    s//\1/
413dfe64dd3Smacallan	    q
414dfe64dd3Smacallan	  }
415dfe64dd3Smacallan	  s/.*/./; q'`
416dfe64dd3Smacallan
417dfe64dd3Smacallan# Avoid depending upon Character Ranges.
418dfe64dd3Smacallanas_cr_letters='abcdefghijklmnopqrstuvwxyz'
419dfe64dd3Smacallanas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420dfe64dd3Smacallanas_cr_Letters=$as_cr_letters$as_cr_LETTERS
421dfe64dd3Smacallanas_cr_digits='0123456789'
422dfe64dd3Smacallanas_cr_alnum=$as_cr_Letters$as_cr_digits
423dfe64dd3Smacallan
424dfe64dd3Smacallan
425dfe64dd3Smacallan  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426dfe64dd3Smacallan  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427dfe64dd3Smacallan  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428dfe64dd3Smacallan  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429dfe64dd3Smacallan  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430dfe64dd3Smacallan  sed -n '
431dfe64dd3Smacallan    p
432dfe64dd3Smacallan    /[$]LINENO/=
433dfe64dd3Smacallan  ' <$as_myself |
434dfe64dd3Smacallan    sed '
435dfe64dd3Smacallan      s/[$]LINENO.*/&-/
436dfe64dd3Smacallan      t lineno
437dfe64dd3Smacallan      b
438dfe64dd3Smacallan      :lineno
439dfe64dd3Smacallan      N
440dfe64dd3Smacallan      :loop
441dfe64dd3Smacallan      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442dfe64dd3Smacallan      t loop
443dfe64dd3Smacallan      s/-\n.*//
444dfe64dd3Smacallan    ' >$as_me.lineno &&
445dfe64dd3Smacallan  chmod +x "$as_me.lineno" ||
446dfe64dd3Smacallan    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447dfe64dd3Smacallan
448dfe64dd3Smacallan  # Don't try to exec as it changes $[0], causing all sort of problems
449dfe64dd3Smacallan  # (the dirname of $[0] is not the place where we might find the
450dfe64dd3Smacallan  # original and so on.  Autoconf is especially sensitive to this).
451dfe64dd3Smacallan  . "./$as_me.lineno"
452dfe64dd3Smacallan  # Exit status is that of the last command.
453dfe64dd3Smacallan  exit
454dfe64dd3Smacallan}
455dfe64dd3Smacallan
456dfe64dd3SmacallanECHO_C= ECHO_N= ECHO_T=
457dfe64dd3Smacallancase `echo -n x` in #(((((
458dfe64dd3Smacallan-n*)
459dfe64dd3Smacallan  case `echo 'xy\c'` in
460dfe64dd3Smacallan  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461dfe64dd3Smacallan  xy)  ECHO_C='\c';;
462dfe64dd3Smacallan  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463dfe64dd3Smacallan       ECHO_T='	';;
464dfe64dd3Smacallan  esac;;
465dfe64dd3Smacallan*)
466dfe64dd3Smacallan  ECHO_N='-n';;
467dfe64dd3Smacallanesac
468dfe64dd3Smacallan
469dfe64dd3Smacallanrm -f conf$$ conf$$.exe conf$$.file
470dfe64dd3Smacallanif test -d conf$$.dir; then
471dfe64dd3Smacallan  rm -f conf$$.dir/conf$$.file
472dfe64dd3Smacallanelse
473dfe64dd3Smacallan  rm -f conf$$.dir
474dfe64dd3Smacallan  mkdir conf$$.dir 2>/dev/null
475dfe64dd3Smacallanfi
476dfe64dd3Smacallanif (echo >conf$$.file) 2>/dev/null; then
477dfe64dd3Smacallan  if ln -s conf$$.file conf$$ 2>/dev/null; then
478dfe64dd3Smacallan    as_ln_s='ln -s'
479dfe64dd3Smacallan    # ... but there are two gotchas:
480dfe64dd3Smacallan    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481dfe64dd3Smacallan    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482dfe64dd3Smacallan    # In both cases, we have to default to `cp -p'.
483dfe64dd3Smacallan    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484dfe64dd3Smacallan      as_ln_s='cp -p'
485dfe64dd3Smacallan  elif ln conf$$.file conf$$ 2>/dev/null; then
486dfe64dd3Smacallan    as_ln_s=ln
487dfe64dd3Smacallan  else
488dfe64dd3Smacallan    as_ln_s='cp -p'
489dfe64dd3Smacallan  fi
490dfe64dd3Smacallanelse
491dfe64dd3Smacallan  as_ln_s='cp -p'
492dfe64dd3Smacallanfi
493dfe64dd3Smacallanrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494dfe64dd3Smacallanrmdir conf$$.dir 2>/dev/null
495dfe64dd3Smacallan
496dfe64dd3Smacallanif mkdir -p . 2>/dev/null; then
497dfe64dd3Smacallan  as_mkdir_p='mkdir -p "$as_dir"'
498dfe64dd3Smacallanelse
499dfe64dd3Smacallan  test -d ./-p && rmdir ./-p
500dfe64dd3Smacallan  as_mkdir_p=false
501dfe64dd3Smacallanfi
502dfe64dd3Smacallan
503dfe64dd3Smacallanif test -x / >/dev/null 2>&1; then
504dfe64dd3Smacallan  as_test_x='test -x'
505dfe64dd3Smacallanelse
506dfe64dd3Smacallan  if ls -dL / >/dev/null 2>&1; then
507dfe64dd3Smacallan    as_ls_L_option=L
508dfe64dd3Smacallan  else
509dfe64dd3Smacallan    as_ls_L_option=
510dfe64dd3Smacallan  fi
511dfe64dd3Smacallan  as_test_x='
512dfe64dd3Smacallan    eval sh -c '\''
513dfe64dd3Smacallan      if test -d "$1"; then
514dfe64dd3Smacallan	test -d "$1/.";
515dfe64dd3Smacallan      else
516dfe64dd3Smacallan	case $1 in #(
517dfe64dd3Smacallan	-*)set "./$1";;
518dfe64dd3Smacallan	esac;
519dfe64dd3Smacallan	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520dfe64dd3Smacallan	???[sx]*):;;*)false;;esac;fi
521dfe64dd3Smacallan    '\'' sh
522dfe64dd3Smacallan  '
523dfe64dd3Smacallanfi
524dfe64dd3Smacallanas_executable_p=$as_test_x
525dfe64dd3Smacallan
526dfe64dd3Smacallan# Sed expression to map a string onto a valid CPP name.
527dfe64dd3Smacallanas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528dfe64dd3Smacallan
529dfe64dd3Smacallan# Sed expression to map a string onto a valid variable name.
530dfe64dd3Smacallanas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531dfe64dd3Smacallan
532dfe64dd3Smacallan
533dfe64dd3Smacallan
534dfe64dd3Smacallan# Check that we are running under the correct shell.
535dfe64dd3SmacallanSHELL=${CONFIG_SHELL-/bin/sh}
536dfe64dd3Smacallan
537dfe64dd3Smacallancase X$lt_ECHO in
538dfe64dd3SmacallanX*--fallback-echo)
539dfe64dd3Smacallan  # Remove one level of quotation (which was required for Make).
540dfe64dd3Smacallan  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541dfe64dd3Smacallan  ;;
542dfe64dd3Smacallanesac
543dfe64dd3Smacallan
544dfe64dd3SmacallanECHO=${lt_ECHO-echo}
545dfe64dd3Smacallanif test "X$1" = X--no-reexec; then
546dfe64dd3Smacallan  # Discard the --no-reexec flag, and continue.
547dfe64dd3Smacallan  shift
548dfe64dd3Smacallanelif test "X$1" = X--fallback-echo; then
549dfe64dd3Smacallan  # Avoid inline document here, it may be left over
550dfe64dd3Smacallan  :
551dfe64dd3Smacallanelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552dfe64dd3Smacallan  # Yippee, $ECHO works!
553dfe64dd3Smacallan  :
554dfe64dd3Smacallanelse
555dfe64dd3Smacallan  # Restart under the correct shell.
556dfe64dd3Smacallan  exec $SHELL "$0" --no-reexec ${1+"$@"}
557dfe64dd3Smacallanfi
558dfe64dd3Smacallan
559dfe64dd3Smacallanif test "X$1" = X--fallback-echo; then
560dfe64dd3Smacallan  # used as fallback echo
561dfe64dd3Smacallan  shift
562dfe64dd3Smacallan  cat <<_LT_EOF
563dfe64dd3Smacallan$*
564dfe64dd3Smacallan_LT_EOF
565dfe64dd3Smacallan  exit 0
566dfe64dd3Smacallanfi
567dfe64dd3Smacallan
568dfe64dd3Smacallan# The HP-UX ksh and POSIX shell print the target directory to stdout
569dfe64dd3Smacallan# if CDPATH is set.
570dfe64dd3Smacallan(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571dfe64dd3Smacallan
572dfe64dd3Smacallanif test -z "$lt_ECHO"; then
573dfe64dd3Smacallan  if test "X${echo_test_string+set}" != Xset; then
574dfe64dd3Smacallan    # find a string as large as possible, as long as the shell can cope with it
575dfe64dd3Smacallan    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576dfe64dd3Smacallan      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577dfe64dd3Smacallan      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578dfe64dd3Smacallan	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579dfe64dd3Smacallan      then
580dfe64dd3Smacallan        break
581dfe64dd3Smacallan      fi
582dfe64dd3Smacallan    done
583dfe64dd3Smacallan  fi
584dfe64dd3Smacallan
585dfe64dd3Smacallan  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586dfe64dd3Smacallan     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587dfe64dd3Smacallan     test "X$echo_testing_string" = "X$echo_test_string"; then
588dfe64dd3Smacallan    :
589dfe64dd3Smacallan  else
590dfe64dd3Smacallan    # The Solaris, AIX, and Digital Unix default echo programs unquote
591dfe64dd3Smacallan    # backslashes.  This makes it impossible to quote backslashes using
592dfe64dd3Smacallan    #   echo "$something" | sed 's/\\/\\\\/g'
593dfe64dd3Smacallan    #
594dfe64dd3Smacallan    # So, first we look for a working echo in the user's PATH.
595dfe64dd3Smacallan
596dfe64dd3Smacallan    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597dfe64dd3Smacallan    for dir in $PATH /usr/ucb; do
598dfe64dd3Smacallan      IFS="$lt_save_ifs"
599dfe64dd3Smacallan      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600dfe64dd3Smacallan         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601dfe64dd3Smacallan         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602dfe64dd3Smacallan         test "X$echo_testing_string" = "X$echo_test_string"; then
603dfe64dd3Smacallan        ECHO="$dir/echo"
604dfe64dd3Smacallan        break
605dfe64dd3Smacallan      fi
606dfe64dd3Smacallan    done
607dfe64dd3Smacallan    IFS="$lt_save_ifs"
608dfe64dd3Smacallan
609dfe64dd3Smacallan    if test "X$ECHO" = Xecho; then
610dfe64dd3Smacallan      # We didn't find a better echo, so look for alternatives.
611dfe64dd3Smacallan      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612dfe64dd3Smacallan         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613dfe64dd3Smacallan         test "X$echo_testing_string" = "X$echo_test_string"; then
614dfe64dd3Smacallan        # This shell has a builtin print -r that does the trick.
615dfe64dd3Smacallan        ECHO='print -r'
616dfe64dd3Smacallan      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617dfe64dd3Smacallan	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618dfe64dd3Smacallan        # If we have ksh, try running configure again with it.
619dfe64dd3Smacallan        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620dfe64dd3Smacallan        export ORIGINAL_CONFIG_SHELL
621dfe64dd3Smacallan        CONFIG_SHELL=/bin/ksh
622dfe64dd3Smacallan        export CONFIG_SHELL
623dfe64dd3Smacallan        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624dfe64dd3Smacallan      else
625dfe64dd3Smacallan        # Try using printf.
626dfe64dd3Smacallan        ECHO='printf %s\n'
627dfe64dd3Smacallan        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628dfe64dd3Smacallan	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629dfe64dd3Smacallan	   test "X$echo_testing_string" = "X$echo_test_string"; then
630dfe64dd3Smacallan	  # Cool, printf works
631dfe64dd3Smacallan	  :
632dfe64dd3Smacallan        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633dfe64dd3Smacallan	     test "X$echo_testing_string" = 'X\t' &&
634dfe64dd3Smacallan	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635dfe64dd3Smacallan	     test "X$echo_testing_string" = "X$echo_test_string"; then
636dfe64dd3Smacallan	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637dfe64dd3Smacallan	  export CONFIG_SHELL
638dfe64dd3Smacallan	  SHELL="$CONFIG_SHELL"
639dfe64dd3Smacallan	  export SHELL
640dfe64dd3Smacallan	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641dfe64dd3Smacallan        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642dfe64dd3Smacallan	     test "X$echo_testing_string" = 'X\t' &&
643dfe64dd3Smacallan	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644dfe64dd3Smacallan	     test "X$echo_testing_string" = "X$echo_test_string"; then
645dfe64dd3Smacallan	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646dfe64dd3Smacallan        else
647dfe64dd3Smacallan	  # maybe with a smaller string...
648dfe64dd3Smacallan	  prev=:
649dfe64dd3Smacallan
650dfe64dd3Smacallan	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651dfe64dd3Smacallan	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652dfe64dd3Smacallan	    then
653dfe64dd3Smacallan	      break
654dfe64dd3Smacallan	    fi
655dfe64dd3Smacallan	    prev="$cmd"
656dfe64dd3Smacallan	  done
657dfe64dd3Smacallan
658dfe64dd3Smacallan	  if test "$prev" != 'sed 50q "$0"'; then
659dfe64dd3Smacallan	    echo_test_string=`eval $prev`
660dfe64dd3Smacallan	    export echo_test_string
661dfe64dd3Smacallan	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662dfe64dd3Smacallan	  else
663dfe64dd3Smacallan	    # Oops.  We lost completely, so just stick with echo.
664dfe64dd3Smacallan	    ECHO=echo
665dfe64dd3Smacallan	  fi
666dfe64dd3Smacallan        fi
667dfe64dd3Smacallan      fi
668dfe64dd3Smacallan    fi
669dfe64dd3Smacallan  fi
670dfe64dd3Smacallanfi
671dfe64dd3Smacallan
672dfe64dd3Smacallan# Copy echo and quote the copy suitably for passing to libtool from
673dfe64dd3Smacallan# the Makefile, instead of quoting the original, which is used later.
674dfe64dd3Smacallanlt_ECHO=$ECHO
675dfe64dd3Smacallanif test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676dfe64dd3Smacallan   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677dfe64dd3Smacallanfi
678dfe64dd3Smacallan
679dfe64dd3Smacallan
680dfe64dd3Smacallan
681dfe64dd3Smacallan
682dfe64dd3Smacallantest -n "$DJDIR" || exec 7<&0 </dev/null
683dfe64dd3Smacallanexec 6>&1
684dfe64dd3Smacallan
685dfe64dd3Smacallan# Name of the host.
686dfe64dd3Smacallan# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
687dfe64dd3Smacallan# so uname gets run too.
688dfe64dd3Smacallanac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689dfe64dd3Smacallan
690dfe64dd3Smacallan#
691dfe64dd3Smacallan# Initializations.
692dfe64dd3Smacallan#
693dfe64dd3Smacallanac_default_prefix=/usr/local
694dfe64dd3Smacallanac_clean_files=
695dfe64dd3Smacallanac_config_libobj_dir=.
696dfe64dd3SmacallanLIBOBJS=
697dfe64dd3Smacallancross_compiling=no
698dfe64dd3Smacallansubdirs=
699dfe64dd3SmacallanMFLAGS=
700dfe64dd3SmacallanMAKEFLAGS=
701dfe64dd3Smacallan
702dfe64dd3Smacallan# Identity of this package.
703dfe64dd3SmacallanPACKAGE_NAME='xf86-video-xgi'
704dfe64dd3SmacallanPACKAGE_TARNAME='xf86-video-xgi'
705dfe64dd3SmacallanPACKAGE_VERSION='1.6.0'
706dfe64dd3SmacallanPACKAGE_STRING='xf86-video-xgi 1.6.0'
707dfe64dd3SmacallanPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708dfe64dd3SmacallanPACKAGE_URL=''
709dfe64dd3Smacallan
710dfe64dd3Smacallanac_unique_file="Makefile.am"
711dfe64dd3Smacallan# Factoring default headers for most tests.
712dfe64dd3Smacallanac_includes_default="\
713dfe64dd3Smacallan#include <stdio.h>
714dfe64dd3Smacallan#ifdef HAVE_SYS_TYPES_H
715dfe64dd3Smacallan# include <sys/types.h>
716dfe64dd3Smacallan#endif
717dfe64dd3Smacallan#ifdef HAVE_SYS_STAT_H
718dfe64dd3Smacallan# include <sys/stat.h>
719dfe64dd3Smacallan#endif
720dfe64dd3Smacallan#ifdef STDC_HEADERS
721dfe64dd3Smacallan# include <stdlib.h>
722dfe64dd3Smacallan# include <stddef.h>
723dfe64dd3Smacallan#else
724dfe64dd3Smacallan# ifdef HAVE_STDLIB_H
725dfe64dd3Smacallan#  include <stdlib.h>
726dfe64dd3Smacallan# endif
727dfe64dd3Smacallan#endif
728dfe64dd3Smacallan#ifdef HAVE_STRING_H
729dfe64dd3Smacallan# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730dfe64dd3Smacallan#  include <memory.h>
731dfe64dd3Smacallan# endif
732dfe64dd3Smacallan# include <string.h>
733dfe64dd3Smacallan#endif
734dfe64dd3Smacallan#ifdef HAVE_STRINGS_H
735dfe64dd3Smacallan# include <strings.h>
736dfe64dd3Smacallan#endif
737dfe64dd3Smacallan#ifdef HAVE_INTTYPES_H
738dfe64dd3Smacallan# include <inttypes.h>
739dfe64dd3Smacallan#endif
740dfe64dd3Smacallan#ifdef HAVE_STDINT_H
741dfe64dd3Smacallan# include <stdint.h>
742dfe64dd3Smacallan#endif
743dfe64dd3Smacallan#ifdef HAVE_UNISTD_H
744dfe64dd3Smacallan# include <unistd.h>
745dfe64dd3Smacallan#endif"
746dfe64dd3Smacallan
747dfe64dd3Smacallanac_subst_vars='am__EXEEXT_FALSE
748dfe64dd3Smacallanam__EXEEXT_TRUE
749dfe64dd3SmacallanLTLIBOBJS
750dfe64dd3SmacallanLIBOBJS
751dfe64dd3SmacallanDRIVER_NAME
752dfe64dd3Smacallanmoduledir
753dfe64dd3SmacallanXSERVER_LIBPCIACCESS_FALSE
754dfe64dd3SmacallanXSERVER_LIBPCIACCESS_TRUE
755dfe64dd3SmacallanPCIACCESS_LIBS
756dfe64dd3SmacallanPCIACCESS_CFLAGS
757dfe64dd3SmacallanDRI_LIBS
758dfe64dd3SmacallanDRI_CFLAGS
759dfe64dd3SmacallanDRI_FALSE
760dfe64dd3SmacallanDRI_TRUE
761dfe64dd3SmacallanHAVE_XEXTPROTO_71_FALSE
762dfe64dd3SmacallanHAVE_XEXTPROTO_71_TRUE
763dfe64dd3SmacallanXEXT_LIBS
764dfe64dd3SmacallanXEXT_CFLAGS
765dfe64dd3SmacallanXORG_LIBS
766dfe64dd3SmacallanXORG_CFLAGS
767dfe64dd3SmacallanPKG_CONFIG_LIBDIR
768dfe64dd3SmacallanPKG_CONFIG_PATH
769dfe64dd3SmacallanPKG_CONFIG
770dfe64dd3SmacallanCPP
771dfe64dd3SmacallanOTOOL64
772dfe64dd3SmacallanOTOOL
773dfe64dd3SmacallanLIPO
774dfe64dd3SmacallanNMEDIT
775dfe64dd3SmacallanDSYMUTIL
776dfe64dd3Smacallanlt_ECHO
777dfe64dd3SmacallanRANLIB
778dfe64dd3SmacallanAR
779dfe64dd3SmacallanOBJDUMP
780dfe64dd3SmacallanLN_S
781dfe64dd3SmacallanNM
782dfe64dd3Smacallanac_ct_DUMPBIN
783dfe64dd3SmacallanDUMPBIN
784dfe64dd3SmacallanLD
785dfe64dd3SmacallanFGREP
786dfe64dd3SmacallanEGREP
787dfe64dd3SmacallanGREP
788dfe64dd3SmacallanSED
789dfe64dd3Smacallanam__fastdepCC_FALSE
790dfe64dd3Smacallanam__fastdepCC_TRUE
791dfe64dd3SmacallanCCDEPMODE
792dfe64dd3SmacallanAMDEPBACKSLASH
793dfe64dd3SmacallanAMDEP_FALSE
794dfe64dd3SmacallanAMDEP_TRUE
795dfe64dd3Smacallanam__quote
796dfe64dd3Smacallanam__include
797dfe64dd3SmacallanDEPDIR
798dfe64dd3SmacallanOBJEXT
799dfe64dd3SmacallanEXEEXT
800dfe64dd3Smacallanac_ct_CC
801dfe64dd3SmacallanCPPFLAGS
802dfe64dd3SmacallanLDFLAGS
803dfe64dd3SmacallanCFLAGS
804dfe64dd3SmacallanCC
805dfe64dd3Smacallanhost_os
806dfe64dd3Smacallanhost_vendor
807dfe64dd3Smacallanhost_cpu
808dfe64dd3Smacallanhost
809dfe64dd3Smacallanbuild_os
810dfe64dd3Smacallanbuild_vendor
811dfe64dd3Smacallanbuild_cpu
812dfe64dd3Smacallanbuild
813dfe64dd3SmacallanLIBTOOL
814dfe64dd3SmacallanMAINT
815dfe64dd3SmacallanMAINTAINER_MODE_FALSE
816dfe64dd3SmacallanMAINTAINER_MODE_TRUE
817dfe64dd3Smacallanam__untar
818dfe64dd3Smacallanam__tar
819dfe64dd3SmacallanAMTAR
820dfe64dd3Smacallanam__leading_dot
821dfe64dd3SmacallanSET_MAKE
822dfe64dd3SmacallanAWK
823dfe64dd3Smacallanmkdir_p
824dfe64dd3SmacallanMKDIR_P
825dfe64dd3SmacallanINSTALL_STRIP_PROGRAM
826dfe64dd3SmacallanSTRIP
827dfe64dd3Smacallaninstall_sh
828dfe64dd3SmacallanMAKEINFO
829dfe64dd3SmacallanAUTOHEADER
830dfe64dd3SmacallanAUTOMAKE
831dfe64dd3SmacallanAUTOCONF
832dfe64dd3SmacallanACLOCAL
833dfe64dd3SmacallanVERSION
834dfe64dd3SmacallanPACKAGE
835dfe64dd3SmacallanCYGPATH_W
836dfe64dd3Smacallanam__isrc
837dfe64dd3SmacallanINSTALL_DATA
838dfe64dd3SmacallanINSTALL_SCRIPT
839dfe64dd3SmacallanINSTALL_PROGRAM
840dfe64dd3Smacallantarget_alias
841dfe64dd3Smacallanhost_alias
842dfe64dd3Smacallanbuild_alias
843dfe64dd3SmacallanLIBS
844dfe64dd3SmacallanECHO_T
845dfe64dd3SmacallanECHO_N
846dfe64dd3SmacallanECHO_C
847dfe64dd3SmacallanDEFS
848dfe64dd3Smacallanmandir
849dfe64dd3Smacallanlocaledir
850dfe64dd3Smacallanlibdir
851dfe64dd3Smacallanpsdir
852dfe64dd3Smacallanpdfdir
853dfe64dd3Smacallandvidir
854dfe64dd3Smacallanhtmldir
855dfe64dd3Smacallaninfodir
856dfe64dd3Smacallandocdir
857dfe64dd3Smacallanoldincludedir
858dfe64dd3Smacallanincludedir
859dfe64dd3Smacallanlocalstatedir
860dfe64dd3Smacallansharedstatedir
861dfe64dd3Smacallansysconfdir
862dfe64dd3Smacallandatadir
863dfe64dd3Smacallandatarootdir
864dfe64dd3Smacallanlibexecdir
865dfe64dd3Smacallansbindir
866dfe64dd3Smacallanbindir
867dfe64dd3Smacallanprogram_transform_name
868dfe64dd3Smacallanprefix
869dfe64dd3Smacallanexec_prefix
870dfe64dd3SmacallanPACKAGE_URL
871dfe64dd3SmacallanPACKAGE_BUGREPORT
872dfe64dd3SmacallanPACKAGE_STRING
873dfe64dd3SmacallanPACKAGE_VERSION
874dfe64dd3SmacallanPACKAGE_TARNAME
875dfe64dd3SmacallanPACKAGE_NAME
876dfe64dd3SmacallanPATH_SEPARATOR
877dfe64dd3SmacallanSHELL'
878dfe64dd3Smacallanac_subst_files=''
879dfe64dd3Smacallanac_user_opts='
880dfe64dd3Smacallanenable_option_checking
881dfe64dd3Smacallanenable_maintainer_mode
882dfe64dd3Smacallanenable_static
883dfe64dd3Smacallanenable_shared
884dfe64dd3Smacallanwith_pic
885dfe64dd3Smacallanenable_fast_install
886dfe64dd3Smacallanenable_dependency_tracking
887dfe64dd3Smacallanwith_gnu_ld
888dfe64dd3Smacallanenable_libtool_lock
889dfe64dd3Smacallanwith_xorg_module_dir
890dfe64dd3Smacallanenable_dri
891dfe64dd3Smacallan'
892dfe64dd3Smacallan      ac_precious_vars='build_alias
893dfe64dd3Smacallanhost_alias
894dfe64dd3Smacallantarget_alias
895dfe64dd3SmacallanCC
896dfe64dd3SmacallanCFLAGS
897dfe64dd3SmacallanLDFLAGS
898dfe64dd3SmacallanLIBS
899dfe64dd3SmacallanCPPFLAGS
900dfe64dd3SmacallanCPP
901dfe64dd3SmacallanPKG_CONFIG
902dfe64dd3SmacallanPKG_CONFIG_PATH
903dfe64dd3SmacallanPKG_CONFIG_LIBDIR
904dfe64dd3SmacallanXORG_CFLAGS
905dfe64dd3SmacallanXORG_LIBS
906dfe64dd3SmacallanXEXT_CFLAGS
907dfe64dd3SmacallanXEXT_LIBS
908dfe64dd3SmacallanDRI_CFLAGS
909dfe64dd3SmacallanDRI_LIBS
910dfe64dd3SmacallanPCIACCESS_CFLAGS
911dfe64dd3SmacallanPCIACCESS_LIBS'
912dfe64dd3Smacallan
913dfe64dd3Smacallan
914dfe64dd3Smacallan# Initialize some variables set by options.
915dfe64dd3Smacallanac_init_help=
916dfe64dd3Smacallanac_init_version=false
917dfe64dd3Smacallanac_unrecognized_opts=
918dfe64dd3Smacallanac_unrecognized_sep=
919dfe64dd3Smacallan# The variables have the same names as the options, with
920dfe64dd3Smacallan# dashes changed to underlines.
921dfe64dd3Smacallancache_file=/dev/null
922dfe64dd3Smacallanexec_prefix=NONE
923dfe64dd3Smacallanno_create=
924dfe64dd3Smacallanno_recursion=
925dfe64dd3Smacallanprefix=NONE
926dfe64dd3Smacallanprogram_prefix=NONE
927dfe64dd3Smacallanprogram_suffix=NONE
928dfe64dd3Smacallanprogram_transform_name=s,x,x,
929dfe64dd3Smacallansilent=
930dfe64dd3Smacallansite=
931dfe64dd3Smacallansrcdir=
932dfe64dd3Smacallanverbose=
933dfe64dd3Smacallanx_includes=NONE
934dfe64dd3Smacallanx_libraries=NONE
935dfe64dd3Smacallan
936dfe64dd3Smacallan# Installation directory options.
937dfe64dd3Smacallan# These are left unexpanded so users can "make install exec_prefix=/foo"
938dfe64dd3Smacallan# and all the variables that are supposed to be based on exec_prefix
939dfe64dd3Smacallan# by default will actually change.
940dfe64dd3Smacallan# Use braces instead of parens because sh, perl, etc. also accept them.
941dfe64dd3Smacallan# (The list follows the same order as the GNU Coding Standards.)
942dfe64dd3Smacallanbindir='${exec_prefix}/bin'
943dfe64dd3Smacallansbindir='${exec_prefix}/sbin'
944dfe64dd3Smacallanlibexecdir='${exec_prefix}/libexec'
945dfe64dd3Smacallandatarootdir='${prefix}/share'
946dfe64dd3Smacallandatadir='${datarootdir}'
947dfe64dd3Smacallansysconfdir='${prefix}/etc'
948dfe64dd3Smacallansharedstatedir='${prefix}/com'
949dfe64dd3Smacallanlocalstatedir='${prefix}/var'
950dfe64dd3Smacallanincludedir='${prefix}/include'
951dfe64dd3Smacallanoldincludedir='/usr/include'
952dfe64dd3Smacallandocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953dfe64dd3Smacallaninfodir='${datarootdir}/info'
954dfe64dd3Smacallanhtmldir='${docdir}'
955dfe64dd3Smacallandvidir='${docdir}'
956dfe64dd3Smacallanpdfdir='${docdir}'
957dfe64dd3Smacallanpsdir='${docdir}'
958dfe64dd3Smacallanlibdir='${exec_prefix}/lib'
959dfe64dd3Smacallanlocaledir='${datarootdir}/locale'
960dfe64dd3Smacallanmandir='${datarootdir}/man'
961dfe64dd3Smacallan
962dfe64dd3Smacallanac_prev=
963dfe64dd3Smacallanac_dashdash=
964dfe64dd3Smacallanfor ac_option
965dfe64dd3Smacallando
966dfe64dd3Smacallan  # If the previous option needs an argument, assign it.
967dfe64dd3Smacallan  if test -n "$ac_prev"; then
968dfe64dd3Smacallan    eval $ac_prev=\$ac_option
969dfe64dd3Smacallan    ac_prev=
970dfe64dd3Smacallan    continue
971dfe64dd3Smacallan  fi
972dfe64dd3Smacallan
973dfe64dd3Smacallan  case $ac_option in
974dfe64dd3Smacallan  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975dfe64dd3Smacallan  *=)   ac_optarg= ;;
976dfe64dd3Smacallan  *)    ac_optarg=yes ;;
977dfe64dd3Smacallan  esac
978dfe64dd3Smacallan
979dfe64dd3Smacallan  # Accept the important Cygnus configure options, so we can diagnose typos.
980dfe64dd3Smacallan
981dfe64dd3Smacallan  case $ac_dashdash$ac_option in
982dfe64dd3Smacallan  --)
983dfe64dd3Smacallan    ac_dashdash=yes ;;
984dfe64dd3Smacallan
985dfe64dd3Smacallan  -bindir | --bindir | --bindi | --bind | --bin | --bi)
986dfe64dd3Smacallan    ac_prev=bindir ;;
987dfe64dd3Smacallan  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988dfe64dd3Smacallan    bindir=$ac_optarg ;;
989dfe64dd3Smacallan
990dfe64dd3Smacallan  -build | --build | --buil | --bui | --bu)
991dfe64dd3Smacallan    ac_prev=build_alias ;;
992dfe64dd3Smacallan  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993dfe64dd3Smacallan    build_alias=$ac_optarg ;;
994dfe64dd3Smacallan
995dfe64dd3Smacallan  -cache-file | --cache-file | --cache-fil | --cache-fi \
996dfe64dd3Smacallan  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997dfe64dd3Smacallan    ac_prev=cache_file ;;
998dfe64dd3Smacallan  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999dfe64dd3Smacallan  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000dfe64dd3Smacallan    cache_file=$ac_optarg ;;
1001dfe64dd3Smacallan
1002dfe64dd3Smacallan  --config-cache | -C)
1003dfe64dd3Smacallan    cache_file=config.cache ;;
1004dfe64dd3Smacallan
1005dfe64dd3Smacallan  -datadir | --datadir | --datadi | --datad)
1006dfe64dd3Smacallan    ac_prev=datadir ;;
1007dfe64dd3Smacallan  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008dfe64dd3Smacallan    datadir=$ac_optarg ;;
1009dfe64dd3Smacallan
1010dfe64dd3Smacallan  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011dfe64dd3Smacallan  | --dataroo | --dataro | --datar)
1012dfe64dd3Smacallan    ac_prev=datarootdir ;;
1013dfe64dd3Smacallan  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014dfe64dd3Smacallan  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015dfe64dd3Smacallan    datarootdir=$ac_optarg ;;
1016dfe64dd3Smacallan
1017dfe64dd3Smacallan  -disable-* | --disable-*)
1018dfe64dd3Smacallan    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019dfe64dd3Smacallan    # Reject names that are not valid shell variable names.
1020dfe64dd3Smacallan    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021dfe64dd3Smacallan      as_fn_error $? "invalid feature name: $ac_useropt"
1022dfe64dd3Smacallan    ac_useropt_orig=$ac_useropt
1023dfe64dd3Smacallan    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024dfe64dd3Smacallan    case $ac_user_opts in
1025dfe64dd3Smacallan      *"
1026dfe64dd3Smacallan"enable_$ac_useropt"
1027dfe64dd3Smacallan"*) ;;
1028dfe64dd3Smacallan      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029dfe64dd3Smacallan	 ac_unrecognized_sep=', ';;
1030dfe64dd3Smacallan    esac
1031dfe64dd3Smacallan    eval enable_$ac_useropt=no ;;
1032dfe64dd3Smacallan
1033dfe64dd3Smacallan  -docdir | --docdir | --docdi | --doc | --do)
1034dfe64dd3Smacallan    ac_prev=docdir ;;
1035dfe64dd3Smacallan  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036dfe64dd3Smacallan    docdir=$ac_optarg ;;
1037dfe64dd3Smacallan
1038dfe64dd3Smacallan  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039dfe64dd3Smacallan    ac_prev=dvidir ;;
1040dfe64dd3Smacallan  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041dfe64dd3Smacallan    dvidir=$ac_optarg ;;
1042dfe64dd3Smacallan
1043dfe64dd3Smacallan  -enable-* | --enable-*)
1044dfe64dd3Smacallan    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045dfe64dd3Smacallan    # Reject names that are not valid shell variable names.
1046dfe64dd3Smacallan    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047dfe64dd3Smacallan      as_fn_error $? "invalid feature name: $ac_useropt"
1048dfe64dd3Smacallan    ac_useropt_orig=$ac_useropt
1049dfe64dd3Smacallan    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050dfe64dd3Smacallan    case $ac_user_opts in
1051dfe64dd3Smacallan      *"
1052dfe64dd3Smacallan"enable_$ac_useropt"
1053dfe64dd3Smacallan"*) ;;
1054dfe64dd3Smacallan      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055dfe64dd3Smacallan	 ac_unrecognized_sep=', ';;
1056dfe64dd3Smacallan    esac
1057dfe64dd3Smacallan    eval enable_$ac_useropt=\$ac_optarg ;;
1058dfe64dd3Smacallan
1059dfe64dd3Smacallan  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060dfe64dd3Smacallan  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061dfe64dd3Smacallan  | --exec | --exe | --ex)
1062dfe64dd3Smacallan    ac_prev=exec_prefix ;;
1063dfe64dd3Smacallan  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064dfe64dd3Smacallan  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065dfe64dd3Smacallan  | --exec=* | --exe=* | --ex=*)
1066dfe64dd3Smacallan    exec_prefix=$ac_optarg ;;
1067dfe64dd3Smacallan
1068dfe64dd3Smacallan  -gas | --gas | --ga | --g)
1069dfe64dd3Smacallan    # Obsolete; use --with-gas.
1070dfe64dd3Smacallan    with_gas=yes ;;
1071dfe64dd3Smacallan
1072dfe64dd3Smacallan  -help | --help | --hel | --he | -h)
1073dfe64dd3Smacallan    ac_init_help=long ;;
1074dfe64dd3Smacallan  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075dfe64dd3Smacallan    ac_init_help=recursive ;;
1076dfe64dd3Smacallan  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077dfe64dd3Smacallan    ac_init_help=short ;;
1078dfe64dd3Smacallan
1079dfe64dd3Smacallan  -host | --host | --hos | --ho)
1080dfe64dd3Smacallan    ac_prev=host_alias ;;
1081dfe64dd3Smacallan  -host=* | --host=* | --hos=* | --ho=*)
1082dfe64dd3Smacallan    host_alias=$ac_optarg ;;
1083dfe64dd3Smacallan
1084dfe64dd3Smacallan  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085dfe64dd3Smacallan    ac_prev=htmldir ;;
1086dfe64dd3Smacallan  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087dfe64dd3Smacallan  | --ht=*)
1088dfe64dd3Smacallan    htmldir=$ac_optarg ;;
1089dfe64dd3Smacallan
1090dfe64dd3Smacallan  -includedir | --includedir | --includedi | --included | --include \
1091dfe64dd3Smacallan  | --includ | --inclu | --incl | --inc)
1092dfe64dd3Smacallan    ac_prev=includedir ;;
1093dfe64dd3Smacallan  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094dfe64dd3Smacallan  | --includ=* | --inclu=* | --incl=* | --inc=*)
1095dfe64dd3Smacallan    includedir=$ac_optarg ;;
1096dfe64dd3Smacallan
1097dfe64dd3Smacallan  -infodir | --infodir | --infodi | --infod | --info | --inf)
1098dfe64dd3Smacallan    ac_prev=infodir ;;
1099dfe64dd3Smacallan  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1100dfe64dd3Smacallan    infodir=$ac_optarg ;;
1101dfe64dd3Smacallan
1102dfe64dd3Smacallan  -libdir | --libdir | --libdi | --libd)
1103dfe64dd3Smacallan    ac_prev=libdir ;;
1104dfe64dd3Smacallan  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1105dfe64dd3Smacallan    libdir=$ac_optarg ;;
1106dfe64dd3Smacallan
1107dfe64dd3Smacallan  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108dfe64dd3Smacallan  | --libexe | --libex | --libe)
1109dfe64dd3Smacallan    ac_prev=libexecdir ;;
1110dfe64dd3Smacallan  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111dfe64dd3Smacallan  | --libexe=* | --libex=* | --libe=*)
1112dfe64dd3Smacallan    libexecdir=$ac_optarg ;;
1113dfe64dd3Smacallan
1114dfe64dd3Smacallan  -localedir | --localedir | --localedi | --localed | --locale)
1115dfe64dd3Smacallan    ac_prev=localedir ;;
1116dfe64dd3Smacallan  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117dfe64dd3Smacallan    localedir=$ac_optarg ;;
1118dfe64dd3Smacallan
1119dfe64dd3Smacallan  -localstatedir | --localstatedir | --localstatedi | --localstated \
1120dfe64dd3Smacallan  | --localstate | --localstat | --localsta | --localst | --locals)
1121dfe64dd3Smacallan    ac_prev=localstatedir ;;
1122dfe64dd3Smacallan  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1123dfe64dd3Smacallan  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1124dfe64dd3Smacallan    localstatedir=$ac_optarg ;;
1125dfe64dd3Smacallan
1126dfe64dd3Smacallan  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127dfe64dd3Smacallan    ac_prev=mandir ;;
1128dfe64dd3Smacallan  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1129dfe64dd3Smacallan    mandir=$ac_optarg ;;
1130dfe64dd3Smacallan
1131dfe64dd3Smacallan  -nfp | --nfp | --nf)
1132dfe64dd3Smacallan    # Obsolete; use --without-fp.
1133dfe64dd3Smacallan    with_fp=no ;;
1134dfe64dd3Smacallan
1135dfe64dd3Smacallan  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1136dfe64dd3Smacallan  | --no-cr | --no-c | -n)
1137dfe64dd3Smacallan    no_create=yes ;;
1138dfe64dd3Smacallan
1139dfe64dd3Smacallan  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140dfe64dd3Smacallan  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141dfe64dd3Smacallan    no_recursion=yes ;;
1142dfe64dd3Smacallan
1143dfe64dd3Smacallan  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144dfe64dd3Smacallan  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145dfe64dd3Smacallan  | --oldin | --oldi | --old | --ol | --o)
1146dfe64dd3Smacallan    ac_prev=oldincludedir ;;
1147dfe64dd3Smacallan  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148dfe64dd3Smacallan  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149dfe64dd3Smacallan  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1150dfe64dd3Smacallan    oldincludedir=$ac_optarg ;;
1151dfe64dd3Smacallan
1152dfe64dd3Smacallan  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153dfe64dd3Smacallan    ac_prev=prefix ;;
1154dfe64dd3Smacallan  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1155dfe64dd3Smacallan    prefix=$ac_optarg ;;
1156dfe64dd3Smacallan
1157dfe64dd3Smacallan  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158dfe64dd3Smacallan  | --program-pre | --program-pr | --program-p)
1159dfe64dd3Smacallan    ac_prev=program_prefix ;;
1160dfe64dd3Smacallan  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161dfe64dd3Smacallan  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1162dfe64dd3Smacallan    program_prefix=$ac_optarg ;;
1163dfe64dd3Smacallan
1164dfe64dd3Smacallan  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165dfe64dd3Smacallan  | --program-suf | --program-su | --program-s)
1166dfe64dd3Smacallan    ac_prev=program_suffix ;;
1167dfe64dd3Smacallan  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168dfe64dd3Smacallan  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1169dfe64dd3Smacallan    program_suffix=$ac_optarg ;;
1170dfe64dd3Smacallan
1171dfe64dd3Smacallan  -program-transform-name | --program-transform-name \
1172dfe64dd3Smacallan  | --program-transform-nam | --program-transform-na \
1173dfe64dd3Smacallan  | --program-transform-n | --program-transform- \
1174dfe64dd3Smacallan  | --program-transform | --program-transfor \
1175dfe64dd3Smacallan  | --program-transfo | --program-transf \
1176dfe64dd3Smacallan  | --program-trans | --program-tran \
1177dfe64dd3Smacallan  | --progr-tra | --program-tr | --program-t)
1178dfe64dd3Smacallan    ac_prev=program_transform_name ;;
1179dfe64dd3Smacallan  -program-transform-name=* | --program-transform-name=* \
1180dfe64dd3Smacallan  | --program-transform-nam=* | --program-transform-na=* \
1181dfe64dd3Smacallan  | --program-transform-n=* | --program-transform-=* \
1182dfe64dd3Smacallan  | --program-transform=* | --program-transfor=* \
1183dfe64dd3Smacallan  | --program-transfo=* | --program-transf=* \
1184dfe64dd3Smacallan  | --program-trans=* | --program-tran=* \
1185dfe64dd3Smacallan  | --progr-tra=* | --program-tr=* | --program-t=*)
1186dfe64dd3Smacallan    program_transform_name=$ac_optarg ;;
1187dfe64dd3Smacallan
1188dfe64dd3Smacallan  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189dfe64dd3Smacallan    ac_prev=pdfdir ;;
1190dfe64dd3Smacallan  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191dfe64dd3Smacallan    pdfdir=$ac_optarg ;;
1192dfe64dd3Smacallan
1193dfe64dd3Smacallan  -psdir | --psdir | --psdi | --psd | --ps)
1194dfe64dd3Smacallan    ac_prev=psdir ;;
1195dfe64dd3Smacallan  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196dfe64dd3Smacallan    psdir=$ac_optarg ;;
1197dfe64dd3Smacallan
1198dfe64dd3Smacallan  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199dfe64dd3Smacallan  | -silent | --silent | --silen | --sile | --sil)
1200dfe64dd3Smacallan    silent=yes ;;
1201dfe64dd3Smacallan
1202dfe64dd3Smacallan  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203dfe64dd3Smacallan    ac_prev=sbindir ;;
1204dfe64dd3Smacallan  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205dfe64dd3Smacallan  | --sbi=* | --sb=*)
1206dfe64dd3Smacallan    sbindir=$ac_optarg ;;
1207dfe64dd3Smacallan
1208dfe64dd3Smacallan  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209dfe64dd3Smacallan  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210dfe64dd3Smacallan  | --sharedst | --shareds | --shared | --share | --shar \
1211dfe64dd3Smacallan  | --sha | --sh)
1212dfe64dd3Smacallan    ac_prev=sharedstatedir ;;
1213dfe64dd3Smacallan  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214dfe64dd3Smacallan  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215dfe64dd3Smacallan  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216dfe64dd3Smacallan  | --sha=* | --sh=*)
1217dfe64dd3Smacallan    sharedstatedir=$ac_optarg ;;
1218dfe64dd3Smacallan
1219dfe64dd3Smacallan  -site | --site | --sit)
1220dfe64dd3Smacallan    ac_prev=site ;;
1221dfe64dd3Smacallan  -site=* | --site=* | --sit=*)
1222dfe64dd3Smacallan    site=$ac_optarg ;;
1223dfe64dd3Smacallan
1224dfe64dd3Smacallan  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225dfe64dd3Smacallan    ac_prev=srcdir ;;
1226dfe64dd3Smacallan  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227dfe64dd3Smacallan    srcdir=$ac_optarg ;;
1228dfe64dd3Smacallan
1229dfe64dd3Smacallan  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230dfe64dd3Smacallan  | --syscon | --sysco | --sysc | --sys | --sy)
1231dfe64dd3Smacallan    ac_prev=sysconfdir ;;
1232dfe64dd3Smacallan  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233dfe64dd3Smacallan  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234dfe64dd3Smacallan    sysconfdir=$ac_optarg ;;
1235dfe64dd3Smacallan
1236dfe64dd3Smacallan  -target | --target | --targe | --targ | --tar | --ta | --t)
1237dfe64dd3Smacallan    ac_prev=target_alias ;;
1238dfe64dd3Smacallan  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239dfe64dd3Smacallan    target_alias=$ac_optarg ;;
1240dfe64dd3Smacallan
1241dfe64dd3Smacallan  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242dfe64dd3Smacallan    verbose=yes ;;
1243dfe64dd3Smacallan
1244dfe64dd3Smacallan  -version | --version | --versio | --versi | --vers | -V)
1245dfe64dd3Smacallan    ac_init_version=: ;;
1246dfe64dd3Smacallan
1247dfe64dd3Smacallan  -with-* | --with-*)
1248dfe64dd3Smacallan    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249dfe64dd3Smacallan    # Reject names that are not valid shell variable names.
1250dfe64dd3Smacallan    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251dfe64dd3Smacallan      as_fn_error $? "invalid package name: $ac_useropt"
1252dfe64dd3Smacallan    ac_useropt_orig=$ac_useropt
1253dfe64dd3Smacallan    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254dfe64dd3Smacallan    case $ac_user_opts in
1255dfe64dd3Smacallan      *"
1256dfe64dd3Smacallan"with_$ac_useropt"
1257dfe64dd3Smacallan"*) ;;
1258dfe64dd3Smacallan      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259dfe64dd3Smacallan	 ac_unrecognized_sep=', ';;
1260dfe64dd3Smacallan    esac
1261dfe64dd3Smacallan    eval with_$ac_useropt=\$ac_optarg ;;
1262dfe64dd3Smacallan
1263dfe64dd3Smacallan  -without-* | --without-*)
1264dfe64dd3Smacallan    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265dfe64dd3Smacallan    # Reject names that are not valid shell variable names.
1266dfe64dd3Smacallan    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267dfe64dd3Smacallan      as_fn_error $? "invalid package name: $ac_useropt"
1268dfe64dd3Smacallan    ac_useropt_orig=$ac_useropt
1269dfe64dd3Smacallan    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270dfe64dd3Smacallan    case $ac_user_opts in
1271dfe64dd3Smacallan      *"
1272dfe64dd3Smacallan"with_$ac_useropt"
1273dfe64dd3Smacallan"*) ;;
1274dfe64dd3Smacallan      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275dfe64dd3Smacallan	 ac_unrecognized_sep=', ';;
1276dfe64dd3Smacallan    esac
1277dfe64dd3Smacallan    eval with_$ac_useropt=no ;;
1278dfe64dd3Smacallan
1279dfe64dd3Smacallan  --x)
1280dfe64dd3Smacallan    # Obsolete; use --with-x.
1281dfe64dd3Smacallan    with_x=yes ;;
1282dfe64dd3Smacallan
1283dfe64dd3Smacallan  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284dfe64dd3Smacallan  | --x-incl | --x-inc | --x-in | --x-i)
1285dfe64dd3Smacallan    ac_prev=x_includes ;;
1286dfe64dd3Smacallan  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287dfe64dd3Smacallan  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288dfe64dd3Smacallan    x_includes=$ac_optarg ;;
1289dfe64dd3Smacallan
1290dfe64dd3Smacallan  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291dfe64dd3Smacallan  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292dfe64dd3Smacallan    ac_prev=x_libraries ;;
1293dfe64dd3Smacallan  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294dfe64dd3Smacallan  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295dfe64dd3Smacallan    x_libraries=$ac_optarg ;;
1296dfe64dd3Smacallan
1297dfe64dd3Smacallan  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298dfe64dd3SmacallanTry \`$0 --help' for more information"
1299dfe64dd3Smacallan    ;;
1300dfe64dd3Smacallan
1301dfe64dd3Smacallan  *=*)
1302dfe64dd3Smacallan    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303dfe64dd3Smacallan    # Reject names that are not valid shell variable names.
1304dfe64dd3Smacallan    case $ac_envvar in #(
1305dfe64dd3Smacallan      '' | [0-9]* | *[!_$as_cr_alnum]* )
1306dfe64dd3Smacallan      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307dfe64dd3Smacallan    esac
1308dfe64dd3Smacallan    eval $ac_envvar=\$ac_optarg
1309dfe64dd3Smacallan    export $ac_envvar ;;
1310dfe64dd3Smacallan
1311dfe64dd3Smacallan  *)
1312dfe64dd3Smacallan    # FIXME: should be removed in autoconf 3.0.
1313dfe64dd3Smacallan    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314dfe64dd3Smacallan    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315dfe64dd3Smacallan      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316dfe64dd3Smacallan    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317dfe64dd3Smacallan    ;;
1318dfe64dd3Smacallan
1319dfe64dd3Smacallan  esac
1320dfe64dd3Smacallandone
1321dfe64dd3Smacallan
1322dfe64dd3Smacallanif test -n "$ac_prev"; then
1323dfe64dd3Smacallan  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324dfe64dd3Smacallan  as_fn_error $? "missing argument to $ac_option"
1325dfe64dd3Smacallanfi
1326dfe64dd3Smacallan
1327dfe64dd3Smacallanif test -n "$ac_unrecognized_opts"; then
1328dfe64dd3Smacallan  case $enable_option_checking in
1329dfe64dd3Smacallan    no) ;;
1330dfe64dd3Smacallan    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331dfe64dd3Smacallan    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332dfe64dd3Smacallan  esac
1333dfe64dd3Smacallanfi
1334dfe64dd3Smacallan
1335dfe64dd3Smacallan# Check all directory arguments for consistency.
1336dfe64dd3Smacallanfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337dfe64dd3Smacallan		datadir sysconfdir sharedstatedir localstatedir includedir \
1338dfe64dd3Smacallan		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339dfe64dd3Smacallan		libdir localedir mandir
1340dfe64dd3Smacallando
1341dfe64dd3Smacallan  eval ac_val=\$$ac_var
1342dfe64dd3Smacallan  # Remove trailing slashes.
1343dfe64dd3Smacallan  case $ac_val in
1344dfe64dd3Smacallan    */ )
1345dfe64dd3Smacallan      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346dfe64dd3Smacallan      eval $ac_var=\$ac_val;;
1347dfe64dd3Smacallan  esac
1348dfe64dd3Smacallan  # Be sure to have absolute directory names.
1349dfe64dd3Smacallan  case $ac_val in
1350dfe64dd3Smacallan    [\\/$]* | ?:[\\/]* )  continue;;
1351dfe64dd3Smacallan    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352dfe64dd3Smacallan  esac
1353dfe64dd3Smacallan  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354dfe64dd3Smacallandone
1355dfe64dd3Smacallan
1356dfe64dd3Smacallan# There might be people who depend on the old broken behavior: `$host'
1357dfe64dd3Smacallan# used to hold the argument of --host etc.
1358dfe64dd3Smacallan# FIXME: To remove some day.
1359dfe64dd3Smacallanbuild=$build_alias
1360dfe64dd3Smacallanhost=$host_alias
1361dfe64dd3Smacallantarget=$target_alias
1362dfe64dd3Smacallan
1363dfe64dd3Smacallan# FIXME: To remove some day.
1364dfe64dd3Smacallanif test "x$host_alias" != x; then
1365dfe64dd3Smacallan  if test "x$build_alias" = x; then
1366dfe64dd3Smacallan    cross_compiling=maybe
1367dfe64dd3Smacallan    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1368dfe64dd3Smacallan    If a cross compiler is detected then cross compile mode will be used" >&2
1369dfe64dd3Smacallan  elif test "x$build_alias" != "x$host_alias"; then
1370dfe64dd3Smacallan    cross_compiling=yes
1371dfe64dd3Smacallan  fi
1372dfe64dd3Smacallanfi
1373dfe64dd3Smacallan
1374dfe64dd3Smacallanac_tool_prefix=
1375dfe64dd3Smacallantest -n "$host_alias" && ac_tool_prefix=$host_alias-
1376dfe64dd3Smacallan
1377dfe64dd3Smacallantest "$silent" = yes && exec 6>/dev/null
1378dfe64dd3Smacallan
1379dfe64dd3Smacallan
1380dfe64dd3Smacallanac_pwd=`pwd` && test -n "$ac_pwd" &&
1381dfe64dd3Smacallanac_ls_di=`ls -di .` &&
1382dfe64dd3Smacallanac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383dfe64dd3Smacallan  as_fn_error $? "working directory cannot be determined"
1384dfe64dd3Smacallantest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385dfe64dd3Smacallan  as_fn_error $? "pwd does not report name of working directory"
1386dfe64dd3Smacallan
1387dfe64dd3Smacallan
1388dfe64dd3Smacallan# Find the source files, if location was not specified.
1389dfe64dd3Smacallanif test -z "$srcdir"; then
1390dfe64dd3Smacallan  ac_srcdir_defaulted=yes
1391dfe64dd3Smacallan  # Try the directory containing this script, then the parent directory.
1392dfe64dd3Smacallan  ac_confdir=`$as_dirname -- "$as_myself" ||
1393dfe64dd3Smacallan$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394dfe64dd3Smacallan	 X"$as_myself" : 'X\(//\)[^/]' \| \
1395dfe64dd3Smacallan	 X"$as_myself" : 'X\(//\)$' \| \
1396dfe64dd3Smacallan	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397dfe64dd3Smacallan$as_echo X"$as_myself" |
1398dfe64dd3Smacallan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399dfe64dd3Smacallan	    s//\1/
1400dfe64dd3Smacallan	    q
1401dfe64dd3Smacallan	  }
1402dfe64dd3Smacallan	  /^X\(\/\/\)[^/].*/{
1403dfe64dd3Smacallan	    s//\1/
1404dfe64dd3Smacallan	    q
1405dfe64dd3Smacallan	  }
1406dfe64dd3Smacallan	  /^X\(\/\/\)$/{
1407dfe64dd3Smacallan	    s//\1/
1408dfe64dd3Smacallan	    q
1409dfe64dd3Smacallan	  }
1410dfe64dd3Smacallan	  /^X\(\/\).*/{
1411dfe64dd3Smacallan	    s//\1/
1412dfe64dd3Smacallan	    q
1413dfe64dd3Smacallan	  }
1414dfe64dd3Smacallan	  s/.*/./; q'`
1415dfe64dd3Smacallan  srcdir=$ac_confdir
1416dfe64dd3Smacallan  if test ! -r "$srcdir/$ac_unique_file"; then
1417dfe64dd3Smacallan    srcdir=..
1418dfe64dd3Smacallan  fi
1419dfe64dd3Smacallanelse
1420dfe64dd3Smacallan  ac_srcdir_defaulted=no
1421dfe64dd3Smacallanfi
1422dfe64dd3Smacallanif test ! -r "$srcdir/$ac_unique_file"; then
1423dfe64dd3Smacallan  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424dfe64dd3Smacallan  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1425dfe64dd3Smacallanfi
1426dfe64dd3Smacallanac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427dfe64dd3Smacallanac_abs_confdir=`(
1428dfe64dd3Smacallan	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429dfe64dd3Smacallan	pwd)`
1430dfe64dd3Smacallan# When building in place, set srcdir=.
1431dfe64dd3Smacallanif test "$ac_abs_confdir" = "$ac_pwd"; then
1432dfe64dd3Smacallan  srcdir=.
1433dfe64dd3Smacallanfi
1434dfe64dd3Smacallan# Remove unnecessary trailing slashes from srcdir.
1435dfe64dd3Smacallan# Double slashes in file names in object file debugging info
1436dfe64dd3Smacallan# mess up M-x gdb in Emacs.
1437dfe64dd3Smacallancase $srcdir in
1438dfe64dd3Smacallan*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439dfe64dd3Smacallanesac
1440dfe64dd3Smacallanfor ac_var in $ac_precious_vars; do
1441dfe64dd3Smacallan  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442dfe64dd3Smacallan  eval ac_env_${ac_var}_value=\$${ac_var}
1443dfe64dd3Smacallan  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444dfe64dd3Smacallan  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445dfe64dd3Smacallandone
1446dfe64dd3Smacallan
1447dfe64dd3Smacallan#
1448dfe64dd3Smacallan# Report the --help message.
1449dfe64dd3Smacallan#
1450dfe64dd3Smacallanif test "$ac_init_help" = "long"; then
1451dfe64dd3Smacallan  # Omit some internal or obsolete options to make the list less imposing.
1452dfe64dd3Smacallan  # This message is too long to be a string in the A/UX 3.1 sh.
1453dfe64dd3Smacallan  cat <<_ACEOF
1454dfe64dd3Smacallan\`configure' configures xf86-video-xgi 1.6.0 to adapt to many kinds of systems.
1455dfe64dd3Smacallan
1456dfe64dd3SmacallanUsage: $0 [OPTION]... [VAR=VALUE]...
1457dfe64dd3Smacallan
1458dfe64dd3SmacallanTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1459dfe64dd3SmacallanVAR=VALUE.  See below for descriptions of some of the useful variables.
1460dfe64dd3Smacallan
1461dfe64dd3SmacallanDefaults for the options are specified in brackets.
1462dfe64dd3Smacallan
1463dfe64dd3SmacallanConfiguration:
1464dfe64dd3Smacallan  -h, --help              display this help and exit
1465dfe64dd3Smacallan      --help=short        display options specific to this package
1466dfe64dd3Smacallan      --help=recursive    display the short help of all the included packages
1467dfe64dd3Smacallan  -V, --version           display version information and exit
1468dfe64dd3Smacallan  -q, --quiet, --silent   do not print \`checking ...' messages
1469dfe64dd3Smacallan      --cache-file=FILE   cache test results in FILE [disabled]
1470dfe64dd3Smacallan  -C, --config-cache      alias for \`--cache-file=config.cache'
1471dfe64dd3Smacallan  -n, --no-create         do not create output files
1472dfe64dd3Smacallan      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1473dfe64dd3Smacallan
1474dfe64dd3SmacallanInstallation directories:
1475dfe64dd3Smacallan  --prefix=PREFIX         install architecture-independent files in PREFIX
1476dfe64dd3Smacallan                          [$ac_default_prefix]
1477dfe64dd3Smacallan  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1478dfe64dd3Smacallan                          [PREFIX]
1479dfe64dd3Smacallan
1480dfe64dd3SmacallanBy default, \`make install' will install all the files in
1481dfe64dd3Smacallan\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1482dfe64dd3Smacallanan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483dfe64dd3Smacallanfor instance \`--prefix=\$HOME'.
1484dfe64dd3Smacallan
1485dfe64dd3SmacallanFor better control, use the options below.
1486dfe64dd3Smacallan
1487dfe64dd3SmacallanFine tuning of the installation directories:
1488dfe64dd3Smacallan  --bindir=DIR            user executables [EPREFIX/bin]
1489dfe64dd3Smacallan  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1490dfe64dd3Smacallan  --libexecdir=DIR        program executables [EPREFIX/libexec]
1491dfe64dd3Smacallan  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1492dfe64dd3Smacallan  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1493dfe64dd3Smacallan  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1494dfe64dd3Smacallan  --libdir=DIR            object code libraries [EPREFIX/lib]
1495dfe64dd3Smacallan  --includedir=DIR        C header files [PREFIX/include]
1496dfe64dd3Smacallan  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1497dfe64dd3Smacallan  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1498dfe64dd3Smacallan  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1499dfe64dd3Smacallan  --infodir=DIR           info documentation [DATAROOTDIR/info]
1500dfe64dd3Smacallan  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1501dfe64dd3Smacallan  --mandir=DIR            man documentation [DATAROOTDIR/man]
1502dfe64dd3Smacallan  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-xgi]
1503dfe64dd3Smacallan  --htmldir=DIR           html documentation [DOCDIR]
1504dfe64dd3Smacallan  --dvidir=DIR            dvi documentation [DOCDIR]
1505dfe64dd3Smacallan  --pdfdir=DIR            pdf documentation [DOCDIR]
1506dfe64dd3Smacallan  --psdir=DIR             ps documentation [DOCDIR]
1507dfe64dd3Smacallan_ACEOF
1508dfe64dd3Smacallan
1509dfe64dd3Smacallan  cat <<\_ACEOF
1510dfe64dd3Smacallan
1511dfe64dd3SmacallanProgram names:
1512dfe64dd3Smacallan  --program-prefix=PREFIX            prepend PREFIX to installed program names
1513dfe64dd3Smacallan  --program-suffix=SUFFIX            append SUFFIX to installed program names
1514dfe64dd3Smacallan  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1515dfe64dd3Smacallan
1516dfe64dd3SmacallanSystem types:
1517dfe64dd3Smacallan  --build=BUILD     configure for building on BUILD [guessed]
1518dfe64dd3Smacallan  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1519dfe64dd3Smacallan_ACEOF
1520dfe64dd3Smacallanfi
1521dfe64dd3Smacallan
1522dfe64dd3Smacallanif test -n "$ac_init_help"; then
1523dfe64dd3Smacallan  case $ac_init_help in
1524dfe64dd3Smacallan     short | recursive ) echo "Configuration of xf86-video-xgi 1.6.0:";;
1525dfe64dd3Smacallan   esac
1526dfe64dd3Smacallan  cat <<\_ACEOF
1527dfe64dd3Smacallan
1528dfe64dd3SmacallanOptional Features:
1529dfe64dd3Smacallan  --disable-option-checking  ignore unrecognized --enable/--with options
1530dfe64dd3Smacallan  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531dfe64dd3Smacallan  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532dfe64dd3Smacallan  --enable-maintainer-mode  enable make rules and dependencies not useful
1533dfe64dd3Smacallan			  (and sometimes confusing) to the casual installer
1534dfe64dd3Smacallan  --enable-static[=PKGS]  build static libraries [default=no]
1535dfe64dd3Smacallan  --enable-shared[=PKGS]  build shared libraries [default=yes]
1536dfe64dd3Smacallan  --enable-fast-install[=PKGS]
1537dfe64dd3Smacallan                          optimize for fast installation [default=yes]
1538dfe64dd3Smacallan  --disable-dependency-tracking  speeds up one-time build
1539dfe64dd3Smacallan  --enable-dependency-tracking   do not reject slow dependency extractors
1540dfe64dd3Smacallan  --disable-libtool-lock  avoid locking (might break parallel builds)
1541dfe64dd3Smacallan  --disable-dri           Disable DRI support [[default=auto]]
1542dfe64dd3Smacallan
1543dfe64dd3SmacallanOptional Packages:
1544dfe64dd3Smacallan  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545dfe64dd3Smacallan  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546dfe64dd3Smacallan  --with-pic              try to use only PIC/non-PIC objects [default=use
1547dfe64dd3Smacallan                          both]
1548dfe64dd3Smacallan  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549dfe64dd3Smacallan  --with-xorg-module-dir=DIR
1550dfe64dd3Smacallan                          Default xorg module directory
1551dfe64dd3Smacallan                          [[default=$libdir/xorg/modules]]
1552dfe64dd3Smacallan
1553dfe64dd3SmacallanSome influential environment variables:
1554dfe64dd3Smacallan  CC          C compiler command
1555dfe64dd3Smacallan  CFLAGS      C compiler flags
1556dfe64dd3Smacallan  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557dfe64dd3Smacallan              nonstandard directory <lib dir>
1558dfe64dd3Smacallan  LIBS        libraries to pass to the linker, e.g. -l<library>
1559dfe64dd3Smacallan  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560dfe64dd3Smacallan              you have headers in a nonstandard directory <include dir>
1561dfe64dd3Smacallan  CPP         C preprocessor
1562dfe64dd3Smacallan  PKG_CONFIG  path to pkg-config utility
1563dfe64dd3Smacallan  PKG_CONFIG_PATH
1564dfe64dd3Smacallan              directories to add to pkg-config's search path
1565dfe64dd3Smacallan  PKG_CONFIG_LIBDIR
1566dfe64dd3Smacallan              path overriding pkg-config's built-in search path
1567dfe64dd3Smacallan  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1568dfe64dd3Smacallan  XORG_LIBS   linker flags for XORG, overriding pkg-config
1569dfe64dd3Smacallan  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1570dfe64dd3Smacallan  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1571dfe64dd3Smacallan  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1572dfe64dd3Smacallan  DRI_LIBS    linker flags for DRI, overriding pkg-config
1573dfe64dd3Smacallan  PCIACCESS_CFLAGS
1574dfe64dd3Smacallan              C compiler flags for PCIACCESS, overriding pkg-config
1575dfe64dd3Smacallan  PCIACCESS_LIBS
1576dfe64dd3Smacallan              linker flags for PCIACCESS, overriding pkg-config
1577dfe64dd3Smacallan
1578dfe64dd3SmacallanUse these variables to override the choices made by `configure' or to help
1579dfe64dd3Smacallanit to find libraries and programs with nonstandard names/locations.
1580dfe64dd3Smacallan
1581dfe64dd3SmacallanReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1582dfe64dd3Smacallan_ACEOF
1583dfe64dd3Smacallanac_status=$?
1584dfe64dd3Smacallanfi
1585dfe64dd3Smacallan
1586dfe64dd3Smacallanif test "$ac_init_help" = "recursive"; then
1587dfe64dd3Smacallan  # If there are subdirs, report their specific --help.
1588dfe64dd3Smacallan  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589dfe64dd3Smacallan    test -d "$ac_dir" ||
1590dfe64dd3Smacallan      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1591dfe64dd3Smacallan      continue
1592dfe64dd3Smacallan    ac_builddir=.
1593dfe64dd3Smacallan
1594dfe64dd3Smacallancase "$ac_dir" in
1595dfe64dd3Smacallan.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596dfe64dd3Smacallan*)
1597dfe64dd3Smacallan  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1598dfe64dd3Smacallan  # A ".." for each directory in $ac_dir_suffix.
1599dfe64dd3Smacallan  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1600dfe64dd3Smacallan  case $ac_top_builddir_sub in
1601dfe64dd3Smacallan  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602dfe64dd3Smacallan  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603dfe64dd3Smacallan  esac ;;
1604dfe64dd3Smacallanesac
1605dfe64dd3Smacallanac_abs_top_builddir=$ac_pwd
1606dfe64dd3Smacallanac_abs_builddir=$ac_pwd$ac_dir_suffix
1607dfe64dd3Smacallan# for backward compatibility:
1608dfe64dd3Smacallanac_top_builddir=$ac_top_build_prefix
1609dfe64dd3Smacallan
1610dfe64dd3Smacallancase $srcdir in
1611dfe64dd3Smacallan  .)  # We are building in place.
1612dfe64dd3Smacallan    ac_srcdir=.
1613dfe64dd3Smacallan    ac_top_srcdir=$ac_top_builddir_sub
1614dfe64dd3Smacallan    ac_abs_top_srcdir=$ac_pwd ;;
1615dfe64dd3Smacallan  [\\/]* | ?:[\\/]* )  # Absolute name.
1616dfe64dd3Smacallan    ac_srcdir=$srcdir$ac_dir_suffix;
1617dfe64dd3Smacallan    ac_top_srcdir=$srcdir
1618dfe64dd3Smacallan    ac_abs_top_srcdir=$srcdir ;;
1619dfe64dd3Smacallan  *) # Relative name.
1620dfe64dd3Smacallan    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621dfe64dd3Smacallan    ac_top_srcdir=$ac_top_build_prefix$srcdir
1622dfe64dd3Smacallan    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623dfe64dd3Smacallanesac
1624dfe64dd3Smacallanac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625dfe64dd3Smacallan
1626dfe64dd3Smacallan    cd "$ac_dir" || { ac_status=$?; continue; }
1627dfe64dd3Smacallan    # Check for guested configure.
1628dfe64dd3Smacallan    if test -f "$ac_srcdir/configure.gnu"; then
1629dfe64dd3Smacallan      echo &&
1630dfe64dd3Smacallan      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631dfe64dd3Smacallan    elif test -f "$ac_srcdir/configure"; then
1632dfe64dd3Smacallan      echo &&
1633dfe64dd3Smacallan      $SHELL "$ac_srcdir/configure" --help=recursive
1634dfe64dd3Smacallan    else
1635dfe64dd3Smacallan      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636dfe64dd3Smacallan    fi || ac_status=$?
1637dfe64dd3Smacallan    cd "$ac_pwd" || { ac_status=$?; break; }
1638dfe64dd3Smacallan  done
1639dfe64dd3Smacallanfi
1640dfe64dd3Smacallan
1641dfe64dd3Smacallantest -n "$ac_init_help" && exit $ac_status
1642dfe64dd3Smacallanif $ac_init_version; then
1643dfe64dd3Smacallan  cat <<\_ACEOF
1644dfe64dd3Smacallanxf86-video-xgi configure 1.6.0
1645dfe64dd3Smacallangenerated by GNU Autoconf 2.67
1646dfe64dd3Smacallan
1647dfe64dd3SmacallanCopyright (C) 2010 Free Software Foundation, Inc.
1648dfe64dd3SmacallanThis configure script is free software; the Free Software Foundation
1649dfe64dd3Smacallangives unlimited permission to copy, distribute and modify it.
1650dfe64dd3Smacallan_ACEOF
1651dfe64dd3Smacallan  exit
1652dfe64dd3Smacallanfi
1653dfe64dd3Smacallan
1654dfe64dd3Smacallan## ------------------------ ##
1655dfe64dd3Smacallan## Autoconf initialization. ##
1656dfe64dd3Smacallan## ------------------------ ##
1657dfe64dd3Smacallan
1658dfe64dd3Smacallan# ac_fn_c_try_compile LINENO
1659dfe64dd3Smacallan# --------------------------
1660dfe64dd3Smacallan# Try to compile conftest.$ac_ext, and return whether this succeeded.
1661dfe64dd3Smacallanac_fn_c_try_compile ()
1662dfe64dd3Smacallan{
1663dfe64dd3Smacallan  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664dfe64dd3Smacallan  rm -f conftest.$ac_objext
1665dfe64dd3Smacallan  if { { ac_try="$ac_compile"
1666dfe64dd3Smacallancase "(($ac_try" in
1667dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
1669dfe64dd3Smacallanesac
1670dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
1672dfe64dd3Smacallan  (eval "$ac_compile") 2>conftest.err
1673dfe64dd3Smacallan  ac_status=$?
1674dfe64dd3Smacallan  if test -s conftest.err; then
1675dfe64dd3Smacallan    grep -v '^ *+' conftest.err >conftest.er1
1676dfe64dd3Smacallan    cat conftest.er1 >&5
1677dfe64dd3Smacallan    mv -f conftest.er1 conftest.err
1678dfe64dd3Smacallan  fi
1679dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680dfe64dd3Smacallan  test $ac_status = 0; } && {
1681dfe64dd3Smacallan	 test -z "$ac_c_werror_flag" ||
1682dfe64dd3Smacallan	 test ! -s conftest.err
1683dfe64dd3Smacallan       } && test -s conftest.$ac_objext; then :
1684dfe64dd3Smacallan  ac_retval=0
1685dfe64dd3Smacallanelse
1686dfe64dd3Smacallan  $as_echo "$as_me: failed program was:" >&5
1687dfe64dd3Smacallansed 's/^/| /' conftest.$ac_ext >&5
1688dfe64dd3Smacallan
1689dfe64dd3Smacallan	ac_retval=1
1690dfe64dd3Smacallanfi
1691dfe64dd3Smacallan  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692dfe64dd3Smacallan  as_fn_set_status $ac_retval
1693dfe64dd3Smacallan
1694dfe64dd3Smacallan} # ac_fn_c_try_compile
1695dfe64dd3Smacallan
1696dfe64dd3Smacallan# ac_fn_c_try_link LINENO
1697dfe64dd3Smacallan# -----------------------
1698dfe64dd3Smacallan# Try to link conftest.$ac_ext, and return whether this succeeded.
1699dfe64dd3Smacallanac_fn_c_try_link ()
1700dfe64dd3Smacallan{
1701dfe64dd3Smacallan  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702dfe64dd3Smacallan  rm -f conftest.$ac_objext conftest$ac_exeext
1703dfe64dd3Smacallan  if { { ac_try="$ac_link"
1704dfe64dd3Smacallancase "(($ac_try" in
1705dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
1707dfe64dd3Smacallanesac
1708dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
1710dfe64dd3Smacallan  (eval "$ac_link") 2>conftest.err
1711dfe64dd3Smacallan  ac_status=$?
1712dfe64dd3Smacallan  if test -s conftest.err; then
1713dfe64dd3Smacallan    grep -v '^ *+' conftest.err >conftest.er1
1714dfe64dd3Smacallan    cat conftest.er1 >&5
1715dfe64dd3Smacallan    mv -f conftest.er1 conftest.err
1716dfe64dd3Smacallan  fi
1717dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718dfe64dd3Smacallan  test $ac_status = 0; } && {
1719dfe64dd3Smacallan	 test -z "$ac_c_werror_flag" ||
1720dfe64dd3Smacallan	 test ! -s conftest.err
1721dfe64dd3Smacallan       } && test -s conftest$ac_exeext && {
1722dfe64dd3Smacallan	 test "$cross_compiling" = yes ||
1723dfe64dd3Smacallan	 $as_test_x conftest$ac_exeext
1724dfe64dd3Smacallan       }; then :
1725dfe64dd3Smacallan  ac_retval=0
1726dfe64dd3Smacallanelse
1727dfe64dd3Smacallan  $as_echo "$as_me: failed program was:" >&5
1728dfe64dd3Smacallansed 's/^/| /' conftest.$ac_ext >&5
1729dfe64dd3Smacallan
1730dfe64dd3Smacallan	ac_retval=1
1731dfe64dd3Smacallanfi
1732dfe64dd3Smacallan  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1733dfe64dd3Smacallan  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1734dfe64dd3Smacallan  # interfere with the next link command; also delete a directory that is
1735dfe64dd3Smacallan  # left behind by Apple's compiler.  We do this before executing the actions.
1736dfe64dd3Smacallan  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737dfe64dd3Smacallan  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738dfe64dd3Smacallan  as_fn_set_status $ac_retval
1739dfe64dd3Smacallan
1740dfe64dd3Smacallan} # ac_fn_c_try_link
1741dfe64dd3Smacallan
1742dfe64dd3Smacallan# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743dfe64dd3Smacallan# -------------------------------------------------------
1744dfe64dd3Smacallan# Tests whether HEADER exists and can be compiled using the include files in
1745dfe64dd3Smacallan# INCLUDES, setting the cache variable VAR accordingly.
1746dfe64dd3Smacallanac_fn_c_check_header_compile ()
1747dfe64dd3Smacallan{
1748dfe64dd3Smacallan  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750dfe64dd3Smacallan$as_echo_n "checking for $2... " >&6; }
1751dfe64dd3Smacallanif eval "test \"\${$3+set}\"" = set; then :
1752dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
1753dfe64dd3Smacallanelse
1754dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755dfe64dd3Smacallan/* end confdefs.h.  */
1756dfe64dd3Smacallan$4
1757dfe64dd3Smacallan#include <$2>
1758dfe64dd3Smacallan_ACEOF
1759dfe64dd3Smacallanif ac_fn_c_try_compile "$LINENO"; then :
1760dfe64dd3Smacallan  eval "$3=yes"
1761dfe64dd3Smacallanelse
1762dfe64dd3Smacallan  eval "$3=no"
1763dfe64dd3Smacallanfi
1764dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765dfe64dd3Smacallanfi
1766dfe64dd3Smacallaneval ac_res=\$$3
1767dfe64dd3Smacallan	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768dfe64dd3Smacallan$as_echo "$ac_res" >&6; }
1769dfe64dd3Smacallan  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770dfe64dd3Smacallan
1771dfe64dd3Smacallan} # ac_fn_c_check_header_compile
1772dfe64dd3Smacallan
1773dfe64dd3Smacallan# ac_fn_c_try_cpp LINENO
1774dfe64dd3Smacallan# ----------------------
1775dfe64dd3Smacallan# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776dfe64dd3Smacallanac_fn_c_try_cpp ()
1777dfe64dd3Smacallan{
1778dfe64dd3Smacallan  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779dfe64dd3Smacallan  if { { ac_try="$ac_cpp conftest.$ac_ext"
1780dfe64dd3Smacallancase "(($ac_try" in
1781dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
1783dfe64dd3Smacallanesac
1784dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
1786dfe64dd3Smacallan  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787dfe64dd3Smacallan  ac_status=$?
1788dfe64dd3Smacallan  if test -s conftest.err; then
1789dfe64dd3Smacallan    grep -v '^ *+' conftest.err >conftest.er1
1790dfe64dd3Smacallan    cat conftest.er1 >&5
1791dfe64dd3Smacallan    mv -f conftest.er1 conftest.err
1792dfe64dd3Smacallan  fi
1793dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794dfe64dd3Smacallan  test $ac_status = 0; } > conftest.i && {
1795dfe64dd3Smacallan	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796dfe64dd3Smacallan	 test ! -s conftest.err
1797dfe64dd3Smacallan       }; then :
1798dfe64dd3Smacallan  ac_retval=0
1799dfe64dd3Smacallanelse
1800dfe64dd3Smacallan  $as_echo "$as_me: failed program was:" >&5
1801dfe64dd3Smacallansed 's/^/| /' conftest.$ac_ext >&5
1802dfe64dd3Smacallan
1803dfe64dd3Smacallan    ac_retval=1
1804dfe64dd3Smacallanfi
1805dfe64dd3Smacallan  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806dfe64dd3Smacallan  as_fn_set_status $ac_retval
1807dfe64dd3Smacallan
1808dfe64dd3Smacallan} # ac_fn_c_try_cpp
1809dfe64dd3Smacallan
1810dfe64dd3Smacallan# ac_fn_c_try_run LINENO
1811dfe64dd3Smacallan# ----------------------
1812dfe64dd3Smacallan# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1813dfe64dd3Smacallan# that executables *can* be run.
1814dfe64dd3Smacallanac_fn_c_try_run ()
1815dfe64dd3Smacallan{
1816dfe64dd3Smacallan  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817dfe64dd3Smacallan  if { { ac_try="$ac_link"
1818dfe64dd3Smacallancase "(($ac_try" in
1819dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
1821dfe64dd3Smacallanesac
1822dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
1824dfe64dd3Smacallan  (eval "$ac_link") 2>&5
1825dfe64dd3Smacallan  ac_status=$?
1826dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827dfe64dd3Smacallan  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1828dfe64dd3Smacallan  { { case "(($ac_try" in
1829dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
1831dfe64dd3Smacallanesac
1832dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
1834dfe64dd3Smacallan  (eval "$ac_try") 2>&5
1835dfe64dd3Smacallan  ac_status=$?
1836dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837dfe64dd3Smacallan  test $ac_status = 0; }; }; then :
1838dfe64dd3Smacallan  ac_retval=0
1839dfe64dd3Smacallanelse
1840dfe64dd3Smacallan  $as_echo "$as_me: program exited with status $ac_status" >&5
1841dfe64dd3Smacallan       $as_echo "$as_me: failed program was:" >&5
1842dfe64dd3Smacallansed 's/^/| /' conftest.$ac_ext >&5
1843dfe64dd3Smacallan
1844dfe64dd3Smacallan       ac_retval=$ac_status
1845dfe64dd3Smacallanfi
1846dfe64dd3Smacallan  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847dfe64dd3Smacallan  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848dfe64dd3Smacallan  as_fn_set_status $ac_retval
1849dfe64dd3Smacallan
1850dfe64dd3Smacallan} # ac_fn_c_try_run
1851dfe64dd3Smacallan
1852dfe64dd3Smacallan# ac_fn_c_check_func LINENO FUNC VAR
1853dfe64dd3Smacallan# ----------------------------------
1854dfe64dd3Smacallan# Tests whether FUNC exists, setting the cache variable VAR accordingly
1855dfe64dd3Smacallanac_fn_c_check_func ()
1856dfe64dd3Smacallan{
1857dfe64dd3Smacallan  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859dfe64dd3Smacallan$as_echo_n "checking for $2... " >&6; }
1860dfe64dd3Smacallanif eval "test \"\${$3+set}\"" = set; then :
1861dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
1862dfe64dd3Smacallanelse
1863dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864dfe64dd3Smacallan/* end confdefs.h.  */
1865dfe64dd3Smacallan/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866dfe64dd3Smacallan   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1867dfe64dd3Smacallan#define $2 innocuous_$2
1868dfe64dd3Smacallan
1869dfe64dd3Smacallan/* System header to define __stub macros and hopefully few prototypes,
1870dfe64dd3Smacallan    which can conflict with char $2 (); below.
1871dfe64dd3Smacallan    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872dfe64dd3Smacallan    <limits.h> exists even on freestanding compilers.  */
1873dfe64dd3Smacallan
1874dfe64dd3Smacallan#ifdef __STDC__
1875dfe64dd3Smacallan# include <limits.h>
1876dfe64dd3Smacallan#else
1877dfe64dd3Smacallan# include <assert.h>
1878dfe64dd3Smacallan#endif
1879dfe64dd3Smacallan
1880dfe64dd3Smacallan#undef $2
1881dfe64dd3Smacallan
1882dfe64dd3Smacallan/* Override any GCC internal prototype to avoid an error.
1883dfe64dd3Smacallan   Use char because int might match the return type of a GCC
1884dfe64dd3Smacallan   builtin and then its argument prototype would still apply.  */
1885dfe64dd3Smacallan#ifdef __cplusplus
1886dfe64dd3Smacallanextern "C"
1887dfe64dd3Smacallan#endif
1888dfe64dd3Smacallanchar $2 ();
1889dfe64dd3Smacallan/* The GNU C library defines this for functions which it implements
1890dfe64dd3Smacallan    to always fail with ENOSYS.  Some functions are actually named
1891dfe64dd3Smacallan    something starting with __ and the normal name is an alias.  */
1892dfe64dd3Smacallan#if defined __stub_$2 || defined __stub___$2
1893dfe64dd3Smacallanchoke me
1894dfe64dd3Smacallan#endif
1895dfe64dd3Smacallan
1896dfe64dd3Smacallanint
1897dfe64dd3Smacallanmain ()
1898dfe64dd3Smacallan{
1899dfe64dd3Smacallanreturn $2 ();
1900dfe64dd3Smacallan  ;
1901dfe64dd3Smacallan  return 0;
1902dfe64dd3Smacallan}
1903dfe64dd3Smacallan_ACEOF
1904dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
1905dfe64dd3Smacallan  eval "$3=yes"
1906dfe64dd3Smacallanelse
1907dfe64dd3Smacallan  eval "$3=no"
1908dfe64dd3Smacallanfi
1909dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
1910dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
1911dfe64dd3Smacallanfi
1912dfe64dd3Smacallaneval ac_res=\$$3
1913dfe64dd3Smacallan	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914dfe64dd3Smacallan$as_echo "$ac_res" >&6; }
1915dfe64dd3Smacallan  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916dfe64dd3Smacallan
1917dfe64dd3Smacallan} # ac_fn_c_check_func
1918dfe64dd3Smacallan
1919dfe64dd3Smacallan# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1920dfe64dd3Smacallan# ---------------------------------------------
1921dfe64dd3Smacallan# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1922dfe64dd3Smacallan# accordingly.
1923dfe64dd3Smacallanac_fn_c_check_decl ()
1924dfe64dd3Smacallan{
1925dfe64dd3Smacallan  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926dfe64dd3Smacallan  as_decl_name=`echo $2|sed 's/ *(.*//'`
1927dfe64dd3Smacallan  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1928dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1929dfe64dd3Smacallan$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1930dfe64dd3Smacallanif eval "test \"\${$3+set}\"" = set; then :
1931dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
1932dfe64dd3Smacallanelse
1933dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934dfe64dd3Smacallan/* end confdefs.h.  */
1935dfe64dd3Smacallan$4
1936dfe64dd3Smacallanint
1937dfe64dd3Smacallanmain ()
1938dfe64dd3Smacallan{
1939dfe64dd3Smacallan#ifndef $as_decl_name
1940dfe64dd3Smacallan#ifdef __cplusplus
1941dfe64dd3Smacallan  (void) $as_decl_use;
1942dfe64dd3Smacallan#else
1943dfe64dd3Smacallan  (void) $as_decl_name;
1944dfe64dd3Smacallan#endif
1945dfe64dd3Smacallan#endif
1946dfe64dd3Smacallan
1947dfe64dd3Smacallan  ;
1948dfe64dd3Smacallan  return 0;
1949dfe64dd3Smacallan}
1950dfe64dd3Smacallan_ACEOF
1951dfe64dd3Smacallanif ac_fn_c_try_compile "$LINENO"; then :
1952dfe64dd3Smacallan  eval "$3=yes"
1953dfe64dd3Smacallanelse
1954dfe64dd3Smacallan  eval "$3=no"
1955dfe64dd3Smacallanfi
1956dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957dfe64dd3Smacallanfi
1958dfe64dd3Smacallaneval ac_res=\$$3
1959dfe64dd3Smacallan	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960dfe64dd3Smacallan$as_echo "$ac_res" >&6; }
1961dfe64dd3Smacallan  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962dfe64dd3Smacallan
1963dfe64dd3Smacallan} # ac_fn_c_check_decl
1964dfe64dd3Smacallancat >config.log <<_ACEOF
1965dfe64dd3SmacallanThis file contains any messages produced by compilers while
1966dfe64dd3Smacallanrunning configure, to aid debugging if configure makes a mistake.
1967dfe64dd3Smacallan
1968dfe64dd3SmacallanIt was created by xf86-video-xgi $as_me 1.6.0, which was
1969dfe64dd3Smacallangenerated by GNU Autoconf 2.67.  Invocation command line was
1970dfe64dd3Smacallan
1971dfe64dd3Smacallan  $ $0 $@
1972dfe64dd3Smacallan
1973dfe64dd3Smacallan_ACEOF
1974dfe64dd3Smacallanexec 5>>config.log
1975dfe64dd3Smacallan{
1976dfe64dd3Smacallancat <<_ASUNAME
1977dfe64dd3Smacallan## --------- ##
1978dfe64dd3Smacallan## Platform. ##
1979dfe64dd3Smacallan## --------- ##
1980dfe64dd3Smacallan
1981dfe64dd3Smacallanhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982dfe64dd3Smacallanuname -m = `(uname -m) 2>/dev/null || echo unknown`
1983dfe64dd3Smacallanuname -r = `(uname -r) 2>/dev/null || echo unknown`
1984dfe64dd3Smacallanuname -s = `(uname -s) 2>/dev/null || echo unknown`
1985dfe64dd3Smacallanuname -v = `(uname -v) 2>/dev/null || echo unknown`
1986dfe64dd3Smacallan
1987dfe64dd3Smacallan/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988dfe64dd3Smacallan/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1989dfe64dd3Smacallan
1990dfe64dd3Smacallan/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1991dfe64dd3Smacallan/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1992dfe64dd3Smacallan/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993dfe64dd3Smacallan/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1994dfe64dd3Smacallan/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1995dfe64dd3Smacallan/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1996dfe64dd3Smacallan/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1997dfe64dd3Smacallan
1998dfe64dd3Smacallan_ASUNAME
1999dfe64dd3Smacallan
2000dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001dfe64dd3Smacallanfor as_dir in $PATH
2002dfe64dd3Smacallando
2003dfe64dd3Smacallan  IFS=$as_save_IFS
2004dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
2005dfe64dd3Smacallan    $as_echo "PATH: $as_dir"
2006dfe64dd3Smacallan  done
2007dfe64dd3SmacallanIFS=$as_save_IFS
2008dfe64dd3Smacallan
2009dfe64dd3Smacallan} >&5
2010dfe64dd3Smacallan
2011dfe64dd3Smacallancat >&5 <<_ACEOF
2012dfe64dd3Smacallan
2013dfe64dd3Smacallan
2014dfe64dd3Smacallan## ----------- ##
2015dfe64dd3Smacallan## Core tests. ##
2016dfe64dd3Smacallan## ----------- ##
2017dfe64dd3Smacallan
2018dfe64dd3Smacallan_ACEOF
2019dfe64dd3Smacallan
2020dfe64dd3Smacallan
2021dfe64dd3Smacallan# Keep a trace of the command line.
2022dfe64dd3Smacallan# Strip out --no-create and --no-recursion so they do not pile up.
2023dfe64dd3Smacallan# Strip out --silent because we don't want to record it for future runs.
2024dfe64dd3Smacallan# Also quote any args containing shell meta-characters.
2025dfe64dd3Smacallan# Make two passes to allow for proper duplicate-argument suppression.
2026dfe64dd3Smacallanac_configure_args=
2027dfe64dd3Smacallanac_configure_args0=
2028dfe64dd3Smacallanac_configure_args1=
2029dfe64dd3Smacallanac_must_keep_next=false
2030dfe64dd3Smacallanfor ac_pass in 1 2
2031dfe64dd3Smacallando
2032dfe64dd3Smacallan  for ac_arg
2033dfe64dd3Smacallan  do
2034dfe64dd3Smacallan    case $ac_arg in
2035dfe64dd3Smacallan    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2036dfe64dd3Smacallan    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2037dfe64dd3Smacallan    | -silent | --silent | --silen | --sile | --sil)
2038dfe64dd3Smacallan      continue ;;
2039dfe64dd3Smacallan    *\'*)
2040dfe64dd3Smacallan      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2041dfe64dd3Smacallan    esac
2042dfe64dd3Smacallan    case $ac_pass in
2043dfe64dd3Smacallan    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044dfe64dd3Smacallan    2)
2045dfe64dd3Smacallan      as_fn_append ac_configure_args1 " '$ac_arg'"
2046dfe64dd3Smacallan      if test $ac_must_keep_next = true; then
2047dfe64dd3Smacallan	ac_must_keep_next=false # Got value, back to normal.
2048dfe64dd3Smacallan      else
2049dfe64dd3Smacallan	case $ac_arg in
2050dfe64dd3Smacallan	  *=* | --config-cache | -C | -disable-* | --disable-* \
2051dfe64dd3Smacallan	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2052dfe64dd3Smacallan	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2053dfe64dd3Smacallan	  | -with-* | --with-* | -without-* | --without-* | --x)
2054dfe64dd3Smacallan	    case "$ac_configure_args0 " in
2055dfe64dd3Smacallan	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2056dfe64dd3Smacallan	    esac
2057dfe64dd3Smacallan	    ;;
2058dfe64dd3Smacallan	  -* ) ac_must_keep_next=true ;;
2059dfe64dd3Smacallan	esac
2060dfe64dd3Smacallan      fi
2061dfe64dd3Smacallan      as_fn_append ac_configure_args " '$ac_arg'"
2062dfe64dd3Smacallan      ;;
2063dfe64dd3Smacallan    esac
2064dfe64dd3Smacallan  done
2065dfe64dd3Smacallandone
2066dfe64dd3Smacallan{ ac_configure_args0=; unset ac_configure_args0;}
2067dfe64dd3Smacallan{ ac_configure_args1=; unset ac_configure_args1;}
2068dfe64dd3Smacallan
2069dfe64dd3Smacallan# When interrupted or exit'd, cleanup temporary files, and complete
2070dfe64dd3Smacallan# config.log.  We remove comments because anyway the quotes in there
2071dfe64dd3Smacallan# would cause problems or look ugly.
2072dfe64dd3Smacallan# WARNING: Use '\'' to represent an apostrophe within the trap.
2073dfe64dd3Smacallan# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2074dfe64dd3Smacallantrap 'exit_status=$?
2075dfe64dd3Smacallan  # Save into config.log some information that might help in debugging.
2076dfe64dd3Smacallan  {
2077dfe64dd3Smacallan    echo
2078dfe64dd3Smacallan
2079dfe64dd3Smacallan    $as_echo "## ---------------- ##
2080dfe64dd3Smacallan## Cache variables. ##
2081dfe64dd3Smacallan## ---------------- ##"
2082dfe64dd3Smacallan    echo
2083dfe64dd3Smacallan    # The following way of writing the cache mishandles newlines in values,
2084dfe64dd3Smacallan(
2085dfe64dd3Smacallan  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086dfe64dd3Smacallan    eval ac_val=\$$ac_var
2087dfe64dd3Smacallan    case $ac_val in #(
2088dfe64dd3Smacallan    *${as_nl}*)
2089dfe64dd3Smacallan      case $ac_var in #(
2090dfe64dd3Smacallan      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091dfe64dd3Smacallan$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092dfe64dd3Smacallan      esac
2093dfe64dd3Smacallan      case $ac_var in #(
2094dfe64dd3Smacallan      _ | IFS | as_nl) ;; #(
2095dfe64dd3Smacallan      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096dfe64dd3Smacallan      *) { eval $ac_var=; unset $ac_var;} ;;
2097dfe64dd3Smacallan      esac ;;
2098dfe64dd3Smacallan    esac
2099dfe64dd3Smacallan  done
2100dfe64dd3Smacallan  (set) 2>&1 |
2101dfe64dd3Smacallan    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102dfe64dd3Smacallan    *${as_nl}ac_space=\ *)
2103dfe64dd3Smacallan      sed -n \
2104dfe64dd3Smacallan	"s/'\''/'\''\\\\'\'''\''/g;
2105dfe64dd3Smacallan	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106dfe64dd3Smacallan      ;; #(
2107dfe64dd3Smacallan    *)
2108dfe64dd3Smacallan      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109dfe64dd3Smacallan      ;;
2110dfe64dd3Smacallan    esac |
2111dfe64dd3Smacallan    sort
2112dfe64dd3Smacallan)
2113dfe64dd3Smacallan    echo
2114dfe64dd3Smacallan
2115dfe64dd3Smacallan    $as_echo "## ----------------- ##
2116dfe64dd3Smacallan## Output variables. ##
2117dfe64dd3Smacallan## ----------------- ##"
2118dfe64dd3Smacallan    echo
2119dfe64dd3Smacallan    for ac_var in $ac_subst_vars
2120dfe64dd3Smacallan    do
2121dfe64dd3Smacallan      eval ac_val=\$$ac_var
2122dfe64dd3Smacallan      case $ac_val in
2123dfe64dd3Smacallan      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124dfe64dd3Smacallan      esac
2125dfe64dd3Smacallan      $as_echo "$ac_var='\''$ac_val'\''"
2126dfe64dd3Smacallan    done | sort
2127dfe64dd3Smacallan    echo
2128dfe64dd3Smacallan
2129dfe64dd3Smacallan    if test -n "$ac_subst_files"; then
2130dfe64dd3Smacallan      $as_echo "## ------------------- ##
2131dfe64dd3Smacallan## File substitutions. ##
2132dfe64dd3Smacallan## ------------------- ##"
2133dfe64dd3Smacallan      echo
2134dfe64dd3Smacallan      for ac_var in $ac_subst_files
2135dfe64dd3Smacallan      do
2136dfe64dd3Smacallan	eval ac_val=\$$ac_var
2137dfe64dd3Smacallan	case $ac_val in
2138dfe64dd3Smacallan	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139dfe64dd3Smacallan	esac
2140dfe64dd3Smacallan	$as_echo "$ac_var='\''$ac_val'\''"
2141dfe64dd3Smacallan      done | sort
2142dfe64dd3Smacallan      echo
2143dfe64dd3Smacallan    fi
2144dfe64dd3Smacallan
2145dfe64dd3Smacallan    if test -s confdefs.h; then
2146dfe64dd3Smacallan      $as_echo "## ----------- ##
2147dfe64dd3Smacallan## confdefs.h. ##
2148dfe64dd3Smacallan## ----------- ##"
2149dfe64dd3Smacallan      echo
2150dfe64dd3Smacallan      cat confdefs.h
2151dfe64dd3Smacallan      echo
2152dfe64dd3Smacallan    fi
2153dfe64dd3Smacallan    test "$ac_signal" != 0 &&
2154dfe64dd3Smacallan      $as_echo "$as_me: caught signal $ac_signal"
2155dfe64dd3Smacallan    $as_echo "$as_me: exit $exit_status"
2156dfe64dd3Smacallan  } >&5
2157dfe64dd3Smacallan  rm -f core *.core core.conftest.* &&
2158dfe64dd3Smacallan    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2159dfe64dd3Smacallan    exit $exit_status
2160dfe64dd3Smacallan' 0
2161dfe64dd3Smacallanfor ac_signal in 1 2 13 15; do
2162dfe64dd3Smacallan  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2163dfe64dd3Smacallandone
2164dfe64dd3Smacallanac_signal=0
2165dfe64dd3Smacallan
2166dfe64dd3Smacallan# confdefs.h avoids OS command line length limits that DEFS can exceed.
2167dfe64dd3Smacallanrm -f -r conftest* confdefs.h
2168dfe64dd3Smacallan
2169dfe64dd3Smacallan$as_echo "/* confdefs.h */" > confdefs.h
2170dfe64dd3Smacallan
2171dfe64dd3Smacallan# Predefined preprocessor variables.
2172dfe64dd3Smacallan
2173dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
2174dfe64dd3Smacallan#define PACKAGE_NAME "$PACKAGE_NAME"
2175dfe64dd3Smacallan_ACEOF
2176dfe64dd3Smacallan
2177dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
2178dfe64dd3Smacallan#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2179dfe64dd3Smacallan_ACEOF
2180dfe64dd3Smacallan
2181dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
2182dfe64dd3Smacallan#define PACKAGE_VERSION "$PACKAGE_VERSION"
2183dfe64dd3Smacallan_ACEOF
2184dfe64dd3Smacallan
2185dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
2186dfe64dd3Smacallan#define PACKAGE_STRING "$PACKAGE_STRING"
2187dfe64dd3Smacallan_ACEOF
2188dfe64dd3Smacallan
2189dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
2190dfe64dd3Smacallan#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2191dfe64dd3Smacallan_ACEOF
2192dfe64dd3Smacallan
2193dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
2194dfe64dd3Smacallan#define PACKAGE_URL "$PACKAGE_URL"
2195dfe64dd3Smacallan_ACEOF
2196dfe64dd3Smacallan
2197dfe64dd3Smacallan
2198dfe64dd3Smacallan# Let the site file select an alternate cache file if it wants to.
2199dfe64dd3Smacallan# Prefer an explicitly selected file to automatically selected ones.
2200dfe64dd3Smacallanac_site_file1=NONE
2201dfe64dd3Smacallanac_site_file2=NONE
2202dfe64dd3Smacallanif test -n "$CONFIG_SITE"; then
2203dfe64dd3Smacallan  # We do not want a PATH search for config.site.
2204dfe64dd3Smacallan  case $CONFIG_SITE in #((
2205dfe64dd3Smacallan    -*)  ac_site_file1=./$CONFIG_SITE;;
2206dfe64dd3Smacallan    */*) ac_site_file1=$CONFIG_SITE;;
2207dfe64dd3Smacallan    *)   ac_site_file1=./$CONFIG_SITE;;
2208dfe64dd3Smacallan  esac
2209dfe64dd3Smacallanelif test "x$prefix" != xNONE; then
2210dfe64dd3Smacallan  ac_site_file1=$prefix/share/config.site
2211dfe64dd3Smacallan  ac_site_file2=$prefix/etc/config.site
2212dfe64dd3Smacallanelse
2213dfe64dd3Smacallan  ac_site_file1=$ac_default_prefix/share/config.site
2214dfe64dd3Smacallan  ac_site_file2=$ac_default_prefix/etc/config.site
2215dfe64dd3Smacallanfi
2216dfe64dd3Smacallanfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217dfe64dd3Smacallando
2218dfe64dd3Smacallan  test "x$ac_site_file" = xNONE && continue
2219dfe64dd3Smacallan  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221dfe64dd3Smacallan$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222dfe64dd3Smacallan    sed 's/^/| /' "$ac_site_file" >&5
2223dfe64dd3Smacallan    . "$ac_site_file" \
2224dfe64dd3Smacallan      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226dfe64dd3Smacallanas_fn_error $? "failed to load site script $ac_site_file
2227dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
2228dfe64dd3Smacallan  fi
2229dfe64dd3Smacallandone
2230dfe64dd3Smacallan
2231dfe64dd3Smacallanif test -r "$cache_file"; then
2232dfe64dd3Smacallan  # Some versions of bash will fail to source /dev/null (special files
2233dfe64dd3Smacallan  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2234dfe64dd3Smacallan  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236dfe64dd3Smacallan$as_echo "$as_me: loading cache $cache_file" >&6;}
2237dfe64dd3Smacallan    case $cache_file in
2238dfe64dd3Smacallan      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239dfe64dd3Smacallan      *)                      . "./$cache_file";;
2240dfe64dd3Smacallan    esac
2241dfe64dd3Smacallan  fi
2242dfe64dd3Smacallanelse
2243dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244dfe64dd3Smacallan$as_echo "$as_me: creating cache $cache_file" >&6;}
2245dfe64dd3Smacallan  >$cache_file
2246dfe64dd3Smacallanfi
2247dfe64dd3Smacallan
2248dfe64dd3Smacallan# Check that the precious variables saved in the cache have kept the same
2249dfe64dd3Smacallan# value.
2250dfe64dd3Smacallanac_cache_corrupted=false
2251dfe64dd3Smacallanfor ac_var in $ac_precious_vars; do
2252dfe64dd3Smacallan  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2253dfe64dd3Smacallan  eval ac_new_set=\$ac_env_${ac_var}_set
2254dfe64dd3Smacallan  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2255dfe64dd3Smacallan  eval ac_new_val=\$ac_env_${ac_var}_value
2256dfe64dd3Smacallan  case $ac_old_set,$ac_new_set in
2257dfe64dd3Smacallan    set,)
2258dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2259dfe64dd3Smacallan$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260dfe64dd3Smacallan      ac_cache_corrupted=: ;;
2261dfe64dd3Smacallan    ,set)
2262dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2263dfe64dd3Smacallan$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2264dfe64dd3Smacallan      ac_cache_corrupted=: ;;
2265dfe64dd3Smacallan    ,);;
2266dfe64dd3Smacallan    *)
2267dfe64dd3Smacallan      if test "x$ac_old_val" != "x$ac_new_val"; then
2268dfe64dd3Smacallan	# differences in whitespace do not lead to failure.
2269dfe64dd3Smacallan	ac_old_val_w=`echo x $ac_old_val`
2270dfe64dd3Smacallan	ac_new_val_w=`echo x $ac_new_val`
2271dfe64dd3Smacallan	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272dfe64dd3Smacallan	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273dfe64dd3Smacallan$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2274dfe64dd3Smacallan	  ac_cache_corrupted=:
2275dfe64dd3Smacallan	else
2276dfe64dd3Smacallan	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2277dfe64dd3Smacallan$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278dfe64dd3Smacallan	  eval $ac_var=\$ac_old_val
2279dfe64dd3Smacallan	fi
2280dfe64dd3Smacallan	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2281dfe64dd3Smacallan$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2282dfe64dd3Smacallan	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2283dfe64dd3Smacallan$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2284dfe64dd3Smacallan      fi;;
2285dfe64dd3Smacallan  esac
2286dfe64dd3Smacallan  # Pass precious variables to config.status.
2287dfe64dd3Smacallan  if test "$ac_new_set" = set; then
2288dfe64dd3Smacallan    case $ac_new_val in
2289dfe64dd3Smacallan    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2290dfe64dd3Smacallan    *) ac_arg=$ac_var=$ac_new_val ;;
2291dfe64dd3Smacallan    esac
2292dfe64dd3Smacallan    case " $ac_configure_args " in
2293dfe64dd3Smacallan      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2294dfe64dd3Smacallan      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2295dfe64dd3Smacallan    esac
2296dfe64dd3Smacallan  fi
2297dfe64dd3Smacallandone
2298dfe64dd3Smacallanif $ac_cache_corrupted; then
2299dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302dfe64dd3Smacallan$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303dfe64dd3Smacallan  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304dfe64dd3Smacallanfi
2305dfe64dd3Smacallan## -------------------- ##
2306dfe64dd3Smacallan## Main body of script. ##
2307dfe64dd3Smacallan## -------------------- ##
2308dfe64dd3Smacallan
2309dfe64dd3Smacallanac_ext=c
2310dfe64dd3Smacallanac_cpp='$CPP $CPPFLAGS'
2311dfe64dd3Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312dfe64dd3Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313dfe64dd3Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu
2314dfe64dd3Smacallan
2315dfe64dd3Smacallan
2316dfe64dd3SmacallanRELEASE_DATE="27 August 2007"
2317dfe64dd3Smacallan
2318dfe64dd3Smacallan
2319dfe64dd3Smacallanac_config_headers="$ac_config_headers config.h"
2320dfe64dd3Smacallan
2321dfe64dd3Smacallanac_aux_dir=
2322dfe64dd3Smacallanfor ac_dir in . "$srcdir"/.; do
2323dfe64dd3Smacallan  if test -f "$ac_dir/install-sh"; then
2324dfe64dd3Smacallan    ac_aux_dir=$ac_dir
2325dfe64dd3Smacallan    ac_install_sh="$ac_aux_dir/install-sh -c"
2326dfe64dd3Smacallan    break
2327dfe64dd3Smacallan  elif test -f "$ac_dir/install.sh"; then
2328dfe64dd3Smacallan    ac_aux_dir=$ac_dir
2329dfe64dd3Smacallan    ac_install_sh="$ac_aux_dir/install.sh -c"
2330dfe64dd3Smacallan    break
2331dfe64dd3Smacallan  elif test -f "$ac_dir/shtool"; then
2332dfe64dd3Smacallan    ac_aux_dir=$ac_dir
2333dfe64dd3Smacallan    ac_install_sh="$ac_aux_dir/shtool install -c"
2334dfe64dd3Smacallan    break
2335dfe64dd3Smacallan  fi
2336dfe64dd3Smacallandone
2337dfe64dd3Smacallanif test -z "$ac_aux_dir"; then
2338dfe64dd3Smacallan  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2339dfe64dd3Smacallanfi
2340dfe64dd3Smacallan
2341dfe64dd3Smacallan# These three variables are undocumented and unsupported,
2342dfe64dd3Smacallan# and are intended to be withdrawn in a future Autoconf release.
2343dfe64dd3Smacallan# They can cause serious problems if a builder's source tree is in a directory
2344dfe64dd3Smacallan# whose full name contains unusual characters.
2345dfe64dd3Smacallanac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2346dfe64dd3Smacallanac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2347dfe64dd3Smacallanac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2348dfe64dd3Smacallan
2349dfe64dd3Smacallan
2350dfe64dd3Smacallan
2351dfe64dd3Smacallan# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2352dfe64dd3Smacallan#m4_ifndef([XORG_MACROS_VERSION],
2353dfe64dd3Smacallan#          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
2354dfe64dd3SmacallanXORG_MACROS_VERSION(1.8)
2355dfe64dd3SmacallanXORG_DEFAULT_OPTIONS
2356dfe64dd3Smacallan
2357dfe64dd3Smacallan# Initialize Automake
2358dfe64dd3Smacallanam__api_version='1.11'
2359dfe64dd3Smacallan
2360dfe64dd3Smacallan# Find a good install program.  We prefer a C program (faster),
2361dfe64dd3Smacallan# so one script is as good as another.  But avoid the broken or
2362dfe64dd3Smacallan# incompatible versions:
2363dfe64dd3Smacallan# SysV /etc/install, /usr/sbin/install
2364dfe64dd3Smacallan# SunOS /usr/etc/install
2365dfe64dd3Smacallan# IRIX /sbin/install
2366dfe64dd3Smacallan# AIX /bin/install
2367dfe64dd3Smacallan# AmigaOS /C/install, which installs bootblocks on floppy discs
2368dfe64dd3Smacallan# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369dfe64dd3Smacallan# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370dfe64dd3Smacallan# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371dfe64dd3Smacallan# OS/2's system install, which has a completely different semantic
2372dfe64dd3Smacallan# ./install, which can be erroneously created by make from ./install.sh.
2373dfe64dd3Smacallan# Reject install programs that cannot install multiple files.
2374dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2375dfe64dd3Smacallan$as_echo_n "checking for a BSD-compatible install... " >&6; }
2376dfe64dd3Smacallanif test -z "$INSTALL"; then
2377dfe64dd3Smacallanif test "${ac_cv_path_install+set}" = set; then :
2378dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
2379dfe64dd3Smacallanelse
2380dfe64dd3Smacallan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381dfe64dd3Smacallanfor as_dir in $PATH
2382dfe64dd3Smacallando
2383dfe64dd3Smacallan  IFS=$as_save_IFS
2384dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
2385dfe64dd3Smacallan    # Account for people who put trailing slashes in PATH elements.
2386dfe64dd3Smacallancase $as_dir/ in #((
2387dfe64dd3Smacallan  ./ | .// | /[cC]/* | \
2388dfe64dd3Smacallan  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2389dfe64dd3Smacallan  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2390dfe64dd3Smacallan  /usr/ucb/* ) ;;
2391dfe64dd3Smacallan  *)
2392dfe64dd3Smacallan    # OSF1 and SCO ODT 3.0 have their own names for install.
2393dfe64dd3Smacallan    # Don't use installbsd from OSF since it installs stuff as root
2394dfe64dd3Smacallan    # by default.
2395dfe64dd3Smacallan    for ac_prog in ginstall scoinst install; do
2396dfe64dd3Smacallan      for ac_exec_ext in '' $ac_executable_extensions; do
2397dfe64dd3Smacallan	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2398dfe64dd3Smacallan	  if test $ac_prog = install &&
2399dfe64dd3Smacallan	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400dfe64dd3Smacallan	    # AIX install.  It has an incompatible calling convention.
2401dfe64dd3Smacallan	    :
2402dfe64dd3Smacallan	  elif test $ac_prog = install &&
2403dfe64dd3Smacallan	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404dfe64dd3Smacallan	    # program-specific install script used by HP pwplus--don't use.
2405dfe64dd3Smacallan	    :
2406dfe64dd3Smacallan	  else
2407dfe64dd3Smacallan	    rm -rf conftest.one conftest.two conftest.dir
2408dfe64dd3Smacallan	    echo one > conftest.one
2409dfe64dd3Smacallan	    echo two > conftest.two
2410dfe64dd3Smacallan	    mkdir conftest.dir
2411dfe64dd3Smacallan	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2412dfe64dd3Smacallan	      test -s conftest.one && test -s conftest.two &&
2413dfe64dd3Smacallan	      test -s conftest.dir/conftest.one &&
2414dfe64dd3Smacallan	      test -s conftest.dir/conftest.two
2415dfe64dd3Smacallan	    then
2416dfe64dd3Smacallan	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2417dfe64dd3Smacallan	      break 3
2418dfe64dd3Smacallan	    fi
2419dfe64dd3Smacallan	  fi
2420dfe64dd3Smacallan	fi
2421dfe64dd3Smacallan      done
2422dfe64dd3Smacallan    done
2423dfe64dd3Smacallan    ;;
2424dfe64dd3Smacallanesac
2425dfe64dd3Smacallan
2426dfe64dd3Smacallan  done
2427dfe64dd3SmacallanIFS=$as_save_IFS
2428dfe64dd3Smacallan
2429dfe64dd3Smacallanrm -rf conftest.one conftest.two conftest.dir
2430dfe64dd3Smacallan
2431dfe64dd3Smacallanfi
2432dfe64dd3Smacallan  if test "${ac_cv_path_install+set}" = set; then
2433dfe64dd3Smacallan    INSTALL=$ac_cv_path_install
2434dfe64dd3Smacallan  else
2435dfe64dd3Smacallan    # As a last resort, use the slow shell script.  Don't cache a
2436dfe64dd3Smacallan    # value for INSTALL within a source directory, because that will
2437dfe64dd3Smacallan    # break other packages using the cache if that directory is
2438dfe64dd3Smacallan    # removed, or if the value is a relative name.
2439dfe64dd3Smacallan    INSTALL=$ac_install_sh
2440dfe64dd3Smacallan  fi
2441dfe64dd3Smacallanfi
2442dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2443dfe64dd3Smacallan$as_echo "$INSTALL" >&6; }
2444dfe64dd3Smacallan
2445dfe64dd3Smacallan# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2446dfe64dd3Smacallan# It thinks the first close brace ends the variable substitution.
2447dfe64dd3Smacallantest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2448dfe64dd3Smacallan
2449dfe64dd3Smacallantest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2450dfe64dd3Smacallan
2451dfe64dd3Smacallantest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2452dfe64dd3Smacallan
2453dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2454dfe64dd3Smacallan$as_echo_n "checking whether build environment is sane... " >&6; }
2455dfe64dd3Smacallan# Just in case
2456dfe64dd3Smacallansleep 1
2457dfe64dd3Smacallanecho timestamp > conftest.file
2458dfe64dd3Smacallan# Reject unsafe characters in $srcdir or the absolute working directory
2459dfe64dd3Smacallan# name.  Accept space and tab only in the latter.
2460dfe64dd3Smacallanam_lf='
2461dfe64dd3Smacallan'
2462dfe64dd3Smacallancase `pwd` in
2463dfe64dd3Smacallan  *[\\\"\#\$\&\'\`$am_lf]*)
2464dfe64dd3Smacallan    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2465dfe64dd3Smacallanesac
2466dfe64dd3Smacallancase $srcdir in
2467dfe64dd3Smacallan  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2468dfe64dd3Smacallan    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2469dfe64dd3Smacallanesac
2470dfe64dd3Smacallan
2471dfe64dd3Smacallan# Do `set' in a subshell so we don't clobber the current shell's
2472dfe64dd3Smacallan# arguments.  Must try -L first in case configure is actually a
2473dfe64dd3Smacallan# symlink; some systems play weird games with the mod time of symlinks
2474dfe64dd3Smacallan# (eg FreeBSD returns the mod time of the symlink's containing
2475dfe64dd3Smacallan# directory).
2476dfe64dd3Smacallanif (
2477dfe64dd3Smacallan   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2478dfe64dd3Smacallan   if test "$*" = "X"; then
2479dfe64dd3Smacallan      # -L didn't work.
2480dfe64dd3Smacallan      set X `ls -t "$srcdir/configure" conftest.file`
2481dfe64dd3Smacallan   fi
2482dfe64dd3Smacallan   rm -f conftest.file
2483dfe64dd3Smacallan   if test "$*" != "X $srcdir/configure conftest.file" \
2484dfe64dd3Smacallan      && test "$*" != "X conftest.file $srcdir/configure"; then
2485dfe64dd3Smacallan
2486dfe64dd3Smacallan      # If neither matched, then we have a broken ls.  This can happen
2487dfe64dd3Smacallan      # if, for instance, CONFIG_SHELL is bash and it inherits a
2488dfe64dd3Smacallan      # broken ls alias from the environment.  This has actually
2489dfe64dd3Smacallan      # happened.  Such a system could not be considered "sane".
2490dfe64dd3Smacallan      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2491dfe64dd3Smacallanalias in your environment" "$LINENO" 5
2492dfe64dd3Smacallan   fi
2493dfe64dd3Smacallan
2494dfe64dd3Smacallan   test "$2" = conftest.file
2495dfe64dd3Smacallan   )
2496dfe64dd3Smacallanthen
2497dfe64dd3Smacallan   # Ok.
2498dfe64dd3Smacallan   :
2499dfe64dd3Smacallanelse
2500dfe64dd3Smacallan   as_fn_error $? "newly created file is older than distributed files!
2501dfe64dd3SmacallanCheck your system clock" "$LINENO" 5
2502dfe64dd3Smacallanfi
2503dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2504dfe64dd3Smacallan$as_echo "yes" >&6; }
2505dfe64dd3Smacallantest "$program_prefix" != NONE &&
2506dfe64dd3Smacallan  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2507dfe64dd3Smacallan# Use a double $ so make ignores it.
2508dfe64dd3Smacallantest "$program_suffix" != NONE &&
2509dfe64dd3Smacallan  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2510dfe64dd3Smacallan# Double any \ or $.
2511dfe64dd3Smacallan# By default was `s,x,x', remove it if useless.
2512dfe64dd3Smacallanac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2513dfe64dd3Smacallanprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2514dfe64dd3Smacallan
2515dfe64dd3Smacallan# expand $ac_aux_dir to an absolute path
2516dfe64dd3Smacallanam_aux_dir=`cd $ac_aux_dir && pwd`
2517dfe64dd3Smacallan
2518dfe64dd3Smacallanif test x"${MISSING+set}" != xset; then
2519dfe64dd3Smacallan  case $am_aux_dir in
2520dfe64dd3Smacallan  *\ * | *\	*)
2521dfe64dd3Smacallan    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2522dfe64dd3Smacallan  *)
2523dfe64dd3Smacallan    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2524dfe64dd3Smacallan  esac
2525dfe64dd3Smacallanfi
2526dfe64dd3Smacallan# Use eval to expand $SHELL
2527dfe64dd3Smacallanif eval "$MISSING --run true"; then
2528dfe64dd3Smacallan  am_missing_run="$MISSING --run "
2529dfe64dd3Smacallanelse
2530dfe64dd3Smacallan  am_missing_run=
2531dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2532dfe64dd3Smacallan$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2533dfe64dd3Smacallanfi
2534dfe64dd3Smacallan
2535dfe64dd3Smacallanif test x"${install_sh}" != xset; then
2536dfe64dd3Smacallan  case $am_aux_dir in
2537dfe64dd3Smacallan  *\ * | *\	*)
2538dfe64dd3Smacallan    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2539dfe64dd3Smacallan  *)
2540dfe64dd3Smacallan    install_sh="\${SHELL} $am_aux_dir/install-sh"
2541dfe64dd3Smacallan  esac
2542dfe64dd3Smacallanfi
2543dfe64dd3Smacallan
2544dfe64dd3Smacallan# Installed binaries are usually stripped using `strip' when the user
2545dfe64dd3Smacallan# run `make install-strip'.  However `strip' might not be the right
2546dfe64dd3Smacallan# tool to use in cross-compilation environments, therefore Automake
2547dfe64dd3Smacallan# will honor the `STRIP' environment variable to overrule this program.
2548dfe64dd3Smacallanif test "$cross_compiling" != no; then
2549dfe64dd3Smacallan  if test -n "$ac_tool_prefix"; then
2550dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2551dfe64dd3Smacallanset dummy ${ac_tool_prefix}strip; ac_word=$2
2552dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
2554dfe64dd3Smacallanif test "${ac_cv_prog_STRIP+set}" = set; then :
2555dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
2556dfe64dd3Smacallanelse
2557dfe64dd3Smacallan  if test -n "$STRIP"; then
2558dfe64dd3Smacallan  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2559dfe64dd3Smacallanelse
2560dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561dfe64dd3Smacallanfor as_dir in $PATH
2562dfe64dd3Smacallando
2563dfe64dd3Smacallan  IFS=$as_save_IFS
2564dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
2565dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
2566dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567dfe64dd3Smacallan    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2568dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569dfe64dd3Smacallan    break 2
2570dfe64dd3Smacallan  fi
2571dfe64dd3Smacallandone
2572dfe64dd3Smacallan  done
2573dfe64dd3SmacallanIFS=$as_save_IFS
2574dfe64dd3Smacallan
2575dfe64dd3Smacallanfi
2576dfe64dd3Smacallanfi
2577dfe64dd3SmacallanSTRIP=$ac_cv_prog_STRIP
2578dfe64dd3Smacallanif test -n "$STRIP"; then
2579dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2580dfe64dd3Smacallan$as_echo "$STRIP" >&6; }
2581dfe64dd3Smacallanelse
2582dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583dfe64dd3Smacallan$as_echo "no" >&6; }
2584dfe64dd3Smacallanfi
2585dfe64dd3Smacallan
2586dfe64dd3Smacallan
2587dfe64dd3Smacallanfi
2588dfe64dd3Smacallanif test -z "$ac_cv_prog_STRIP"; then
2589dfe64dd3Smacallan  ac_ct_STRIP=$STRIP
2590dfe64dd3Smacallan  # Extract the first word of "strip", so it can be a program name with args.
2591dfe64dd3Smacallanset dummy strip; ac_word=$2
2592dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
2594dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2595dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
2596dfe64dd3Smacallanelse
2597dfe64dd3Smacallan  if test -n "$ac_ct_STRIP"; then
2598dfe64dd3Smacallan  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2599dfe64dd3Smacallanelse
2600dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601dfe64dd3Smacallanfor as_dir in $PATH
2602dfe64dd3Smacallando
2603dfe64dd3Smacallan  IFS=$as_save_IFS
2604dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
2605dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
2606dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607dfe64dd3Smacallan    ac_cv_prog_ac_ct_STRIP="strip"
2608dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609dfe64dd3Smacallan    break 2
2610dfe64dd3Smacallan  fi
2611dfe64dd3Smacallandone
2612dfe64dd3Smacallan  done
2613dfe64dd3SmacallanIFS=$as_save_IFS
2614dfe64dd3Smacallan
2615dfe64dd3Smacallanfi
2616dfe64dd3Smacallanfi
2617dfe64dd3Smacallanac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2618dfe64dd3Smacallanif test -n "$ac_ct_STRIP"; then
2619dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2620dfe64dd3Smacallan$as_echo "$ac_ct_STRIP" >&6; }
2621dfe64dd3Smacallanelse
2622dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623dfe64dd3Smacallan$as_echo "no" >&6; }
2624dfe64dd3Smacallanfi
2625dfe64dd3Smacallan
2626dfe64dd3Smacallan  if test "x$ac_ct_STRIP" = x; then
2627dfe64dd3Smacallan    STRIP=":"
2628dfe64dd3Smacallan  else
2629dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
2630dfe64dd3Smacallanyes:)
2631dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2632dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2633dfe64dd3Smacallanac_tool_warned=yes ;;
2634dfe64dd3Smacallanesac
2635dfe64dd3Smacallan    STRIP=$ac_ct_STRIP
2636dfe64dd3Smacallan  fi
2637dfe64dd3Smacallanelse
2638dfe64dd3Smacallan  STRIP="$ac_cv_prog_STRIP"
2639dfe64dd3Smacallanfi
2640dfe64dd3Smacallan
2641dfe64dd3Smacallanfi
2642dfe64dd3SmacallanINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2643dfe64dd3Smacallan
2644dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2645dfe64dd3Smacallan$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2646dfe64dd3Smacallanif test -z "$MKDIR_P"; then
2647dfe64dd3Smacallan  if test "${ac_cv_path_mkdir+set}" = set; then :
2648dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
2649dfe64dd3Smacallanelse
2650dfe64dd3Smacallan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651dfe64dd3Smacallanfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2652dfe64dd3Smacallando
2653dfe64dd3Smacallan  IFS=$as_save_IFS
2654dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
2655dfe64dd3Smacallan    for ac_prog in mkdir gmkdir; do
2656dfe64dd3Smacallan	 for ac_exec_ext in '' $ac_executable_extensions; do
2657dfe64dd3Smacallan	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2658dfe64dd3Smacallan	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2659dfe64dd3Smacallan	     'mkdir (GNU coreutils) '* | \
2660dfe64dd3Smacallan	     'mkdir (coreutils) '* | \
2661dfe64dd3Smacallan	     'mkdir (fileutils) '4.1*)
2662dfe64dd3Smacallan	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2663dfe64dd3Smacallan	       break 3;;
2664dfe64dd3Smacallan	   esac
2665dfe64dd3Smacallan	 done
2666dfe64dd3Smacallan       done
2667dfe64dd3Smacallan  done
2668dfe64dd3SmacallanIFS=$as_save_IFS
2669dfe64dd3Smacallan
2670dfe64dd3Smacallanfi
2671dfe64dd3Smacallan
2672dfe64dd3Smacallan  test -d ./--version && rmdir ./--version
2673dfe64dd3Smacallan  if test "${ac_cv_path_mkdir+set}" = set; then
2674dfe64dd3Smacallan    MKDIR_P="$ac_cv_path_mkdir -p"
2675dfe64dd3Smacallan  else
2676dfe64dd3Smacallan    # As a last resort, use the slow shell script.  Don't cache a
2677dfe64dd3Smacallan    # value for MKDIR_P within a source directory, because that will
2678dfe64dd3Smacallan    # break other packages using the cache if that directory is
2679dfe64dd3Smacallan    # removed, or if the value is a relative name.
2680dfe64dd3Smacallan    MKDIR_P="$ac_install_sh -d"
2681dfe64dd3Smacallan  fi
2682dfe64dd3Smacallanfi
2683dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2684dfe64dd3Smacallan$as_echo "$MKDIR_P" >&6; }
2685dfe64dd3Smacallan
2686dfe64dd3Smacallanmkdir_p="$MKDIR_P"
2687dfe64dd3Smacallancase $mkdir_p in
2688dfe64dd3Smacallan  [\\/$]* | ?:[\\/]*) ;;
2689dfe64dd3Smacallan  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2690dfe64dd3Smacallanesac
2691dfe64dd3Smacallan
2692dfe64dd3Smacallanfor ac_prog in gawk mawk nawk awk
2693dfe64dd3Smacallando
2694dfe64dd3Smacallan  # Extract the first word of "$ac_prog", so it can be a program name with args.
2695dfe64dd3Smacallanset dummy $ac_prog; ac_word=$2
2696dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
2698dfe64dd3Smacallanif test "${ac_cv_prog_AWK+set}" = set; then :
2699dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
2700dfe64dd3Smacallanelse
2701dfe64dd3Smacallan  if test -n "$AWK"; then
2702dfe64dd3Smacallan  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2703dfe64dd3Smacallanelse
2704dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705dfe64dd3Smacallanfor as_dir in $PATH
2706dfe64dd3Smacallando
2707dfe64dd3Smacallan  IFS=$as_save_IFS
2708dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
2709dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
2710dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711dfe64dd3Smacallan    ac_cv_prog_AWK="$ac_prog"
2712dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713dfe64dd3Smacallan    break 2
2714dfe64dd3Smacallan  fi
2715dfe64dd3Smacallandone
2716dfe64dd3Smacallan  done
2717dfe64dd3SmacallanIFS=$as_save_IFS
2718dfe64dd3Smacallan
2719dfe64dd3Smacallanfi
2720dfe64dd3Smacallanfi
2721dfe64dd3SmacallanAWK=$ac_cv_prog_AWK
2722dfe64dd3Smacallanif test -n "$AWK"; then
2723dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2724dfe64dd3Smacallan$as_echo "$AWK" >&6; }
2725dfe64dd3Smacallanelse
2726dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727dfe64dd3Smacallan$as_echo "no" >&6; }
2728dfe64dd3Smacallanfi
2729dfe64dd3Smacallan
2730dfe64dd3Smacallan
2731dfe64dd3Smacallan  test -n "$AWK" && break
2732dfe64dd3Smacallandone
2733dfe64dd3Smacallan
2734dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2735dfe64dd3Smacallan$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2736dfe64dd3Smacallanset x ${MAKE-make}
2737dfe64dd3Smacallanac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2738dfe64dd3Smacallanif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2739dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
2740dfe64dd3Smacallanelse
2741dfe64dd3Smacallan  cat >conftest.make <<\_ACEOF
2742dfe64dd3SmacallanSHELL = /bin/sh
2743dfe64dd3Smacallanall:
2744dfe64dd3Smacallan	@echo '@@@%%%=$(MAKE)=@@@%%%'
2745dfe64dd3Smacallan_ACEOF
2746dfe64dd3Smacallan# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2747dfe64dd3Smacallancase `${MAKE-make} -f conftest.make 2>/dev/null` in
2748dfe64dd3Smacallan  *@@@%%%=?*=@@@%%%*)
2749dfe64dd3Smacallan    eval ac_cv_prog_make_${ac_make}_set=yes;;
2750dfe64dd3Smacallan  *)
2751dfe64dd3Smacallan    eval ac_cv_prog_make_${ac_make}_set=no;;
2752dfe64dd3Smacallanesac
2753dfe64dd3Smacallanrm -f conftest.make
2754dfe64dd3Smacallanfi
2755dfe64dd3Smacallanif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2756dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2757dfe64dd3Smacallan$as_echo "yes" >&6; }
2758dfe64dd3Smacallan  SET_MAKE=
2759dfe64dd3Smacallanelse
2760dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761dfe64dd3Smacallan$as_echo "no" >&6; }
2762dfe64dd3Smacallan  SET_MAKE="MAKE=${MAKE-make}"
2763dfe64dd3Smacallanfi
2764dfe64dd3Smacallan
2765dfe64dd3Smacallanrm -rf .tst 2>/dev/null
2766dfe64dd3Smacallanmkdir .tst 2>/dev/null
2767dfe64dd3Smacallanif test -d .tst; then
2768dfe64dd3Smacallan  am__leading_dot=.
2769dfe64dd3Smacallanelse
2770dfe64dd3Smacallan  am__leading_dot=_
2771dfe64dd3Smacallanfi
2772dfe64dd3Smacallanrmdir .tst 2>/dev/null
2773dfe64dd3Smacallan
2774dfe64dd3Smacallanif test "`cd $srcdir && pwd`" != "`pwd`"; then
2775dfe64dd3Smacallan  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2776dfe64dd3Smacallan  # is not polluted with repeated "-I."
2777dfe64dd3Smacallan  am__isrc=' -I$(srcdir)'
2778dfe64dd3Smacallan  # test to see if srcdir already configured
2779dfe64dd3Smacallan  if test -f $srcdir/config.status; then
2780dfe64dd3Smacallan    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2781dfe64dd3Smacallan  fi
2782dfe64dd3Smacallanfi
2783dfe64dd3Smacallan
2784dfe64dd3Smacallan# test whether we have cygpath
2785dfe64dd3Smacallanif test -z "$CYGPATH_W"; then
2786dfe64dd3Smacallan  if (cygpath --version) >/dev/null 2>/dev/null; then
2787dfe64dd3Smacallan    CYGPATH_W='cygpath -w'
2788dfe64dd3Smacallan  else
2789dfe64dd3Smacallan    CYGPATH_W=echo
2790dfe64dd3Smacallan  fi
2791dfe64dd3Smacallanfi
2792dfe64dd3Smacallan
2793dfe64dd3Smacallan
2794dfe64dd3Smacallan# Define the identity of the package.
2795dfe64dd3Smacallan PACKAGE='xf86-video-xgi'
2796dfe64dd3Smacallan VERSION='1.6.0'
2797dfe64dd3Smacallan
2798dfe64dd3Smacallan
2799dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
2800dfe64dd3Smacallan#define PACKAGE "$PACKAGE"
2801dfe64dd3Smacallan_ACEOF
2802dfe64dd3Smacallan
2803dfe64dd3Smacallan
2804dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
2805dfe64dd3Smacallan#define VERSION "$VERSION"
2806dfe64dd3Smacallan_ACEOF
2807dfe64dd3Smacallan
2808dfe64dd3Smacallan# Some tools Automake needs.
2809dfe64dd3Smacallan
2810dfe64dd3SmacallanACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2811dfe64dd3Smacallan
2812dfe64dd3Smacallan
2813dfe64dd3SmacallanAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2814dfe64dd3Smacallan
2815dfe64dd3Smacallan
2816dfe64dd3SmacallanAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2817dfe64dd3Smacallan
2818dfe64dd3Smacallan
2819dfe64dd3SmacallanAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2820dfe64dd3Smacallan
2821dfe64dd3Smacallan
2822dfe64dd3SmacallanMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2823dfe64dd3Smacallan
2824dfe64dd3Smacallan# We need awk for the "check" target.  The system "awk" is bad on
2825dfe64dd3Smacallan# some platforms.
2826dfe64dd3Smacallan# Always define AMTAR for backward compatibility.
2827dfe64dd3Smacallan
2828dfe64dd3SmacallanAMTAR=${AMTAR-"${am_missing_run}tar"}
2829dfe64dd3Smacallan
2830dfe64dd3Smacallanam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2831dfe64dd3Smacallan
2832dfe64dd3Smacallan
2833dfe64dd3Smacallan
2834dfe64dd3Smacallan
2835dfe64dd3Smacallan
2836dfe64dd3Smacallan
2837dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2838dfe64dd3Smacallan$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2839dfe64dd3Smacallan    # Check whether --enable-maintainer-mode was given.
2840dfe64dd3Smacallanif test "${enable_maintainer_mode+set}" = set; then :
2841dfe64dd3Smacallan  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2842dfe64dd3Smacallanelse
2843dfe64dd3Smacallan  USE_MAINTAINER_MODE=no
2844dfe64dd3Smacallanfi
2845dfe64dd3Smacallan
2846dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2847dfe64dd3Smacallan$as_echo "$USE_MAINTAINER_MODE" >&6; }
2848dfe64dd3Smacallan   if test $USE_MAINTAINER_MODE = yes; then
2849dfe64dd3Smacallan  MAINTAINER_MODE_TRUE=
2850dfe64dd3Smacallan  MAINTAINER_MODE_FALSE='#'
2851dfe64dd3Smacallanelse
2852dfe64dd3Smacallan  MAINTAINER_MODE_TRUE='#'
2853dfe64dd3Smacallan  MAINTAINER_MODE_FALSE=
2854dfe64dd3Smacallanfi
2855dfe64dd3Smacallan
2856dfe64dd3Smacallan  MAINT=$MAINTAINER_MODE_TRUE
2857dfe64dd3Smacallan
2858dfe64dd3Smacallan
2859dfe64dd3Smacallan
2860dfe64dd3Smacallan# Initialize libtool
2861dfe64dd3Smacallan# Check whether --enable-static was given.
2862dfe64dd3Smacallanif test "${enable_static+set}" = set; then :
2863dfe64dd3Smacallan  enableval=$enable_static; p=${PACKAGE-default}
2864dfe64dd3Smacallan    case $enableval in
2865dfe64dd3Smacallan    yes) enable_static=yes ;;
2866dfe64dd3Smacallan    no) enable_static=no ;;
2867dfe64dd3Smacallan    *)
2868dfe64dd3Smacallan     enable_static=no
2869dfe64dd3Smacallan      # Look at the argument we got.  We use all the common list separators.
2870dfe64dd3Smacallan      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2871dfe64dd3Smacallan      for pkg in $enableval; do
2872dfe64dd3Smacallan	IFS="$lt_save_ifs"
2873dfe64dd3Smacallan	if test "X$pkg" = "X$p"; then
2874dfe64dd3Smacallan	  enable_static=yes
2875dfe64dd3Smacallan	fi
2876dfe64dd3Smacallan      done
2877dfe64dd3Smacallan      IFS="$lt_save_ifs"
2878dfe64dd3Smacallan      ;;
2879dfe64dd3Smacallan    esac
2880dfe64dd3Smacallanelse
2881dfe64dd3Smacallan  enable_static=no
2882dfe64dd3Smacallanfi
2883dfe64dd3Smacallan
2884dfe64dd3Smacallan
2885dfe64dd3Smacallan
2886dfe64dd3Smacallan
2887dfe64dd3Smacallan
2888dfe64dd3Smacallan
2889dfe64dd3Smacallan
2890dfe64dd3Smacallan
2891dfe64dd3Smacallan
2892dfe64dd3Smacallancase `pwd` in
2893dfe64dd3Smacallan  *\ * | *\	*)
2894dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2895dfe64dd3Smacallan$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2896dfe64dd3Smacallanesac
2897dfe64dd3Smacallan
2898dfe64dd3Smacallan
2899dfe64dd3Smacallan
2900dfe64dd3Smacallanmacro_version='2.2.6b'
2901dfe64dd3Smacallanmacro_revision='1.3017'
2902dfe64dd3Smacallan
2903dfe64dd3Smacallan
2904dfe64dd3Smacallan
2905dfe64dd3Smacallan
2906dfe64dd3Smacallan
2907dfe64dd3Smacallan
2908dfe64dd3Smacallan
2909dfe64dd3Smacallan
2910dfe64dd3Smacallan
2911dfe64dd3Smacallan
2912dfe64dd3Smacallan
2913dfe64dd3Smacallan
2914dfe64dd3Smacallan
2915dfe64dd3Smacallanltmain="$ac_aux_dir/ltmain.sh"
2916dfe64dd3Smacallan
2917dfe64dd3Smacallan# Make sure we can run config.sub.
2918dfe64dd3Smacallan$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2919dfe64dd3Smacallan  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2920dfe64dd3Smacallan
2921dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2922dfe64dd3Smacallan$as_echo_n "checking build system type... " >&6; }
2923dfe64dd3Smacallanif test "${ac_cv_build+set}" = set; then :
2924dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
2925dfe64dd3Smacallanelse
2926dfe64dd3Smacallan  ac_build_alias=$build_alias
2927dfe64dd3Smacallantest "x$ac_build_alias" = x &&
2928dfe64dd3Smacallan  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2929dfe64dd3Smacallantest "x$ac_build_alias" = x &&
2930dfe64dd3Smacallan  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2931dfe64dd3Smacallanac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2932dfe64dd3Smacallan  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2933dfe64dd3Smacallan
2934dfe64dd3Smacallanfi
2935dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2936dfe64dd3Smacallan$as_echo "$ac_cv_build" >&6; }
2937dfe64dd3Smacallancase $ac_cv_build in
2938dfe64dd3Smacallan*-*-*) ;;
2939dfe64dd3Smacallan*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2940dfe64dd3Smacallanesac
2941dfe64dd3Smacallanbuild=$ac_cv_build
2942dfe64dd3Smacallanac_save_IFS=$IFS; IFS='-'
2943dfe64dd3Smacallanset x $ac_cv_build
2944dfe64dd3Smacallanshift
2945dfe64dd3Smacallanbuild_cpu=$1
2946dfe64dd3Smacallanbuild_vendor=$2
2947dfe64dd3Smacallanshift; shift
2948dfe64dd3Smacallan# Remember, the first character of IFS is used to create $*,
2949dfe64dd3Smacallan# except with old shells:
2950dfe64dd3Smacallanbuild_os=$*
2951dfe64dd3SmacallanIFS=$ac_save_IFS
2952dfe64dd3Smacallancase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2953dfe64dd3Smacallan
2954dfe64dd3Smacallan
2955dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2956dfe64dd3Smacallan$as_echo_n "checking host system type... " >&6; }
2957dfe64dd3Smacallanif test "${ac_cv_host+set}" = set; then :
2958dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
2959dfe64dd3Smacallanelse
2960dfe64dd3Smacallan  if test "x$host_alias" = x; then
2961dfe64dd3Smacallan  ac_cv_host=$ac_cv_build
2962dfe64dd3Smacallanelse
2963dfe64dd3Smacallan  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2964dfe64dd3Smacallan    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2965dfe64dd3Smacallanfi
2966dfe64dd3Smacallan
2967dfe64dd3Smacallanfi
2968dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2969dfe64dd3Smacallan$as_echo "$ac_cv_host" >&6; }
2970dfe64dd3Smacallancase $ac_cv_host in
2971dfe64dd3Smacallan*-*-*) ;;
2972dfe64dd3Smacallan*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2973dfe64dd3Smacallanesac
2974dfe64dd3Smacallanhost=$ac_cv_host
2975dfe64dd3Smacallanac_save_IFS=$IFS; IFS='-'
2976dfe64dd3Smacallanset x $ac_cv_host
2977dfe64dd3Smacallanshift
2978dfe64dd3Smacallanhost_cpu=$1
2979dfe64dd3Smacallanhost_vendor=$2
2980dfe64dd3Smacallanshift; shift
2981dfe64dd3Smacallan# Remember, the first character of IFS is used to create $*,
2982dfe64dd3Smacallan# except with old shells:
2983dfe64dd3Smacallanhost_os=$*
2984dfe64dd3SmacallanIFS=$ac_save_IFS
2985dfe64dd3Smacallancase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2986dfe64dd3Smacallan
2987dfe64dd3Smacallan
2988dfe64dd3SmacallanDEPDIR="${am__leading_dot}deps"
2989dfe64dd3Smacallan
2990dfe64dd3Smacallanac_config_commands="$ac_config_commands depfiles"
2991dfe64dd3Smacallan
2992dfe64dd3Smacallan
2993dfe64dd3Smacallanam_make=${MAKE-make}
2994dfe64dd3Smacallancat > confinc << 'END'
2995dfe64dd3Smacallanam__doit:
2996dfe64dd3Smacallan	@echo this is the am__doit target
2997dfe64dd3Smacallan.PHONY: am__doit
2998dfe64dd3SmacallanEND
2999dfe64dd3Smacallan# If we don't find an include directive, just comment out the code.
3000dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3001dfe64dd3Smacallan$as_echo_n "checking for style of include used by $am_make... " >&6; }
3002dfe64dd3Smacallanam__include="#"
3003dfe64dd3Smacallanam__quote=
3004dfe64dd3Smacallan_am_result=none
3005dfe64dd3Smacallan# First try GNU make style include.
3006dfe64dd3Smacallanecho "include confinc" > confmf
3007dfe64dd3Smacallan# Ignore all kinds of additional output from `make'.
3008dfe64dd3Smacallancase `$am_make -s -f confmf 2> /dev/null` in #(
3009dfe64dd3Smacallan*the\ am__doit\ target*)
3010dfe64dd3Smacallan  am__include=include
3011dfe64dd3Smacallan  am__quote=
3012dfe64dd3Smacallan  _am_result=GNU
3013dfe64dd3Smacallan  ;;
3014dfe64dd3Smacallanesac
3015dfe64dd3Smacallan# Now try BSD make style include.
3016dfe64dd3Smacallanif test "$am__include" = "#"; then
3017dfe64dd3Smacallan   echo '.include "confinc"' > confmf
3018dfe64dd3Smacallan   case `$am_make -s -f confmf 2> /dev/null` in #(
3019dfe64dd3Smacallan   *the\ am__doit\ target*)
3020dfe64dd3Smacallan     am__include=.include
3021dfe64dd3Smacallan     am__quote="\""
3022dfe64dd3Smacallan     _am_result=BSD
3023dfe64dd3Smacallan     ;;
3024dfe64dd3Smacallan   esac
3025dfe64dd3Smacallanfi
3026dfe64dd3Smacallan
3027dfe64dd3Smacallan
3028dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3029dfe64dd3Smacallan$as_echo "$_am_result" >&6; }
3030dfe64dd3Smacallanrm -f confinc confmf
3031dfe64dd3Smacallan
3032dfe64dd3Smacallan# Check whether --enable-dependency-tracking was given.
3033dfe64dd3Smacallanif test "${enable_dependency_tracking+set}" = set; then :
3034dfe64dd3Smacallan  enableval=$enable_dependency_tracking;
3035dfe64dd3Smacallanfi
3036dfe64dd3Smacallan
3037dfe64dd3Smacallanif test "x$enable_dependency_tracking" != xno; then
3038dfe64dd3Smacallan  am_depcomp="$ac_aux_dir/depcomp"
3039dfe64dd3Smacallan  AMDEPBACKSLASH='\'
3040dfe64dd3Smacallanfi
3041dfe64dd3Smacallan if test "x$enable_dependency_tracking" != xno; then
3042dfe64dd3Smacallan  AMDEP_TRUE=
3043dfe64dd3Smacallan  AMDEP_FALSE='#'
3044dfe64dd3Smacallanelse
3045dfe64dd3Smacallan  AMDEP_TRUE='#'
3046dfe64dd3Smacallan  AMDEP_FALSE=
3047dfe64dd3Smacallanfi
3048dfe64dd3Smacallan
3049dfe64dd3Smacallan
3050dfe64dd3Smacallanac_ext=c
3051dfe64dd3Smacallanac_cpp='$CPP $CPPFLAGS'
3052dfe64dd3Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053dfe64dd3Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054dfe64dd3Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu
3055dfe64dd3Smacallanif test -n "$ac_tool_prefix"; then
3056dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3057dfe64dd3Smacallanset dummy ${ac_tool_prefix}gcc; ac_word=$2
3058dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
3060dfe64dd3Smacallanif test "${ac_cv_prog_CC+set}" = set; then :
3061dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3062dfe64dd3Smacallanelse
3063dfe64dd3Smacallan  if test -n "$CC"; then
3064dfe64dd3Smacallan  ac_cv_prog_CC="$CC" # Let the user override the test.
3065dfe64dd3Smacallanelse
3066dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067dfe64dd3Smacallanfor as_dir in $PATH
3068dfe64dd3Smacallando
3069dfe64dd3Smacallan  IFS=$as_save_IFS
3070dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
3071dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
3072dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073dfe64dd3Smacallan    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3074dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075dfe64dd3Smacallan    break 2
3076dfe64dd3Smacallan  fi
3077dfe64dd3Smacallandone
3078dfe64dd3Smacallan  done
3079dfe64dd3SmacallanIFS=$as_save_IFS
3080dfe64dd3Smacallan
3081dfe64dd3Smacallanfi
3082dfe64dd3Smacallanfi
3083dfe64dd3SmacallanCC=$ac_cv_prog_CC
3084dfe64dd3Smacallanif test -n "$CC"; then
3085dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086dfe64dd3Smacallan$as_echo "$CC" >&6; }
3087dfe64dd3Smacallanelse
3088dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089dfe64dd3Smacallan$as_echo "no" >&6; }
3090dfe64dd3Smacallanfi
3091dfe64dd3Smacallan
3092dfe64dd3Smacallan
3093dfe64dd3Smacallanfi
3094dfe64dd3Smacallanif test -z "$ac_cv_prog_CC"; then
3095dfe64dd3Smacallan  ac_ct_CC=$CC
3096dfe64dd3Smacallan  # Extract the first word of "gcc", so it can be a program name with args.
3097dfe64dd3Smacallanset dummy gcc; ac_word=$2
3098dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
3100dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3101dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3102dfe64dd3Smacallanelse
3103dfe64dd3Smacallan  if test -n "$ac_ct_CC"; then
3104dfe64dd3Smacallan  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105dfe64dd3Smacallanelse
3106dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107dfe64dd3Smacallanfor as_dir in $PATH
3108dfe64dd3Smacallando
3109dfe64dd3Smacallan  IFS=$as_save_IFS
3110dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
3111dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
3112dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113dfe64dd3Smacallan    ac_cv_prog_ac_ct_CC="gcc"
3114dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115dfe64dd3Smacallan    break 2
3116dfe64dd3Smacallan  fi
3117dfe64dd3Smacallandone
3118dfe64dd3Smacallan  done
3119dfe64dd3SmacallanIFS=$as_save_IFS
3120dfe64dd3Smacallan
3121dfe64dd3Smacallanfi
3122dfe64dd3Smacallanfi
3123dfe64dd3Smacallanac_ct_CC=$ac_cv_prog_ac_ct_CC
3124dfe64dd3Smacallanif test -n "$ac_ct_CC"; then
3125dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3126dfe64dd3Smacallan$as_echo "$ac_ct_CC" >&6; }
3127dfe64dd3Smacallanelse
3128dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129dfe64dd3Smacallan$as_echo "no" >&6; }
3130dfe64dd3Smacallanfi
3131dfe64dd3Smacallan
3132dfe64dd3Smacallan  if test "x$ac_ct_CC" = x; then
3133dfe64dd3Smacallan    CC=""
3134dfe64dd3Smacallan  else
3135dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
3136dfe64dd3Smacallanyes:)
3137dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3138dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3139dfe64dd3Smacallanac_tool_warned=yes ;;
3140dfe64dd3Smacallanesac
3141dfe64dd3Smacallan    CC=$ac_ct_CC
3142dfe64dd3Smacallan  fi
3143dfe64dd3Smacallanelse
3144dfe64dd3Smacallan  CC="$ac_cv_prog_CC"
3145dfe64dd3Smacallanfi
3146dfe64dd3Smacallan
3147dfe64dd3Smacallanif test -z "$CC"; then
3148dfe64dd3Smacallan          if test -n "$ac_tool_prefix"; then
3149dfe64dd3Smacallan    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3150dfe64dd3Smacallanset dummy ${ac_tool_prefix}cc; ac_word=$2
3151dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
3153dfe64dd3Smacallanif test "${ac_cv_prog_CC+set}" = set; then :
3154dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3155dfe64dd3Smacallanelse
3156dfe64dd3Smacallan  if test -n "$CC"; then
3157dfe64dd3Smacallan  ac_cv_prog_CC="$CC" # Let the user override the test.
3158dfe64dd3Smacallanelse
3159dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160dfe64dd3Smacallanfor as_dir in $PATH
3161dfe64dd3Smacallando
3162dfe64dd3Smacallan  IFS=$as_save_IFS
3163dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
3164dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
3165dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166dfe64dd3Smacallan    ac_cv_prog_CC="${ac_tool_prefix}cc"
3167dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168dfe64dd3Smacallan    break 2
3169dfe64dd3Smacallan  fi
3170dfe64dd3Smacallandone
3171dfe64dd3Smacallan  done
3172dfe64dd3SmacallanIFS=$as_save_IFS
3173dfe64dd3Smacallan
3174dfe64dd3Smacallanfi
3175dfe64dd3Smacallanfi
3176dfe64dd3SmacallanCC=$ac_cv_prog_CC
3177dfe64dd3Smacallanif test -n "$CC"; then
3178dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179dfe64dd3Smacallan$as_echo "$CC" >&6; }
3180dfe64dd3Smacallanelse
3181dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182dfe64dd3Smacallan$as_echo "no" >&6; }
3183dfe64dd3Smacallanfi
3184dfe64dd3Smacallan
3185dfe64dd3Smacallan
3186dfe64dd3Smacallan  fi
3187dfe64dd3Smacallanfi
3188dfe64dd3Smacallanif test -z "$CC"; then
3189dfe64dd3Smacallan  # Extract the first word of "cc", so it can be a program name with args.
3190dfe64dd3Smacallanset dummy cc; ac_word=$2
3191dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
3193dfe64dd3Smacallanif test "${ac_cv_prog_CC+set}" = set; then :
3194dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3195dfe64dd3Smacallanelse
3196dfe64dd3Smacallan  if test -n "$CC"; then
3197dfe64dd3Smacallan  ac_cv_prog_CC="$CC" # Let the user override the test.
3198dfe64dd3Smacallanelse
3199dfe64dd3Smacallan  ac_prog_rejected=no
3200dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201dfe64dd3Smacallanfor as_dir in $PATH
3202dfe64dd3Smacallando
3203dfe64dd3Smacallan  IFS=$as_save_IFS
3204dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
3205dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
3206dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207dfe64dd3Smacallan    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3208dfe64dd3Smacallan       ac_prog_rejected=yes
3209dfe64dd3Smacallan       continue
3210dfe64dd3Smacallan     fi
3211dfe64dd3Smacallan    ac_cv_prog_CC="cc"
3212dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213dfe64dd3Smacallan    break 2
3214dfe64dd3Smacallan  fi
3215dfe64dd3Smacallandone
3216dfe64dd3Smacallan  done
3217dfe64dd3SmacallanIFS=$as_save_IFS
3218dfe64dd3Smacallan
3219dfe64dd3Smacallanif test $ac_prog_rejected = yes; then
3220dfe64dd3Smacallan  # We found a bogon in the path, so make sure we never use it.
3221dfe64dd3Smacallan  set dummy $ac_cv_prog_CC
3222dfe64dd3Smacallan  shift
3223dfe64dd3Smacallan  if test $# != 0; then
3224dfe64dd3Smacallan    # We chose a different compiler from the bogus one.
3225dfe64dd3Smacallan    # However, it has the same basename, so the bogon will be chosen
3226dfe64dd3Smacallan    # first if we set CC to just the basename; use the full file name.
3227dfe64dd3Smacallan    shift
3228dfe64dd3Smacallan    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3229dfe64dd3Smacallan  fi
3230dfe64dd3Smacallanfi
3231dfe64dd3Smacallanfi
3232dfe64dd3Smacallanfi
3233dfe64dd3SmacallanCC=$ac_cv_prog_CC
3234dfe64dd3Smacallanif test -n "$CC"; then
3235dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236dfe64dd3Smacallan$as_echo "$CC" >&6; }
3237dfe64dd3Smacallanelse
3238dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239dfe64dd3Smacallan$as_echo "no" >&6; }
3240dfe64dd3Smacallanfi
3241dfe64dd3Smacallan
3242dfe64dd3Smacallan
3243dfe64dd3Smacallanfi
3244dfe64dd3Smacallanif test -z "$CC"; then
3245dfe64dd3Smacallan  if test -n "$ac_tool_prefix"; then
3246dfe64dd3Smacallan  for ac_prog in cl.exe
3247dfe64dd3Smacallan  do
3248dfe64dd3Smacallan    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3249dfe64dd3Smacallanset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3250dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
3252dfe64dd3Smacallanif test "${ac_cv_prog_CC+set}" = set; then :
3253dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3254dfe64dd3Smacallanelse
3255dfe64dd3Smacallan  if test -n "$CC"; then
3256dfe64dd3Smacallan  ac_cv_prog_CC="$CC" # Let the user override the test.
3257dfe64dd3Smacallanelse
3258dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259dfe64dd3Smacallanfor as_dir in $PATH
3260dfe64dd3Smacallando
3261dfe64dd3Smacallan  IFS=$as_save_IFS
3262dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
3263dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
3264dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265dfe64dd3Smacallan    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3266dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267dfe64dd3Smacallan    break 2
3268dfe64dd3Smacallan  fi
3269dfe64dd3Smacallandone
3270dfe64dd3Smacallan  done
3271dfe64dd3SmacallanIFS=$as_save_IFS
3272dfe64dd3Smacallan
3273dfe64dd3Smacallanfi
3274dfe64dd3Smacallanfi
3275dfe64dd3SmacallanCC=$ac_cv_prog_CC
3276dfe64dd3Smacallanif test -n "$CC"; then
3277dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278dfe64dd3Smacallan$as_echo "$CC" >&6; }
3279dfe64dd3Smacallanelse
3280dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281dfe64dd3Smacallan$as_echo "no" >&6; }
3282dfe64dd3Smacallanfi
3283dfe64dd3Smacallan
3284dfe64dd3Smacallan
3285dfe64dd3Smacallan    test -n "$CC" && break
3286dfe64dd3Smacallan  done
3287dfe64dd3Smacallanfi
3288dfe64dd3Smacallanif test -z "$CC"; then
3289dfe64dd3Smacallan  ac_ct_CC=$CC
3290dfe64dd3Smacallan  for ac_prog in cl.exe
3291dfe64dd3Smacallando
3292dfe64dd3Smacallan  # Extract the first word of "$ac_prog", so it can be a program name with args.
3293dfe64dd3Smacallanset dummy $ac_prog; ac_word=$2
3294dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
3296dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3297dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3298dfe64dd3Smacallanelse
3299dfe64dd3Smacallan  if test -n "$ac_ct_CC"; then
3300dfe64dd3Smacallan  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301dfe64dd3Smacallanelse
3302dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303dfe64dd3Smacallanfor as_dir in $PATH
3304dfe64dd3Smacallando
3305dfe64dd3Smacallan  IFS=$as_save_IFS
3306dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
3307dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
3308dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309dfe64dd3Smacallan    ac_cv_prog_ac_ct_CC="$ac_prog"
3310dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311dfe64dd3Smacallan    break 2
3312dfe64dd3Smacallan  fi
3313dfe64dd3Smacallandone
3314dfe64dd3Smacallan  done
3315dfe64dd3SmacallanIFS=$as_save_IFS
3316dfe64dd3Smacallan
3317dfe64dd3Smacallanfi
3318dfe64dd3Smacallanfi
3319dfe64dd3Smacallanac_ct_CC=$ac_cv_prog_ac_ct_CC
3320dfe64dd3Smacallanif test -n "$ac_ct_CC"; then
3321dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3322dfe64dd3Smacallan$as_echo "$ac_ct_CC" >&6; }
3323dfe64dd3Smacallanelse
3324dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325dfe64dd3Smacallan$as_echo "no" >&6; }
3326dfe64dd3Smacallanfi
3327dfe64dd3Smacallan
3328dfe64dd3Smacallan
3329dfe64dd3Smacallan  test -n "$ac_ct_CC" && break
3330dfe64dd3Smacallandone
3331dfe64dd3Smacallan
3332dfe64dd3Smacallan  if test "x$ac_ct_CC" = x; then
3333dfe64dd3Smacallan    CC=""
3334dfe64dd3Smacallan  else
3335dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
3336dfe64dd3Smacallanyes:)
3337dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339dfe64dd3Smacallanac_tool_warned=yes ;;
3340dfe64dd3Smacallanesac
3341dfe64dd3Smacallan    CC=$ac_ct_CC
3342dfe64dd3Smacallan  fi
3343dfe64dd3Smacallanfi
3344dfe64dd3Smacallan
3345dfe64dd3Smacallanfi
3346dfe64dd3Smacallan
3347dfe64dd3Smacallan
3348dfe64dd3Smacallantest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350dfe64dd3Smacallanas_fn_error $? "no acceptable C compiler found in \$PATH
3351dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
3352dfe64dd3Smacallan
3353dfe64dd3Smacallan# Provide some information about the compiler.
3354dfe64dd3Smacallan$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3355dfe64dd3Smacallanset X $ac_compile
3356dfe64dd3Smacallanac_compiler=$2
3357dfe64dd3Smacallanfor ac_option in --version -v -V -qversion; do
3358dfe64dd3Smacallan  { { ac_try="$ac_compiler $ac_option >&5"
3359dfe64dd3Smacallancase "(($ac_try" in
3360dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
3362dfe64dd3Smacallanesac
3363dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
3365dfe64dd3Smacallan  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3366dfe64dd3Smacallan  ac_status=$?
3367dfe64dd3Smacallan  if test -s conftest.err; then
3368dfe64dd3Smacallan    sed '10a\
3369dfe64dd3Smacallan... rest of stderr output deleted ...
3370dfe64dd3Smacallan         10q' conftest.err >conftest.er1
3371dfe64dd3Smacallan    cat conftest.er1 >&5
3372dfe64dd3Smacallan  fi
3373dfe64dd3Smacallan  rm -f conftest.er1 conftest.err
3374dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375dfe64dd3Smacallan  test $ac_status = 0; }
3376dfe64dd3Smacallandone
3377dfe64dd3Smacallan
3378dfe64dd3Smacallancat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379dfe64dd3Smacallan/* end confdefs.h.  */
3380dfe64dd3Smacallan
3381dfe64dd3Smacallanint
3382dfe64dd3Smacallanmain ()
3383dfe64dd3Smacallan{
3384dfe64dd3Smacallan
3385dfe64dd3Smacallan  ;
3386dfe64dd3Smacallan  return 0;
3387dfe64dd3Smacallan}
3388dfe64dd3Smacallan_ACEOF
3389dfe64dd3Smacallanac_clean_files_save=$ac_clean_files
3390dfe64dd3Smacallanac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3391dfe64dd3Smacallan# Try to create an executable without -o first, disregard a.out.
3392dfe64dd3Smacallan# It will help us diagnose broken compilers, and finding out an intuition
3393dfe64dd3Smacallan# of exeext.
3394dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3395dfe64dd3Smacallan$as_echo_n "checking whether the C compiler works... " >&6; }
3396dfe64dd3Smacallanac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3397dfe64dd3Smacallan
3398dfe64dd3Smacallan# The possible output files:
3399dfe64dd3Smacallanac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3400dfe64dd3Smacallan
3401dfe64dd3Smacallanac_rmfiles=
3402dfe64dd3Smacallanfor ac_file in $ac_files
3403dfe64dd3Smacallando
3404dfe64dd3Smacallan  case $ac_file in
3405dfe64dd3Smacallan    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406dfe64dd3Smacallan    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3407dfe64dd3Smacallan  esac
3408dfe64dd3Smacallandone
3409dfe64dd3Smacallanrm -f $ac_rmfiles
3410dfe64dd3Smacallan
3411dfe64dd3Smacallanif { { ac_try="$ac_link_default"
3412dfe64dd3Smacallancase "(($ac_try" in
3413dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
3415dfe64dd3Smacallanesac
3416dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
3418dfe64dd3Smacallan  (eval "$ac_link_default") 2>&5
3419dfe64dd3Smacallan  ac_status=$?
3420dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421dfe64dd3Smacallan  test $ac_status = 0; }; then :
3422dfe64dd3Smacallan  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3423dfe64dd3Smacallan# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3424dfe64dd3Smacallan# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3425dfe64dd3Smacallan# so that the user can short-circuit this test for compilers unknown to
3426dfe64dd3Smacallan# Autoconf.
3427dfe64dd3Smacallanfor ac_file in $ac_files ''
3428dfe64dd3Smacallando
3429dfe64dd3Smacallan  test -f "$ac_file" || continue
3430dfe64dd3Smacallan  case $ac_file in
3431dfe64dd3Smacallan    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3432dfe64dd3Smacallan	;;
3433dfe64dd3Smacallan    [ab].out )
3434dfe64dd3Smacallan	# We found the default executable, but exeext='' is most
3435dfe64dd3Smacallan	# certainly right.
3436dfe64dd3Smacallan	break;;
3437dfe64dd3Smacallan    *.* )
3438dfe64dd3Smacallan	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3439dfe64dd3Smacallan	then :; else
3440dfe64dd3Smacallan	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441dfe64dd3Smacallan	fi
3442dfe64dd3Smacallan	# We set ac_cv_exeext here because the later test for it is not
3443dfe64dd3Smacallan	# safe: cross compilers may not add the suffix if given an `-o'
3444dfe64dd3Smacallan	# argument, so we may need to know it at that point already.
3445dfe64dd3Smacallan	# Even if this section looks crufty: it has the advantage of
3446dfe64dd3Smacallan	# actually working.
3447dfe64dd3Smacallan	break;;
3448dfe64dd3Smacallan    * )
3449dfe64dd3Smacallan	break;;
3450dfe64dd3Smacallan  esac
3451dfe64dd3Smacallandone
3452dfe64dd3Smacallantest "$ac_cv_exeext" = no && ac_cv_exeext=
3453dfe64dd3Smacallan
3454dfe64dd3Smacallanelse
3455dfe64dd3Smacallan  ac_file=''
3456dfe64dd3Smacallanfi
3457dfe64dd3Smacallanif test -z "$ac_file"; then :
3458dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459dfe64dd3Smacallan$as_echo "no" >&6; }
3460dfe64dd3Smacallan$as_echo "$as_me: failed program was:" >&5
3461dfe64dd3Smacallansed 's/^/| /' conftest.$ac_ext >&5
3462dfe64dd3Smacallan
3463dfe64dd3Smacallan{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465dfe64dd3Smacallanas_fn_error 77 "C compiler cannot create executables
3466dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
3467dfe64dd3Smacallanelse
3468dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3469dfe64dd3Smacallan$as_echo "yes" >&6; }
3470dfe64dd3Smacallanfi
3471dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3472dfe64dd3Smacallan$as_echo_n "checking for C compiler default output file name... " >&6; }
3473dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3474dfe64dd3Smacallan$as_echo "$ac_file" >&6; }
3475dfe64dd3Smacallanac_exeext=$ac_cv_exeext
3476dfe64dd3Smacallan
3477dfe64dd3Smacallanrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3478dfe64dd3Smacallanac_clean_files=$ac_clean_files_save
3479dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3480dfe64dd3Smacallan$as_echo_n "checking for suffix of executables... " >&6; }
3481dfe64dd3Smacallanif { { ac_try="$ac_link"
3482dfe64dd3Smacallancase "(($ac_try" in
3483dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
3485dfe64dd3Smacallanesac
3486dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
3488dfe64dd3Smacallan  (eval "$ac_link") 2>&5
3489dfe64dd3Smacallan  ac_status=$?
3490dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491dfe64dd3Smacallan  test $ac_status = 0; }; then :
3492dfe64dd3Smacallan  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3493dfe64dd3Smacallan# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3494dfe64dd3Smacallan# work properly (i.e., refer to `conftest.exe'), while it won't with
3495dfe64dd3Smacallan# `rm'.
3496dfe64dd3Smacallanfor ac_file in conftest.exe conftest conftest.*; do
3497dfe64dd3Smacallan  test -f "$ac_file" || continue
3498dfe64dd3Smacallan  case $ac_file in
3499dfe64dd3Smacallan    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500dfe64dd3Smacallan    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3501dfe64dd3Smacallan	  break;;
3502dfe64dd3Smacallan    * ) break;;
3503dfe64dd3Smacallan  esac
3504dfe64dd3Smacallandone
3505dfe64dd3Smacallanelse
3506dfe64dd3Smacallan  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508dfe64dd3Smacallanas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3509dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
3510dfe64dd3Smacallanfi
3511dfe64dd3Smacallanrm -f conftest conftest$ac_cv_exeext
3512dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3513dfe64dd3Smacallan$as_echo "$ac_cv_exeext" >&6; }
3514dfe64dd3Smacallan
3515dfe64dd3Smacallanrm -f conftest.$ac_ext
3516dfe64dd3SmacallanEXEEXT=$ac_cv_exeext
3517dfe64dd3Smacallanac_exeext=$EXEEXT
3518dfe64dd3Smacallancat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519dfe64dd3Smacallan/* end confdefs.h.  */
3520dfe64dd3Smacallan#include <stdio.h>
3521dfe64dd3Smacallanint
3522dfe64dd3Smacallanmain ()
3523dfe64dd3Smacallan{
3524dfe64dd3SmacallanFILE *f = fopen ("conftest.out", "w");
3525dfe64dd3Smacallan return ferror (f) || fclose (f) != 0;
3526dfe64dd3Smacallan
3527dfe64dd3Smacallan  ;
3528dfe64dd3Smacallan  return 0;
3529dfe64dd3Smacallan}
3530dfe64dd3Smacallan_ACEOF
3531dfe64dd3Smacallanac_clean_files="$ac_clean_files conftest.out"
3532dfe64dd3Smacallan# Check that the compiler produces executables we can run.  If not, either
3533dfe64dd3Smacallan# the compiler is broken, or we cross compile.
3534dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3535dfe64dd3Smacallan$as_echo_n "checking whether we are cross compiling... " >&6; }
3536dfe64dd3Smacallanif test "$cross_compiling" != yes; then
3537dfe64dd3Smacallan  { { ac_try="$ac_link"
3538dfe64dd3Smacallancase "(($ac_try" in
3539dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
3541dfe64dd3Smacallanesac
3542dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
3544dfe64dd3Smacallan  (eval "$ac_link") 2>&5
3545dfe64dd3Smacallan  ac_status=$?
3546dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547dfe64dd3Smacallan  test $ac_status = 0; }
3548dfe64dd3Smacallan  if { ac_try='./conftest$ac_cv_exeext'
3549dfe64dd3Smacallan  { { case "(($ac_try" in
3550dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
3552dfe64dd3Smacallanesac
3553dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
3555dfe64dd3Smacallan  (eval "$ac_try") 2>&5
3556dfe64dd3Smacallan  ac_status=$?
3557dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558dfe64dd3Smacallan  test $ac_status = 0; }; }; then
3559dfe64dd3Smacallan    cross_compiling=no
3560dfe64dd3Smacallan  else
3561dfe64dd3Smacallan    if test "$cross_compiling" = maybe; then
3562dfe64dd3Smacallan	cross_compiling=yes
3563dfe64dd3Smacallan    else
3564dfe64dd3Smacallan	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566dfe64dd3Smacallanas_fn_error $? "cannot run C compiled programs.
3567dfe64dd3SmacallanIf you meant to cross compile, use \`--host'.
3568dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
3569dfe64dd3Smacallan    fi
3570dfe64dd3Smacallan  fi
3571dfe64dd3Smacallanfi
3572dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3573dfe64dd3Smacallan$as_echo "$cross_compiling" >&6; }
3574dfe64dd3Smacallan
3575dfe64dd3Smacallanrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3576dfe64dd3Smacallanac_clean_files=$ac_clean_files_save
3577dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3578dfe64dd3Smacallan$as_echo_n "checking for suffix of object files... " >&6; }
3579dfe64dd3Smacallanif test "${ac_cv_objext+set}" = set; then :
3580dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3581dfe64dd3Smacallanelse
3582dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583dfe64dd3Smacallan/* end confdefs.h.  */
3584dfe64dd3Smacallan
3585dfe64dd3Smacallanint
3586dfe64dd3Smacallanmain ()
3587dfe64dd3Smacallan{
3588dfe64dd3Smacallan
3589dfe64dd3Smacallan  ;
3590dfe64dd3Smacallan  return 0;
3591dfe64dd3Smacallan}
3592dfe64dd3Smacallan_ACEOF
3593dfe64dd3Smacallanrm -f conftest.o conftest.obj
3594dfe64dd3Smacallanif { { ac_try="$ac_compile"
3595dfe64dd3Smacallancase "(($ac_try" in
3596dfe64dd3Smacallan  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597dfe64dd3Smacallan  *) ac_try_echo=$ac_try;;
3598dfe64dd3Smacallanesac
3599dfe64dd3Smacallaneval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600dfe64dd3Smacallan$as_echo "$ac_try_echo"; } >&5
3601dfe64dd3Smacallan  (eval "$ac_compile") 2>&5
3602dfe64dd3Smacallan  ac_status=$?
3603dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604dfe64dd3Smacallan  test $ac_status = 0; }; then :
3605dfe64dd3Smacallan  for ac_file in conftest.o conftest.obj conftest.*; do
3606dfe64dd3Smacallan  test -f "$ac_file" || continue;
3607dfe64dd3Smacallan  case $ac_file in
3608dfe64dd3Smacallan    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3609dfe64dd3Smacallan    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3610dfe64dd3Smacallan       break;;
3611dfe64dd3Smacallan  esac
3612dfe64dd3Smacallandone
3613dfe64dd3Smacallanelse
3614dfe64dd3Smacallan  $as_echo "$as_me: failed program was:" >&5
3615dfe64dd3Smacallansed 's/^/| /' conftest.$ac_ext >&5
3616dfe64dd3Smacallan
3617dfe64dd3Smacallan{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619dfe64dd3Smacallanas_fn_error $? "cannot compute suffix of object files: cannot compile
3620dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
3621dfe64dd3Smacallanfi
3622dfe64dd3Smacallanrm -f conftest.$ac_cv_objext conftest.$ac_ext
3623dfe64dd3Smacallanfi
3624dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3625dfe64dd3Smacallan$as_echo "$ac_cv_objext" >&6; }
3626dfe64dd3SmacallanOBJEXT=$ac_cv_objext
3627dfe64dd3Smacallanac_objext=$OBJEXT
3628dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3629dfe64dd3Smacallan$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3630dfe64dd3Smacallanif test "${ac_cv_c_compiler_gnu+set}" = set; then :
3631dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3632dfe64dd3Smacallanelse
3633dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634dfe64dd3Smacallan/* end confdefs.h.  */
3635dfe64dd3Smacallan
3636dfe64dd3Smacallanint
3637dfe64dd3Smacallanmain ()
3638dfe64dd3Smacallan{
3639dfe64dd3Smacallan#ifndef __GNUC__
3640dfe64dd3Smacallan       choke me
3641dfe64dd3Smacallan#endif
3642dfe64dd3Smacallan
3643dfe64dd3Smacallan  ;
3644dfe64dd3Smacallan  return 0;
3645dfe64dd3Smacallan}
3646dfe64dd3Smacallan_ACEOF
3647dfe64dd3Smacallanif ac_fn_c_try_compile "$LINENO"; then :
3648dfe64dd3Smacallan  ac_compiler_gnu=yes
3649dfe64dd3Smacallanelse
3650dfe64dd3Smacallan  ac_compiler_gnu=no
3651dfe64dd3Smacallanfi
3652dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653dfe64dd3Smacallanac_cv_c_compiler_gnu=$ac_compiler_gnu
3654dfe64dd3Smacallan
3655dfe64dd3Smacallanfi
3656dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3657dfe64dd3Smacallan$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3658dfe64dd3Smacallanif test $ac_compiler_gnu = yes; then
3659dfe64dd3Smacallan  GCC=yes
3660dfe64dd3Smacallanelse
3661dfe64dd3Smacallan  GCC=
3662dfe64dd3Smacallanfi
3663dfe64dd3Smacallanac_test_CFLAGS=${CFLAGS+set}
3664dfe64dd3Smacallanac_save_CFLAGS=$CFLAGS
3665dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3666dfe64dd3Smacallan$as_echo_n "checking whether $CC accepts -g... " >&6; }
3667dfe64dd3Smacallanif test "${ac_cv_prog_cc_g+set}" = set; then :
3668dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3669dfe64dd3Smacallanelse
3670dfe64dd3Smacallan  ac_save_c_werror_flag=$ac_c_werror_flag
3671dfe64dd3Smacallan   ac_c_werror_flag=yes
3672dfe64dd3Smacallan   ac_cv_prog_cc_g=no
3673dfe64dd3Smacallan   CFLAGS="-g"
3674dfe64dd3Smacallan   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675dfe64dd3Smacallan/* end confdefs.h.  */
3676dfe64dd3Smacallan
3677dfe64dd3Smacallanint
3678dfe64dd3Smacallanmain ()
3679dfe64dd3Smacallan{
3680dfe64dd3Smacallan
3681dfe64dd3Smacallan  ;
3682dfe64dd3Smacallan  return 0;
3683dfe64dd3Smacallan}
3684dfe64dd3Smacallan_ACEOF
3685dfe64dd3Smacallanif ac_fn_c_try_compile "$LINENO"; then :
3686dfe64dd3Smacallan  ac_cv_prog_cc_g=yes
3687dfe64dd3Smacallanelse
3688dfe64dd3Smacallan  CFLAGS=""
3689dfe64dd3Smacallan      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690dfe64dd3Smacallan/* end confdefs.h.  */
3691dfe64dd3Smacallan
3692dfe64dd3Smacallanint
3693dfe64dd3Smacallanmain ()
3694dfe64dd3Smacallan{
3695dfe64dd3Smacallan
3696dfe64dd3Smacallan  ;
3697dfe64dd3Smacallan  return 0;
3698dfe64dd3Smacallan}
3699dfe64dd3Smacallan_ACEOF
3700dfe64dd3Smacallanif ac_fn_c_try_compile "$LINENO"; then :
3701dfe64dd3Smacallan
3702dfe64dd3Smacallanelse
3703dfe64dd3Smacallan  ac_c_werror_flag=$ac_save_c_werror_flag
3704dfe64dd3Smacallan	 CFLAGS="-g"
3705dfe64dd3Smacallan	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706dfe64dd3Smacallan/* end confdefs.h.  */
3707dfe64dd3Smacallan
3708dfe64dd3Smacallanint
3709dfe64dd3Smacallanmain ()
3710dfe64dd3Smacallan{
3711dfe64dd3Smacallan
3712dfe64dd3Smacallan  ;
3713dfe64dd3Smacallan  return 0;
3714dfe64dd3Smacallan}
3715dfe64dd3Smacallan_ACEOF
3716dfe64dd3Smacallanif ac_fn_c_try_compile "$LINENO"; then :
3717dfe64dd3Smacallan  ac_cv_prog_cc_g=yes
3718dfe64dd3Smacallanfi
3719dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720dfe64dd3Smacallanfi
3721dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722dfe64dd3Smacallanfi
3723dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724dfe64dd3Smacallan   ac_c_werror_flag=$ac_save_c_werror_flag
3725dfe64dd3Smacallanfi
3726dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3727dfe64dd3Smacallan$as_echo "$ac_cv_prog_cc_g" >&6; }
3728dfe64dd3Smacallanif test "$ac_test_CFLAGS" = set; then
3729dfe64dd3Smacallan  CFLAGS=$ac_save_CFLAGS
3730dfe64dd3Smacallanelif test $ac_cv_prog_cc_g = yes; then
3731dfe64dd3Smacallan  if test "$GCC" = yes; then
3732dfe64dd3Smacallan    CFLAGS="-g -O2"
3733dfe64dd3Smacallan  else
3734dfe64dd3Smacallan    CFLAGS="-g"
3735dfe64dd3Smacallan  fi
3736dfe64dd3Smacallanelse
3737dfe64dd3Smacallan  if test "$GCC" = yes; then
3738dfe64dd3Smacallan    CFLAGS="-O2"
3739dfe64dd3Smacallan  else
3740dfe64dd3Smacallan    CFLAGS=
3741dfe64dd3Smacallan  fi
3742dfe64dd3Smacallanfi
3743dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3744dfe64dd3Smacallan$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3745dfe64dd3Smacallanif test "${ac_cv_prog_cc_c89+set}" = set; then :
3746dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3747dfe64dd3Smacallanelse
3748dfe64dd3Smacallan  ac_cv_prog_cc_c89=no
3749dfe64dd3Smacallanac_save_CC=$CC
3750dfe64dd3Smacallancat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751dfe64dd3Smacallan/* end confdefs.h.  */
3752dfe64dd3Smacallan#include <stdarg.h>
3753dfe64dd3Smacallan#include <stdio.h>
3754dfe64dd3Smacallan#include <sys/types.h>
3755dfe64dd3Smacallan#include <sys/stat.h>
3756dfe64dd3Smacallan/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3757dfe64dd3Smacallanstruct buf { int x; };
3758dfe64dd3SmacallanFILE * (*rcsopen) (struct buf *, struct stat *, int);
3759dfe64dd3Smacallanstatic char *e (p, i)
3760dfe64dd3Smacallan     char **p;
3761dfe64dd3Smacallan     int i;
3762dfe64dd3Smacallan{
3763dfe64dd3Smacallan  return p[i];
3764dfe64dd3Smacallan}
3765dfe64dd3Smacallanstatic char *f (char * (*g) (char **, int), char **p, ...)
3766dfe64dd3Smacallan{
3767dfe64dd3Smacallan  char *s;
3768dfe64dd3Smacallan  va_list v;
3769dfe64dd3Smacallan  va_start (v,p);
3770dfe64dd3Smacallan  s = g (p, va_arg (v,int));
3771dfe64dd3Smacallan  va_end (v);
3772dfe64dd3Smacallan  return s;
3773dfe64dd3Smacallan}
3774dfe64dd3Smacallan
3775dfe64dd3Smacallan/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3776dfe64dd3Smacallan   function prototypes and stuff, but not '\xHH' hex character constants.
3777dfe64dd3Smacallan   These don't provoke an error unfortunately, instead are silently treated
3778dfe64dd3Smacallan   as 'x'.  The following induces an error, until -std is added to get
3779dfe64dd3Smacallan   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3780dfe64dd3Smacallan   array size at least.  It's necessary to write '\x00'==0 to get something
3781dfe64dd3Smacallan   that's true only with -std.  */
3782dfe64dd3Smacallanint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3783dfe64dd3Smacallan
3784dfe64dd3Smacallan/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3785dfe64dd3Smacallan   inside strings and character constants.  */
3786dfe64dd3Smacallan#define FOO(x) 'x'
3787dfe64dd3Smacallanint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3788dfe64dd3Smacallan
3789dfe64dd3Smacallanint test (int i, double x);
3790dfe64dd3Smacallanstruct s1 {int (*f) (int a);};
3791dfe64dd3Smacallanstruct s2 {int (*f) (double a);};
3792dfe64dd3Smacallanint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3793dfe64dd3Smacallanint argc;
3794dfe64dd3Smacallanchar **argv;
3795dfe64dd3Smacallanint
3796dfe64dd3Smacallanmain ()
3797dfe64dd3Smacallan{
3798dfe64dd3Smacallanreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3799dfe64dd3Smacallan  ;
3800dfe64dd3Smacallan  return 0;
3801dfe64dd3Smacallan}
3802dfe64dd3Smacallan_ACEOF
3803dfe64dd3Smacallanfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3804dfe64dd3Smacallan	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805dfe64dd3Smacallando
3806dfe64dd3Smacallan  CC="$ac_save_CC $ac_arg"
3807dfe64dd3Smacallan  if ac_fn_c_try_compile "$LINENO"; then :
3808dfe64dd3Smacallan  ac_cv_prog_cc_c89=$ac_arg
3809dfe64dd3Smacallanfi
3810dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext
3811dfe64dd3Smacallan  test "x$ac_cv_prog_cc_c89" != "xno" && break
3812dfe64dd3Smacallandone
3813dfe64dd3Smacallanrm -f conftest.$ac_ext
3814dfe64dd3SmacallanCC=$ac_save_CC
3815dfe64dd3Smacallan
3816dfe64dd3Smacallanfi
3817dfe64dd3Smacallan# AC_CACHE_VAL
3818dfe64dd3Smacallancase "x$ac_cv_prog_cc_c89" in
3819dfe64dd3Smacallan  x)
3820dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3821dfe64dd3Smacallan$as_echo "none needed" >&6; } ;;
3822dfe64dd3Smacallan  xno)
3823dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3824dfe64dd3Smacallan$as_echo "unsupported" >&6; } ;;
3825dfe64dd3Smacallan  *)
3826dfe64dd3Smacallan    CC="$CC $ac_cv_prog_cc_c89"
3827dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3828dfe64dd3Smacallan$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3829dfe64dd3Smacallanesac
3830dfe64dd3Smacallanif test "x$ac_cv_prog_cc_c89" != xno; then :
3831dfe64dd3Smacallan
3832dfe64dd3Smacallanfi
3833dfe64dd3Smacallan
3834dfe64dd3Smacallanac_ext=c
3835dfe64dd3Smacallanac_cpp='$CPP $CPPFLAGS'
3836dfe64dd3Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837dfe64dd3Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838dfe64dd3Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu
3839dfe64dd3Smacallan
3840dfe64dd3Smacallandepcc="$CC"   am_compiler_list=
3841dfe64dd3Smacallan
3842dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3843dfe64dd3Smacallan$as_echo_n "checking dependency style of $depcc... " >&6; }
3844dfe64dd3Smacallanif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3845dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3846dfe64dd3Smacallanelse
3847dfe64dd3Smacallan  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848dfe64dd3Smacallan  # We make a subdir and do the tests there.  Otherwise we can end up
3849dfe64dd3Smacallan  # making bogus files that we don't know about and never remove.  For
3850dfe64dd3Smacallan  # instance it was reported that on HP-UX the gcc test will end up
3851dfe64dd3Smacallan  # making a dummy file named `D' -- because `-MD' means `put the output
3852dfe64dd3Smacallan  # in D'.
3853dfe64dd3Smacallan  mkdir conftest.dir
3854dfe64dd3Smacallan  # Copy depcomp to subdir because otherwise we won't find it if we're
3855dfe64dd3Smacallan  # using a relative directory.
3856dfe64dd3Smacallan  cp "$am_depcomp" conftest.dir
3857dfe64dd3Smacallan  cd conftest.dir
3858dfe64dd3Smacallan  # We will build objects and dependencies in a subdirectory because
3859dfe64dd3Smacallan  # it helps to detect inapplicable dependency modes.  For instance
3860dfe64dd3Smacallan  # both Tru64's cc and ICC support -MD to output dependencies as a
3861dfe64dd3Smacallan  # side effect of compilation, but ICC will put the dependencies in
3862dfe64dd3Smacallan  # the current directory while Tru64 will put them in the object
3863dfe64dd3Smacallan  # directory.
3864dfe64dd3Smacallan  mkdir sub
3865dfe64dd3Smacallan
3866dfe64dd3Smacallan  am_cv_CC_dependencies_compiler_type=none
3867dfe64dd3Smacallan  if test "$am_compiler_list" = ""; then
3868dfe64dd3Smacallan     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3869dfe64dd3Smacallan  fi
3870dfe64dd3Smacallan  am__universal=false
3871dfe64dd3Smacallan  case " $depcc " in #(
3872dfe64dd3Smacallan     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3873dfe64dd3Smacallan     esac
3874dfe64dd3Smacallan
3875dfe64dd3Smacallan  for depmode in $am_compiler_list; do
3876dfe64dd3Smacallan    # Setup a source with many dependencies, because some compilers
3877dfe64dd3Smacallan    # like to wrap large dependency lists on column 80 (with \), and
3878dfe64dd3Smacallan    # we should not choose a depcomp mode which is confused by this.
3879dfe64dd3Smacallan    #
3880dfe64dd3Smacallan    # We need to recreate these files for each test, as the compiler may
3881dfe64dd3Smacallan    # overwrite some of them when testing with obscure command lines.
3882dfe64dd3Smacallan    # This happens at least with the AIX C compiler.
3883dfe64dd3Smacallan    : > sub/conftest.c
3884dfe64dd3Smacallan    for i in 1 2 3 4 5 6; do
3885dfe64dd3Smacallan      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3886dfe64dd3Smacallan      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3887dfe64dd3Smacallan      # Solaris 8's {/usr,}/bin/sh.
3888dfe64dd3Smacallan      touch sub/conftst$i.h
3889dfe64dd3Smacallan    done
3890dfe64dd3Smacallan    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3891dfe64dd3Smacallan
3892dfe64dd3Smacallan    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3893dfe64dd3Smacallan    # mode.  It turns out that the SunPro C++ compiler does not properly
3894dfe64dd3Smacallan    # handle `-M -o', and we need to detect this.  Also, some Intel
3895dfe64dd3Smacallan    # versions had trouble with output in subdirs
3896dfe64dd3Smacallan    am__obj=sub/conftest.${OBJEXT-o}
3897dfe64dd3Smacallan    am__minus_obj="-o $am__obj"
3898dfe64dd3Smacallan    case $depmode in
3899dfe64dd3Smacallan    gcc)
3900dfe64dd3Smacallan      # This depmode causes a compiler race in universal mode.
3901dfe64dd3Smacallan      test "$am__universal" = false || continue
3902dfe64dd3Smacallan      ;;
3903dfe64dd3Smacallan    nosideeffect)
3904dfe64dd3Smacallan      # after this tag, mechanisms are not by side-effect, so they'll
3905dfe64dd3Smacallan      # only be used when explicitly requested
3906dfe64dd3Smacallan      if test "x$enable_dependency_tracking" = xyes; then
3907dfe64dd3Smacallan	continue
3908dfe64dd3Smacallan      else
3909dfe64dd3Smacallan	break
3910dfe64dd3Smacallan      fi
3911dfe64dd3Smacallan      ;;
3912dfe64dd3Smacallan    msvisualcpp | msvcmsys)
3913dfe64dd3Smacallan      # This compiler won't grok `-c -o', but also, the minuso test has
3914dfe64dd3Smacallan      # not run yet.  These depmodes are late enough in the game, and
3915dfe64dd3Smacallan      # so weak that their functioning should not be impacted.
3916dfe64dd3Smacallan      am__obj=conftest.${OBJEXT-o}
3917dfe64dd3Smacallan      am__minus_obj=
3918dfe64dd3Smacallan      ;;
3919dfe64dd3Smacallan    none) break ;;
3920dfe64dd3Smacallan    esac
3921dfe64dd3Smacallan    if depmode=$depmode \
3922dfe64dd3Smacallan       source=sub/conftest.c object=$am__obj \
3923dfe64dd3Smacallan       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3924dfe64dd3Smacallan       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3925dfe64dd3Smacallan         >/dev/null 2>conftest.err &&
3926dfe64dd3Smacallan       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3927dfe64dd3Smacallan       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3928dfe64dd3Smacallan       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3929dfe64dd3Smacallan       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3930dfe64dd3Smacallan      # icc doesn't choke on unknown options, it will just issue warnings
3931dfe64dd3Smacallan      # or remarks (even with -Werror).  So we grep stderr for any message
3932dfe64dd3Smacallan      # that says an option was ignored or not supported.
3933dfe64dd3Smacallan      # When given -MP, icc 7.0 and 7.1 complain thusly:
3934dfe64dd3Smacallan      #   icc: Command line warning: ignoring option '-M'; no argument required
3935dfe64dd3Smacallan      # The diagnosis changed in icc 8.0:
3936dfe64dd3Smacallan      #   icc: Command line remark: option '-MP' not supported
3937dfe64dd3Smacallan      if (grep 'ignoring option' conftest.err ||
3938dfe64dd3Smacallan          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3939dfe64dd3Smacallan        am_cv_CC_dependencies_compiler_type=$depmode
3940dfe64dd3Smacallan        break
3941dfe64dd3Smacallan      fi
3942dfe64dd3Smacallan    fi
3943dfe64dd3Smacallan  done
3944dfe64dd3Smacallan
3945dfe64dd3Smacallan  cd ..
3946dfe64dd3Smacallan  rm -rf conftest.dir
3947dfe64dd3Smacallanelse
3948dfe64dd3Smacallan  am_cv_CC_dependencies_compiler_type=none
3949dfe64dd3Smacallanfi
3950dfe64dd3Smacallan
3951dfe64dd3Smacallanfi
3952dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3953dfe64dd3Smacallan$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3954dfe64dd3SmacallanCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3955dfe64dd3Smacallan
3956dfe64dd3Smacallan if
3957dfe64dd3Smacallan  test "x$enable_dependency_tracking" != xno \
3958dfe64dd3Smacallan  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3959dfe64dd3Smacallan  am__fastdepCC_TRUE=
3960dfe64dd3Smacallan  am__fastdepCC_FALSE='#'
3961dfe64dd3Smacallanelse
3962dfe64dd3Smacallan  am__fastdepCC_TRUE='#'
3963dfe64dd3Smacallan  am__fastdepCC_FALSE=
3964dfe64dd3Smacallanfi
3965dfe64dd3Smacallan
3966dfe64dd3Smacallan
3967dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3968dfe64dd3Smacallan$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3969dfe64dd3Smacallanif test "${ac_cv_path_SED+set}" = set; then :
3970dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
3971dfe64dd3Smacallanelse
3972dfe64dd3Smacallan            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3973dfe64dd3Smacallan     for ac_i in 1 2 3 4 5 6 7; do
3974dfe64dd3Smacallan       ac_script="$ac_script$as_nl$ac_script"
3975dfe64dd3Smacallan     done
3976dfe64dd3Smacallan     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3977dfe64dd3Smacallan     { ac_script=; unset ac_script;}
3978dfe64dd3Smacallan     if test -z "$SED"; then
3979dfe64dd3Smacallan  ac_path_SED_found=false
3980dfe64dd3Smacallan  # Loop through the user's path and test for each of PROGNAME-LIST
3981dfe64dd3Smacallan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982dfe64dd3Smacallanfor as_dir in $PATH
3983dfe64dd3Smacallando
3984dfe64dd3Smacallan  IFS=$as_save_IFS
3985dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
3986dfe64dd3Smacallan    for ac_prog in sed gsed; do
3987dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
3988dfe64dd3Smacallan      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3989dfe64dd3Smacallan      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3990dfe64dd3Smacallan# Check for GNU ac_path_SED and select it if it is found.
3991dfe64dd3Smacallan  # Check for GNU $ac_path_SED
3992dfe64dd3Smacallancase `"$ac_path_SED" --version 2>&1` in
3993dfe64dd3Smacallan*GNU*)
3994dfe64dd3Smacallan  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3995dfe64dd3Smacallan*)
3996dfe64dd3Smacallan  ac_count=0
3997dfe64dd3Smacallan  $as_echo_n 0123456789 >"conftest.in"
3998dfe64dd3Smacallan  while :
3999dfe64dd3Smacallan  do
4000dfe64dd3Smacallan    cat "conftest.in" "conftest.in" >"conftest.tmp"
4001dfe64dd3Smacallan    mv "conftest.tmp" "conftest.in"
4002dfe64dd3Smacallan    cp "conftest.in" "conftest.nl"
4003dfe64dd3Smacallan    $as_echo '' >> "conftest.nl"
4004dfe64dd3Smacallan    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005dfe64dd3Smacallan    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006dfe64dd3Smacallan    as_fn_arith $ac_count + 1 && ac_count=$as_val
4007dfe64dd3Smacallan    if test $ac_count -gt ${ac_path_SED_max-0}; then
4008dfe64dd3Smacallan      # Best one so far, save it but keep looking for a better one
4009dfe64dd3Smacallan      ac_cv_path_SED="$ac_path_SED"
4010dfe64dd3Smacallan      ac_path_SED_max=$ac_count
4011dfe64dd3Smacallan    fi
4012dfe64dd3Smacallan    # 10*(2^10) chars as input seems more than enough
4013dfe64dd3Smacallan    test $ac_count -gt 10 && break
4014dfe64dd3Smacallan  done
4015dfe64dd3Smacallan  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016dfe64dd3Smacallanesac
4017dfe64dd3Smacallan
4018dfe64dd3Smacallan      $ac_path_SED_found && break 3
4019dfe64dd3Smacallan    done
4020dfe64dd3Smacallan  done
4021dfe64dd3Smacallan  done
4022dfe64dd3SmacallanIFS=$as_save_IFS
4023dfe64dd3Smacallan  if test -z "$ac_cv_path_SED"; then
4024dfe64dd3Smacallan    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4025dfe64dd3Smacallan  fi
4026dfe64dd3Smacallanelse
4027dfe64dd3Smacallan  ac_cv_path_SED=$SED
4028dfe64dd3Smacallanfi
4029dfe64dd3Smacallan
4030dfe64dd3Smacallanfi
4031dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4032dfe64dd3Smacallan$as_echo "$ac_cv_path_SED" >&6; }
4033dfe64dd3Smacallan SED="$ac_cv_path_SED"
4034dfe64dd3Smacallan  rm -f conftest.sed
4035dfe64dd3Smacallan
4036dfe64dd3Smacallantest -z "$SED" && SED=sed
4037dfe64dd3SmacallanXsed="$SED -e 1s/^X//"
4038dfe64dd3Smacallan
4039dfe64dd3Smacallan
4040dfe64dd3Smacallan
4041dfe64dd3Smacallan
4042dfe64dd3Smacallan
4043dfe64dd3Smacallan
4044dfe64dd3Smacallan
4045dfe64dd3Smacallan
4046dfe64dd3Smacallan
4047dfe64dd3Smacallan
4048dfe64dd3Smacallan
4049dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4050dfe64dd3Smacallan$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4051dfe64dd3Smacallanif test "${ac_cv_path_GREP+set}" = set; then :
4052dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4053dfe64dd3Smacallanelse
4054dfe64dd3Smacallan  if test -z "$GREP"; then
4055dfe64dd3Smacallan  ac_path_GREP_found=false
4056dfe64dd3Smacallan  # Loop through the user's path and test for each of PROGNAME-LIST
4057dfe64dd3Smacallan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058dfe64dd3Smacallanfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059dfe64dd3Smacallando
4060dfe64dd3Smacallan  IFS=$as_save_IFS
4061dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
4062dfe64dd3Smacallan    for ac_prog in grep ggrep; do
4063dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
4064dfe64dd3Smacallan      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4065dfe64dd3Smacallan      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4066dfe64dd3Smacallan# Check for GNU ac_path_GREP and select it if it is found.
4067dfe64dd3Smacallan  # Check for GNU $ac_path_GREP
4068dfe64dd3Smacallancase `"$ac_path_GREP" --version 2>&1` in
4069dfe64dd3Smacallan*GNU*)
4070dfe64dd3Smacallan  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4071dfe64dd3Smacallan*)
4072dfe64dd3Smacallan  ac_count=0
4073dfe64dd3Smacallan  $as_echo_n 0123456789 >"conftest.in"
4074dfe64dd3Smacallan  while :
4075dfe64dd3Smacallan  do
4076dfe64dd3Smacallan    cat "conftest.in" "conftest.in" >"conftest.tmp"
4077dfe64dd3Smacallan    mv "conftest.tmp" "conftest.in"
4078dfe64dd3Smacallan    cp "conftest.in" "conftest.nl"
4079dfe64dd3Smacallan    $as_echo 'GREP' >> "conftest.nl"
4080dfe64dd3Smacallan    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081dfe64dd3Smacallan    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082dfe64dd3Smacallan    as_fn_arith $ac_count + 1 && ac_count=$as_val
4083dfe64dd3Smacallan    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4084dfe64dd3Smacallan      # Best one so far, save it but keep looking for a better one
4085dfe64dd3Smacallan      ac_cv_path_GREP="$ac_path_GREP"
4086dfe64dd3Smacallan      ac_path_GREP_max=$ac_count
4087dfe64dd3Smacallan    fi
4088dfe64dd3Smacallan    # 10*(2^10) chars as input seems more than enough
4089dfe64dd3Smacallan    test $ac_count -gt 10 && break
4090dfe64dd3Smacallan  done
4091dfe64dd3Smacallan  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092dfe64dd3Smacallanesac
4093dfe64dd3Smacallan
4094dfe64dd3Smacallan      $ac_path_GREP_found && break 3
4095dfe64dd3Smacallan    done
4096dfe64dd3Smacallan  done
4097dfe64dd3Smacallan  done
4098dfe64dd3SmacallanIFS=$as_save_IFS
4099dfe64dd3Smacallan  if test -z "$ac_cv_path_GREP"; then
4100dfe64dd3Smacallan    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4101dfe64dd3Smacallan  fi
4102dfe64dd3Smacallanelse
4103dfe64dd3Smacallan  ac_cv_path_GREP=$GREP
4104dfe64dd3Smacallanfi
4105dfe64dd3Smacallan
4106dfe64dd3Smacallanfi
4107dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4108dfe64dd3Smacallan$as_echo "$ac_cv_path_GREP" >&6; }
4109dfe64dd3Smacallan GREP="$ac_cv_path_GREP"
4110dfe64dd3Smacallan
4111dfe64dd3Smacallan
4112dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4113dfe64dd3Smacallan$as_echo_n "checking for egrep... " >&6; }
4114dfe64dd3Smacallanif test "${ac_cv_path_EGREP+set}" = set; then :
4115dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4116dfe64dd3Smacallanelse
4117dfe64dd3Smacallan  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4118dfe64dd3Smacallan   then ac_cv_path_EGREP="$GREP -E"
4119dfe64dd3Smacallan   else
4120dfe64dd3Smacallan     if test -z "$EGREP"; then
4121dfe64dd3Smacallan  ac_path_EGREP_found=false
4122dfe64dd3Smacallan  # Loop through the user's path and test for each of PROGNAME-LIST
4123dfe64dd3Smacallan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124dfe64dd3Smacallanfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4125dfe64dd3Smacallando
4126dfe64dd3Smacallan  IFS=$as_save_IFS
4127dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
4128dfe64dd3Smacallan    for ac_prog in egrep; do
4129dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
4130dfe64dd3Smacallan      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4131dfe64dd3Smacallan      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4132dfe64dd3Smacallan# Check for GNU ac_path_EGREP and select it if it is found.
4133dfe64dd3Smacallan  # Check for GNU $ac_path_EGREP
4134dfe64dd3Smacallancase `"$ac_path_EGREP" --version 2>&1` in
4135dfe64dd3Smacallan*GNU*)
4136dfe64dd3Smacallan  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4137dfe64dd3Smacallan*)
4138dfe64dd3Smacallan  ac_count=0
4139dfe64dd3Smacallan  $as_echo_n 0123456789 >"conftest.in"
4140dfe64dd3Smacallan  while :
4141dfe64dd3Smacallan  do
4142dfe64dd3Smacallan    cat "conftest.in" "conftest.in" >"conftest.tmp"
4143dfe64dd3Smacallan    mv "conftest.tmp" "conftest.in"
4144dfe64dd3Smacallan    cp "conftest.in" "conftest.nl"
4145dfe64dd3Smacallan    $as_echo 'EGREP' >> "conftest.nl"
4146dfe64dd3Smacallan    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4147dfe64dd3Smacallan    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4148dfe64dd3Smacallan    as_fn_arith $ac_count + 1 && ac_count=$as_val
4149dfe64dd3Smacallan    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4150dfe64dd3Smacallan      # Best one so far, save it but keep looking for a better one
4151dfe64dd3Smacallan      ac_cv_path_EGREP="$ac_path_EGREP"
4152dfe64dd3Smacallan      ac_path_EGREP_max=$ac_count
4153dfe64dd3Smacallan    fi
4154dfe64dd3Smacallan    # 10*(2^10) chars as input seems more than enough
4155dfe64dd3Smacallan    test $ac_count -gt 10 && break
4156dfe64dd3Smacallan  done
4157dfe64dd3Smacallan  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4158dfe64dd3Smacallanesac
4159dfe64dd3Smacallan
4160dfe64dd3Smacallan      $ac_path_EGREP_found && break 3
4161dfe64dd3Smacallan    done
4162dfe64dd3Smacallan  done
4163dfe64dd3Smacallan  done
4164dfe64dd3SmacallanIFS=$as_save_IFS
4165dfe64dd3Smacallan  if test -z "$ac_cv_path_EGREP"; then
4166dfe64dd3Smacallan    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4167dfe64dd3Smacallan  fi
4168dfe64dd3Smacallanelse
4169dfe64dd3Smacallan  ac_cv_path_EGREP=$EGREP
4170dfe64dd3Smacallanfi
4171dfe64dd3Smacallan
4172dfe64dd3Smacallan   fi
4173dfe64dd3Smacallanfi
4174dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4175dfe64dd3Smacallan$as_echo "$ac_cv_path_EGREP" >&6; }
4176dfe64dd3Smacallan EGREP="$ac_cv_path_EGREP"
4177dfe64dd3Smacallan
4178dfe64dd3Smacallan
4179dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4180dfe64dd3Smacallan$as_echo_n "checking for fgrep... " >&6; }
4181dfe64dd3Smacallanif test "${ac_cv_path_FGREP+set}" = set; then :
4182dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4183dfe64dd3Smacallanelse
4184dfe64dd3Smacallan  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4185dfe64dd3Smacallan   then ac_cv_path_FGREP="$GREP -F"
4186dfe64dd3Smacallan   else
4187dfe64dd3Smacallan     if test -z "$FGREP"; then
4188dfe64dd3Smacallan  ac_path_FGREP_found=false
4189dfe64dd3Smacallan  # Loop through the user's path and test for each of PROGNAME-LIST
4190dfe64dd3Smacallan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191dfe64dd3Smacallanfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192dfe64dd3Smacallando
4193dfe64dd3Smacallan  IFS=$as_save_IFS
4194dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
4195dfe64dd3Smacallan    for ac_prog in fgrep; do
4196dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
4197dfe64dd3Smacallan      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4198dfe64dd3Smacallan      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4199dfe64dd3Smacallan# Check for GNU ac_path_FGREP and select it if it is found.
4200dfe64dd3Smacallan  # Check for GNU $ac_path_FGREP
4201dfe64dd3Smacallancase `"$ac_path_FGREP" --version 2>&1` in
4202dfe64dd3Smacallan*GNU*)
4203dfe64dd3Smacallan  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4204dfe64dd3Smacallan*)
4205dfe64dd3Smacallan  ac_count=0
4206dfe64dd3Smacallan  $as_echo_n 0123456789 >"conftest.in"
4207dfe64dd3Smacallan  while :
4208dfe64dd3Smacallan  do
4209dfe64dd3Smacallan    cat "conftest.in" "conftest.in" >"conftest.tmp"
4210dfe64dd3Smacallan    mv "conftest.tmp" "conftest.in"
4211dfe64dd3Smacallan    cp "conftest.in" "conftest.nl"
4212dfe64dd3Smacallan    $as_echo 'FGREP' >> "conftest.nl"
4213dfe64dd3Smacallan    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214dfe64dd3Smacallan    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215dfe64dd3Smacallan    as_fn_arith $ac_count + 1 && ac_count=$as_val
4216dfe64dd3Smacallan    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4217dfe64dd3Smacallan      # Best one so far, save it but keep looking for a better one
4218dfe64dd3Smacallan      ac_cv_path_FGREP="$ac_path_FGREP"
4219dfe64dd3Smacallan      ac_path_FGREP_max=$ac_count
4220dfe64dd3Smacallan    fi
4221dfe64dd3Smacallan    # 10*(2^10) chars as input seems more than enough
4222dfe64dd3Smacallan    test $ac_count -gt 10 && break
4223dfe64dd3Smacallan  done
4224dfe64dd3Smacallan  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225dfe64dd3Smacallanesac
4226dfe64dd3Smacallan
4227dfe64dd3Smacallan      $ac_path_FGREP_found && break 3
4228dfe64dd3Smacallan    done
4229dfe64dd3Smacallan  done
4230dfe64dd3Smacallan  done
4231dfe64dd3SmacallanIFS=$as_save_IFS
4232dfe64dd3Smacallan  if test -z "$ac_cv_path_FGREP"; then
4233dfe64dd3Smacallan    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4234dfe64dd3Smacallan  fi
4235dfe64dd3Smacallanelse
4236dfe64dd3Smacallan  ac_cv_path_FGREP=$FGREP
4237dfe64dd3Smacallanfi
4238dfe64dd3Smacallan
4239dfe64dd3Smacallan   fi
4240dfe64dd3Smacallanfi
4241dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4242dfe64dd3Smacallan$as_echo "$ac_cv_path_FGREP" >&6; }
4243dfe64dd3Smacallan FGREP="$ac_cv_path_FGREP"
4244dfe64dd3Smacallan
4245dfe64dd3Smacallan
4246dfe64dd3Smacallantest -z "$GREP" && GREP=grep
4247dfe64dd3Smacallan
4248dfe64dd3Smacallan
4249dfe64dd3Smacallan
4250dfe64dd3Smacallan
4251dfe64dd3Smacallan
4252dfe64dd3Smacallan
4253dfe64dd3Smacallan
4254dfe64dd3Smacallan
4255dfe64dd3Smacallan
4256dfe64dd3Smacallan
4257dfe64dd3Smacallan
4258dfe64dd3Smacallan
4259dfe64dd3Smacallan
4260dfe64dd3Smacallan
4261dfe64dd3Smacallan
4262dfe64dd3Smacallan
4263dfe64dd3Smacallan
4264dfe64dd3Smacallan
4265dfe64dd3Smacallan
4266dfe64dd3Smacallan# Check whether --with-gnu-ld was given.
4267dfe64dd3Smacallanif test "${with_gnu_ld+set}" = set; then :
4268dfe64dd3Smacallan  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4269dfe64dd3Smacallanelse
4270dfe64dd3Smacallan  with_gnu_ld=no
4271dfe64dd3Smacallanfi
4272dfe64dd3Smacallan
4273dfe64dd3Smacallanac_prog=ld
4274dfe64dd3Smacallanif test "$GCC" = yes; then
4275dfe64dd3Smacallan  # Check if gcc -print-prog-name=ld gives a path.
4276dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4277dfe64dd3Smacallan$as_echo_n "checking for ld used by $CC... " >&6; }
4278dfe64dd3Smacallan  case $host in
4279dfe64dd3Smacallan  *-*-mingw*)
4280dfe64dd3Smacallan    # gcc leaves a trailing carriage return which upsets mingw
4281dfe64dd3Smacallan    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4282dfe64dd3Smacallan  *)
4283dfe64dd3Smacallan    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4284dfe64dd3Smacallan  esac
4285dfe64dd3Smacallan  case $ac_prog in
4286dfe64dd3Smacallan    # Accept absolute paths.
4287dfe64dd3Smacallan    [\\/]* | ?:[\\/]*)
4288dfe64dd3Smacallan      re_direlt='/[^/][^/]*/\.\./'
4289dfe64dd3Smacallan      # Canonicalize the pathname of ld
4290dfe64dd3Smacallan      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4291dfe64dd3Smacallan      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4292dfe64dd3Smacallan	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4293dfe64dd3Smacallan      done
4294dfe64dd3Smacallan      test -z "$LD" && LD="$ac_prog"
4295dfe64dd3Smacallan      ;;
4296dfe64dd3Smacallan  "")
4297dfe64dd3Smacallan    # If it fails, then pretend we aren't using GCC.
4298dfe64dd3Smacallan    ac_prog=ld
4299dfe64dd3Smacallan    ;;
4300dfe64dd3Smacallan  *)
4301dfe64dd3Smacallan    # If it is relative, then search for the first ld in PATH.
4302dfe64dd3Smacallan    with_gnu_ld=unknown
4303dfe64dd3Smacallan    ;;
4304dfe64dd3Smacallan  esac
4305dfe64dd3Smacallanelif test "$with_gnu_ld" = yes; then
4306dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4307dfe64dd3Smacallan$as_echo_n "checking for GNU ld... " >&6; }
4308dfe64dd3Smacallanelse
4309dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4310dfe64dd3Smacallan$as_echo_n "checking for non-GNU ld... " >&6; }
4311dfe64dd3Smacallanfi
4312dfe64dd3Smacallanif test "${lt_cv_path_LD+set}" = set; then :
4313dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4314dfe64dd3Smacallanelse
4315dfe64dd3Smacallan  if test -z "$LD"; then
4316dfe64dd3Smacallan  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4317dfe64dd3Smacallan  for ac_dir in $PATH; do
4318dfe64dd3Smacallan    IFS="$lt_save_ifs"
4319dfe64dd3Smacallan    test -z "$ac_dir" && ac_dir=.
4320dfe64dd3Smacallan    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4321dfe64dd3Smacallan      lt_cv_path_LD="$ac_dir/$ac_prog"
4322dfe64dd3Smacallan      # Check to see if the program is GNU ld.  I'd rather use --version,
4323dfe64dd3Smacallan      # but apparently some variants of GNU ld only accept -v.
4324dfe64dd3Smacallan      # Break only if it was the GNU/non-GNU ld that we prefer.
4325dfe64dd3Smacallan      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4326dfe64dd3Smacallan      *GNU* | *'with BFD'*)
4327dfe64dd3Smacallan	test "$with_gnu_ld" != no && break
4328dfe64dd3Smacallan	;;
4329dfe64dd3Smacallan      *)
4330dfe64dd3Smacallan	test "$with_gnu_ld" != yes && break
4331dfe64dd3Smacallan	;;
4332dfe64dd3Smacallan      esac
4333dfe64dd3Smacallan    fi
4334dfe64dd3Smacallan  done
4335dfe64dd3Smacallan  IFS="$lt_save_ifs"
4336dfe64dd3Smacallanelse
4337dfe64dd3Smacallan  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4338dfe64dd3Smacallanfi
4339dfe64dd3Smacallanfi
4340dfe64dd3Smacallan
4341dfe64dd3SmacallanLD="$lt_cv_path_LD"
4342dfe64dd3Smacallanif test -n "$LD"; then
4343dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4344dfe64dd3Smacallan$as_echo "$LD" >&6; }
4345dfe64dd3Smacallanelse
4346dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347dfe64dd3Smacallan$as_echo "no" >&6; }
4348dfe64dd3Smacallanfi
4349dfe64dd3Smacallantest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4350dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4351dfe64dd3Smacallan$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4352dfe64dd3Smacallanif test "${lt_cv_prog_gnu_ld+set}" = set; then :
4353dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4354dfe64dd3Smacallanelse
4355dfe64dd3Smacallan  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4356dfe64dd3Smacallancase `$LD -v 2>&1 </dev/null` in
4357dfe64dd3Smacallan*GNU* | *'with BFD'*)
4358dfe64dd3Smacallan  lt_cv_prog_gnu_ld=yes
4359dfe64dd3Smacallan  ;;
4360dfe64dd3Smacallan*)
4361dfe64dd3Smacallan  lt_cv_prog_gnu_ld=no
4362dfe64dd3Smacallan  ;;
4363dfe64dd3Smacallanesac
4364dfe64dd3Smacallanfi
4365dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4366dfe64dd3Smacallan$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4367dfe64dd3Smacallanwith_gnu_ld=$lt_cv_prog_gnu_ld
4368dfe64dd3Smacallan
4369dfe64dd3Smacallan
4370dfe64dd3Smacallan
4371dfe64dd3Smacallan
4372dfe64dd3Smacallan
4373dfe64dd3Smacallan
4374dfe64dd3Smacallan
4375dfe64dd3Smacallan
4376dfe64dd3Smacallan
4377dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4378dfe64dd3Smacallan$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4379dfe64dd3Smacallanif test "${lt_cv_path_NM+set}" = set; then :
4380dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4381dfe64dd3Smacallanelse
4382dfe64dd3Smacallan  if test -n "$NM"; then
4383dfe64dd3Smacallan  # Let the user override the test.
4384dfe64dd3Smacallan  lt_cv_path_NM="$NM"
4385dfe64dd3Smacallanelse
4386dfe64dd3Smacallan  lt_nm_to_check="${ac_tool_prefix}nm"
4387dfe64dd3Smacallan  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4388dfe64dd3Smacallan    lt_nm_to_check="$lt_nm_to_check nm"
4389dfe64dd3Smacallan  fi
4390dfe64dd3Smacallan  for lt_tmp_nm in $lt_nm_to_check; do
4391dfe64dd3Smacallan    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4392dfe64dd3Smacallan    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4393dfe64dd3Smacallan      IFS="$lt_save_ifs"
4394dfe64dd3Smacallan      test -z "$ac_dir" && ac_dir=.
4395dfe64dd3Smacallan      tmp_nm="$ac_dir/$lt_tmp_nm"
4396dfe64dd3Smacallan      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4397dfe64dd3Smacallan	# Check to see if the nm accepts a BSD-compat flag.
4398dfe64dd3Smacallan	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4399dfe64dd3Smacallan	#   nm: unknown option "B" ignored
4400dfe64dd3Smacallan	# Tru64's nm complains that /dev/null is an invalid object file
4401dfe64dd3Smacallan	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4402dfe64dd3Smacallan	*/dev/null* | *'Invalid file or object type'*)
4403dfe64dd3Smacallan	  lt_cv_path_NM="$tmp_nm -B"
4404dfe64dd3Smacallan	  break
4405dfe64dd3Smacallan	  ;;
4406dfe64dd3Smacallan	*)
4407dfe64dd3Smacallan	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4408dfe64dd3Smacallan	  */dev/null*)
4409dfe64dd3Smacallan	    lt_cv_path_NM="$tmp_nm -p"
4410dfe64dd3Smacallan	    break
4411dfe64dd3Smacallan	    ;;
4412dfe64dd3Smacallan	  *)
4413dfe64dd3Smacallan	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4414dfe64dd3Smacallan	    continue # so that we can try to find one that supports BSD flags
4415dfe64dd3Smacallan	    ;;
4416dfe64dd3Smacallan	  esac
4417dfe64dd3Smacallan	  ;;
4418dfe64dd3Smacallan	esac
4419dfe64dd3Smacallan      fi
4420dfe64dd3Smacallan    done
4421dfe64dd3Smacallan    IFS="$lt_save_ifs"
4422dfe64dd3Smacallan  done
4423dfe64dd3Smacallan  : ${lt_cv_path_NM=no}
4424dfe64dd3Smacallanfi
4425dfe64dd3Smacallanfi
4426dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4427dfe64dd3Smacallan$as_echo "$lt_cv_path_NM" >&6; }
4428dfe64dd3Smacallanif test "$lt_cv_path_NM" != "no"; then
4429dfe64dd3Smacallan  NM="$lt_cv_path_NM"
4430dfe64dd3Smacallanelse
4431dfe64dd3Smacallan  # Didn't find any BSD compatible name lister, look for dumpbin.
4432dfe64dd3Smacallan  if test -n "$ac_tool_prefix"; then
4433dfe64dd3Smacallan  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4434dfe64dd3Smacallan  do
4435dfe64dd3Smacallan    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4436dfe64dd3Smacallanset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4437dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
4439dfe64dd3Smacallanif test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4440dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4441dfe64dd3Smacallanelse
4442dfe64dd3Smacallan  if test -n "$DUMPBIN"; then
4443dfe64dd3Smacallan  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4444dfe64dd3Smacallanelse
4445dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446dfe64dd3Smacallanfor as_dir in $PATH
4447dfe64dd3Smacallando
4448dfe64dd3Smacallan  IFS=$as_save_IFS
4449dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
4450dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
4451dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452dfe64dd3Smacallan    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4453dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454dfe64dd3Smacallan    break 2
4455dfe64dd3Smacallan  fi
4456dfe64dd3Smacallandone
4457dfe64dd3Smacallan  done
4458dfe64dd3SmacallanIFS=$as_save_IFS
4459dfe64dd3Smacallan
4460dfe64dd3Smacallanfi
4461dfe64dd3Smacallanfi
4462dfe64dd3SmacallanDUMPBIN=$ac_cv_prog_DUMPBIN
4463dfe64dd3Smacallanif test -n "$DUMPBIN"; then
4464dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4465dfe64dd3Smacallan$as_echo "$DUMPBIN" >&6; }
4466dfe64dd3Smacallanelse
4467dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468dfe64dd3Smacallan$as_echo "no" >&6; }
4469dfe64dd3Smacallanfi
4470dfe64dd3Smacallan
4471dfe64dd3Smacallan
4472dfe64dd3Smacallan    test -n "$DUMPBIN" && break
4473dfe64dd3Smacallan  done
4474dfe64dd3Smacallanfi
4475dfe64dd3Smacallanif test -z "$DUMPBIN"; then
4476dfe64dd3Smacallan  ac_ct_DUMPBIN=$DUMPBIN
4477dfe64dd3Smacallan  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4478dfe64dd3Smacallando
4479dfe64dd3Smacallan  # Extract the first word of "$ac_prog", so it can be a program name with args.
4480dfe64dd3Smacallanset dummy $ac_prog; ac_word=$2
4481dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
4483dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4484dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4485dfe64dd3Smacallanelse
4486dfe64dd3Smacallan  if test -n "$ac_ct_DUMPBIN"; then
4487dfe64dd3Smacallan  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4488dfe64dd3Smacallanelse
4489dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490dfe64dd3Smacallanfor as_dir in $PATH
4491dfe64dd3Smacallando
4492dfe64dd3Smacallan  IFS=$as_save_IFS
4493dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
4494dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
4495dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496dfe64dd3Smacallan    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4497dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4498dfe64dd3Smacallan    break 2
4499dfe64dd3Smacallan  fi
4500dfe64dd3Smacallandone
4501dfe64dd3Smacallan  done
4502dfe64dd3SmacallanIFS=$as_save_IFS
4503dfe64dd3Smacallan
4504dfe64dd3Smacallanfi
4505dfe64dd3Smacallanfi
4506dfe64dd3Smacallanac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4507dfe64dd3Smacallanif test -n "$ac_ct_DUMPBIN"; then
4508dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4509dfe64dd3Smacallan$as_echo "$ac_ct_DUMPBIN" >&6; }
4510dfe64dd3Smacallanelse
4511dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512dfe64dd3Smacallan$as_echo "no" >&6; }
4513dfe64dd3Smacallanfi
4514dfe64dd3Smacallan
4515dfe64dd3Smacallan
4516dfe64dd3Smacallan  test -n "$ac_ct_DUMPBIN" && break
4517dfe64dd3Smacallandone
4518dfe64dd3Smacallan
4519dfe64dd3Smacallan  if test "x$ac_ct_DUMPBIN" = x; then
4520dfe64dd3Smacallan    DUMPBIN=":"
4521dfe64dd3Smacallan  else
4522dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
4523dfe64dd3Smacallanyes:)
4524dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4525dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4526dfe64dd3Smacallanac_tool_warned=yes ;;
4527dfe64dd3Smacallanesac
4528dfe64dd3Smacallan    DUMPBIN=$ac_ct_DUMPBIN
4529dfe64dd3Smacallan  fi
4530dfe64dd3Smacallanfi
4531dfe64dd3Smacallan
4532dfe64dd3Smacallan
4533dfe64dd3Smacallan  if test "$DUMPBIN" != ":"; then
4534dfe64dd3Smacallan    NM="$DUMPBIN"
4535dfe64dd3Smacallan  fi
4536dfe64dd3Smacallanfi
4537dfe64dd3Smacallantest -z "$NM" && NM=nm
4538dfe64dd3Smacallan
4539dfe64dd3Smacallan
4540dfe64dd3Smacallan
4541dfe64dd3Smacallan
4542dfe64dd3Smacallan
4543dfe64dd3Smacallan
4544dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4545dfe64dd3Smacallan$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4546dfe64dd3Smacallanif test "${lt_cv_nm_interface+set}" = set; then :
4547dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4548dfe64dd3Smacallanelse
4549dfe64dd3Smacallan  lt_cv_nm_interface="BSD nm"
4550dfe64dd3Smacallan  echo "int some_variable = 0;" > conftest.$ac_ext
4551dfe64dd3Smacallan  (eval echo "\"\$as_me:4551: $ac_compile\"" >&5)
4552dfe64dd3Smacallan  (eval "$ac_compile" 2>conftest.err)
4553dfe64dd3Smacallan  cat conftest.err >&5
4554dfe64dd3Smacallan  (eval echo "\"\$as_me:4554: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4555dfe64dd3Smacallan  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4556dfe64dd3Smacallan  cat conftest.err >&5
4557dfe64dd3Smacallan  (eval echo "\"\$as_me:4557: output\"" >&5)
4558dfe64dd3Smacallan  cat conftest.out >&5
4559dfe64dd3Smacallan  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4560dfe64dd3Smacallan    lt_cv_nm_interface="MS dumpbin"
4561dfe64dd3Smacallan  fi
4562dfe64dd3Smacallan  rm -f conftest*
4563dfe64dd3Smacallanfi
4564dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4565dfe64dd3Smacallan$as_echo "$lt_cv_nm_interface" >&6; }
4566dfe64dd3Smacallan
4567dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4568dfe64dd3Smacallan$as_echo_n "checking whether ln -s works... " >&6; }
4569dfe64dd3SmacallanLN_S=$as_ln_s
4570dfe64dd3Smacallanif test "$LN_S" = "ln -s"; then
4571dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4572dfe64dd3Smacallan$as_echo "yes" >&6; }
4573dfe64dd3Smacallanelse
4574dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4575dfe64dd3Smacallan$as_echo "no, using $LN_S" >&6; }
4576dfe64dd3Smacallanfi
4577dfe64dd3Smacallan
4578dfe64dd3Smacallan# find the maximum length of command line arguments
4579dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4580dfe64dd3Smacallan$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4581dfe64dd3Smacallanif test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4582dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4583dfe64dd3Smacallanelse
4584dfe64dd3Smacallan    i=0
4585dfe64dd3Smacallan  teststring="ABCD"
4586dfe64dd3Smacallan
4587dfe64dd3Smacallan  case $build_os in
4588dfe64dd3Smacallan  msdosdjgpp*)
4589dfe64dd3Smacallan    # On DJGPP, this test can blow up pretty badly due to problems in libc
4590dfe64dd3Smacallan    # (any single argument exceeding 2000 bytes causes a buffer overrun
4591dfe64dd3Smacallan    # during glob expansion).  Even if it were fixed, the result of this
4592dfe64dd3Smacallan    # check would be larger than it should be.
4593dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4594dfe64dd3Smacallan    ;;
4595dfe64dd3Smacallan
4596dfe64dd3Smacallan  gnu*)
4597dfe64dd3Smacallan    # Under GNU Hurd, this test is not required because there is
4598dfe64dd3Smacallan    # no limit to the length of command line arguments.
4599dfe64dd3Smacallan    # Libtool will interpret -1 as no limit whatsoever
4600dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=-1;
4601dfe64dd3Smacallan    ;;
4602dfe64dd3Smacallan
4603dfe64dd3Smacallan  cygwin* | mingw* | cegcc*)
4604dfe64dd3Smacallan    # On Win9x/ME, this test blows up -- it succeeds, but takes
4605dfe64dd3Smacallan    # about 5 minutes as the teststring grows exponentially.
4606dfe64dd3Smacallan    # Worse, since 9x/ME are not pre-emptively multitasking,
4607dfe64dd3Smacallan    # you end up with a "frozen" computer, even though with patience
4608dfe64dd3Smacallan    # the test eventually succeeds (with a max line length of 256k).
4609dfe64dd3Smacallan    # Instead, let's just punt: use the minimum linelength reported by
4610dfe64dd3Smacallan    # all of the supported platforms: 8192 (on NT/2K/XP).
4611dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=8192;
4612dfe64dd3Smacallan    ;;
4613dfe64dd3Smacallan
4614dfe64dd3Smacallan  amigaos*)
4615dfe64dd3Smacallan    # On AmigaOS with pdksh, this test takes hours, literally.
4616dfe64dd3Smacallan    # So we just punt and use a minimum line length of 8192.
4617dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=8192;
4618dfe64dd3Smacallan    ;;
4619dfe64dd3Smacallan
4620dfe64dd3Smacallan  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4621dfe64dd3Smacallan    # This has been around since 386BSD, at least.  Likely further.
4622dfe64dd3Smacallan    if test -x /sbin/sysctl; then
4623dfe64dd3Smacallan      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4624dfe64dd3Smacallan    elif test -x /usr/sbin/sysctl; then
4625dfe64dd3Smacallan      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4626dfe64dd3Smacallan    else
4627dfe64dd3Smacallan      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4628dfe64dd3Smacallan    fi
4629dfe64dd3Smacallan    # And add a safety zone
4630dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632dfe64dd3Smacallan    ;;
4633dfe64dd3Smacallan
4634dfe64dd3Smacallan  interix*)
4635dfe64dd3Smacallan    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4636dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=196608
4637dfe64dd3Smacallan    ;;
4638dfe64dd3Smacallan
4639dfe64dd3Smacallan  osf*)
4640dfe64dd3Smacallan    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4641dfe64dd3Smacallan    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4642dfe64dd3Smacallan    # nice to cause kernel panics so lets avoid the loop below.
4643dfe64dd3Smacallan    # First set a reasonable default.
4644dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=16384
4645dfe64dd3Smacallan    #
4646dfe64dd3Smacallan    if test -x /sbin/sysconfig; then
4647dfe64dd3Smacallan      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4648dfe64dd3Smacallan        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4649dfe64dd3Smacallan      esac
4650dfe64dd3Smacallan    fi
4651dfe64dd3Smacallan    ;;
4652dfe64dd3Smacallan  sco3.2v5*)
4653dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=102400
4654dfe64dd3Smacallan    ;;
4655dfe64dd3Smacallan  sysv5* | sco5v6* | sysv4.2uw2*)
4656dfe64dd3Smacallan    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4657dfe64dd3Smacallan    if test -n "$kargmax"; then
4658dfe64dd3Smacallan      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4659dfe64dd3Smacallan    else
4660dfe64dd3Smacallan      lt_cv_sys_max_cmd_len=32768
4661dfe64dd3Smacallan    fi
4662dfe64dd3Smacallan    ;;
4663dfe64dd3Smacallan  *)
4664dfe64dd3Smacallan    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4665dfe64dd3Smacallan    if test -n "$lt_cv_sys_max_cmd_len"; then
4666dfe64dd3Smacallan      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4667dfe64dd3Smacallan      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4668dfe64dd3Smacallan    else
4669dfe64dd3Smacallan      # Make teststring a little bigger before we do anything with it.
4670dfe64dd3Smacallan      # a 1K string should be a reasonable start.
4671dfe64dd3Smacallan      for i in 1 2 3 4 5 6 7 8 ; do
4672dfe64dd3Smacallan        teststring=$teststring$teststring
4673dfe64dd3Smacallan      done
4674dfe64dd3Smacallan      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4675dfe64dd3Smacallan      # If test is not a shell built-in, we'll probably end up computing a
4676dfe64dd3Smacallan      # maximum length that is only half of the actual maximum length, but
4677dfe64dd3Smacallan      # we can't tell.
4678dfe64dd3Smacallan      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4679dfe64dd3Smacallan	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4680dfe64dd3Smacallan	      test $i != 17 # 1/2 MB should be enough
4681dfe64dd3Smacallan      do
4682dfe64dd3Smacallan        i=`expr $i + 1`
4683dfe64dd3Smacallan        teststring=$teststring$teststring
4684dfe64dd3Smacallan      done
4685dfe64dd3Smacallan      # Only check the string length outside the loop.
4686dfe64dd3Smacallan      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4687dfe64dd3Smacallan      teststring=
4688dfe64dd3Smacallan      # Add a significant safety factor because C++ compilers can tack on
4689dfe64dd3Smacallan      # massive amounts of additional arguments before passing them to the
4690dfe64dd3Smacallan      # linker.  It appears as though 1/2 is a usable value.
4691dfe64dd3Smacallan      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4692dfe64dd3Smacallan    fi
4693dfe64dd3Smacallan    ;;
4694dfe64dd3Smacallan  esac
4695dfe64dd3Smacallan
4696dfe64dd3Smacallanfi
4697dfe64dd3Smacallan
4698dfe64dd3Smacallanif test -n $lt_cv_sys_max_cmd_len ; then
4699dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4700dfe64dd3Smacallan$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4701dfe64dd3Smacallanelse
4702dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4703dfe64dd3Smacallan$as_echo "none" >&6; }
4704dfe64dd3Smacallanfi
4705dfe64dd3Smacallanmax_cmd_len=$lt_cv_sys_max_cmd_len
4706dfe64dd3Smacallan
4707dfe64dd3Smacallan
4708dfe64dd3Smacallan
4709dfe64dd3Smacallan
4710dfe64dd3Smacallan
4711dfe64dd3Smacallan
4712dfe64dd3Smacallan: ${CP="cp -f"}
4713dfe64dd3Smacallan: ${MV="mv -f"}
4714dfe64dd3Smacallan: ${RM="rm -f"}
4715dfe64dd3Smacallan
4716dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4717dfe64dd3Smacallan$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4718dfe64dd3Smacallan# Try some XSI features
4719dfe64dd3Smacallanxsi_shell=no
4720dfe64dd3Smacallan( _lt_dummy="a/b/c"
4721dfe64dd3Smacallan  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4722dfe64dd3Smacallan      = c,a/b,, \
4723dfe64dd3Smacallan    && eval 'test $(( 1 + 1 )) -eq 2 \
4724dfe64dd3Smacallan    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4725dfe64dd3Smacallan  && xsi_shell=yes
4726dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4727dfe64dd3Smacallan$as_echo "$xsi_shell" >&6; }
4728dfe64dd3Smacallan
4729dfe64dd3Smacallan
4730dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4731dfe64dd3Smacallan$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4732dfe64dd3Smacallanlt_shell_append=no
4733dfe64dd3Smacallan( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4734dfe64dd3Smacallan    >/dev/null 2>&1 \
4735dfe64dd3Smacallan  && lt_shell_append=yes
4736dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4737dfe64dd3Smacallan$as_echo "$lt_shell_append" >&6; }
4738dfe64dd3Smacallan
4739dfe64dd3Smacallan
4740dfe64dd3Smacallanif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4741dfe64dd3Smacallan  lt_unset=unset
4742dfe64dd3Smacallanelse
4743dfe64dd3Smacallan  lt_unset=false
4744dfe64dd3Smacallanfi
4745dfe64dd3Smacallan
4746dfe64dd3Smacallan
4747dfe64dd3Smacallan
4748dfe64dd3Smacallan
4749dfe64dd3Smacallan
4750dfe64dd3Smacallan# test EBCDIC or ASCII
4751dfe64dd3Smacallancase `echo X|tr X '\101'` in
4752dfe64dd3Smacallan A) # ASCII based system
4753dfe64dd3Smacallan    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4754dfe64dd3Smacallan  lt_SP2NL='tr \040 \012'
4755dfe64dd3Smacallan  lt_NL2SP='tr \015\012 \040\040'
4756dfe64dd3Smacallan  ;;
4757dfe64dd3Smacallan *) # EBCDIC based system
4758dfe64dd3Smacallan  lt_SP2NL='tr \100 \n'
4759dfe64dd3Smacallan  lt_NL2SP='tr \r\n \100\100'
4760dfe64dd3Smacallan  ;;
4761dfe64dd3Smacallanesac
4762dfe64dd3Smacallan
4763dfe64dd3Smacallan
4764dfe64dd3Smacallan
4765dfe64dd3Smacallan
4766dfe64dd3Smacallan
4767dfe64dd3Smacallan
4768dfe64dd3Smacallan
4769dfe64dd3Smacallan
4770dfe64dd3Smacallan
4771dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4772dfe64dd3Smacallan$as_echo_n "checking for $LD option to reload object files... " >&6; }
4773dfe64dd3Smacallanif test "${lt_cv_ld_reload_flag+set}" = set; then :
4774dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4775dfe64dd3Smacallanelse
4776dfe64dd3Smacallan  lt_cv_ld_reload_flag='-r'
4777dfe64dd3Smacallanfi
4778dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4779dfe64dd3Smacallan$as_echo "$lt_cv_ld_reload_flag" >&6; }
4780dfe64dd3Smacallanreload_flag=$lt_cv_ld_reload_flag
4781dfe64dd3Smacallancase $reload_flag in
4782dfe64dd3Smacallan"" | " "*) ;;
4783dfe64dd3Smacallan*) reload_flag=" $reload_flag" ;;
4784dfe64dd3Smacallanesac
4785dfe64dd3Smacallanreload_cmds='$LD$reload_flag -o $output$reload_objs'
4786dfe64dd3Smacallancase $host_os in
4787dfe64dd3Smacallan  darwin*)
4788dfe64dd3Smacallan    if test "$GCC" = yes; then
4789dfe64dd3Smacallan      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4790dfe64dd3Smacallan    else
4791dfe64dd3Smacallan      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4792dfe64dd3Smacallan    fi
4793dfe64dd3Smacallan    ;;
4794dfe64dd3Smacallanesac
4795dfe64dd3Smacallan
4796dfe64dd3Smacallan
4797dfe64dd3Smacallan
4798dfe64dd3Smacallan
4799dfe64dd3Smacallan
4800dfe64dd3Smacallan
4801dfe64dd3Smacallan
4802dfe64dd3Smacallan
4803dfe64dd3Smacallan
4804dfe64dd3Smacallanif test -n "$ac_tool_prefix"; then
4805dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4806dfe64dd3Smacallanset dummy ${ac_tool_prefix}objdump; ac_word=$2
4807dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
4809dfe64dd3Smacallanif test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4810dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4811dfe64dd3Smacallanelse
4812dfe64dd3Smacallan  if test -n "$OBJDUMP"; then
4813dfe64dd3Smacallan  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4814dfe64dd3Smacallanelse
4815dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816dfe64dd3Smacallanfor as_dir in $PATH
4817dfe64dd3Smacallando
4818dfe64dd3Smacallan  IFS=$as_save_IFS
4819dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
4820dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
4821dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822dfe64dd3Smacallan    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4823dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824dfe64dd3Smacallan    break 2
4825dfe64dd3Smacallan  fi
4826dfe64dd3Smacallandone
4827dfe64dd3Smacallan  done
4828dfe64dd3SmacallanIFS=$as_save_IFS
4829dfe64dd3Smacallan
4830dfe64dd3Smacallanfi
4831dfe64dd3Smacallanfi
4832dfe64dd3SmacallanOBJDUMP=$ac_cv_prog_OBJDUMP
4833dfe64dd3Smacallanif test -n "$OBJDUMP"; then
4834dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4835dfe64dd3Smacallan$as_echo "$OBJDUMP" >&6; }
4836dfe64dd3Smacallanelse
4837dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838dfe64dd3Smacallan$as_echo "no" >&6; }
4839dfe64dd3Smacallanfi
4840dfe64dd3Smacallan
4841dfe64dd3Smacallan
4842dfe64dd3Smacallanfi
4843dfe64dd3Smacallanif test -z "$ac_cv_prog_OBJDUMP"; then
4844dfe64dd3Smacallan  ac_ct_OBJDUMP=$OBJDUMP
4845dfe64dd3Smacallan  # Extract the first word of "objdump", so it can be a program name with args.
4846dfe64dd3Smacallanset dummy objdump; ac_word=$2
4847dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
4849dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4850dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4851dfe64dd3Smacallanelse
4852dfe64dd3Smacallan  if test -n "$ac_ct_OBJDUMP"; then
4853dfe64dd3Smacallan  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4854dfe64dd3Smacallanelse
4855dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856dfe64dd3Smacallanfor as_dir in $PATH
4857dfe64dd3Smacallando
4858dfe64dd3Smacallan  IFS=$as_save_IFS
4859dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
4860dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
4861dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862dfe64dd3Smacallan    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4863dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864dfe64dd3Smacallan    break 2
4865dfe64dd3Smacallan  fi
4866dfe64dd3Smacallandone
4867dfe64dd3Smacallan  done
4868dfe64dd3SmacallanIFS=$as_save_IFS
4869dfe64dd3Smacallan
4870dfe64dd3Smacallanfi
4871dfe64dd3Smacallanfi
4872dfe64dd3Smacallanac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4873dfe64dd3Smacallanif test -n "$ac_ct_OBJDUMP"; then
4874dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4875dfe64dd3Smacallan$as_echo "$ac_ct_OBJDUMP" >&6; }
4876dfe64dd3Smacallanelse
4877dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878dfe64dd3Smacallan$as_echo "no" >&6; }
4879dfe64dd3Smacallanfi
4880dfe64dd3Smacallan
4881dfe64dd3Smacallan  if test "x$ac_ct_OBJDUMP" = x; then
4882dfe64dd3Smacallan    OBJDUMP="false"
4883dfe64dd3Smacallan  else
4884dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
4885dfe64dd3Smacallanyes:)
4886dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888dfe64dd3Smacallanac_tool_warned=yes ;;
4889dfe64dd3Smacallanesac
4890dfe64dd3Smacallan    OBJDUMP=$ac_ct_OBJDUMP
4891dfe64dd3Smacallan  fi
4892dfe64dd3Smacallanelse
4893dfe64dd3Smacallan  OBJDUMP="$ac_cv_prog_OBJDUMP"
4894dfe64dd3Smacallanfi
4895dfe64dd3Smacallan
4896dfe64dd3Smacallantest -z "$OBJDUMP" && OBJDUMP=objdump
4897dfe64dd3Smacallan
4898dfe64dd3Smacallan
4899dfe64dd3Smacallan
4900dfe64dd3Smacallan
4901dfe64dd3Smacallan
4902dfe64dd3Smacallan
4903dfe64dd3Smacallan
4904dfe64dd3Smacallan
4905dfe64dd3Smacallan
4906dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4907dfe64dd3Smacallan$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4908dfe64dd3Smacallanif test "${lt_cv_deplibs_check_method+set}" = set; then :
4909dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
4910dfe64dd3Smacallanelse
4911dfe64dd3Smacallan  lt_cv_file_magic_cmd='$MAGIC_CMD'
4912dfe64dd3Smacallanlt_cv_file_magic_test_file=
4913dfe64dd3Smacallanlt_cv_deplibs_check_method='unknown'
4914dfe64dd3Smacallan# Need to set the preceding variable on all platforms that support
4915dfe64dd3Smacallan# interlibrary dependencies.
4916dfe64dd3Smacallan# 'none' -- dependencies not supported.
4917dfe64dd3Smacallan# `unknown' -- same as none, but documents that we really don't know.
4918dfe64dd3Smacallan# 'pass_all' -- all dependencies passed with no checks.
4919dfe64dd3Smacallan# 'test_compile' -- check by making test program.
4920dfe64dd3Smacallan# 'file_magic [[regex]]' -- check by looking for files in library path
4921dfe64dd3Smacallan# which responds to the $file_magic_cmd with a given extended regex.
4922dfe64dd3Smacallan# If you have `file' or equivalent on your system and you're not sure
4923dfe64dd3Smacallan# whether `pass_all' will *always* work, you probably want this one.
4924dfe64dd3Smacallan
4925dfe64dd3Smacallancase $host_os in
4926dfe64dd3Smacallanaix[4-9]*)
4927dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
4928dfe64dd3Smacallan  ;;
4929dfe64dd3Smacallan
4930dfe64dd3Smacallanbeos*)
4931dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
4932dfe64dd3Smacallan  ;;
4933dfe64dd3Smacallan
4934dfe64dd3Smacallanbsdi[45]*)
4935dfe64dd3Smacallan  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4936dfe64dd3Smacallan  lt_cv_file_magic_cmd='/usr/bin/file -L'
4937dfe64dd3Smacallan  lt_cv_file_magic_test_file=/shlib/libc.so
4938dfe64dd3Smacallan  ;;
4939dfe64dd3Smacallan
4940dfe64dd3Smacallancygwin*)
4941dfe64dd3Smacallan  # func_win32_libid is a shell function defined in ltmain.sh
4942dfe64dd3Smacallan  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4943dfe64dd3Smacallan  lt_cv_file_magic_cmd='func_win32_libid'
4944dfe64dd3Smacallan  ;;
4945dfe64dd3Smacallan
4946dfe64dd3Smacallanmingw* | pw32*)
4947dfe64dd3Smacallan  # Base MSYS/MinGW do not provide the 'file' command needed by
4948dfe64dd3Smacallan  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4949dfe64dd3Smacallan  # unless we find 'file', for example because we are cross-compiling.
4950dfe64dd3Smacallan  if ( file / ) >/dev/null 2>&1; then
4951dfe64dd3Smacallan    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4952dfe64dd3Smacallan    lt_cv_file_magic_cmd='func_win32_libid'
4953dfe64dd3Smacallan  else
4954dfe64dd3Smacallan    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4955dfe64dd3Smacallan    lt_cv_file_magic_cmd='$OBJDUMP -f'
4956dfe64dd3Smacallan  fi
4957dfe64dd3Smacallan  ;;
4958dfe64dd3Smacallan
4959dfe64dd3Smacallancegcc)
4960dfe64dd3Smacallan  # use the weaker test based on 'objdump'. See mingw*.
4961dfe64dd3Smacallan  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4962dfe64dd3Smacallan  lt_cv_file_magic_cmd='$OBJDUMP -f'
4963dfe64dd3Smacallan  ;;
4964dfe64dd3Smacallan
4965dfe64dd3Smacallandarwin* | rhapsody*)
4966dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
4967dfe64dd3Smacallan  ;;
4968dfe64dd3Smacallan
4969dfe64dd3Smacallanfreebsd* | dragonfly*)
4970dfe64dd3Smacallan  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4971dfe64dd3Smacallan    case $host_cpu in
4972dfe64dd3Smacallan    i*86 )
4973dfe64dd3Smacallan      # Not sure whether the presence of OpenBSD here was a mistake.
4974dfe64dd3Smacallan      # Let's accept both of them until this is cleared up.
4975dfe64dd3Smacallan      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4976dfe64dd3Smacallan      lt_cv_file_magic_cmd=/usr/bin/file
4977dfe64dd3Smacallan      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4978dfe64dd3Smacallan      ;;
4979dfe64dd3Smacallan    esac
4980dfe64dd3Smacallan  else
4981dfe64dd3Smacallan    lt_cv_deplibs_check_method=pass_all
4982dfe64dd3Smacallan  fi
4983dfe64dd3Smacallan  ;;
4984dfe64dd3Smacallan
4985dfe64dd3Smacallangnu*)
4986dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
4987dfe64dd3Smacallan  ;;
4988dfe64dd3Smacallan
4989dfe64dd3Smacallanhpux10.20* | hpux11*)
4990dfe64dd3Smacallan  lt_cv_file_magic_cmd=/usr/bin/file
4991dfe64dd3Smacallan  case $host_cpu in
4992dfe64dd3Smacallan  ia64*)
4993dfe64dd3Smacallan    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4994dfe64dd3Smacallan    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4995dfe64dd3Smacallan    ;;
4996dfe64dd3Smacallan  hppa*64*)
4997dfe64dd3Smacallan    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4998dfe64dd3Smacallan    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4999dfe64dd3Smacallan    ;;
5000dfe64dd3Smacallan  *)
5001dfe64dd3Smacallan    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5002dfe64dd3Smacallan    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5003dfe64dd3Smacallan    ;;
5004dfe64dd3Smacallan  esac
5005dfe64dd3Smacallan  ;;
5006dfe64dd3Smacallan
5007dfe64dd3Smacallaninterix[3-9]*)
5008dfe64dd3Smacallan  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5009dfe64dd3Smacallan  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5010dfe64dd3Smacallan  ;;
5011dfe64dd3Smacallan
5012dfe64dd3Smacallanirix5* | irix6* | nonstopux*)
5013dfe64dd3Smacallan  case $LD in
5014dfe64dd3Smacallan  *-32|*"-32 ") libmagic=32-bit;;
5015dfe64dd3Smacallan  *-n32|*"-n32 ") libmagic=N32;;
5016dfe64dd3Smacallan  *-64|*"-64 ") libmagic=64-bit;;
5017dfe64dd3Smacallan  *) libmagic=never-match;;
5018dfe64dd3Smacallan  esac
5019dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
5020dfe64dd3Smacallan  ;;
5021dfe64dd3Smacallan
5022dfe64dd3Smacallan# This must be Linux ELF.
5023dfe64dd3Smacallanlinux* | k*bsd*-gnu)
5024dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
5025dfe64dd3Smacallan  ;;
5026dfe64dd3Smacallan
5027dfe64dd3Smacallannetbsd*)
5028dfe64dd3Smacallan  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5029dfe64dd3Smacallan    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5030dfe64dd3Smacallan  else
5031dfe64dd3Smacallan    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5032dfe64dd3Smacallan  fi
5033dfe64dd3Smacallan  ;;
5034dfe64dd3Smacallan
5035dfe64dd3Smacallannewos6*)
5036dfe64dd3Smacallan  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5037dfe64dd3Smacallan  lt_cv_file_magic_cmd=/usr/bin/file
5038dfe64dd3Smacallan  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5039dfe64dd3Smacallan  ;;
5040dfe64dd3Smacallan
5041dfe64dd3Smacallan*nto* | *qnx*)
5042dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
5043dfe64dd3Smacallan  ;;
5044dfe64dd3Smacallan
5045dfe64dd3Smacallanopenbsd*)
5046dfe64dd3Smacallan  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5047dfe64dd3Smacallan    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5048dfe64dd3Smacallan  else
5049dfe64dd3Smacallan    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5050dfe64dd3Smacallan  fi
5051dfe64dd3Smacallan  ;;
5052dfe64dd3Smacallan
5053dfe64dd3Smacallanosf3* | osf4* | osf5*)
5054dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
5055dfe64dd3Smacallan  ;;
5056dfe64dd3Smacallan
5057dfe64dd3Smacallanrdos*)
5058dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
5059dfe64dd3Smacallan  ;;
5060dfe64dd3Smacallan
5061dfe64dd3Smacallansolaris*)
5062dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
5063dfe64dd3Smacallan  ;;
5064dfe64dd3Smacallan
5065dfe64dd3Smacallansysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5066dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
5067dfe64dd3Smacallan  ;;
5068dfe64dd3Smacallan
5069dfe64dd3Smacallansysv4 | sysv4.3*)
5070dfe64dd3Smacallan  case $host_vendor in
5071dfe64dd3Smacallan  motorola)
5072dfe64dd3Smacallan    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]'
5073dfe64dd3Smacallan    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5074dfe64dd3Smacallan    ;;
5075dfe64dd3Smacallan  ncr)
5076dfe64dd3Smacallan    lt_cv_deplibs_check_method=pass_all
5077dfe64dd3Smacallan    ;;
5078dfe64dd3Smacallan  sequent)
5079dfe64dd3Smacallan    lt_cv_file_magic_cmd='/bin/file'
5080dfe64dd3Smacallan    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5081dfe64dd3Smacallan    ;;
5082dfe64dd3Smacallan  sni)
5083dfe64dd3Smacallan    lt_cv_file_magic_cmd='/bin/file'
5084dfe64dd3Smacallan    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5085dfe64dd3Smacallan    lt_cv_file_magic_test_file=/lib/libc.so
5086dfe64dd3Smacallan    ;;
5087dfe64dd3Smacallan  siemens)
5088dfe64dd3Smacallan    lt_cv_deplibs_check_method=pass_all
5089dfe64dd3Smacallan    ;;
5090dfe64dd3Smacallan  pc)
5091dfe64dd3Smacallan    lt_cv_deplibs_check_method=pass_all
5092dfe64dd3Smacallan    ;;
5093dfe64dd3Smacallan  esac
5094dfe64dd3Smacallan  ;;
5095dfe64dd3Smacallan
5096dfe64dd3Smacallantpf*)
5097dfe64dd3Smacallan  lt_cv_deplibs_check_method=pass_all
5098dfe64dd3Smacallan  ;;
5099dfe64dd3Smacallanesac
5100dfe64dd3Smacallan
5101dfe64dd3Smacallanfi
5102dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5103dfe64dd3Smacallan$as_echo "$lt_cv_deplibs_check_method" >&6; }
5104dfe64dd3Smacallanfile_magic_cmd=$lt_cv_file_magic_cmd
5105dfe64dd3Smacallandeplibs_check_method=$lt_cv_deplibs_check_method
5106dfe64dd3Smacallantest -z "$deplibs_check_method" && deplibs_check_method=unknown
5107dfe64dd3Smacallan
5108dfe64dd3Smacallan
5109dfe64dd3Smacallan
5110dfe64dd3Smacallan
5111dfe64dd3Smacallan
5112dfe64dd3Smacallan
5113dfe64dd3Smacallan
5114dfe64dd3Smacallan
5115dfe64dd3Smacallan
5116dfe64dd3Smacallan
5117dfe64dd3Smacallan
5118dfe64dd3Smacallan
5119dfe64dd3Smacallanif test -n "$ac_tool_prefix"; then
5120dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5121dfe64dd3Smacallanset dummy ${ac_tool_prefix}ar; ac_word=$2
5122dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
5124dfe64dd3Smacallanif test "${ac_cv_prog_AR+set}" = set; then :
5125dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5126dfe64dd3Smacallanelse
5127dfe64dd3Smacallan  if test -n "$AR"; then
5128dfe64dd3Smacallan  ac_cv_prog_AR="$AR" # Let the user override the test.
5129dfe64dd3Smacallanelse
5130dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131dfe64dd3Smacallanfor as_dir in $PATH
5132dfe64dd3Smacallando
5133dfe64dd3Smacallan  IFS=$as_save_IFS
5134dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
5135dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
5136dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137dfe64dd3Smacallan    ac_cv_prog_AR="${ac_tool_prefix}ar"
5138dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139dfe64dd3Smacallan    break 2
5140dfe64dd3Smacallan  fi
5141dfe64dd3Smacallandone
5142dfe64dd3Smacallan  done
5143dfe64dd3SmacallanIFS=$as_save_IFS
5144dfe64dd3Smacallan
5145dfe64dd3Smacallanfi
5146dfe64dd3Smacallanfi
5147dfe64dd3SmacallanAR=$ac_cv_prog_AR
5148dfe64dd3Smacallanif test -n "$AR"; then
5149dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5150dfe64dd3Smacallan$as_echo "$AR" >&6; }
5151dfe64dd3Smacallanelse
5152dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153dfe64dd3Smacallan$as_echo "no" >&6; }
5154dfe64dd3Smacallanfi
5155dfe64dd3Smacallan
5156dfe64dd3Smacallan
5157dfe64dd3Smacallanfi
5158dfe64dd3Smacallanif test -z "$ac_cv_prog_AR"; then
5159dfe64dd3Smacallan  ac_ct_AR=$AR
5160dfe64dd3Smacallan  # Extract the first word of "ar", so it can be a program name with args.
5161dfe64dd3Smacallanset dummy ar; ac_word=$2
5162dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
5164dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5165dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5166dfe64dd3Smacallanelse
5167dfe64dd3Smacallan  if test -n "$ac_ct_AR"; then
5168dfe64dd3Smacallan  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5169dfe64dd3Smacallanelse
5170dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171dfe64dd3Smacallanfor as_dir in $PATH
5172dfe64dd3Smacallando
5173dfe64dd3Smacallan  IFS=$as_save_IFS
5174dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
5175dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
5176dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177dfe64dd3Smacallan    ac_cv_prog_ac_ct_AR="ar"
5178dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179dfe64dd3Smacallan    break 2
5180dfe64dd3Smacallan  fi
5181dfe64dd3Smacallandone
5182dfe64dd3Smacallan  done
5183dfe64dd3SmacallanIFS=$as_save_IFS
5184dfe64dd3Smacallan
5185dfe64dd3Smacallanfi
5186dfe64dd3Smacallanfi
5187dfe64dd3Smacallanac_ct_AR=$ac_cv_prog_ac_ct_AR
5188dfe64dd3Smacallanif test -n "$ac_ct_AR"; then
5189dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5190dfe64dd3Smacallan$as_echo "$ac_ct_AR" >&6; }
5191dfe64dd3Smacallanelse
5192dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193dfe64dd3Smacallan$as_echo "no" >&6; }
5194dfe64dd3Smacallanfi
5195dfe64dd3Smacallan
5196dfe64dd3Smacallan  if test "x$ac_ct_AR" = x; then
5197dfe64dd3Smacallan    AR="false"
5198dfe64dd3Smacallan  else
5199dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
5200dfe64dd3Smacallanyes:)
5201dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203dfe64dd3Smacallanac_tool_warned=yes ;;
5204dfe64dd3Smacallanesac
5205dfe64dd3Smacallan    AR=$ac_ct_AR
5206dfe64dd3Smacallan  fi
5207dfe64dd3Smacallanelse
5208dfe64dd3Smacallan  AR="$ac_cv_prog_AR"
5209dfe64dd3Smacallanfi
5210dfe64dd3Smacallan
5211dfe64dd3Smacallantest -z "$AR" && AR=ar
5212dfe64dd3Smacallantest -z "$AR_FLAGS" && AR_FLAGS=cru
5213dfe64dd3Smacallan
5214dfe64dd3Smacallan
5215dfe64dd3Smacallan
5216dfe64dd3Smacallan
5217dfe64dd3Smacallan
5218dfe64dd3Smacallan
5219dfe64dd3Smacallan
5220dfe64dd3Smacallan
5221dfe64dd3Smacallan
5222dfe64dd3Smacallan
5223dfe64dd3Smacallan
5224dfe64dd3Smacallanif test -n "$ac_tool_prefix"; then
5225dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5226dfe64dd3Smacallanset dummy ${ac_tool_prefix}strip; ac_word=$2
5227dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
5229dfe64dd3Smacallanif test "${ac_cv_prog_STRIP+set}" = set; then :
5230dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5231dfe64dd3Smacallanelse
5232dfe64dd3Smacallan  if test -n "$STRIP"; then
5233dfe64dd3Smacallan  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5234dfe64dd3Smacallanelse
5235dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236dfe64dd3Smacallanfor as_dir in $PATH
5237dfe64dd3Smacallando
5238dfe64dd3Smacallan  IFS=$as_save_IFS
5239dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
5240dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
5241dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242dfe64dd3Smacallan    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5243dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244dfe64dd3Smacallan    break 2
5245dfe64dd3Smacallan  fi
5246dfe64dd3Smacallandone
5247dfe64dd3Smacallan  done
5248dfe64dd3SmacallanIFS=$as_save_IFS
5249dfe64dd3Smacallan
5250dfe64dd3Smacallanfi
5251dfe64dd3Smacallanfi
5252dfe64dd3SmacallanSTRIP=$ac_cv_prog_STRIP
5253dfe64dd3Smacallanif test -n "$STRIP"; then
5254dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5255dfe64dd3Smacallan$as_echo "$STRIP" >&6; }
5256dfe64dd3Smacallanelse
5257dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258dfe64dd3Smacallan$as_echo "no" >&6; }
5259dfe64dd3Smacallanfi
5260dfe64dd3Smacallan
5261dfe64dd3Smacallan
5262dfe64dd3Smacallanfi
5263dfe64dd3Smacallanif test -z "$ac_cv_prog_STRIP"; then
5264dfe64dd3Smacallan  ac_ct_STRIP=$STRIP
5265dfe64dd3Smacallan  # Extract the first word of "strip", so it can be a program name with args.
5266dfe64dd3Smacallanset dummy strip; ac_word=$2
5267dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
5269dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5270dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5271dfe64dd3Smacallanelse
5272dfe64dd3Smacallan  if test -n "$ac_ct_STRIP"; then
5273dfe64dd3Smacallan  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5274dfe64dd3Smacallanelse
5275dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276dfe64dd3Smacallanfor as_dir in $PATH
5277dfe64dd3Smacallando
5278dfe64dd3Smacallan  IFS=$as_save_IFS
5279dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
5280dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
5281dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282dfe64dd3Smacallan    ac_cv_prog_ac_ct_STRIP="strip"
5283dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284dfe64dd3Smacallan    break 2
5285dfe64dd3Smacallan  fi
5286dfe64dd3Smacallandone
5287dfe64dd3Smacallan  done
5288dfe64dd3SmacallanIFS=$as_save_IFS
5289dfe64dd3Smacallan
5290dfe64dd3Smacallanfi
5291dfe64dd3Smacallanfi
5292dfe64dd3Smacallanac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5293dfe64dd3Smacallanif test -n "$ac_ct_STRIP"; then
5294dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5295dfe64dd3Smacallan$as_echo "$ac_ct_STRIP" >&6; }
5296dfe64dd3Smacallanelse
5297dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298dfe64dd3Smacallan$as_echo "no" >&6; }
5299dfe64dd3Smacallanfi
5300dfe64dd3Smacallan
5301dfe64dd3Smacallan  if test "x$ac_ct_STRIP" = x; then
5302dfe64dd3Smacallan    STRIP=":"
5303dfe64dd3Smacallan  else
5304dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
5305dfe64dd3Smacallanyes:)
5306dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308dfe64dd3Smacallanac_tool_warned=yes ;;
5309dfe64dd3Smacallanesac
5310dfe64dd3Smacallan    STRIP=$ac_ct_STRIP
5311dfe64dd3Smacallan  fi
5312dfe64dd3Smacallanelse
5313dfe64dd3Smacallan  STRIP="$ac_cv_prog_STRIP"
5314dfe64dd3Smacallanfi
5315dfe64dd3Smacallan
5316dfe64dd3Smacallantest -z "$STRIP" && STRIP=:
5317dfe64dd3Smacallan
5318dfe64dd3Smacallan
5319dfe64dd3Smacallan
5320dfe64dd3Smacallan
5321dfe64dd3Smacallan
5322dfe64dd3Smacallan
5323dfe64dd3Smacallanif test -n "$ac_tool_prefix"; then
5324dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5325dfe64dd3Smacallanset dummy ${ac_tool_prefix}ranlib; ac_word=$2
5326dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
5328dfe64dd3Smacallanif test "${ac_cv_prog_RANLIB+set}" = set; then :
5329dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5330dfe64dd3Smacallanelse
5331dfe64dd3Smacallan  if test -n "$RANLIB"; then
5332dfe64dd3Smacallan  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5333dfe64dd3Smacallanelse
5334dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335dfe64dd3Smacallanfor as_dir in $PATH
5336dfe64dd3Smacallando
5337dfe64dd3Smacallan  IFS=$as_save_IFS
5338dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
5339dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
5340dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341dfe64dd3Smacallan    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5342dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343dfe64dd3Smacallan    break 2
5344dfe64dd3Smacallan  fi
5345dfe64dd3Smacallandone
5346dfe64dd3Smacallan  done
5347dfe64dd3SmacallanIFS=$as_save_IFS
5348dfe64dd3Smacallan
5349dfe64dd3Smacallanfi
5350dfe64dd3Smacallanfi
5351dfe64dd3SmacallanRANLIB=$ac_cv_prog_RANLIB
5352dfe64dd3Smacallanif test -n "$RANLIB"; then
5353dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5354dfe64dd3Smacallan$as_echo "$RANLIB" >&6; }
5355dfe64dd3Smacallanelse
5356dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357dfe64dd3Smacallan$as_echo "no" >&6; }
5358dfe64dd3Smacallanfi
5359dfe64dd3Smacallan
5360dfe64dd3Smacallan
5361dfe64dd3Smacallanfi
5362dfe64dd3Smacallanif test -z "$ac_cv_prog_RANLIB"; then
5363dfe64dd3Smacallan  ac_ct_RANLIB=$RANLIB
5364dfe64dd3Smacallan  # Extract the first word of "ranlib", so it can be a program name with args.
5365dfe64dd3Smacallanset dummy ranlib; ac_word=$2
5366dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
5368dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5369dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5370dfe64dd3Smacallanelse
5371dfe64dd3Smacallan  if test -n "$ac_ct_RANLIB"; then
5372dfe64dd3Smacallan  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5373dfe64dd3Smacallanelse
5374dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375dfe64dd3Smacallanfor as_dir in $PATH
5376dfe64dd3Smacallando
5377dfe64dd3Smacallan  IFS=$as_save_IFS
5378dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
5379dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
5380dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381dfe64dd3Smacallan    ac_cv_prog_ac_ct_RANLIB="ranlib"
5382dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383dfe64dd3Smacallan    break 2
5384dfe64dd3Smacallan  fi
5385dfe64dd3Smacallandone
5386dfe64dd3Smacallan  done
5387dfe64dd3SmacallanIFS=$as_save_IFS
5388dfe64dd3Smacallan
5389dfe64dd3Smacallanfi
5390dfe64dd3Smacallanfi
5391dfe64dd3Smacallanac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5392dfe64dd3Smacallanif test -n "$ac_ct_RANLIB"; then
5393dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5394dfe64dd3Smacallan$as_echo "$ac_ct_RANLIB" >&6; }
5395dfe64dd3Smacallanelse
5396dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397dfe64dd3Smacallan$as_echo "no" >&6; }
5398dfe64dd3Smacallanfi
5399dfe64dd3Smacallan
5400dfe64dd3Smacallan  if test "x$ac_ct_RANLIB" = x; then
5401dfe64dd3Smacallan    RANLIB=":"
5402dfe64dd3Smacallan  else
5403dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
5404dfe64dd3Smacallanyes:)
5405dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407dfe64dd3Smacallanac_tool_warned=yes ;;
5408dfe64dd3Smacallanesac
5409dfe64dd3Smacallan    RANLIB=$ac_ct_RANLIB
5410dfe64dd3Smacallan  fi
5411dfe64dd3Smacallanelse
5412dfe64dd3Smacallan  RANLIB="$ac_cv_prog_RANLIB"
5413dfe64dd3Smacallanfi
5414dfe64dd3Smacallan
5415dfe64dd3Smacallantest -z "$RANLIB" && RANLIB=:
5416dfe64dd3Smacallan
5417dfe64dd3Smacallan
5418dfe64dd3Smacallan
5419dfe64dd3Smacallan
5420dfe64dd3Smacallan
5421dfe64dd3Smacallan
5422dfe64dd3Smacallan# Determine commands to create old-style static archives.
5423dfe64dd3Smacallanold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5424dfe64dd3Smacallanold_postinstall_cmds='chmod 644 $oldlib'
5425dfe64dd3Smacallanold_postuninstall_cmds=
5426dfe64dd3Smacallan
5427dfe64dd3Smacallanif test -n "$RANLIB"; then
5428dfe64dd3Smacallan  case $host_os in
5429dfe64dd3Smacallan  openbsd*)
5430dfe64dd3Smacallan    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5431dfe64dd3Smacallan    ;;
5432dfe64dd3Smacallan  *)
5433dfe64dd3Smacallan    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5434dfe64dd3Smacallan    ;;
5435dfe64dd3Smacallan  esac
5436dfe64dd3Smacallan  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5437dfe64dd3Smacallanfi
5438dfe64dd3Smacallan
5439dfe64dd3Smacallan
5440dfe64dd3Smacallan
5441dfe64dd3Smacallan
5442dfe64dd3Smacallan
5443dfe64dd3Smacallan
5444dfe64dd3Smacallan
5445dfe64dd3Smacallan
5446dfe64dd3Smacallan
5447dfe64dd3Smacallan
5448dfe64dd3Smacallan
5449dfe64dd3Smacallan
5450dfe64dd3Smacallan
5451dfe64dd3Smacallan
5452dfe64dd3Smacallan
5453dfe64dd3Smacallan
5454dfe64dd3Smacallan
5455dfe64dd3Smacallan
5456dfe64dd3Smacallan
5457dfe64dd3Smacallan
5458dfe64dd3Smacallan
5459dfe64dd3Smacallan
5460dfe64dd3Smacallan
5461dfe64dd3Smacallan
5462dfe64dd3Smacallan
5463dfe64dd3Smacallan
5464dfe64dd3Smacallan
5465dfe64dd3Smacallan
5466dfe64dd3Smacallan
5467dfe64dd3Smacallan
5468dfe64dd3Smacallan
5469dfe64dd3Smacallan
5470dfe64dd3Smacallan
5471dfe64dd3Smacallan
5472dfe64dd3Smacallan# If no C compiler was specified, use CC.
5473dfe64dd3SmacallanLTCC=${LTCC-"$CC"}
5474dfe64dd3Smacallan
5475dfe64dd3Smacallan# If no C compiler flags were specified, use CFLAGS.
5476dfe64dd3SmacallanLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5477dfe64dd3Smacallan
5478dfe64dd3Smacallan# Allow CC to be a program name with arguments.
5479dfe64dd3Smacallancompiler=$CC
5480dfe64dd3Smacallan
5481dfe64dd3Smacallan
5482dfe64dd3Smacallan# Check for command to grab the raw symbol name followed by C symbol from nm.
5483dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5484dfe64dd3Smacallan$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5485dfe64dd3Smacallanif test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5486dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5487dfe64dd3Smacallanelse
5488dfe64dd3Smacallan
5489dfe64dd3Smacallan# These are sane defaults that work on at least a few old systems.
5490dfe64dd3Smacallan# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5491dfe64dd3Smacallan
5492dfe64dd3Smacallan# Character class describing NM global symbol codes.
5493dfe64dd3Smacallansymcode='[BCDEGRST]'
5494dfe64dd3Smacallan
5495dfe64dd3Smacallan# Regexp to match symbols that can be accessed directly from C.
5496dfe64dd3Smacallansympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5497dfe64dd3Smacallan
5498dfe64dd3Smacallan# Define system-specific variables.
5499dfe64dd3Smacallancase $host_os in
5500dfe64dd3Smacallanaix*)
5501dfe64dd3Smacallan  symcode='[BCDT]'
5502dfe64dd3Smacallan  ;;
5503dfe64dd3Smacallancygwin* | mingw* | pw32* | cegcc*)
5504dfe64dd3Smacallan  symcode='[ABCDGISTW]'
5505dfe64dd3Smacallan  ;;
5506dfe64dd3Smacallanhpux*)
5507dfe64dd3Smacallan  if test "$host_cpu" = ia64; then
5508dfe64dd3Smacallan    symcode='[ABCDEGRST]'
5509dfe64dd3Smacallan  fi
5510dfe64dd3Smacallan  ;;
5511dfe64dd3Smacallanirix* | nonstopux*)
5512dfe64dd3Smacallan  symcode='[BCDEGRST]'
5513dfe64dd3Smacallan  ;;
5514dfe64dd3Smacallanosf*)
5515dfe64dd3Smacallan  symcode='[BCDEGQRST]'
5516dfe64dd3Smacallan  ;;
5517dfe64dd3Smacallansolaris*)
5518dfe64dd3Smacallan  symcode='[BDRT]'
5519dfe64dd3Smacallan  ;;
5520dfe64dd3Smacallansco3.2v5*)
5521dfe64dd3Smacallan  symcode='[DT]'
5522dfe64dd3Smacallan  ;;
5523dfe64dd3Smacallansysv4.2uw2*)
5524dfe64dd3Smacallan  symcode='[DT]'
5525dfe64dd3Smacallan  ;;
5526dfe64dd3Smacallansysv5* | sco5v6* | unixware* | OpenUNIX*)
5527dfe64dd3Smacallan  symcode='[ABDT]'
5528dfe64dd3Smacallan  ;;
5529dfe64dd3Smacallansysv4)
5530dfe64dd3Smacallan  symcode='[DFNSTU]'
5531dfe64dd3Smacallan  ;;
5532dfe64dd3Smacallanesac
5533dfe64dd3Smacallan
5534dfe64dd3Smacallan# If we're using GNU nm, then use its standard symbol codes.
5535dfe64dd3Smacallancase `$NM -V 2>&1` in
5536dfe64dd3Smacallan*GNU* | *'with BFD'*)
5537dfe64dd3Smacallan  symcode='[ABCDGIRSTW]' ;;
5538dfe64dd3Smacallanesac
5539dfe64dd3Smacallan
5540dfe64dd3Smacallan# Transform an extracted symbol line into a proper C declaration.
5541dfe64dd3Smacallan# Some systems (esp. on ia64) link data and code symbols differently,
5542dfe64dd3Smacallan# so use this general approach.
5543dfe64dd3Smacallanlt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5544dfe64dd3Smacallan
5545dfe64dd3Smacallan# Transform an extracted symbol line into symbol name and symbol address
5546dfe64dd3Smacallanlt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5547dfe64dd3Smacallanlt_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'"
5548dfe64dd3Smacallan
5549dfe64dd3Smacallan# Handle CRLF in mingw tool chain
5550dfe64dd3Smacallanopt_cr=
5551dfe64dd3Smacallancase $build_os in
5552dfe64dd3Smacallanmingw*)
5553dfe64dd3Smacallan  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5554dfe64dd3Smacallan  ;;
5555dfe64dd3Smacallanesac
5556dfe64dd3Smacallan
5557dfe64dd3Smacallan# Try without a prefix underscore, then with it.
5558dfe64dd3Smacallanfor ac_symprfx in "" "_"; do
5559dfe64dd3Smacallan
5560dfe64dd3Smacallan  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5561dfe64dd3Smacallan  symxfrm="\\1 $ac_symprfx\\2 \\2"
5562dfe64dd3Smacallan
5563dfe64dd3Smacallan  # Write the raw and C identifiers.
5564dfe64dd3Smacallan  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5565dfe64dd3Smacallan    # Fake it for dumpbin and say T for any non-static function
5566dfe64dd3Smacallan    # and D for any global variable.
5567dfe64dd3Smacallan    # Also find C++ and __fastcall symbols from MSVC++,
5568dfe64dd3Smacallan    # which start with @ or ?.
5569dfe64dd3Smacallan    lt_cv_sys_global_symbol_pipe="$AWK '"\
5570dfe64dd3Smacallan"     {last_section=section; section=\$ 3};"\
5571dfe64dd3Smacallan"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5572dfe64dd3Smacallan"     \$ 0!~/External *\|/{next};"\
5573dfe64dd3Smacallan"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5574dfe64dd3Smacallan"     {if(hide[section]) next};"\
5575dfe64dd3Smacallan"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5576dfe64dd3Smacallan"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5577dfe64dd3Smacallan"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5578dfe64dd3Smacallan"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5579dfe64dd3Smacallan"     ' prfx=^$ac_symprfx"
5580dfe64dd3Smacallan  else
5581dfe64dd3Smacallan    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5582dfe64dd3Smacallan  fi
5583dfe64dd3Smacallan
5584dfe64dd3Smacallan  # Check to see that the pipe works correctly.
5585dfe64dd3Smacallan  pipe_works=no
5586dfe64dd3Smacallan
5587dfe64dd3Smacallan  rm -f conftest*
5588dfe64dd3Smacallan  cat > conftest.$ac_ext <<_LT_EOF
5589dfe64dd3Smacallan#ifdef __cplusplus
5590dfe64dd3Smacallanextern "C" {
5591dfe64dd3Smacallan#endif
5592dfe64dd3Smacallanchar nm_test_var;
5593dfe64dd3Smacallanvoid nm_test_func(void);
5594dfe64dd3Smacallanvoid nm_test_func(void){}
5595dfe64dd3Smacallan#ifdef __cplusplus
5596dfe64dd3Smacallan}
5597dfe64dd3Smacallan#endif
5598dfe64dd3Smacallanint main(){nm_test_var='a';nm_test_func();return(0);}
5599dfe64dd3Smacallan_LT_EOF
5600dfe64dd3Smacallan
5601dfe64dd3Smacallan  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5602dfe64dd3Smacallan  (eval $ac_compile) 2>&5
5603dfe64dd3Smacallan  ac_status=$?
5604dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5605dfe64dd3Smacallan  test $ac_status = 0; }; then
5606dfe64dd3Smacallan    # Now try to grab the symbols.
5607dfe64dd3Smacallan    nlist=conftest.nm
5608dfe64dd3Smacallan    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5609dfe64dd3Smacallan  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5610dfe64dd3Smacallan  ac_status=$?
5611dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5612dfe64dd3Smacallan  test $ac_status = 0; } && test -s "$nlist"; then
5613dfe64dd3Smacallan      # Try sorting and uniquifying the output.
5614dfe64dd3Smacallan      if sort "$nlist" | uniq > "$nlist"T; then
5615dfe64dd3Smacallan	mv -f "$nlist"T "$nlist"
5616dfe64dd3Smacallan      else
5617dfe64dd3Smacallan	rm -f "$nlist"T
5618dfe64dd3Smacallan      fi
5619dfe64dd3Smacallan
5620dfe64dd3Smacallan      # Make sure that we snagged all the symbols we need.
5621dfe64dd3Smacallan      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5622dfe64dd3Smacallan	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5623dfe64dd3Smacallan	  cat <<_LT_EOF > conftest.$ac_ext
5624dfe64dd3Smacallan#ifdef __cplusplus
5625dfe64dd3Smacallanextern "C" {
5626dfe64dd3Smacallan#endif
5627dfe64dd3Smacallan
5628dfe64dd3Smacallan_LT_EOF
5629dfe64dd3Smacallan	  # Now generate the symbol file.
5630dfe64dd3Smacallan	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5631dfe64dd3Smacallan
5632dfe64dd3Smacallan	  cat <<_LT_EOF >> conftest.$ac_ext
5633dfe64dd3Smacallan
5634dfe64dd3Smacallan/* The mapping between symbol names and symbols.  */
5635dfe64dd3Smacallanconst struct {
5636dfe64dd3Smacallan  const char *name;
5637dfe64dd3Smacallan  void       *address;
5638dfe64dd3Smacallan}
5639dfe64dd3Smacallanlt__PROGRAM__LTX_preloaded_symbols[] =
5640dfe64dd3Smacallan{
5641dfe64dd3Smacallan  { "@PROGRAM@", (void *) 0 },
5642dfe64dd3Smacallan_LT_EOF
5643dfe64dd3Smacallan	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5644dfe64dd3Smacallan	  cat <<\_LT_EOF >> conftest.$ac_ext
5645dfe64dd3Smacallan  {0, (void *) 0}
5646dfe64dd3Smacallan};
5647dfe64dd3Smacallan
5648dfe64dd3Smacallan/* This works around a problem in FreeBSD linker */
5649dfe64dd3Smacallan#ifdef FREEBSD_WORKAROUND
5650dfe64dd3Smacallanstatic const void *lt_preloaded_setup() {
5651dfe64dd3Smacallan  return lt__PROGRAM__LTX_preloaded_symbols;
5652dfe64dd3Smacallan}
5653dfe64dd3Smacallan#endif
5654dfe64dd3Smacallan
5655dfe64dd3Smacallan#ifdef __cplusplus
5656dfe64dd3Smacallan}
5657dfe64dd3Smacallan#endif
5658dfe64dd3Smacallan_LT_EOF
5659dfe64dd3Smacallan	  # Now try linking the two files.
5660dfe64dd3Smacallan	  mv conftest.$ac_objext conftstm.$ac_objext
5661dfe64dd3Smacallan	  lt_save_LIBS="$LIBS"
5662dfe64dd3Smacallan	  lt_save_CFLAGS="$CFLAGS"
5663dfe64dd3Smacallan	  LIBS="conftstm.$ac_objext"
5664dfe64dd3Smacallan	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5665dfe64dd3Smacallan	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5666dfe64dd3Smacallan  (eval $ac_link) 2>&5
5667dfe64dd3Smacallan  ac_status=$?
5668dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669dfe64dd3Smacallan  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5670dfe64dd3Smacallan	    pipe_works=yes
5671dfe64dd3Smacallan	  fi
5672dfe64dd3Smacallan	  LIBS="$lt_save_LIBS"
5673dfe64dd3Smacallan	  CFLAGS="$lt_save_CFLAGS"
5674dfe64dd3Smacallan	else
5675dfe64dd3Smacallan	  echo "cannot find nm_test_func in $nlist" >&5
5676dfe64dd3Smacallan	fi
5677dfe64dd3Smacallan      else
5678dfe64dd3Smacallan	echo "cannot find nm_test_var in $nlist" >&5
5679dfe64dd3Smacallan      fi
5680dfe64dd3Smacallan    else
5681dfe64dd3Smacallan      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5682dfe64dd3Smacallan    fi
5683dfe64dd3Smacallan  else
5684dfe64dd3Smacallan    echo "$progname: failed program was:" >&5
5685dfe64dd3Smacallan    cat conftest.$ac_ext >&5
5686dfe64dd3Smacallan  fi
5687dfe64dd3Smacallan  rm -rf conftest* conftst*
5688dfe64dd3Smacallan
5689dfe64dd3Smacallan  # Do not use the global_symbol_pipe unless it works.
5690dfe64dd3Smacallan  if test "$pipe_works" = yes; then
5691dfe64dd3Smacallan    break
5692dfe64dd3Smacallan  else
5693dfe64dd3Smacallan    lt_cv_sys_global_symbol_pipe=
5694dfe64dd3Smacallan  fi
5695dfe64dd3Smacallandone
5696dfe64dd3Smacallan
5697dfe64dd3Smacallanfi
5698dfe64dd3Smacallan
5699dfe64dd3Smacallanif test -z "$lt_cv_sys_global_symbol_pipe"; then
5700dfe64dd3Smacallan  lt_cv_sys_global_symbol_to_cdecl=
5701dfe64dd3Smacallanfi
5702dfe64dd3Smacallanif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5703dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5704dfe64dd3Smacallan$as_echo "failed" >&6; }
5705dfe64dd3Smacallanelse
5706dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5707dfe64dd3Smacallan$as_echo "ok" >&6; }
5708dfe64dd3Smacallanfi
5709dfe64dd3Smacallan
5710dfe64dd3Smacallan
5711dfe64dd3Smacallan
5712dfe64dd3Smacallan
5713dfe64dd3Smacallan
5714dfe64dd3Smacallan
5715dfe64dd3Smacallan
5716dfe64dd3Smacallan
5717dfe64dd3Smacallan
5718dfe64dd3Smacallan
5719dfe64dd3Smacallan
5720dfe64dd3Smacallan
5721dfe64dd3Smacallan
5722dfe64dd3Smacallan
5723dfe64dd3Smacallan
5724dfe64dd3Smacallan
5725dfe64dd3Smacallan
5726dfe64dd3Smacallan
5727dfe64dd3Smacallan
5728dfe64dd3Smacallan
5729dfe64dd3Smacallan
5730dfe64dd3Smacallan
5731dfe64dd3Smacallan
5732dfe64dd3Smacallan# Check whether --enable-libtool-lock was given.
5733dfe64dd3Smacallanif test "${enable_libtool_lock+set}" = set; then :
5734dfe64dd3Smacallan  enableval=$enable_libtool_lock;
5735dfe64dd3Smacallanfi
5736dfe64dd3Smacallan
5737dfe64dd3Smacallantest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5738dfe64dd3Smacallan
5739dfe64dd3Smacallan# Some flags need to be propagated to the compiler or linker for good
5740dfe64dd3Smacallan# libtool support.
5741dfe64dd3Smacallancase $host in
5742dfe64dd3Smacallania64-*-hpux*)
5743dfe64dd3Smacallan  # Find out which ABI we are using.
5744dfe64dd3Smacallan  echo 'int i;' > conftest.$ac_ext
5745dfe64dd3Smacallan  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5746dfe64dd3Smacallan  (eval $ac_compile) 2>&5
5747dfe64dd3Smacallan  ac_status=$?
5748dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749dfe64dd3Smacallan  test $ac_status = 0; }; then
5750dfe64dd3Smacallan    case `/usr/bin/file conftest.$ac_objext` in
5751dfe64dd3Smacallan      *ELF-32*)
5752dfe64dd3Smacallan	HPUX_IA64_MODE="32"
5753dfe64dd3Smacallan	;;
5754dfe64dd3Smacallan      *ELF-64*)
5755dfe64dd3Smacallan	HPUX_IA64_MODE="64"
5756dfe64dd3Smacallan	;;
5757dfe64dd3Smacallan    esac
5758dfe64dd3Smacallan  fi
5759dfe64dd3Smacallan  rm -rf conftest*
5760dfe64dd3Smacallan  ;;
5761dfe64dd3Smacallan*-*-irix6*)
5762dfe64dd3Smacallan  # Find out which ABI we are using.
5763dfe64dd3Smacallan  echo '#line 5763 "configure"' > conftest.$ac_ext
5764dfe64dd3Smacallan  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5765dfe64dd3Smacallan  (eval $ac_compile) 2>&5
5766dfe64dd3Smacallan  ac_status=$?
5767dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5768dfe64dd3Smacallan  test $ac_status = 0; }; then
5769dfe64dd3Smacallan    if test "$lt_cv_prog_gnu_ld" = yes; then
5770dfe64dd3Smacallan      case `/usr/bin/file conftest.$ac_objext` in
5771dfe64dd3Smacallan	*32-bit*)
5772dfe64dd3Smacallan	  LD="${LD-ld} -melf32bsmip"
5773dfe64dd3Smacallan	  ;;
5774dfe64dd3Smacallan	*N32*)
5775dfe64dd3Smacallan	  LD="${LD-ld} -melf32bmipn32"
5776dfe64dd3Smacallan	  ;;
5777dfe64dd3Smacallan	*64-bit*)
5778dfe64dd3Smacallan	  LD="${LD-ld} -melf64bmip"
5779dfe64dd3Smacallan	;;
5780dfe64dd3Smacallan      esac
5781dfe64dd3Smacallan    else
5782dfe64dd3Smacallan      case `/usr/bin/file conftest.$ac_objext` in
5783dfe64dd3Smacallan	*32-bit*)
5784dfe64dd3Smacallan	  LD="${LD-ld} -32"
5785dfe64dd3Smacallan	  ;;
5786dfe64dd3Smacallan	*N32*)
5787dfe64dd3Smacallan	  LD="${LD-ld} -n32"
5788dfe64dd3Smacallan	  ;;
5789dfe64dd3Smacallan	*64-bit*)
5790dfe64dd3Smacallan	  LD="${LD-ld} -64"
5791dfe64dd3Smacallan	  ;;
5792dfe64dd3Smacallan      esac
5793dfe64dd3Smacallan    fi
5794dfe64dd3Smacallan  fi
5795dfe64dd3Smacallan  rm -rf conftest*
5796dfe64dd3Smacallan  ;;
5797dfe64dd3Smacallan
5798dfe64dd3Smacallanx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5799dfe64dd3Smacallans390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5800dfe64dd3Smacallan  # Find out which ABI we are using.
5801dfe64dd3Smacallan  echo 'int i;' > conftest.$ac_ext
5802dfe64dd3Smacallan  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5803dfe64dd3Smacallan  (eval $ac_compile) 2>&5
5804dfe64dd3Smacallan  ac_status=$?
5805dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806dfe64dd3Smacallan  test $ac_status = 0; }; then
5807dfe64dd3Smacallan    case `/usr/bin/file conftest.o` in
5808dfe64dd3Smacallan      *32-bit*)
5809dfe64dd3Smacallan	case $host in
5810dfe64dd3Smacallan	  x86_64-*kfreebsd*-gnu)
5811dfe64dd3Smacallan	    LD="${LD-ld} -m elf_i386_fbsd"
5812dfe64dd3Smacallan	    ;;
5813dfe64dd3Smacallan	  x86_64-*linux*)
5814dfe64dd3Smacallan	    LD="${LD-ld} -m elf_i386"
5815dfe64dd3Smacallan	    ;;
5816dfe64dd3Smacallan	  ppc64-*linux*|powerpc64-*linux*)
5817dfe64dd3Smacallan	    LD="${LD-ld} -m elf32ppclinux"
5818dfe64dd3Smacallan	    ;;
5819dfe64dd3Smacallan	  s390x-*linux*)
5820dfe64dd3Smacallan	    LD="${LD-ld} -m elf_s390"
5821dfe64dd3Smacallan	    ;;
5822dfe64dd3Smacallan	  sparc64-*linux*)
5823dfe64dd3Smacallan	    LD="${LD-ld} -m elf32_sparc"
5824dfe64dd3Smacallan	    ;;
5825dfe64dd3Smacallan	esac
5826dfe64dd3Smacallan	;;
5827dfe64dd3Smacallan      *64-bit*)
5828dfe64dd3Smacallan	case $host in
5829dfe64dd3Smacallan	  x86_64-*kfreebsd*-gnu)
5830dfe64dd3Smacallan	    LD="${LD-ld} -m elf_x86_64_fbsd"
5831dfe64dd3Smacallan	    ;;
5832dfe64dd3Smacallan	  x86_64-*linux*)
5833dfe64dd3Smacallan	    LD="${LD-ld} -m elf_x86_64"
5834dfe64dd3Smacallan	    ;;
5835dfe64dd3Smacallan	  ppc*-*linux*|powerpc*-*linux*)
5836dfe64dd3Smacallan	    LD="${LD-ld} -m elf64ppc"
5837dfe64dd3Smacallan	    ;;
5838dfe64dd3Smacallan	  s390*-*linux*|s390*-*tpf*)
5839dfe64dd3Smacallan	    LD="${LD-ld} -m elf64_s390"
5840dfe64dd3Smacallan	    ;;
5841dfe64dd3Smacallan	  sparc*-*linux*)
5842dfe64dd3Smacallan	    LD="${LD-ld} -m elf64_sparc"
5843dfe64dd3Smacallan	    ;;
5844dfe64dd3Smacallan	esac
5845dfe64dd3Smacallan	;;
5846dfe64dd3Smacallan    esac
5847dfe64dd3Smacallan  fi
5848dfe64dd3Smacallan  rm -rf conftest*
5849dfe64dd3Smacallan  ;;
5850dfe64dd3Smacallan
5851dfe64dd3Smacallan*-*-sco3.2v5*)
5852dfe64dd3Smacallan  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5853dfe64dd3Smacallan  SAVE_CFLAGS="$CFLAGS"
5854dfe64dd3Smacallan  CFLAGS="$CFLAGS -belf"
5855dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5856dfe64dd3Smacallan$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5857dfe64dd3Smacallanif test "${lt_cv_cc_needs_belf+set}" = set; then :
5858dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5859dfe64dd3Smacallanelse
5860dfe64dd3Smacallan  ac_ext=c
5861dfe64dd3Smacallanac_cpp='$CPP $CPPFLAGS'
5862dfe64dd3Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863dfe64dd3Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864dfe64dd3Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu
5865dfe64dd3Smacallan
5866dfe64dd3Smacallan     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867dfe64dd3Smacallan/* end confdefs.h.  */
5868dfe64dd3Smacallan
5869dfe64dd3Smacallanint
5870dfe64dd3Smacallanmain ()
5871dfe64dd3Smacallan{
5872dfe64dd3Smacallan
5873dfe64dd3Smacallan  ;
5874dfe64dd3Smacallan  return 0;
5875dfe64dd3Smacallan}
5876dfe64dd3Smacallan_ACEOF
5877dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
5878dfe64dd3Smacallan  lt_cv_cc_needs_belf=yes
5879dfe64dd3Smacallanelse
5880dfe64dd3Smacallan  lt_cv_cc_needs_belf=no
5881dfe64dd3Smacallanfi
5882dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
5883dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
5884dfe64dd3Smacallan     ac_ext=c
5885dfe64dd3Smacallanac_cpp='$CPP $CPPFLAGS'
5886dfe64dd3Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887dfe64dd3Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888dfe64dd3Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu
5889dfe64dd3Smacallan
5890dfe64dd3Smacallanfi
5891dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5892dfe64dd3Smacallan$as_echo "$lt_cv_cc_needs_belf" >&6; }
5893dfe64dd3Smacallan  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5894dfe64dd3Smacallan    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5895dfe64dd3Smacallan    CFLAGS="$SAVE_CFLAGS"
5896dfe64dd3Smacallan  fi
5897dfe64dd3Smacallan  ;;
5898dfe64dd3Smacallansparc*-*solaris*)
5899dfe64dd3Smacallan  # Find out which ABI we are using.
5900dfe64dd3Smacallan  echo 'int i;' > conftest.$ac_ext
5901dfe64dd3Smacallan  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5902dfe64dd3Smacallan  (eval $ac_compile) 2>&5
5903dfe64dd3Smacallan  ac_status=$?
5904dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5905dfe64dd3Smacallan  test $ac_status = 0; }; then
5906dfe64dd3Smacallan    case `/usr/bin/file conftest.o` in
5907dfe64dd3Smacallan    *64-bit*)
5908dfe64dd3Smacallan      case $lt_cv_prog_gnu_ld in
5909dfe64dd3Smacallan      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5910dfe64dd3Smacallan      *)
5911dfe64dd3Smacallan	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5912dfe64dd3Smacallan	  LD="${LD-ld} -64"
5913dfe64dd3Smacallan	fi
5914dfe64dd3Smacallan	;;
5915dfe64dd3Smacallan      esac
5916dfe64dd3Smacallan      ;;
5917dfe64dd3Smacallan    esac
5918dfe64dd3Smacallan  fi
5919dfe64dd3Smacallan  rm -rf conftest*
5920dfe64dd3Smacallan  ;;
5921dfe64dd3Smacallanesac
5922dfe64dd3Smacallan
5923dfe64dd3Smacallanneed_locks="$enable_libtool_lock"
5924dfe64dd3Smacallan
5925dfe64dd3Smacallan
5926dfe64dd3Smacallan  case $host_os in
5927dfe64dd3Smacallan    rhapsody* | darwin*)
5928dfe64dd3Smacallan    if test -n "$ac_tool_prefix"; then
5929dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5930dfe64dd3Smacallanset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5931dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
5933dfe64dd3Smacallanif test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5934dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5935dfe64dd3Smacallanelse
5936dfe64dd3Smacallan  if test -n "$DSYMUTIL"; then
5937dfe64dd3Smacallan  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5938dfe64dd3Smacallanelse
5939dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940dfe64dd3Smacallanfor as_dir in $PATH
5941dfe64dd3Smacallando
5942dfe64dd3Smacallan  IFS=$as_save_IFS
5943dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
5944dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
5945dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946dfe64dd3Smacallan    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5947dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948dfe64dd3Smacallan    break 2
5949dfe64dd3Smacallan  fi
5950dfe64dd3Smacallandone
5951dfe64dd3Smacallan  done
5952dfe64dd3SmacallanIFS=$as_save_IFS
5953dfe64dd3Smacallan
5954dfe64dd3Smacallanfi
5955dfe64dd3Smacallanfi
5956dfe64dd3SmacallanDSYMUTIL=$ac_cv_prog_DSYMUTIL
5957dfe64dd3Smacallanif test -n "$DSYMUTIL"; then
5958dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5959dfe64dd3Smacallan$as_echo "$DSYMUTIL" >&6; }
5960dfe64dd3Smacallanelse
5961dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962dfe64dd3Smacallan$as_echo "no" >&6; }
5963dfe64dd3Smacallanfi
5964dfe64dd3Smacallan
5965dfe64dd3Smacallan
5966dfe64dd3Smacallanfi
5967dfe64dd3Smacallanif test -z "$ac_cv_prog_DSYMUTIL"; then
5968dfe64dd3Smacallan  ac_ct_DSYMUTIL=$DSYMUTIL
5969dfe64dd3Smacallan  # Extract the first word of "dsymutil", so it can be a program name with args.
5970dfe64dd3Smacallanset dummy dsymutil; ac_word=$2
5971dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
5973dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5974dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
5975dfe64dd3Smacallanelse
5976dfe64dd3Smacallan  if test -n "$ac_ct_DSYMUTIL"; then
5977dfe64dd3Smacallan  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5978dfe64dd3Smacallanelse
5979dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980dfe64dd3Smacallanfor as_dir in $PATH
5981dfe64dd3Smacallando
5982dfe64dd3Smacallan  IFS=$as_save_IFS
5983dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
5984dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
5985dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986dfe64dd3Smacallan    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5987dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988dfe64dd3Smacallan    break 2
5989dfe64dd3Smacallan  fi
5990dfe64dd3Smacallandone
5991dfe64dd3Smacallan  done
5992dfe64dd3SmacallanIFS=$as_save_IFS
5993dfe64dd3Smacallan
5994dfe64dd3Smacallanfi
5995dfe64dd3Smacallanfi
5996dfe64dd3Smacallanac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5997dfe64dd3Smacallanif test -n "$ac_ct_DSYMUTIL"; then
5998dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5999dfe64dd3Smacallan$as_echo "$ac_ct_DSYMUTIL" >&6; }
6000dfe64dd3Smacallanelse
6001dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002dfe64dd3Smacallan$as_echo "no" >&6; }
6003dfe64dd3Smacallanfi
6004dfe64dd3Smacallan
6005dfe64dd3Smacallan  if test "x$ac_ct_DSYMUTIL" = x; then
6006dfe64dd3Smacallan    DSYMUTIL=":"
6007dfe64dd3Smacallan  else
6008dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
6009dfe64dd3Smacallanyes:)
6010dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012dfe64dd3Smacallanac_tool_warned=yes ;;
6013dfe64dd3Smacallanesac
6014dfe64dd3Smacallan    DSYMUTIL=$ac_ct_DSYMUTIL
6015dfe64dd3Smacallan  fi
6016dfe64dd3Smacallanelse
6017dfe64dd3Smacallan  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6018dfe64dd3Smacallanfi
6019dfe64dd3Smacallan
6020dfe64dd3Smacallan    if test -n "$ac_tool_prefix"; then
6021dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6022dfe64dd3Smacallanset dummy ${ac_tool_prefix}nmedit; ac_word=$2
6023dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
6025dfe64dd3Smacallanif test "${ac_cv_prog_NMEDIT+set}" = set; then :
6026dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6027dfe64dd3Smacallanelse
6028dfe64dd3Smacallan  if test -n "$NMEDIT"; then
6029dfe64dd3Smacallan  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6030dfe64dd3Smacallanelse
6031dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032dfe64dd3Smacallanfor as_dir in $PATH
6033dfe64dd3Smacallando
6034dfe64dd3Smacallan  IFS=$as_save_IFS
6035dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
6036dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
6037dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038dfe64dd3Smacallan    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6039dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040dfe64dd3Smacallan    break 2
6041dfe64dd3Smacallan  fi
6042dfe64dd3Smacallandone
6043dfe64dd3Smacallan  done
6044dfe64dd3SmacallanIFS=$as_save_IFS
6045dfe64dd3Smacallan
6046dfe64dd3Smacallanfi
6047dfe64dd3Smacallanfi
6048dfe64dd3SmacallanNMEDIT=$ac_cv_prog_NMEDIT
6049dfe64dd3Smacallanif test -n "$NMEDIT"; then
6050dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6051dfe64dd3Smacallan$as_echo "$NMEDIT" >&6; }
6052dfe64dd3Smacallanelse
6053dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054dfe64dd3Smacallan$as_echo "no" >&6; }
6055dfe64dd3Smacallanfi
6056dfe64dd3Smacallan
6057dfe64dd3Smacallan
6058dfe64dd3Smacallanfi
6059dfe64dd3Smacallanif test -z "$ac_cv_prog_NMEDIT"; then
6060dfe64dd3Smacallan  ac_ct_NMEDIT=$NMEDIT
6061dfe64dd3Smacallan  # Extract the first word of "nmedit", so it can be a program name with args.
6062dfe64dd3Smacallanset dummy nmedit; ac_word=$2
6063dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
6065dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6066dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6067dfe64dd3Smacallanelse
6068dfe64dd3Smacallan  if test -n "$ac_ct_NMEDIT"; then
6069dfe64dd3Smacallan  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6070dfe64dd3Smacallanelse
6071dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072dfe64dd3Smacallanfor as_dir in $PATH
6073dfe64dd3Smacallando
6074dfe64dd3Smacallan  IFS=$as_save_IFS
6075dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
6076dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
6077dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078dfe64dd3Smacallan    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6079dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080dfe64dd3Smacallan    break 2
6081dfe64dd3Smacallan  fi
6082dfe64dd3Smacallandone
6083dfe64dd3Smacallan  done
6084dfe64dd3SmacallanIFS=$as_save_IFS
6085dfe64dd3Smacallan
6086dfe64dd3Smacallanfi
6087dfe64dd3Smacallanfi
6088dfe64dd3Smacallanac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6089dfe64dd3Smacallanif test -n "$ac_ct_NMEDIT"; then
6090dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6091dfe64dd3Smacallan$as_echo "$ac_ct_NMEDIT" >&6; }
6092dfe64dd3Smacallanelse
6093dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094dfe64dd3Smacallan$as_echo "no" >&6; }
6095dfe64dd3Smacallanfi
6096dfe64dd3Smacallan
6097dfe64dd3Smacallan  if test "x$ac_ct_NMEDIT" = x; then
6098dfe64dd3Smacallan    NMEDIT=":"
6099dfe64dd3Smacallan  else
6100dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
6101dfe64dd3Smacallanyes:)
6102dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104dfe64dd3Smacallanac_tool_warned=yes ;;
6105dfe64dd3Smacallanesac
6106dfe64dd3Smacallan    NMEDIT=$ac_ct_NMEDIT
6107dfe64dd3Smacallan  fi
6108dfe64dd3Smacallanelse
6109dfe64dd3Smacallan  NMEDIT="$ac_cv_prog_NMEDIT"
6110dfe64dd3Smacallanfi
6111dfe64dd3Smacallan
6112dfe64dd3Smacallan    if test -n "$ac_tool_prefix"; then
6113dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6114dfe64dd3Smacallanset dummy ${ac_tool_prefix}lipo; ac_word=$2
6115dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
6117dfe64dd3Smacallanif test "${ac_cv_prog_LIPO+set}" = set; then :
6118dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6119dfe64dd3Smacallanelse
6120dfe64dd3Smacallan  if test -n "$LIPO"; then
6121dfe64dd3Smacallan  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6122dfe64dd3Smacallanelse
6123dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124dfe64dd3Smacallanfor as_dir in $PATH
6125dfe64dd3Smacallando
6126dfe64dd3Smacallan  IFS=$as_save_IFS
6127dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
6128dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
6129dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130dfe64dd3Smacallan    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6131dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132dfe64dd3Smacallan    break 2
6133dfe64dd3Smacallan  fi
6134dfe64dd3Smacallandone
6135dfe64dd3Smacallan  done
6136dfe64dd3SmacallanIFS=$as_save_IFS
6137dfe64dd3Smacallan
6138dfe64dd3Smacallanfi
6139dfe64dd3Smacallanfi
6140dfe64dd3SmacallanLIPO=$ac_cv_prog_LIPO
6141dfe64dd3Smacallanif test -n "$LIPO"; then
6142dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6143dfe64dd3Smacallan$as_echo "$LIPO" >&6; }
6144dfe64dd3Smacallanelse
6145dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146dfe64dd3Smacallan$as_echo "no" >&6; }
6147dfe64dd3Smacallanfi
6148dfe64dd3Smacallan
6149dfe64dd3Smacallan
6150dfe64dd3Smacallanfi
6151dfe64dd3Smacallanif test -z "$ac_cv_prog_LIPO"; then
6152dfe64dd3Smacallan  ac_ct_LIPO=$LIPO
6153dfe64dd3Smacallan  # Extract the first word of "lipo", so it can be a program name with args.
6154dfe64dd3Smacallanset dummy lipo; ac_word=$2
6155dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
6157dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6158dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6159dfe64dd3Smacallanelse
6160dfe64dd3Smacallan  if test -n "$ac_ct_LIPO"; then
6161dfe64dd3Smacallan  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6162dfe64dd3Smacallanelse
6163dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164dfe64dd3Smacallanfor as_dir in $PATH
6165dfe64dd3Smacallando
6166dfe64dd3Smacallan  IFS=$as_save_IFS
6167dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
6168dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
6169dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170dfe64dd3Smacallan    ac_cv_prog_ac_ct_LIPO="lipo"
6171dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172dfe64dd3Smacallan    break 2
6173dfe64dd3Smacallan  fi
6174dfe64dd3Smacallandone
6175dfe64dd3Smacallan  done
6176dfe64dd3SmacallanIFS=$as_save_IFS
6177dfe64dd3Smacallan
6178dfe64dd3Smacallanfi
6179dfe64dd3Smacallanfi
6180dfe64dd3Smacallanac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6181dfe64dd3Smacallanif test -n "$ac_ct_LIPO"; then
6182dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6183dfe64dd3Smacallan$as_echo "$ac_ct_LIPO" >&6; }
6184dfe64dd3Smacallanelse
6185dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186dfe64dd3Smacallan$as_echo "no" >&6; }
6187dfe64dd3Smacallanfi
6188dfe64dd3Smacallan
6189dfe64dd3Smacallan  if test "x$ac_ct_LIPO" = x; then
6190dfe64dd3Smacallan    LIPO=":"
6191dfe64dd3Smacallan  else
6192dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
6193dfe64dd3Smacallanyes:)
6194dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196dfe64dd3Smacallanac_tool_warned=yes ;;
6197dfe64dd3Smacallanesac
6198dfe64dd3Smacallan    LIPO=$ac_ct_LIPO
6199dfe64dd3Smacallan  fi
6200dfe64dd3Smacallanelse
6201dfe64dd3Smacallan  LIPO="$ac_cv_prog_LIPO"
6202dfe64dd3Smacallanfi
6203dfe64dd3Smacallan
6204dfe64dd3Smacallan    if test -n "$ac_tool_prefix"; then
6205dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6206dfe64dd3Smacallanset dummy ${ac_tool_prefix}otool; ac_word=$2
6207dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
6209dfe64dd3Smacallanif test "${ac_cv_prog_OTOOL+set}" = set; then :
6210dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6211dfe64dd3Smacallanelse
6212dfe64dd3Smacallan  if test -n "$OTOOL"; then
6213dfe64dd3Smacallan  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6214dfe64dd3Smacallanelse
6215dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216dfe64dd3Smacallanfor as_dir in $PATH
6217dfe64dd3Smacallando
6218dfe64dd3Smacallan  IFS=$as_save_IFS
6219dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
6220dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
6221dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222dfe64dd3Smacallan    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6223dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224dfe64dd3Smacallan    break 2
6225dfe64dd3Smacallan  fi
6226dfe64dd3Smacallandone
6227dfe64dd3Smacallan  done
6228dfe64dd3SmacallanIFS=$as_save_IFS
6229dfe64dd3Smacallan
6230dfe64dd3Smacallanfi
6231dfe64dd3Smacallanfi
6232dfe64dd3SmacallanOTOOL=$ac_cv_prog_OTOOL
6233dfe64dd3Smacallanif test -n "$OTOOL"; then
6234dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6235dfe64dd3Smacallan$as_echo "$OTOOL" >&6; }
6236dfe64dd3Smacallanelse
6237dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238dfe64dd3Smacallan$as_echo "no" >&6; }
6239dfe64dd3Smacallanfi
6240dfe64dd3Smacallan
6241dfe64dd3Smacallan
6242dfe64dd3Smacallanfi
6243dfe64dd3Smacallanif test -z "$ac_cv_prog_OTOOL"; then
6244dfe64dd3Smacallan  ac_ct_OTOOL=$OTOOL
6245dfe64dd3Smacallan  # Extract the first word of "otool", so it can be a program name with args.
6246dfe64dd3Smacallanset dummy otool; ac_word=$2
6247dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
6249dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6250dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6251dfe64dd3Smacallanelse
6252dfe64dd3Smacallan  if test -n "$ac_ct_OTOOL"; then
6253dfe64dd3Smacallan  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6254dfe64dd3Smacallanelse
6255dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256dfe64dd3Smacallanfor as_dir in $PATH
6257dfe64dd3Smacallando
6258dfe64dd3Smacallan  IFS=$as_save_IFS
6259dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
6260dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
6261dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262dfe64dd3Smacallan    ac_cv_prog_ac_ct_OTOOL="otool"
6263dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264dfe64dd3Smacallan    break 2
6265dfe64dd3Smacallan  fi
6266dfe64dd3Smacallandone
6267dfe64dd3Smacallan  done
6268dfe64dd3SmacallanIFS=$as_save_IFS
6269dfe64dd3Smacallan
6270dfe64dd3Smacallanfi
6271dfe64dd3Smacallanfi
6272dfe64dd3Smacallanac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6273dfe64dd3Smacallanif test -n "$ac_ct_OTOOL"; then
6274dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6275dfe64dd3Smacallan$as_echo "$ac_ct_OTOOL" >&6; }
6276dfe64dd3Smacallanelse
6277dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278dfe64dd3Smacallan$as_echo "no" >&6; }
6279dfe64dd3Smacallanfi
6280dfe64dd3Smacallan
6281dfe64dd3Smacallan  if test "x$ac_ct_OTOOL" = x; then
6282dfe64dd3Smacallan    OTOOL=":"
6283dfe64dd3Smacallan  else
6284dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
6285dfe64dd3Smacallanyes:)
6286dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288dfe64dd3Smacallanac_tool_warned=yes ;;
6289dfe64dd3Smacallanesac
6290dfe64dd3Smacallan    OTOOL=$ac_ct_OTOOL
6291dfe64dd3Smacallan  fi
6292dfe64dd3Smacallanelse
6293dfe64dd3Smacallan  OTOOL="$ac_cv_prog_OTOOL"
6294dfe64dd3Smacallanfi
6295dfe64dd3Smacallan
6296dfe64dd3Smacallan    if test -n "$ac_tool_prefix"; then
6297dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6298dfe64dd3Smacallanset dummy ${ac_tool_prefix}otool64; ac_word=$2
6299dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
6301dfe64dd3Smacallanif test "${ac_cv_prog_OTOOL64+set}" = set; then :
6302dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6303dfe64dd3Smacallanelse
6304dfe64dd3Smacallan  if test -n "$OTOOL64"; then
6305dfe64dd3Smacallan  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6306dfe64dd3Smacallanelse
6307dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308dfe64dd3Smacallanfor as_dir in $PATH
6309dfe64dd3Smacallando
6310dfe64dd3Smacallan  IFS=$as_save_IFS
6311dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
6312dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
6313dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314dfe64dd3Smacallan    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6315dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316dfe64dd3Smacallan    break 2
6317dfe64dd3Smacallan  fi
6318dfe64dd3Smacallandone
6319dfe64dd3Smacallan  done
6320dfe64dd3SmacallanIFS=$as_save_IFS
6321dfe64dd3Smacallan
6322dfe64dd3Smacallanfi
6323dfe64dd3Smacallanfi
6324dfe64dd3SmacallanOTOOL64=$ac_cv_prog_OTOOL64
6325dfe64dd3Smacallanif test -n "$OTOOL64"; then
6326dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6327dfe64dd3Smacallan$as_echo "$OTOOL64" >&6; }
6328dfe64dd3Smacallanelse
6329dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330dfe64dd3Smacallan$as_echo "no" >&6; }
6331dfe64dd3Smacallanfi
6332dfe64dd3Smacallan
6333dfe64dd3Smacallan
6334dfe64dd3Smacallanfi
6335dfe64dd3Smacallanif test -z "$ac_cv_prog_OTOOL64"; then
6336dfe64dd3Smacallan  ac_ct_OTOOL64=$OTOOL64
6337dfe64dd3Smacallan  # Extract the first word of "otool64", so it can be a program name with args.
6338dfe64dd3Smacallanset dummy otool64; ac_word=$2
6339dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
6341dfe64dd3Smacallanif test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6342dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6343dfe64dd3Smacallanelse
6344dfe64dd3Smacallan  if test -n "$ac_ct_OTOOL64"; then
6345dfe64dd3Smacallan  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6346dfe64dd3Smacallanelse
6347dfe64dd3Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348dfe64dd3Smacallanfor as_dir in $PATH
6349dfe64dd3Smacallando
6350dfe64dd3Smacallan  IFS=$as_save_IFS
6351dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
6352dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
6353dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354dfe64dd3Smacallan    ac_cv_prog_ac_ct_OTOOL64="otool64"
6355dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356dfe64dd3Smacallan    break 2
6357dfe64dd3Smacallan  fi
6358dfe64dd3Smacallandone
6359dfe64dd3Smacallan  done
6360dfe64dd3SmacallanIFS=$as_save_IFS
6361dfe64dd3Smacallan
6362dfe64dd3Smacallanfi
6363dfe64dd3Smacallanfi
6364dfe64dd3Smacallanac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6365dfe64dd3Smacallanif test -n "$ac_ct_OTOOL64"; then
6366dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6367dfe64dd3Smacallan$as_echo "$ac_ct_OTOOL64" >&6; }
6368dfe64dd3Smacallanelse
6369dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370dfe64dd3Smacallan$as_echo "no" >&6; }
6371dfe64dd3Smacallanfi
6372dfe64dd3Smacallan
6373dfe64dd3Smacallan  if test "x$ac_ct_OTOOL64" = x; then
6374dfe64dd3Smacallan    OTOOL64=":"
6375dfe64dd3Smacallan  else
6376dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
6377dfe64dd3Smacallanyes:)
6378dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380dfe64dd3Smacallanac_tool_warned=yes ;;
6381dfe64dd3Smacallanesac
6382dfe64dd3Smacallan    OTOOL64=$ac_ct_OTOOL64
6383dfe64dd3Smacallan  fi
6384dfe64dd3Smacallanelse
6385dfe64dd3Smacallan  OTOOL64="$ac_cv_prog_OTOOL64"
6386dfe64dd3Smacallanfi
6387dfe64dd3Smacallan
6388dfe64dd3Smacallan
6389dfe64dd3Smacallan
6390dfe64dd3Smacallan
6391dfe64dd3Smacallan
6392dfe64dd3Smacallan
6393dfe64dd3Smacallan
6394dfe64dd3Smacallan
6395dfe64dd3Smacallan
6396dfe64dd3Smacallan
6397dfe64dd3Smacallan
6398dfe64dd3Smacallan
6399dfe64dd3Smacallan
6400dfe64dd3Smacallan
6401dfe64dd3Smacallan
6402dfe64dd3Smacallan
6403dfe64dd3Smacallan
6404dfe64dd3Smacallan
6405dfe64dd3Smacallan
6406dfe64dd3Smacallan
6407dfe64dd3Smacallan
6408dfe64dd3Smacallan
6409dfe64dd3Smacallan
6410dfe64dd3Smacallan
6411dfe64dd3Smacallan
6412dfe64dd3Smacallan
6413dfe64dd3Smacallan
6414dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6415dfe64dd3Smacallan$as_echo_n "checking for -single_module linker flag... " >&6; }
6416dfe64dd3Smacallanif test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6417dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6418dfe64dd3Smacallanelse
6419dfe64dd3Smacallan  lt_cv_apple_cc_single_mod=no
6420dfe64dd3Smacallan      if test -z "${LT_MULTI_MODULE}"; then
6421dfe64dd3Smacallan	# By default we will add the -single_module flag. You can override
6422dfe64dd3Smacallan	# by either setting the environment variable LT_MULTI_MODULE
6423dfe64dd3Smacallan	# non-empty at configure time, or by adding -multi_module to the
6424dfe64dd3Smacallan	# link flags.
6425dfe64dd3Smacallan	rm -rf libconftest.dylib*
6426dfe64dd3Smacallan	echo "int foo(void){return 1;}" > conftest.c
6427dfe64dd3Smacallan	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6428dfe64dd3Smacallan-dynamiclib -Wl,-single_module conftest.c" >&5
6429dfe64dd3Smacallan	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6430dfe64dd3Smacallan	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6431dfe64dd3Smacallan        _lt_result=$?
6432dfe64dd3Smacallan	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6433dfe64dd3Smacallan	  lt_cv_apple_cc_single_mod=yes
6434dfe64dd3Smacallan	else
6435dfe64dd3Smacallan	  cat conftest.err >&5
6436dfe64dd3Smacallan	fi
6437dfe64dd3Smacallan	rm -rf libconftest.dylib*
6438dfe64dd3Smacallan	rm -f conftest.*
6439dfe64dd3Smacallan      fi
6440dfe64dd3Smacallanfi
6441dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6442dfe64dd3Smacallan$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6443dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6444dfe64dd3Smacallan$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6445dfe64dd3Smacallanif test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6446dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6447dfe64dd3Smacallanelse
6448dfe64dd3Smacallan  lt_cv_ld_exported_symbols_list=no
6449dfe64dd3Smacallan      save_LDFLAGS=$LDFLAGS
6450dfe64dd3Smacallan      echo "_main" > conftest.sym
6451dfe64dd3Smacallan      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6452dfe64dd3Smacallan      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453dfe64dd3Smacallan/* end confdefs.h.  */
6454dfe64dd3Smacallan
6455dfe64dd3Smacallanint
6456dfe64dd3Smacallanmain ()
6457dfe64dd3Smacallan{
6458dfe64dd3Smacallan
6459dfe64dd3Smacallan  ;
6460dfe64dd3Smacallan  return 0;
6461dfe64dd3Smacallan}
6462dfe64dd3Smacallan_ACEOF
6463dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
6464dfe64dd3Smacallan  lt_cv_ld_exported_symbols_list=yes
6465dfe64dd3Smacallanelse
6466dfe64dd3Smacallan  lt_cv_ld_exported_symbols_list=no
6467dfe64dd3Smacallanfi
6468dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
6469dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
6470dfe64dd3Smacallan	LDFLAGS="$save_LDFLAGS"
6471dfe64dd3Smacallan
6472dfe64dd3Smacallanfi
6473dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6474dfe64dd3Smacallan$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6475dfe64dd3Smacallan    case $host_os in
6476dfe64dd3Smacallan    rhapsody* | darwin1.[012])
6477dfe64dd3Smacallan      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6478dfe64dd3Smacallan    darwin1.*)
6479dfe64dd3Smacallan      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6480dfe64dd3Smacallan    darwin*) # darwin 5.x on
6481dfe64dd3Smacallan      # if running on 10.5 or later, the deployment target defaults
6482dfe64dd3Smacallan      # to the OS version, if on x86, and 10.4, the deployment
6483dfe64dd3Smacallan      # target defaults to 10.4. Don't you love it?
6484dfe64dd3Smacallan      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6485dfe64dd3Smacallan	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6486dfe64dd3Smacallan	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6487dfe64dd3Smacallan	10.[012]*)
6488dfe64dd3Smacallan	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6489dfe64dd3Smacallan	10.*)
6490dfe64dd3Smacallan	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6491dfe64dd3Smacallan      esac
6492dfe64dd3Smacallan    ;;
6493dfe64dd3Smacallan  esac
6494dfe64dd3Smacallan    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6495dfe64dd3Smacallan      _lt_dar_single_mod='$single_module'
6496dfe64dd3Smacallan    fi
6497dfe64dd3Smacallan    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6498dfe64dd3Smacallan      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6499dfe64dd3Smacallan    else
6500dfe64dd3Smacallan      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6501dfe64dd3Smacallan    fi
6502dfe64dd3Smacallan    if test "$DSYMUTIL" != ":"; then
6503dfe64dd3Smacallan      _lt_dsymutil='~$DSYMUTIL $lib || :'
6504dfe64dd3Smacallan    else
6505dfe64dd3Smacallan      _lt_dsymutil=
6506dfe64dd3Smacallan    fi
6507dfe64dd3Smacallan    ;;
6508dfe64dd3Smacallan  esac
6509dfe64dd3Smacallan
6510dfe64dd3Smacallanac_ext=c
6511dfe64dd3Smacallanac_cpp='$CPP $CPPFLAGS'
6512dfe64dd3Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6513dfe64dd3Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6514dfe64dd3Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu
6515dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6516dfe64dd3Smacallan$as_echo_n "checking how to run the C preprocessor... " >&6; }
6517dfe64dd3Smacallan# On Suns, sometimes $CPP names a directory.
6518dfe64dd3Smacallanif test -n "$CPP" && test -d "$CPP"; then
6519dfe64dd3Smacallan  CPP=
6520dfe64dd3Smacallanfi
6521dfe64dd3Smacallanif test -z "$CPP"; then
6522dfe64dd3Smacallan  if test "${ac_cv_prog_CPP+set}" = set; then :
6523dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6524dfe64dd3Smacallanelse
6525dfe64dd3Smacallan      # Double quotes because CPP needs to be expanded
6526dfe64dd3Smacallan    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6527dfe64dd3Smacallan    do
6528dfe64dd3Smacallan      ac_preproc_ok=false
6529dfe64dd3Smacallanfor ac_c_preproc_warn_flag in '' yes
6530dfe64dd3Smacallando
6531dfe64dd3Smacallan  # Use a header file that comes with gcc, so configuring glibc
6532dfe64dd3Smacallan  # with a fresh cross-compiler works.
6533dfe64dd3Smacallan  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6534dfe64dd3Smacallan  # <limits.h> exists even on freestanding compilers.
6535dfe64dd3Smacallan  # On the NeXT, cc -E runs the code through the compiler's parser,
6536dfe64dd3Smacallan  # not just through cpp. "Syntax error" is here to catch this case.
6537dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538dfe64dd3Smacallan/* end confdefs.h.  */
6539dfe64dd3Smacallan#ifdef __STDC__
6540dfe64dd3Smacallan# include <limits.h>
6541dfe64dd3Smacallan#else
6542dfe64dd3Smacallan# include <assert.h>
6543dfe64dd3Smacallan#endif
6544dfe64dd3Smacallan		     Syntax error
6545dfe64dd3Smacallan_ACEOF
6546dfe64dd3Smacallanif ac_fn_c_try_cpp "$LINENO"; then :
6547dfe64dd3Smacallan
6548dfe64dd3Smacallanelse
6549dfe64dd3Smacallan  # Broken: fails on valid input.
6550dfe64dd3Smacallancontinue
6551dfe64dd3Smacallanfi
6552dfe64dd3Smacallanrm -f conftest.err conftest.i conftest.$ac_ext
6553dfe64dd3Smacallan
6554dfe64dd3Smacallan  # OK, works on sane cases.  Now check whether nonexistent headers
6555dfe64dd3Smacallan  # can be detected and how.
6556dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557dfe64dd3Smacallan/* end confdefs.h.  */
6558dfe64dd3Smacallan#include <ac_nonexistent.h>
6559dfe64dd3Smacallan_ACEOF
6560dfe64dd3Smacallanif ac_fn_c_try_cpp "$LINENO"; then :
6561dfe64dd3Smacallan  # Broken: success on invalid input.
6562dfe64dd3Smacallancontinue
6563dfe64dd3Smacallanelse
6564dfe64dd3Smacallan  # Passes both tests.
6565dfe64dd3Smacallanac_preproc_ok=:
6566dfe64dd3Smacallanbreak
6567dfe64dd3Smacallanfi
6568dfe64dd3Smacallanrm -f conftest.err conftest.i conftest.$ac_ext
6569dfe64dd3Smacallan
6570dfe64dd3Smacallandone
6571dfe64dd3Smacallan# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6572dfe64dd3Smacallanrm -f conftest.i conftest.err conftest.$ac_ext
6573dfe64dd3Smacallanif $ac_preproc_ok; then :
6574dfe64dd3Smacallan  break
6575dfe64dd3Smacallanfi
6576dfe64dd3Smacallan
6577dfe64dd3Smacallan    done
6578dfe64dd3Smacallan    ac_cv_prog_CPP=$CPP
6579dfe64dd3Smacallan
6580dfe64dd3Smacallanfi
6581dfe64dd3Smacallan  CPP=$ac_cv_prog_CPP
6582dfe64dd3Smacallanelse
6583dfe64dd3Smacallan  ac_cv_prog_CPP=$CPP
6584dfe64dd3Smacallanfi
6585dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6586dfe64dd3Smacallan$as_echo "$CPP" >&6; }
6587dfe64dd3Smacallanac_preproc_ok=false
6588dfe64dd3Smacallanfor ac_c_preproc_warn_flag in '' yes
6589dfe64dd3Smacallando
6590dfe64dd3Smacallan  # Use a header file that comes with gcc, so configuring glibc
6591dfe64dd3Smacallan  # with a fresh cross-compiler works.
6592dfe64dd3Smacallan  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6593dfe64dd3Smacallan  # <limits.h> exists even on freestanding compilers.
6594dfe64dd3Smacallan  # On the NeXT, cc -E runs the code through the compiler's parser,
6595dfe64dd3Smacallan  # not just through cpp. "Syntax error" is here to catch this case.
6596dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597dfe64dd3Smacallan/* end confdefs.h.  */
6598dfe64dd3Smacallan#ifdef __STDC__
6599dfe64dd3Smacallan# include <limits.h>
6600dfe64dd3Smacallan#else
6601dfe64dd3Smacallan# include <assert.h>
6602dfe64dd3Smacallan#endif
6603dfe64dd3Smacallan		     Syntax error
6604dfe64dd3Smacallan_ACEOF
6605dfe64dd3Smacallanif ac_fn_c_try_cpp "$LINENO"; then :
6606dfe64dd3Smacallan
6607dfe64dd3Smacallanelse
6608dfe64dd3Smacallan  # Broken: fails on valid input.
6609dfe64dd3Smacallancontinue
6610dfe64dd3Smacallanfi
6611dfe64dd3Smacallanrm -f conftest.err conftest.i conftest.$ac_ext
6612dfe64dd3Smacallan
6613dfe64dd3Smacallan  # OK, works on sane cases.  Now check whether nonexistent headers
6614dfe64dd3Smacallan  # can be detected and how.
6615dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616dfe64dd3Smacallan/* end confdefs.h.  */
6617dfe64dd3Smacallan#include <ac_nonexistent.h>
6618dfe64dd3Smacallan_ACEOF
6619dfe64dd3Smacallanif ac_fn_c_try_cpp "$LINENO"; then :
6620dfe64dd3Smacallan  # Broken: success on invalid input.
6621dfe64dd3Smacallancontinue
6622dfe64dd3Smacallanelse
6623dfe64dd3Smacallan  # Passes both tests.
6624dfe64dd3Smacallanac_preproc_ok=:
6625dfe64dd3Smacallanbreak
6626dfe64dd3Smacallanfi
6627dfe64dd3Smacallanrm -f conftest.err conftest.i conftest.$ac_ext
6628dfe64dd3Smacallan
6629dfe64dd3Smacallandone
6630dfe64dd3Smacallan# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6631dfe64dd3Smacallanrm -f conftest.i conftest.err conftest.$ac_ext
6632dfe64dd3Smacallanif $ac_preproc_ok; then :
6633dfe64dd3Smacallan
6634dfe64dd3Smacallanelse
6635dfe64dd3Smacallan  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6636dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6637dfe64dd3Smacallanas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6638dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
6639dfe64dd3Smacallanfi
6640dfe64dd3Smacallan
6641dfe64dd3Smacallanac_ext=c
6642dfe64dd3Smacallanac_cpp='$CPP $CPPFLAGS'
6643dfe64dd3Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644dfe64dd3Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645dfe64dd3Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu
6646dfe64dd3Smacallan
6647dfe64dd3Smacallan
6648dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6649dfe64dd3Smacallan$as_echo_n "checking for ANSI C header files... " >&6; }
6650dfe64dd3Smacallanif test "${ac_cv_header_stdc+set}" = set; then :
6651dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6652dfe64dd3Smacallanelse
6653dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654dfe64dd3Smacallan/* end confdefs.h.  */
6655dfe64dd3Smacallan#include <stdlib.h>
6656dfe64dd3Smacallan#include <stdarg.h>
6657dfe64dd3Smacallan#include <string.h>
6658dfe64dd3Smacallan#include <float.h>
6659dfe64dd3Smacallan
6660dfe64dd3Smacallanint
6661dfe64dd3Smacallanmain ()
6662dfe64dd3Smacallan{
6663dfe64dd3Smacallan
6664dfe64dd3Smacallan  ;
6665dfe64dd3Smacallan  return 0;
6666dfe64dd3Smacallan}
6667dfe64dd3Smacallan_ACEOF
6668dfe64dd3Smacallanif ac_fn_c_try_compile "$LINENO"; then :
6669dfe64dd3Smacallan  ac_cv_header_stdc=yes
6670dfe64dd3Smacallanelse
6671dfe64dd3Smacallan  ac_cv_header_stdc=no
6672dfe64dd3Smacallanfi
6673dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674dfe64dd3Smacallan
6675dfe64dd3Smacallanif test $ac_cv_header_stdc = yes; then
6676dfe64dd3Smacallan  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6677dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678dfe64dd3Smacallan/* end confdefs.h.  */
6679dfe64dd3Smacallan#include <string.h>
6680dfe64dd3Smacallan
6681dfe64dd3Smacallan_ACEOF
6682dfe64dd3Smacallanif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6683dfe64dd3Smacallan  $EGREP "memchr" >/dev/null 2>&1; then :
6684dfe64dd3Smacallan
6685dfe64dd3Smacallanelse
6686dfe64dd3Smacallan  ac_cv_header_stdc=no
6687dfe64dd3Smacallanfi
6688dfe64dd3Smacallanrm -f conftest*
6689dfe64dd3Smacallan
6690dfe64dd3Smacallanfi
6691dfe64dd3Smacallan
6692dfe64dd3Smacallanif test $ac_cv_header_stdc = yes; then
6693dfe64dd3Smacallan  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6694dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695dfe64dd3Smacallan/* end confdefs.h.  */
6696dfe64dd3Smacallan#include <stdlib.h>
6697dfe64dd3Smacallan
6698dfe64dd3Smacallan_ACEOF
6699dfe64dd3Smacallanif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700dfe64dd3Smacallan  $EGREP "free" >/dev/null 2>&1; then :
6701dfe64dd3Smacallan
6702dfe64dd3Smacallanelse
6703dfe64dd3Smacallan  ac_cv_header_stdc=no
6704dfe64dd3Smacallanfi
6705dfe64dd3Smacallanrm -f conftest*
6706dfe64dd3Smacallan
6707dfe64dd3Smacallanfi
6708dfe64dd3Smacallan
6709dfe64dd3Smacallanif test $ac_cv_header_stdc = yes; then
6710dfe64dd3Smacallan  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711dfe64dd3Smacallan  if test "$cross_compiling" = yes; then :
6712dfe64dd3Smacallan  :
6713dfe64dd3Smacallanelse
6714dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715dfe64dd3Smacallan/* end confdefs.h.  */
6716dfe64dd3Smacallan#include <ctype.h>
6717dfe64dd3Smacallan#include <stdlib.h>
6718dfe64dd3Smacallan#if ((' ' & 0x0FF) == 0x020)
6719dfe64dd3Smacallan# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6720dfe64dd3Smacallan# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6721dfe64dd3Smacallan#else
6722dfe64dd3Smacallan# define ISLOWER(c) \
6723dfe64dd3Smacallan		   (('a' <= (c) && (c) <= 'i') \
6724dfe64dd3Smacallan		     || ('j' <= (c) && (c) <= 'r') \
6725dfe64dd3Smacallan		     || ('s' <= (c) && (c) <= 'z'))
6726dfe64dd3Smacallan# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6727dfe64dd3Smacallan#endif
6728dfe64dd3Smacallan
6729dfe64dd3Smacallan#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6730dfe64dd3Smacallanint
6731dfe64dd3Smacallanmain ()
6732dfe64dd3Smacallan{
6733dfe64dd3Smacallan  int i;
6734dfe64dd3Smacallan  for (i = 0; i < 256; i++)
6735dfe64dd3Smacallan    if (XOR (islower (i), ISLOWER (i))
6736dfe64dd3Smacallan	|| toupper (i) != TOUPPER (i))
6737dfe64dd3Smacallan      return 2;
6738dfe64dd3Smacallan  return 0;
6739dfe64dd3Smacallan}
6740dfe64dd3Smacallan_ACEOF
6741dfe64dd3Smacallanif ac_fn_c_try_run "$LINENO"; then :
6742dfe64dd3Smacallan
6743dfe64dd3Smacallanelse
6744dfe64dd3Smacallan  ac_cv_header_stdc=no
6745dfe64dd3Smacallanfi
6746dfe64dd3Smacallanrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6747dfe64dd3Smacallan  conftest.$ac_objext conftest.beam conftest.$ac_ext
6748dfe64dd3Smacallanfi
6749dfe64dd3Smacallan
6750dfe64dd3Smacallanfi
6751dfe64dd3Smacallanfi
6752dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6753dfe64dd3Smacallan$as_echo "$ac_cv_header_stdc" >&6; }
6754dfe64dd3Smacallanif test $ac_cv_header_stdc = yes; then
6755dfe64dd3Smacallan
6756dfe64dd3Smacallan$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6757dfe64dd3Smacallan
6758dfe64dd3Smacallanfi
6759dfe64dd3Smacallan
6760dfe64dd3Smacallan# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6761dfe64dd3Smacallanfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6762dfe64dd3Smacallan		  inttypes.h stdint.h unistd.h
6763dfe64dd3Smacallando :
6764dfe64dd3Smacallan  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6765dfe64dd3Smacallanac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6766dfe64dd3Smacallan"
6767dfe64dd3Smacallanif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6768dfe64dd3Smacallan  cat >>confdefs.h <<_ACEOF
6769dfe64dd3Smacallan#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6770dfe64dd3Smacallan_ACEOF
6771dfe64dd3Smacallan
6772dfe64dd3Smacallanfi
6773dfe64dd3Smacallan
6774dfe64dd3Smacallandone
6775dfe64dd3Smacallan
6776dfe64dd3Smacallan
6777dfe64dd3Smacallanfor ac_header in dlfcn.h
6778dfe64dd3Smacallando :
6779dfe64dd3Smacallan  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6780dfe64dd3Smacallan"
6781dfe64dd3Smacallanif test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6782dfe64dd3Smacallan  cat >>confdefs.h <<_ACEOF
6783dfe64dd3Smacallan#define HAVE_DLFCN_H 1
6784dfe64dd3Smacallan_ACEOF
6785dfe64dd3Smacallan
6786dfe64dd3Smacallanfi
6787dfe64dd3Smacallan
6788dfe64dd3Smacallandone
6789dfe64dd3Smacallan
6790dfe64dd3Smacallan
6791dfe64dd3Smacallan
6792dfe64dd3Smacallan# Set options
6793dfe64dd3Smacallan
6794dfe64dd3Smacallan
6795dfe64dd3Smacallan
6796dfe64dd3Smacallan        enable_dlopen=no
6797dfe64dd3Smacallan
6798dfe64dd3Smacallan
6799dfe64dd3Smacallan  enable_win32_dll=no
6800dfe64dd3Smacallan
6801dfe64dd3Smacallan
6802dfe64dd3Smacallan            # Check whether --enable-shared was given.
6803dfe64dd3Smacallanif test "${enable_shared+set}" = set; then :
6804dfe64dd3Smacallan  enableval=$enable_shared; p=${PACKAGE-default}
6805dfe64dd3Smacallan    case $enableval in
6806dfe64dd3Smacallan    yes) enable_shared=yes ;;
6807dfe64dd3Smacallan    no) enable_shared=no ;;
6808dfe64dd3Smacallan    *)
6809dfe64dd3Smacallan      enable_shared=no
6810dfe64dd3Smacallan      # Look at the argument we got.  We use all the common list separators.
6811dfe64dd3Smacallan      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6812dfe64dd3Smacallan      for pkg in $enableval; do
6813dfe64dd3Smacallan	IFS="$lt_save_ifs"
6814dfe64dd3Smacallan	if test "X$pkg" = "X$p"; then
6815dfe64dd3Smacallan	  enable_shared=yes
6816dfe64dd3Smacallan	fi
6817dfe64dd3Smacallan      done
6818dfe64dd3Smacallan      IFS="$lt_save_ifs"
6819dfe64dd3Smacallan      ;;
6820dfe64dd3Smacallan    esac
6821dfe64dd3Smacallanelse
6822dfe64dd3Smacallan  enable_shared=yes
6823dfe64dd3Smacallanfi
6824dfe64dd3Smacallan
6825dfe64dd3Smacallan
6826dfe64dd3Smacallan
6827dfe64dd3Smacallan
6828dfe64dd3Smacallan
6829dfe64dd3Smacallan
6830dfe64dd3Smacallan
6831dfe64dd3Smacallan
6832dfe64dd3Smacallan
6833dfe64dd3Smacallan
6834dfe64dd3Smacallan
6835dfe64dd3Smacallan# Check whether --with-pic was given.
6836dfe64dd3Smacallanif test "${with_pic+set}" = set; then :
6837dfe64dd3Smacallan  withval=$with_pic; pic_mode="$withval"
6838dfe64dd3Smacallanelse
6839dfe64dd3Smacallan  pic_mode=default
6840dfe64dd3Smacallanfi
6841dfe64dd3Smacallan
6842dfe64dd3Smacallan
6843dfe64dd3Smacallantest -z "$pic_mode" && pic_mode=default
6844dfe64dd3Smacallan
6845dfe64dd3Smacallan
6846dfe64dd3Smacallan
6847dfe64dd3Smacallan
6848dfe64dd3Smacallan
6849dfe64dd3Smacallan
6850dfe64dd3Smacallan
6851dfe64dd3Smacallan  # Check whether --enable-fast-install was given.
6852dfe64dd3Smacallanif test "${enable_fast_install+set}" = set; then :
6853dfe64dd3Smacallan  enableval=$enable_fast_install; p=${PACKAGE-default}
6854dfe64dd3Smacallan    case $enableval in
6855dfe64dd3Smacallan    yes) enable_fast_install=yes ;;
6856dfe64dd3Smacallan    no) enable_fast_install=no ;;
6857dfe64dd3Smacallan    *)
6858dfe64dd3Smacallan      enable_fast_install=no
6859dfe64dd3Smacallan      # Look at the argument we got.  We use all the common list separators.
6860dfe64dd3Smacallan      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6861dfe64dd3Smacallan      for pkg in $enableval; do
6862dfe64dd3Smacallan	IFS="$lt_save_ifs"
6863dfe64dd3Smacallan	if test "X$pkg" = "X$p"; then
6864dfe64dd3Smacallan	  enable_fast_install=yes
6865dfe64dd3Smacallan	fi
6866dfe64dd3Smacallan      done
6867dfe64dd3Smacallan      IFS="$lt_save_ifs"
6868dfe64dd3Smacallan      ;;
6869dfe64dd3Smacallan    esac
6870dfe64dd3Smacallanelse
6871dfe64dd3Smacallan  enable_fast_install=yes
6872dfe64dd3Smacallanfi
6873dfe64dd3Smacallan
6874dfe64dd3Smacallan
6875dfe64dd3Smacallan
6876dfe64dd3Smacallan
6877dfe64dd3Smacallan
6878dfe64dd3Smacallan
6879dfe64dd3Smacallan
6880dfe64dd3Smacallan
6881dfe64dd3Smacallan
6882dfe64dd3Smacallan
6883dfe64dd3Smacallan
6884dfe64dd3Smacallan# This can be used to rebuild libtool when needed
6885dfe64dd3SmacallanLIBTOOL_DEPS="$ltmain"
6886dfe64dd3Smacallan
6887dfe64dd3Smacallan# Always use our own libtool.
6888dfe64dd3SmacallanLIBTOOL='$(SHELL) $(top_builddir)/libtool'
6889dfe64dd3Smacallan
6890dfe64dd3Smacallan
6891dfe64dd3Smacallan
6892dfe64dd3Smacallan
6893dfe64dd3Smacallan
6894dfe64dd3Smacallan
6895dfe64dd3Smacallan
6896dfe64dd3Smacallan
6897dfe64dd3Smacallan
6898dfe64dd3Smacallan
6899dfe64dd3Smacallan
6900dfe64dd3Smacallan
6901dfe64dd3Smacallan
6902dfe64dd3Smacallan
6903dfe64dd3Smacallan
6904dfe64dd3Smacallan
6905dfe64dd3Smacallan
6906dfe64dd3Smacallan
6907dfe64dd3Smacallan
6908dfe64dd3Smacallan
6909dfe64dd3Smacallan
6910dfe64dd3Smacallan
6911dfe64dd3Smacallan
6912dfe64dd3Smacallan
6913dfe64dd3Smacallan
6914dfe64dd3Smacallantest -z "$LN_S" && LN_S="ln -s"
6915dfe64dd3Smacallan
6916dfe64dd3Smacallan
6917dfe64dd3Smacallan
6918dfe64dd3Smacallan
6919dfe64dd3Smacallan
6920dfe64dd3Smacallan
6921dfe64dd3Smacallan
6922dfe64dd3Smacallan
6923dfe64dd3Smacallan
6924dfe64dd3Smacallan
6925dfe64dd3Smacallan
6926dfe64dd3Smacallan
6927dfe64dd3Smacallan
6928dfe64dd3Smacallan
6929dfe64dd3Smacallanif test -n "${ZSH_VERSION+set}" ; then
6930dfe64dd3Smacallan   setopt NO_GLOB_SUBST
6931dfe64dd3Smacallanfi
6932dfe64dd3Smacallan
6933dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6934dfe64dd3Smacallan$as_echo_n "checking for objdir... " >&6; }
6935dfe64dd3Smacallanif test "${lt_cv_objdir+set}" = set; then :
6936dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
6937dfe64dd3Smacallanelse
6938dfe64dd3Smacallan  rm -f .libs 2>/dev/null
6939dfe64dd3Smacallanmkdir .libs 2>/dev/null
6940dfe64dd3Smacallanif test -d .libs; then
6941dfe64dd3Smacallan  lt_cv_objdir=.libs
6942dfe64dd3Smacallanelse
6943dfe64dd3Smacallan  # MS-DOS does not allow filenames that begin with a dot.
6944dfe64dd3Smacallan  lt_cv_objdir=_libs
6945dfe64dd3Smacallanfi
6946dfe64dd3Smacallanrmdir .libs 2>/dev/null
6947dfe64dd3Smacallanfi
6948dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6949dfe64dd3Smacallan$as_echo "$lt_cv_objdir" >&6; }
6950dfe64dd3Smacallanobjdir=$lt_cv_objdir
6951dfe64dd3Smacallan
6952dfe64dd3Smacallan
6953dfe64dd3Smacallan
6954dfe64dd3Smacallan
6955dfe64dd3Smacallan
6956dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
6957dfe64dd3Smacallan#define LT_OBJDIR "$lt_cv_objdir/"
6958dfe64dd3Smacallan_ACEOF
6959dfe64dd3Smacallan
6960dfe64dd3Smacallan
6961dfe64dd3Smacallan
6962dfe64dd3Smacallan
6963dfe64dd3Smacallan
6964dfe64dd3Smacallan
6965dfe64dd3Smacallan
6966dfe64dd3Smacallan
6967dfe64dd3Smacallan
6968dfe64dd3Smacallan
6969dfe64dd3Smacallan
6970dfe64dd3Smacallan
6971dfe64dd3Smacallan
6972dfe64dd3Smacallan
6973dfe64dd3Smacallan
6974dfe64dd3Smacallan
6975dfe64dd3Smacallan
6976dfe64dd3Smacallancase $host_os in
6977dfe64dd3Smacallanaix3*)
6978dfe64dd3Smacallan  # AIX sometimes has problems with the GCC collect2 program.  For some
6979dfe64dd3Smacallan  # reason, if we set the COLLECT_NAMES environment variable, the problems
6980dfe64dd3Smacallan  # vanish in a puff of smoke.
6981dfe64dd3Smacallan  if test "X${COLLECT_NAMES+set}" != Xset; then
6982dfe64dd3Smacallan    COLLECT_NAMES=
6983dfe64dd3Smacallan    export COLLECT_NAMES
6984dfe64dd3Smacallan  fi
6985dfe64dd3Smacallan  ;;
6986dfe64dd3Smacallanesac
6987dfe64dd3Smacallan
6988dfe64dd3Smacallan# Sed substitution that helps us do robust quoting.  It backslashifies
6989dfe64dd3Smacallan# metacharacters that are still active within double-quoted strings.
6990dfe64dd3Smacallansed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6991dfe64dd3Smacallan
6992dfe64dd3Smacallan# Same as above, but do not quote variable references.
6993dfe64dd3Smacallandouble_quote_subst='s/\(["`\\]\)/\\\1/g'
6994dfe64dd3Smacallan
6995dfe64dd3Smacallan# Sed substitution to delay expansion of an escaped shell variable in a
6996dfe64dd3Smacallan# double_quote_subst'ed string.
6997dfe64dd3Smacallandelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6998dfe64dd3Smacallan
6999dfe64dd3Smacallan# Sed substitution to delay expansion of an escaped single quote.
7000dfe64dd3Smacallandelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7001dfe64dd3Smacallan
7002dfe64dd3Smacallan# Sed substitution to avoid accidental globbing in evaled expressions
7003dfe64dd3Smacallanno_glob_subst='s/\*/\\\*/g'
7004dfe64dd3Smacallan
7005dfe64dd3Smacallan# Global variables:
7006dfe64dd3Smacallanofile=libtool
7007dfe64dd3Smacallancan_build_shared=yes
7008dfe64dd3Smacallan
7009dfe64dd3Smacallan# All known linkers require a `.a' archive for static linking (except MSVC,
7010dfe64dd3Smacallan# which needs '.lib').
7011dfe64dd3Smacallanlibext=a
7012dfe64dd3Smacallan
7013dfe64dd3Smacallanwith_gnu_ld="$lt_cv_prog_gnu_ld"
7014dfe64dd3Smacallan
7015dfe64dd3Smacallanold_CC="$CC"
7016dfe64dd3Smacallanold_CFLAGS="$CFLAGS"
7017dfe64dd3Smacallan
7018dfe64dd3Smacallan# Set sane defaults for various variables
7019dfe64dd3Smacallantest -z "$CC" && CC=cc
7020dfe64dd3Smacallantest -z "$LTCC" && LTCC=$CC
7021dfe64dd3Smacallantest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7022dfe64dd3Smacallantest -z "$LD" && LD=ld
7023dfe64dd3Smacallantest -z "$ac_objext" && ac_objext=o
7024dfe64dd3Smacallan
7025dfe64dd3Smacallanfor cc_temp in $compiler""; do
7026dfe64dd3Smacallan  case $cc_temp in
7027dfe64dd3Smacallan    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7028dfe64dd3Smacallan    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7029dfe64dd3Smacallan    \-*) ;;
7030dfe64dd3Smacallan    *) break;;
7031dfe64dd3Smacallan  esac
7032dfe64dd3Smacallandone
7033dfe64dd3Smacallancc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7034dfe64dd3Smacallan
7035dfe64dd3Smacallan
7036dfe64dd3Smacallan# Only perform the check for file, if the check method requires it
7037dfe64dd3Smacallantest -z "$MAGIC_CMD" && MAGIC_CMD=file
7038dfe64dd3Smacallancase $deplibs_check_method in
7039dfe64dd3Smacallanfile_magic*)
7040dfe64dd3Smacallan  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7041dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7042dfe64dd3Smacallan$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7043dfe64dd3Smacallanif test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7044dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
7045dfe64dd3Smacallanelse
7046dfe64dd3Smacallan  case $MAGIC_CMD in
7047dfe64dd3Smacallan[\\/*] |  ?:[\\/]*)
7048dfe64dd3Smacallan  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7049dfe64dd3Smacallan  ;;
7050dfe64dd3Smacallan*)
7051dfe64dd3Smacallan  lt_save_MAGIC_CMD="$MAGIC_CMD"
7052dfe64dd3Smacallan  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7053dfe64dd3Smacallan  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7054dfe64dd3Smacallan  for ac_dir in $ac_dummy; do
7055dfe64dd3Smacallan    IFS="$lt_save_ifs"
7056dfe64dd3Smacallan    test -z "$ac_dir" && ac_dir=.
7057dfe64dd3Smacallan    if test -f $ac_dir/${ac_tool_prefix}file; then
7058dfe64dd3Smacallan      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7059dfe64dd3Smacallan      if test -n "$file_magic_test_file"; then
7060dfe64dd3Smacallan	case $deplibs_check_method in
7061dfe64dd3Smacallan	"file_magic "*)
7062dfe64dd3Smacallan	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7063dfe64dd3Smacallan	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7064dfe64dd3Smacallan	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7065dfe64dd3Smacallan	    $EGREP "$file_magic_regex" > /dev/null; then
7066dfe64dd3Smacallan	    :
7067dfe64dd3Smacallan	  else
7068dfe64dd3Smacallan	    cat <<_LT_EOF 1>&2
7069dfe64dd3Smacallan
7070dfe64dd3Smacallan*** Warning: the command libtool uses to detect shared libraries,
7071dfe64dd3Smacallan*** $file_magic_cmd, produces output that libtool cannot recognize.
7072dfe64dd3Smacallan*** The result is that libtool may fail to recognize shared libraries
7073dfe64dd3Smacallan*** as such.  This will affect the creation of libtool libraries that
7074dfe64dd3Smacallan*** depend on shared libraries, but programs linked with such libtool
7075dfe64dd3Smacallan*** libraries will work regardless of this problem.  Nevertheless, you
7076dfe64dd3Smacallan*** may want to report the problem to your system manager and/or to
7077dfe64dd3Smacallan*** bug-libtool@gnu.org
7078dfe64dd3Smacallan
7079dfe64dd3Smacallan_LT_EOF
7080dfe64dd3Smacallan	  fi ;;
7081dfe64dd3Smacallan	esac
7082dfe64dd3Smacallan      fi
7083dfe64dd3Smacallan      break
7084dfe64dd3Smacallan    fi
7085dfe64dd3Smacallan  done
7086dfe64dd3Smacallan  IFS="$lt_save_ifs"
7087dfe64dd3Smacallan  MAGIC_CMD="$lt_save_MAGIC_CMD"
7088dfe64dd3Smacallan  ;;
7089dfe64dd3Smacallanesac
7090dfe64dd3Smacallanfi
7091dfe64dd3Smacallan
7092dfe64dd3SmacallanMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7093dfe64dd3Smacallanif test -n "$MAGIC_CMD"; then
7094dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7095dfe64dd3Smacallan$as_echo "$MAGIC_CMD" >&6; }
7096dfe64dd3Smacallanelse
7097dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098dfe64dd3Smacallan$as_echo "no" >&6; }
7099dfe64dd3Smacallanfi
7100dfe64dd3Smacallan
7101dfe64dd3Smacallan
7102dfe64dd3Smacallan
7103dfe64dd3Smacallan
7104dfe64dd3Smacallan
7105dfe64dd3Smacallanif test -z "$lt_cv_path_MAGIC_CMD"; then
7106dfe64dd3Smacallan  if test -n "$ac_tool_prefix"; then
7107dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7108dfe64dd3Smacallan$as_echo_n "checking for file... " >&6; }
7109dfe64dd3Smacallanif test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7110dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
7111dfe64dd3Smacallanelse
7112dfe64dd3Smacallan  case $MAGIC_CMD in
7113dfe64dd3Smacallan[\\/*] |  ?:[\\/]*)
7114dfe64dd3Smacallan  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7115dfe64dd3Smacallan  ;;
7116dfe64dd3Smacallan*)
7117dfe64dd3Smacallan  lt_save_MAGIC_CMD="$MAGIC_CMD"
7118dfe64dd3Smacallan  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7119dfe64dd3Smacallan  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7120dfe64dd3Smacallan  for ac_dir in $ac_dummy; do
7121dfe64dd3Smacallan    IFS="$lt_save_ifs"
7122dfe64dd3Smacallan    test -z "$ac_dir" && ac_dir=.
7123dfe64dd3Smacallan    if test -f $ac_dir/file; then
7124dfe64dd3Smacallan      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7125dfe64dd3Smacallan      if test -n "$file_magic_test_file"; then
7126dfe64dd3Smacallan	case $deplibs_check_method in
7127dfe64dd3Smacallan	"file_magic "*)
7128dfe64dd3Smacallan	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7129dfe64dd3Smacallan	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7130dfe64dd3Smacallan	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7131dfe64dd3Smacallan	    $EGREP "$file_magic_regex" > /dev/null; then
7132dfe64dd3Smacallan	    :
7133dfe64dd3Smacallan	  else
7134dfe64dd3Smacallan	    cat <<_LT_EOF 1>&2
7135dfe64dd3Smacallan
7136dfe64dd3Smacallan*** Warning: the command libtool uses to detect shared libraries,
7137dfe64dd3Smacallan*** $file_magic_cmd, produces output that libtool cannot recognize.
7138dfe64dd3Smacallan*** The result is that libtool may fail to recognize shared libraries
7139dfe64dd3Smacallan*** as such.  This will affect the creation of libtool libraries that
7140dfe64dd3Smacallan*** depend on shared libraries, but programs linked with such libtool
7141dfe64dd3Smacallan*** libraries will work regardless of this problem.  Nevertheless, you
7142dfe64dd3Smacallan*** may want to report the problem to your system manager and/or to
7143dfe64dd3Smacallan*** bug-libtool@gnu.org
7144dfe64dd3Smacallan
7145dfe64dd3Smacallan_LT_EOF
7146dfe64dd3Smacallan	  fi ;;
7147dfe64dd3Smacallan	esac
7148dfe64dd3Smacallan      fi
7149dfe64dd3Smacallan      break
7150dfe64dd3Smacallan    fi
7151dfe64dd3Smacallan  done
7152dfe64dd3Smacallan  IFS="$lt_save_ifs"
7153dfe64dd3Smacallan  MAGIC_CMD="$lt_save_MAGIC_CMD"
7154dfe64dd3Smacallan  ;;
7155dfe64dd3Smacallanesac
7156dfe64dd3Smacallanfi
7157dfe64dd3Smacallan
7158dfe64dd3SmacallanMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7159dfe64dd3Smacallanif test -n "$MAGIC_CMD"; then
7160dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7161dfe64dd3Smacallan$as_echo "$MAGIC_CMD" >&6; }
7162dfe64dd3Smacallanelse
7163dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164dfe64dd3Smacallan$as_echo "no" >&6; }
7165dfe64dd3Smacallanfi
7166dfe64dd3Smacallan
7167dfe64dd3Smacallan
7168dfe64dd3Smacallan  else
7169dfe64dd3Smacallan    MAGIC_CMD=:
7170dfe64dd3Smacallan  fi
7171dfe64dd3Smacallanfi
7172dfe64dd3Smacallan
7173dfe64dd3Smacallan  fi
7174dfe64dd3Smacallan  ;;
7175dfe64dd3Smacallanesac
7176dfe64dd3Smacallan
7177dfe64dd3Smacallan# Use C for the default configuration in the libtool script
7178dfe64dd3Smacallan
7179dfe64dd3Smacallanlt_save_CC="$CC"
7180dfe64dd3Smacallanac_ext=c
7181dfe64dd3Smacallanac_cpp='$CPP $CPPFLAGS'
7182dfe64dd3Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183dfe64dd3Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184dfe64dd3Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu
7185dfe64dd3Smacallan
7186dfe64dd3Smacallan
7187dfe64dd3Smacallan# Source file extension for C test sources.
7188dfe64dd3Smacallanac_ext=c
7189dfe64dd3Smacallan
7190dfe64dd3Smacallan# Object file extension for compiled C test sources.
7191dfe64dd3Smacallanobjext=o
7192dfe64dd3Smacallanobjext=$objext
7193dfe64dd3Smacallan
7194dfe64dd3Smacallan# Code to be used in simple compile tests
7195dfe64dd3Smacallanlt_simple_compile_test_code="int some_variable = 0;"
7196dfe64dd3Smacallan
7197dfe64dd3Smacallan# Code to be used in simple link tests
7198dfe64dd3Smacallanlt_simple_link_test_code='int main(){return(0);}'
7199dfe64dd3Smacallan
7200dfe64dd3Smacallan
7201dfe64dd3Smacallan
7202dfe64dd3Smacallan
7203dfe64dd3Smacallan
7204dfe64dd3Smacallan
7205dfe64dd3Smacallan
7206dfe64dd3Smacallan# If no C compiler was specified, use CC.
7207dfe64dd3SmacallanLTCC=${LTCC-"$CC"}
7208dfe64dd3Smacallan
7209dfe64dd3Smacallan# If no C compiler flags were specified, use CFLAGS.
7210dfe64dd3SmacallanLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7211dfe64dd3Smacallan
7212dfe64dd3Smacallan# Allow CC to be a program name with arguments.
7213dfe64dd3Smacallancompiler=$CC
7214dfe64dd3Smacallan
7215dfe64dd3Smacallan# Save the default compiler, since it gets overwritten when the other
7216dfe64dd3Smacallan# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7217dfe64dd3Smacallancompiler_DEFAULT=$CC
7218dfe64dd3Smacallan
7219dfe64dd3Smacallan# save warnings/boilerplate of simple test code
7220dfe64dd3Smacallanac_outfile=conftest.$ac_objext
7221dfe64dd3Smacallanecho "$lt_simple_compile_test_code" >conftest.$ac_ext
7222dfe64dd3Smacallaneval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7223dfe64dd3Smacallan_lt_compiler_boilerplate=`cat conftest.err`
7224dfe64dd3Smacallan$RM conftest*
7225dfe64dd3Smacallan
7226dfe64dd3Smacallanac_outfile=conftest.$ac_objext
7227dfe64dd3Smacallanecho "$lt_simple_link_test_code" >conftest.$ac_ext
7228dfe64dd3Smacallaneval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7229dfe64dd3Smacallan_lt_linker_boilerplate=`cat conftest.err`
7230dfe64dd3Smacallan$RM -r conftest*
7231dfe64dd3Smacallan
7232dfe64dd3Smacallan
7233dfe64dd3Smacallanif test -n "$compiler"; then
7234dfe64dd3Smacallan
7235dfe64dd3Smacallanlt_prog_compiler_no_builtin_flag=
7236dfe64dd3Smacallan
7237dfe64dd3Smacallanif test "$GCC" = yes; then
7238dfe64dd3Smacallan  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7239dfe64dd3Smacallan
7240dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7241dfe64dd3Smacallan$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7242dfe64dd3Smacallanif test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7243dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
7244dfe64dd3Smacallanelse
7245dfe64dd3Smacallan  lt_cv_prog_compiler_rtti_exceptions=no
7246dfe64dd3Smacallan   ac_outfile=conftest.$ac_objext
7247dfe64dd3Smacallan   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7248dfe64dd3Smacallan   lt_compiler_flag="-fno-rtti -fno-exceptions"
7249dfe64dd3Smacallan   # Insert the option either (1) after the last *FLAGS variable, or
7250dfe64dd3Smacallan   # (2) before a word containing "conftest.", or (3) at the end.
7251dfe64dd3Smacallan   # Note that $ac_compile itself does not contain backslashes and begins
7252dfe64dd3Smacallan   # with a dollar sign (not a hyphen), so the echo should work correctly.
7253dfe64dd3Smacallan   # The option is referenced via a variable to avoid confusing sed.
7254dfe64dd3Smacallan   lt_compile=`echo "$ac_compile" | $SED \
7255dfe64dd3Smacallan   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7256dfe64dd3Smacallan   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7257dfe64dd3Smacallan   -e 's:$: $lt_compiler_flag:'`
7258dfe64dd3Smacallan   (eval echo "\"\$as_me:7258: $lt_compile\"" >&5)
7259dfe64dd3Smacallan   (eval "$lt_compile" 2>conftest.err)
7260dfe64dd3Smacallan   ac_status=$?
7261dfe64dd3Smacallan   cat conftest.err >&5
7262dfe64dd3Smacallan   echo "$as_me:7262: \$? = $ac_status" >&5
7263dfe64dd3Smacallan   if (exit $ac_status) && test -s "$ac_outfile"; then
7264dfe64dd3Smacallan     # The compiler can only warn and ignore the option if not recognized
7265dfe64dd3Smacallan     # So say no if there are warnings other than the usual output.
7266dfe64dd3Smacallan     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7267dfe64dd3Smacallan     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7268dfe64dd3Smacallan     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7269dfe64dd3Smacallan       lt_cv_prog_compiler_rtti_exceptions=yes
7270dfe64dd3Smacallan     fi
7271dfe64dd3Smacallan   fi
7272dfe64dd3Smacallan   $RM conftest*
7273dfe64dd3Smacallan
7274dfe64dd3Smacallanfi
7275dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7276dfe64dd3Smacallan$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7277dfe64dd3Smacallan
7278dfe64dd3Smacallanif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7279dfe64dd3Smacallan    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7280dfe64dd3Smacallanelse
7281dfe64dd3Smacallan    :
7282dfe64dd3Smacallanfi
7283dfe64dd3Smacallan
7284dfe64dd3Smacallanfi
7285dfe64dd3Smacallan
7286dfe64dd3Smacallan
7287dfe64dd3Smacallan
7288dfe64dd3Smacallan
7289dfe64dd3Smacallan
7290dfe64dd3Smacallan
7291dfe64dd3Smacallan  lt_prog_compiler_wl=
7292dfe64dd3Smacallanlt_prog_compiler_pic=
7293dfe64dd3Smacallanlt_prog_compiler_static=
7294dfe64dd3Smacallan
7295dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7296dfe64dd3Smacallan$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7297dfe64dd3Smacallan
7298dfe64dd3Smacallan  if test "$GCC" = yes; then
7299dfe64dd3Smacallan    lt_prog_compiler_wl='-Wl,'
7300dfe64dd3Smacallan    lt_prog_compiler_static='-static'
7301dfe64dd3Smacallan
7302dfe64dd3Smacallan    case $host_os in
7303dfe64dd3Smacallan      aix*)
7304dfe64dd3Smacallan      # All AIX code is PIC.
7305dfe64dd3Smacallan      if test "$host_cpu" = ia64; then
7306dfe64dd3Smacallan	# AIX 5 now supports IA64 processor
7307dfe64dd3Smacallan	lt_prog_compiler_static='-Bstatic'
7308dfe64dd3Smacallan      fi
7309dfe64dd3Smacallan      ;;
7310dfe64dd3Smacallan
7311dfe64dd3Smacallan    amigaos*)
7312dfe64dd3Smacallan      case $host_cpu in
7313dfe64dd3Smacallan      powerpc)
7314dfe64dd3Smacallan            # see comment about AmigaOS4 .so support
7315dfe64dd3Smacallan            lt_prog_compiler_pic='-fPIC'
7316dfe64dd3Smacallan        ;;
7317dfe64dd3Smacallan      m68k)
7318dfe64dd3Smacallan            # FIXME: we need at least 68020 code to build shared libraries, but
7319dfe64dd3Smacallan            # adding the `-m68020' flag to GCC prevents building anything better,
7320dfe64dd3Smacallan            # like `-m68040'.
7321dfe64dd3Smacallan            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7322dfe64dd3Smacallan        ;;
7323dfe64dd3Smacallan      esac
7324dfe64dd3Smacallan      ;;
7325dfe64dd3Smacallan
7326dfe64dd3Smacallan    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7327dfe64dd3Smacallan      # PIC is the default for these OSes.
7328dfe64dd3Smacallan      ;;
7329dfe64dd3Smacallan
7330dfe64dd3Smacallan    mingw* | cygwin* | pw32* | os2* | cegcc*)
7331dfe64dd3Smacallan      # This hack is so that the source file can tell whether it is being
7332dfe64dd3Smacallan      # built for inclusion in a dll (and should export symbols for example).
7333dfe64dd3Smacallan      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7334dfe64dd3Smacallan      # (--disable-auto-import) libraries
7335dfe64dd3Smacallan      lt_prog_compiler_pic='-DDLL_EXPORT'
7336dfe64dd3Smacallan      ;;
7337dfe64dd3Smacallan
7338dfe64dd3Smacallan    darwin* | rhapsody*)
7339dfe64dd3Smacallan      # PIC is the default on this platform
7340dfe64dd3Smacallan      # Common symbols not allowed in MH_DYLIB files
7341dfe64dd3Smacallan      lt_prog_compiler_pic='-fno-common'
7342dfe64dd3Smacallan      ;;
7343dfe64dd3Smacallan
7344dfe64dd3Smacallan    hpux*)
7345dfe64dd3Smacallan      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7346dfe64dd3Smacallan      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7347dfe64dd3Smacallan      # sets the default TLS model and affects inlining.
7348dfe64dd3Smacallan      case $host_cpu in
7349dfe64dd3Smacallan      hppa*64*)
7350dfe64dd3Smacallan	# +Z the default
7351dfe64dd3Smacallan	;;
7352dfe64dd3Smacallan      *)
7353dfe64dd3Smacallan	lt_prog_compiler_pic='-fPIC'
7354dfe64dd3Smacallan	;;
7355dfe64dd3Smacallan      esac
7356dfe64dd3Smacallan      ;;
7357dfe64dd3Smacallan
7358dfe64dd3Smacallan    interix[3-9]*)
7359dfe64dd3Smacallan      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7360dfe64dd3Smacallan      # Instead, we relocate shared libraries at runtime.
7361dfe64dd3Smacallan      ;;
7362dfe64dd3Smacallan
7363dfe64dd3Smacallan    msdosdjgpp*)
7364dfe64dd3Smacallan      # Just because we use GCC doesn't mean we suddenly get shared libraries
7365dfe64dd3Smacallan      # on systems that don't support them.
7366dfe64dd3Smacallan      lt_prog_compiler_can_build_shared=no
7367dfe64dd3Smacallan      enable_shared=no
7368dfe64dd3Smacallan      ;;
7369dfe64dd3Smacallan
7370dfe64dd3Smacallan    *nto* | *qnx*)
7371dfe64dd3Smacallan      # QNX uses GNU C++, but need to define -shared option too, otherwise
7372dfe64dd3Smacallan      # it will coredump.
7373dfe64dd3Smacallan      lt_prog_compiler_pic='-fPIC -shared'
7374dfe64dd3Smacallan      ;;
7375dfe64dd3Smacallan
7376dfe64dd3Smacallan    sysv4*MP*)
7377dfe64dd3Smacallan      if test -d /usr/nec; then
7378dfe64dd3Smacallan	lt_prog_compiler_pic=-Kconform_pic
7379dfe64dd3Smacallan      fi
7380dfe64dd3Smacallan      ;;
7381dfe64dd3Smacallan
7382dfe64dd3Smacallan    *)
7383dfe64dd3Smacallan      lt_prog_compiler_pic='-fPIC'
7384dfe64dd3Smacallan      ;;
7385dfe64dd3Smacallan    esac
7386dfe64dd3Smacallan  else
7387dfe64dd3Smacallan    # PORTME Check for flag to pass linker flags through the system compiler.
7388dfe64dd3Smacallan    case $host_os in
7389dfe64dd3Smacallan    aix*)
7390dfe64dd3Smacallan      lt_prog_compiler_wl='-Wl,'
7391dfe64dd3Smacallan      if test "$host_cpu" = ia64; then
7392dfe64dd3Smacallan	# AIX 5 now supports IA64 processor
7393dfe64dd3Smacallan	lt_prog_compiler_static='-Bstatic'
7394dfe64dd3Smacallan      else
7395dfe64dd3Smacallan	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7396dfe64dd3Smacallan      fi
7397dfe64dd3Smacallan      ;;
7398dfe64dd3Smacallan
7399dfe64dd3Smacallan    mingw* | cygwin* | pw32* | os2* | cegcc*)
7400dfe64dd3Smacallan      # This hack is so that the source file can tell whether it is being
7401dfe64dd3Smacallan      # built for inclusion in a dll (and should export symbols for example).
7402dfe64dd3Smacallan      lt_prog_compiler_pic='-DDLL_EXPORT'
7403dfe64dd3Smacallan      ;;
7404dfe64dd3Smacallan
7405dfe64dd3Smacallan    hpux9* | hpux10* | hpux11*)
7406dfe64dd3Smacallan      lt_prog_compiler_wl='-Wl,'
7407dfe64dd3Smacallan      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7408dfe64dd3Smacallan      # not for PA HP-UX.
7409dfe64dd3Smacallan      case $host_cpu in
7410dfe64dd3Smacallan      hppa*64*|ia64*)
7411dfe64dd3Smacallan	# +Z the default
7412dfe64dd3Smacallan	;;
7413dfe64dd3Smacallan      *)
7414dfe64dd3Smacallan	lt_prog_compiler_pic='+Z'
7415dfe64dd3Smacallan	;;
7416dfe64dd3Smacallan      esac
7417dfe64dd3Smacallan      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7418dfe64dd3Smacallan      lt_prog_compiler_static='${wl}-a ${wl}archive'
7419dfe64dd3Smacallan      ;;
7420dfe64dd3Smacallan
7421dfe64dd3Smacallan    irix5* | irix6* | nonstopux*)
7422dfe64dd3Smacallan      lt_prog_compiler_wl='-Wl,'
7423dfe64dd3Smacallan      # PIC (with -KPIC) is the default.
7424dfe64dd3Smacallan      lt_prog_compiler_static='-non_shared'
7425dfe64dd3Smacallan      ;;
7426dfe64dd3Smacallan
7427dfe64dd3Smacallan    linux* | k*bsd*-gnu)
7428dfe64dd3Smacallan      case $cc_basename in
7429dfe64dd3Smacallan      # old Intel for x86_64 which still supported -KPIC.
7430dfe64dd3Smacallan      ecc*)
7431dfe64dd3Smacallan	lt_prog_compiler_wl='-Wl,'
7432dfe64dd3Smacallan	lt_prog_compiler_pic='-KPIC'
7433dfe64dd3Smacallan	lt_prog_compiler_static='-static'
7434dfe64dd3Smacallan        ;;
7435dfe64dd3Smacallan      # icc used to be incompatible with GCC.
7436dfe64dd3Smacallan      # ICC 10 doesn't accept -KPIC any more.
7437dfe64dd3Smacallan      icc* | ifort*)
7438dfe64dd3Smacallan	lt_prog_compiler_wl='-Wl,'
7439dfe64dd3Smacallan	lt_prog_compiler_pic='-fPIC'
7440dfe64dd3Smacallan	lt_prog_compiler_static='-static'
7441dfe64dd3Smacallan        ;;
7442dfe64dd3Smacallan      # Lahey Fortran 8.1.
7443dfe64dd3Smacallan      lf95*)
7444dfe64dd3Smacallan	lt_prog_compiler_wl='-Wl,'
7445dfe64dd3Smacallan	lt_prog_compiler_pic='--shared'
7446dfe64dd3Smacallan	lt_prog_compiler_static='--static'
7447dfe64dd3Smacallan	;;
7448dfe64dd3Smacallan      pgcc* | pgf77* | pgf90* | pgf95*)
7449dfe64dd3Smacallan        # Portland Group compilers (*not* the Pentium gcc compiler,
7450dfe64dd3Smacallan	# which looks to be a dead project)
7451dfe64dd3Smacallan	lt_prog_compiler_wl='-Wl,'
7452dfe64dd3Smacallan	lt_prog_compiler_pic='-fpic'
7453dfe64dd3Smacallan	lt_prog_compiler_static='-Bstatic'
7454dfe64dd3Smacallan        ;;
7455dfe64dd3Smacallan      ccc*)
7456dfe64dd3Smacallan        lt_prog_compiler_wl='-Wl,'
7457dfe64dd3Smacallan        # All Alpha code is PIC.
7458dfe64dd3Smacallan        lt_prog_compiler_static='-non_shared'
7459dfe64dd3Smacallan        ;;
7460dfe64dd3Smacallan      xl*)
7461dfe64dd3Smacallan	# IBM XL C 8.0/Fortran 10.1 on PPC
7462dfe64dd3Smacallan	lt_prog_compiler_wl='-Wl,'
7463dfe64dd3Smacallan	lt_prog_compiler_pic='-qpic'
7464dfe64dd3Smacallan	lt_prog_compiler_static='-qstaticlink'
7465dfe64dd3Smacallan	;;
7466dfe64dd3Smacallan      *)
7467dfe64dd3Smacallan	case `$CC -V 2>&1 | sed 5q` in
7468dfe64dd3Smacallan	*Sun\ C*)
7469dfe64dd3Smacallan	  # Sun C 5.9
7470dfe64dd3Smacallan	  lt_prog_compiler_pic='-KPIC'
7471dfe64dd3Smacallan	  lt_prog_compiler_static='-Bstatic'
7472dfe64dd3Smacallan	  lt_prog_compiler_wl='-Wl,'
7473dfe64dd3Smacallan	  ;;
7474dfe64dd3Smacallan	*Sun\ F*)
7475dfe64dd3Smacallan	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7476dfe64dd3Smacallan	  lt_prog_compiler_pic='-KPIC'
7477dfe64dd3Smacallan	  lt_prog_compiler_static='-Bstatic'
7478dfe64dd3Smacallan	  lt_prog_compiler_wl=''
7479dfe64dd3Smacallan	  ;;
7480dfe64dd3Smacallan	esac
7481dfe64dd3Smacallan	;;
7482dfe64dd3Smacallan      esac
7483dfe64dd3Smacallan      ;;
7484dfe64dd3Smacallan
7485dfe64dd3Smacallan    newsos6)
7486dfe64dd3Smacallan      lt_prog_compiler_pic='-KPIC'
7487dfe64dd3Smacallan      lt_prog_compiler_static='-Bstatic'
7488dfe64dd3Smacallan      ;;
7489dfe64dd3Smacallan
7490dfe64dd3Smacallan    *nto* | *qnx*)
7491dfe64dd3Smacallan      # QNX uses GNU C++, but need to define -shared option too, otherwise
7492dfe64dd3Smacallan      # it will coredump.
7493dfe64dd3Smacallan      lt_prog_compiler_pic='-fPIC -shared'
7494dfe64dd3Smacallan      ;;
7495dfe64dd3Smacallan
7496dfe64dd3Smacallan    osf3* | osf4* | osf5*)
7497dfe64dd3Smacallan      lt_prog_compiler_wl='-Wl,'
7498dfe64dd3Smacallan      # All OSF/1 code is PIC.
7499dfe64dd3Smacallan      lt_prog_compiler_static='-non_shared'
7500dfe64dd3Smacallan      ;;
7501dfe64dd3Smacallan
7502dfe64dd3Smacallan    rdos*)
7503dfe64dd3Smacallan      lt_prog_compiler_static='-non_shared'
7504dfe64dd3Smacallan      ;;
7505dfe64dd3Smacallan
7506dfe64dd3Smacallan    solaris*)
7507dfe64dd3Smacallan      lt_prog_compiler_pic='-KPIC'
7508dfe64dd3Smacallan      lt_prog_compiler_static='-Bstatic'
7509dfe64dd3Smacallan      case $cc_basename in
7510dfe64dd3Smacallan      f77* | f90* | f95*)
7511dfe64dd3Smacallan	lt_prog_compiler_wl='-Qoption ld ';;
7512dfe64dd3Smacallan      *)
7513dfe64dd3Smacallan	lt_prog_compiler_wl='-Wl,';;
7514dfe64dd3Smacallan      esac
7515dfe64dd3Smacallan      ;;
7516dfe64dd3Smacallan
7517dfe64dd3Smacallan    sunos4*)
7518dfe64dd3Smacallan      lt_prog_compiler_wl='-Qoption ld '
7519dfe64dd3Smacallan      lt_prog_compiler_pic='-PIC'
7520dfe64dd3Smacallan      lt_prog_compiler_static='-Bstatic'
7521dfe64dd3Smacallan      ;;
7522dfe64dd3Smacallan
7523dfe64dd3Smacallan    sysv4 | sysv4.2uw2* | sysv4.3*)
7524dfe64dd3Smacallan      lt_prog_compiler_wl='-Wl,'
7525dfe64dd3Smacallan      lt_prog_compiler_pic='-KPIC'
7526dfe64dd3Smacallan      lt_prog_compiler_static='-Bstatic'
7527dfe64dd3Smacallan      ;;
7528dfe64dd3Smacallan
7529dfe64dd3Smacallan    sysv4*MP*)
7530dfe64dd3Smacallan      if test -d /usr/nec ;then
7531dfe64dd3Smacallan	lt_prog_compiler_pic='-Kconform_pic'
7532dfe64dd3Smacallan	lt_prog_compiler_static='-Bstatic'
7533dfe64dd3Smacallan      fi
7534dfe64dd3Smacallan      ;;
7535dfe64dd3Smacallan
7536dfe64dd3Smacallan    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7537dfe64dd3Smacallan      lt_prog_compiler_wl='-Wl,'
7538dfe64dd3Smacallan      lt_prog_compiler_pic='-KPIC'
7539dfe64dd3Smacallan      lt_prog_compiler_static='-Bstatic'
7540dfe64dd3Smacallan      ;;
7541dfe64dd3Smacallan
7542dfe64dd3Smacallan    unicos*)
7543dfe64dd3Smacallan      lt_prog_compiler_wl='-Wl,'
7544dfe64dd3Smacallan      lt_prog_compiler_can_build_shared=no
7545dfe64dd3Smacallan      ;;
7546dfe64dd3Smacallan
7547dfe64dd3Smacallan    uts4*)
7548dfe64dd3Smacallan      lt_prog_compiler_pic='-pic'
7549dfe64dd3Smacallan      lt_prog_compiler_static='-Bstatic'
7550dfe64dd3Smacallan      ;;
7551dfe64dd3Smacallan
7552dfe64dd3Smacallan    *)
7553dfe64dd3Smacallan      lt_prog_compiler_can_build_shared=no
7554dfe64dd3Smacallan      ;;
7555dfe64dd3Smacallan    esac
7556dfe64dd3Smacallan  fi
7557dfe64dd3Smacallan
7558dfe64dd3Smacallancase $host_os in
7559dfe64dd3Smacallan  # For platforms which do not support PIC, -DPIC is meaningless:
7560dfe64dd3Smacallan  *djgpp*)
7561dfe64dd3Smacallan    lt_prog_compiler_pic=
7562dfe64dd3Smacallan    ;;
7563dfe64dd3Smacallan  *)
7564dfe64dd3Smacallan    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7565dfe64dd3Smacallan    ;;
7566dfe64dd3Smacallanesac
7567dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7568dfe64dd3Smacallan$as_echo "$lt_prog_compiler_pic" >&6; }
7569dfe64dd3Smacallan
7570dfe64dd3Smacallan
7571dfe64dd3Smacallan
7572dfe64dd3Smacallan
7573dfe64dd3Smacallan
7574dfe64dd3Smacallan
7575dfe64dd3Smacallan#
7576dfe64dd3Smacallan# Check to make sure the PIC flag actually works.
7577dfe64dd3Smacallan#
7578dfe64dd3Smacallanif test -n "$lt_prog_compiler_pic"; then
7579dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7580dfe64dd3Smacallan$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7581dfe64dd3Smacallanif test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7582dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
7583dfe64dd3Smacallanelse
7584dfe64dd3Smacallan  lt_cv_prog_compiler_pic_works=no
7585dfe64dd3Smacallan   ac_outfile=conftest.$ac_objext
7586dfe64dd3Smacallan   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7587dfe64dd3Smacallan   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7588dfe64dd3Smacallan   # Insert the option either (1) after the last *FLAGS variable, or
7589dfe64dd3Smacallan   # (2) before a word containing "conftest.", or (3) at the end.
7590dfe64dd3Smacallan   # Note that $ac_compile itself does not contain backslashes and begins
7591dfe64dd3Smacallan   # with a dollar sign (not a hyphen), so the echo should work correctly.
7592dfe64dd3Smacallan   # The option is referenced via a variable to avoid confusing sed.
7593dfe64dd3Smacallan   lt_compile=`echo "$ac_compile" | $SED \
7594dfe64dd3Smacallan   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7595dfe64dd3Smacallan   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7596dfe64dd3Smacallan   -e 's:$: $lt_compiler_flag:'`
7597dfe64dd3Smacallan   (eval echo "\"\$as_me:7597: $lt_compile\"" >&5)
7598dfe64dd3Smacallan   (eval "$lt_compile" 2>conftest.err)
7599dfe64dd3Smacallan   ac_status=$?
7600dfe64dd3Smacallan   cat conftest.err >&5
7601dfe64dd3Smacallan   echo "$as_me:7601: \$? = $ac_status" >&5
7602dfe64dd3Smacallan   if (exit $ac_status) && test -s "$ac_outfile"; then
7603dfe64dd3Smacallan     # The compiler can only warn and ignore the option if not recognized
7604dfe64dd3Smacallan     # So say no if there are warnings other than the usual output.
7605dfe64dd3Smacallan     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7606dfe64dd3Smacallan     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7607dfe64dd3Smacallan     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7608dfe64dd3Smacallan       lt_cv_prog_compiler_pic_works=yes
7609dfe64dd3Smacallan     fi
7610dfe64dd3Smacallan   fi
7611dfe64dd3Smacallan   $RM conftest*
7612dfe64dd3Smacallan
7613dfe64dd3Smacallanfi
7614dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7615dfe64dd3Smacallan$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7616dfe64dd3Smacallan
7617dfe64dd3Smacallanif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7618dfe64dd3Smacallan    case $lt_prog_compiler_pic in
7619dfe64dd3Smacallan     "" | " "*) ;;
7620dfe64dd3Smacallan     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7621dfe64dd3Smacallan     esac
7622dfe64dd3Smacallanelse
7623dfe64dd3Smacallan    lt_prog_compiler_pic=
7624dfe64dd3Smacallan     lt_prog_compiler_can_build_shared=no
7625dfe64dd3Smacallanfi
7626dfe64dd3Smacallan
7627dfe64dd3Smacallanfi
7628dfe64dd3Smacallan
7629dfe64dd3Smacallan
7630dfe64dd3Smacallan
7631dfe64dd3Smacallan
7632dfe64dd3Smacallan
7633dfe64dd3Smacallan
7634dfe64dd3Smacallan#
7635dfe64dd3Smacallan# Check to make sure the static flag actually works.
7636dfe64dd3Smacallan#
7637dfe64dd3Smacallanwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7638dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7639dfe64dd3Smacallan$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7640dfe64dd3Smacallanif test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7641dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
7642dfe64dd3Smacallanelse
7643dfe64dd3Smacallan  lt_cv_prog_compiler_static_works=no
7644dfe64dd3Smacallan   save_LDFLAGS="$LDFLAGS"
7645dfe64dd3Smacallan   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7646dfe64dd3Smacallan   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7647dfe64dd3Smacallan   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7648dfe64dd3Smacallan     # The linker can only warn and ignore the option if not recognized
7649dfe64dd3Smacallan     # So say no if there are warnings
7650dfe64dd3Smacallan     if test -s conftest.err; then
7651dfe64dd3Smacallan       # Append any errors to the config.log.
7652dfe64dd3Smacallan       cat conftest.err 1>&5
7653dfe64dd3Smacallan       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7654dfe64dd3Smacallan       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7655dfe64dd3Smacallan       if diff conftest.exp conftest.er2 >/dev/null; then
7656dfe64dd3Smacallan         lt_cv_prog_compiler_static_works=yes
7657dfe64dd3Smacallan       fi
7658dfe64dd3Smacallan     else
7659dfe64dd3Smacallan       lt_cv_prog_compiler_static_works=yes
7660dfe64dd3Smacallan     fi
7661dfe64dd3Smacallan   fi
7662dfe64dd3Smacallan   $RM -r conftest*
7663dfe64dd3Smacallan   LDFLAGS="$save_LDFLAGS"
7664dfe64dd3Smacallan
7665dfe64dd3Smacallanfi
7666dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7667dfe64dd3Smacallan$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7668dfe64dd3Smacallan
7669dfe64dd3Smacallanif test x"$lt_cv_prog_compiler_static_works" = xyes; then
7670dfe64dd3Smacallan    :
7671dfe64dd3Smacallanelse
7672dfe64dd3Smacallan    lt_prog_compiler_static=
7673dfe64dd3Smacallanfi
7674dfe64dd3Smacallan
7675dfe64dd3Smacallan
7676dfe64dd3Smacallan
7677dfe64dd3Smacallan
7678dfe64dd3Smacallan
7679dfe64dd3Smacallan
7680dfe64dd3Smacallan
7681dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7682dfe64dd3Smacallan$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7683dfe64dd3Smacallanif test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7684dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
7685dfe64dd3Smacallanelse
7686dfe64dd3Smacallan  lt_cv_prog_compiler_c_o=no
7687dfe64dd3Smacallan   $RM -r conftest 2>/dev/null
7688dfe64dd3Smacallan   mkdir conftest
7689dfe64dd3Smacallan   cd conftest
7690dfe64dd3Smacallan   mkdir out
7691dfe64dd3Smacallan   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7692dfe64dd3Smacallan
7693dfe64dd3Smacallan   lt_compiler_flag="-o out/conftest2.$ac_objext"
7694dfe64dd3Smacallan   # Insert the option either (1) after the last *FLAGS variable, or
7695dfe64dd3Smacallan   # (2) before a word containing "conftest.", or (3) at the end.
7696dfe64dd3Smacallan   # Note that $ac_compile itself does not contain backslashes and begins
7697dfe64dd3Smacallan   # with a dollar sign (not a hyphen), so the echo should work correctly.
7698dfe64dd3Smacallan   lt_compile=`echo "$ac_compile" | $SED \
7699dfe64dd3Smacallan   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7700dfe64dd3Smacallan   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7701dfe64dd3Smacallan   -e 's:$: $lt_compiler_flag:'`
7702dfe64dd3Smacallan   (eval echo "\"\$as_me:7702: $lt_compile\"" >&5)
7703dfe64dd3Smacallan   (eval "$lt_compile" 2>out/conftest.err)
7704dfe64dd3Smacallan   ac_status=$?
7705dfe64dd3Smacallan   cat out/conftest.err >&5
7706dfe64dd3Smacallan   echo "$as_me:7706: \$? = $ac_status" >&5
7707dfe64dd3Smacallan   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7708dfe64dd3Smacallan   then
7709dfe64dd3Smacallan     # The compiler can only warn and ignore the option if not recognized
7710dfe64dd3Smacallan     # So say no if there are warnings
7711dfe64dd3Smacallan     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7712dfe64dd3Smacallan     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7713dfe64dd3Smacallan     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7714dfe64dd3Smacallan       lt_cv_prog_compiler_c_o=yes
7715dfe64dd3Smacallan     fi
7716dfe64dd3Smacallan   fi
7717dfe64dd3Smacallan   chmod u+w . 2>&5
7718dfe64dd3Smacallan   $RM conftest*
7719dfe64dd3Smacallan   # SGI C++ compiler will create directory out/ii_files/ for
7720dfe64dd3Smacallan   # template instantiation
7721dfe64dd3Smacallan   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7722dfe64dd3Smacallan   $RM out/* && rmdir out
7723dfe64dd3Smacallan   cd ..
7724dfe64dd3Smacallan   $RM -r conftest
7725dfe64dd3Smacallan   $RM conftest*
7726dfe64dd3Smacallan
7727dfe64dd3Smacallanfi
7728dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7729dfe64dd3Smacallan$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7730dfe64dd3Smacallan
7731dfe64dd3Smacallan
7732dfe64dd3Smacallan
7733dfe64dd3Smacallan
7734dfe64dd3Smacallan
7735dfe64dd3Smacallan
7736dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7737dfe64dd3Smacallan$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7738dfe64dd3Smacallanif test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7739dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
7740dfe64dd3Smacallanelse
7741dfe64dd3Smacallan  lt_cv_prog_compiler_c_o=no
7742dfe64dd3Smacallan   $RM -r conftest 2>/dev/null
7743dfe64dd3Smacallan   mkdir conftest
7744dfe64dd3Smacallan   cd conftest
7745dfe64dd3Smacallan   mkdir out
7746dfe64dd3Smacallan   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7747dfe64dd3Smacallan
7748dfe64dd3Smacallan   lt_compiler_flag="-o out/conftest2.$ac_objext"
7749dfe64dd3Smacallan   # Insert the option either (1) after the last *FLAGS variable, or
7750dfe64dd3Smacallan   # (2) before a word containing "conftest.", or (3) at the end.
7751dfe64dd3Smacallan   # Note that $ac_compile itself does not contain backslashes and begins
7752dfe64dd3Smacallan   # with a dollar sign (not a hyphen), so the echo should work correctly.
7753dfe64dd3Smacallan   lt_compile=`echo "$ac_compile" | $SED \
7754dfe64dd3Smacallan   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7755dfe64dd3Smacallan   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7756dfe64dd3Smacallan   -e 's:$: $lt_compiler_flag:'`
7757dfe64dd3Smacallan   (eval echo "\"\$as_me:7757: $lt_compile\"" >&5)
7758dfe64dd3Smacallan   (eval "$lt_compile" 2>out/conftest.err)
7759dfe64dd3Smacallan   ac_status=$?
7760dfe64dd3Smacallan   cat out/conftest.err >&5
7761dfe64dd3Smacallan   echo "$as_me:7761: \$? = $ac_status" >&5
7762dfe64dd3Smacallan   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7763dfe64dd3Smacallan   then
7764dfe64dd3Smacallan     # The compiler can only warn and ignore the option if not recognized
7765dfe64dd3Smacallan     # So say no if there are warnings
7766dfe64dd3Smacallan     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7767dfe64dd3Smacallan     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7768dfe64dd3Smacallan     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7769dfe64dd3Smacallan       lt_cv_prog_compiler_c_o=yes
7770dfe64dd3Smacallan     fi
7771dfe64dd3Smacallan   fi
7772dfe64dd3Smacallan   chmod u+w . 2>&5
7773dfe64dd3Smacallan   $RM conftest*
7774dfe64dd3Smacallan   # SGI C++ compiler will create directory out/ii_files/ for
7775dfe64dd3Smacallan   # template instantiation
7776dfe64dd3Smacallan   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7777dfe64dd3Smacallan   $RM out/* && rmdir out
7778dfe64dd3Smacallan   cd ..
7779dfe64dd3Smacallan   $RM -r conftest
7780dfe64dd3Smacallan   $RM conftest*
7781dfe64dd3Smacallan
7782dfe64dd3Smacallanfi
7783dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7784dfe64dd3Smacallan$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7785dfe64dd3Smacallan
7786dfe64dd3Smacallan
7787dfe64dd3Smacallan
7788dfe64dd3Smacallan
7789dfe64dd3Smacallanhard_links="nottested"
7790dfe64dd3Smacallanif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7791dfe64dd3Smacallan  # do not overwrite the value of need_locks provided by the user
7792dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7793dfe64dd3Smacallan$as_echo_n "checking if we can lock with hard links... " >&6; }
7794dfe64dd3Smacallan  hard_links=yes
7795dfe64dd3Smacallan  $RM conftest*
7796dfe64dd3Smacallan  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7797dfe64dd3Smacallan  touch conftest.a
7798dfe64dd3Smacallan  ln conftest.a conftest.b 2>&5 || hard_links=no
7799dfe64dd3Smacallan  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7800dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7801dfe64dd3Smacallan$as_echo "$hard_links" >&6; }
7802dfe64dd3Smacallan  if test "$hard_links" = no; then
7803dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7804dfe64dd3Smacallan$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7805dfe64dd3Smacallan    need_locks=warn
7806dfe64dd3Smacallan  fi
7807dfe64dd3Smacallanelse
7808dfe64dd3Smacallan  need_locks=no
7809dfe64dd3Smacallanfi
7810dfe64dd3Smacallan
7811dfe64dd3Smacallan
7812dfe64dd3Smacallan
7813dfe64dd3Smacallan
7814dfe64dd3Smacallan
7815dfe64dd3Smacallan
7816dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7817dfe64dd3Smacallan$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7818dfe64dd3Smacallan
7819dfe64dd3Smacallan  runpath_var=
7820dfe64dd3Smacallan  allow_undefined_flag=
7821dfe64dd3Smacallan  always_export_symbols=no
7822dfe64dd3Smacallan  archive_cmds=
7823dfe64dd3Smacallan  archive_expsym_cmds=
7824dfe64dd3Smacallan  compiler_needs_object=no
7825dfe64dd3Smacallan  enable_shared_with_static_runtimes=no
7826dfe64dd3Smacallan  export_dynamic_flag_spec=
7827dfe64dd3Smacallan  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7828dfe64dd3Smacallan  hardcode_automatic=no
7829dfe64dd3Smacallan  hardcode_direct=no
7830dfe64dd3Smacallan  hardcode_direct_absolute=no
7831dfe64dd3Smacallan  hardcode_libdir_flag_spec=
7832dfe64dd3Smacallan  hardcode_libdir_flag_spec_ld=
7833dfe64dd3Smacallan  hardcode_libdir_separator=
7834dfe64dd3Smacallan  hardcode_minus_L=no
7835dfe64dd3Smacallan  hardcode_shlibpath_var=unsupported
7836dfe64dd3Smacallan  inherit_rpath=no
7837dfe64dd3Smacallan  link_all_deplibs=unknown
7838dfe64dd3Smacallan  module_cmds=
7839dfe64dd3Smacallan  module_expsym_cmds=
7840dfe64dd3Smacallan  old_archive_from_new_cmds=
7841dfe64dd3Smacallan  old_archive_from_expsyms_cmds=
7842dfe64dd3Smacallan  thread_safe_flag_spec=
7843dfe64dd3Smacallan  whole_archive_flag_spec=
7844dfe64dd3Smacallan  # include_expsyms should be a list of space-separated symbols to be *always*
7845dfe64dd3Smacallan  # included in the symbol list
7846dfe64dd3Smacallan  include_expsyms=
7847dfe64dd3Smacallan  # exclude_expsyms can be an extended regexp of symbols to exclude
7848dfe64dd3Smacallan  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7849dfe64dd3Smacallan  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7850dfe64dd3Smacallan  # as well as any symbol that contains `d'.
7851dfe64dd3Smacallan  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7852dfe64dd3Smacallan  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7853dfe64dd3Smacallan  # platforms (ab)use it in PIC code, but their linkers get confused if
7854dfe64dd3Smacallan  # the symbol is explicitly referenced.  Since portable code cannot
7855dfe64dd3Smacallan  # rely on this symbol name, it's probably fine to never include it in
7856dfe64dd3Smacallan  # preloaded symbol tables.
7857dfe64dd3Smacallan  # Exclude shared library initialization/finalization symbols.
7858dfe64dd3Smacallan  extract_expsyms_cmds=
7859dfe64dd3Smacallan
7860dfe64dd3Smacallan  case $host_os in
7861dfe64dd3Smacallan  cygwin* | mingw* | pw32* | cegcc*)
7862dfe64dd3Smacallan    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7863dfe64dd3Smacallan    # When not using gcc, we currently assume that we are using
7864dfe64dd3Smacallan    # Microsoft Visual C++.
7865dfe64dd3Smacallan    if test "$GCC" != yes; then
7866dfe64dd3Smacallan      with_gnu_ld=no
7867dfe64dd3Smacallan    fi
7868dfe64dd3Smacallan    ;;
7869dfe64dd3Smacallan  interix*)
7870dfe64dd3Smacallan    # we just hope/assume this is gcc and not c89 (= MSVC++)
7871dfe64dd3Smacallan    with_gnu_ld=yes
7872dfe64dd3Smacallan    ;;
7873dfe64dd3Smacallan  openbsd*)
7874dfe64dd3Smacallan    with_gnu_ld=no
7875dfe64dd3Smacallan    ;;
7876dfe64dd3Smacallan  esac
7877dfe64dd3Smacallan
7878dfe64dd3Smacallan  ld_shlibs=yes
7879dfe64dd3Smacallan  if test "$with_gnu_ld" = yes; then
7880dfe64dd3Smacallan    # If archive_cmds runs LD, not CC, wlarc should be empty
7881dfe64dd3Smacallan    wlarc='${wl}'
7882dfe64dd3Smacallan
7883dfe64dd3Smacallan    # Set some defaults for GNU ld with shared library support. These
7884dfe64dd3Smacallan    # are reset later if shared libraries are not supported. Putting them
7885dfe64dd3Smacallan    # here allows them to be overridden if necessary.
7886dfe64dd3Smacallan    runpath_var=LD_RUN_PATH
7887dfe64dd3Smacallan    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7888dfe64dd3Smacallan    export_dynamic_flag_spec='${wl}--export-dynamic'
7889dfe64dd3Smacallan    # ancient GNU ld didn't support --whole-archive et. al.
7890dfe64dd3Smacallan    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7891dfe64dd3Smacallan      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7892dfe64dd3Smacallan    else
7893dfe64dd3Smacallan      whole_archive_flag_spec=
7894dfe64dd3Smacallan    fi
7895dfe64dd3Smacallan    supports_anon_versioning=no
7896dfe64dd3Smacallan    case `$LD -v 2>&1` in
7897dfe64dd3Smacallan      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7898dfe64dd3Smacallan      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7899dfe64dd3Smacallan      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7900dfe64dd3Smacallan      *\ 2.11.*) ;; # other 2.11 versions
7901dfe64dd3Smacallan      *) supports_anon_versioning=yes ;;
7902dfe64dd3Smacallan    esac
7903dfe64dd3Smacallan
7904dfe64dd3Smacallan    # See if GNU ld supports shared libraries.
7905dfe64dd3Smacallan    case $host_os in
7906dfe64dd3Smacallan    aix[3-9]*)
7907dfe64dd3Smacallan      # On AIX/PPC, the GNU linker is very broken
7908dfe64dd3Smacallan      if test "$host_cpu" != ia64; then
7909dfe64dd3Smacallan	ld_shlibs=no
7910dfe64dd3Smacallan	cat <<_LT_EOF 1>&2
7911dfe64dd3Smacallan
7912dfe64dd3Smacallan*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7913dfe64dd3Smacallan*** to be unable to reliably create shared libraries on AIX.
7914dfe64dd3Smacallan*** Therefore, libtool is disabling shared libraries support.  If you
7915dfe64dd3Smacallan*** really care for shared libraries, you may want to modify your PATH
7916dfe64dd3Smacallan*** so that a non-GNU linker is found, and then restart.
7917dfe64dd3Smacallan
7918dfe64dd3Smacallan_LT_EOF
7919dfe64dd3Smacallan      fi
7920dfe64dd3Smacallan      ;;
7921dfe64dd3Smacallan
7922dfe64dd3Smacallan    amigaos*)
7923dfe64dd3Smacallan      case $host_cpu in
7924dfe64dd3Smacallan      powerpc)
7925dfe64dd3Smacallan            # see comment about AmigaOS4 .so support
7926dfe64dd3Smacallan            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7927dfe64dd3Smacallan            archive_expsym_cmds=''
7928dfe64dd3Smacallan        ;;
7929dfe64dd3Smacallan      m68k)
7930dfe64dd3Smacallan            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)'
7931dfe64dd3Smacallan            hardcode_libdir_flag_spec='-L$libdir'
7932dfe64dd3Smacallan            hardcode_minus_L=yes
7933dfe64dd3Smacallan        ;;
7934dfe64dd3Smacallan      esac
7935dfe64dd3Smacallan      ;;
7936dfe64dd3Smacallan
7937dfe64dd3Smacallan    beos*)
7938dfe64dd3Smacallan      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7939dfe64dd3Smacallan	allow_undefined_flag=unsupported
7940dfe64dd3Smacallan	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7941dfe64dd3Smacallan	# support --undefined.  This deserves some investigation.  FIXME
7942dfe64dd3Smacallan	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7943dfe64dd3Smacallan      else
7944dfe64dd3Smacallan	ld_shlibs=no
7945dfe64dd3Smacallan      fi
7946dfe64dd3Smacallan      ;;
7947dfe64dd3Smacallan
7948dfe64dd3Smacallan    cygwin* | mingw* | pw32* | cegcc*)
7949dfe64dd3Smacallan      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7950dfe64dd3Smacallan      # as there is no search path for DLLs.
7951dfe64dd3Smacallan      hardcode_libdir_flag_spec='-L$libdir'
7952dfe64dd3Smacallan      allow_undefined_flag=unsupported
7953dfe64dd3Smacallan      always_export_symbols=no
7954dfe64dd3Smacallan      enable_shared_with_static_runtimes=yes
7955dfe64dd3Smacallan      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7956dfe64dd3Smacallan
7957dfe64dd3Smacallan      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7958dfe64dd3Smacallan        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7959dfe64dd3Smacallan	# If the export-symbols file already is a .def file (1st line
7960dfe64dd3Smacallan	# is EXPORTS), use it as is; otherwise, prepend...
7961dfe64dd3Smacallan	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7962dfe64dd3Smacallan	  cp $export_symbols $output_objdir/$soname.def;
7963dfe64dd3Smacallan	else
7964dfe64dd3Smacallan	  echo EXPORTS > $output_objdir/$soname.def;
7965dfe64dd3Smacallan	  cat $export_symbols >> $output_objdir/$soname.def;
7966dfe64dd3Smacallan	fi~
7967dfe64dd3Smacallan	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7968dfe64dd3Smacallan      else
7969dfe64dd3Smacallan	ld_shlibs=no
7970dfe64dd3Smacallan      fi
7971dfe64dd3Smacallan      ;;
7972dfe64dd3Smacallan
7973dfe64dd3Smacallan    interix[3-9]*)
7974dfe64dd3Smacallan      hardcode_direct=no
7975dfe64dd3Smacallan      hardcode_shlibpath_var=no
7976dfe64dd3Smacallan      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7977dfe64dd3Smacallan      export_dynamic_flag_spec='${wl}-E'
7978dfe64dd3Smacallan      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7979dfe64dd3Smacallan      # Instead, shared libraries are loaded at an image base (0x10000000 by
7980dfe64dd3Smacallan      # default) and relocated if they conflict, which is a slow very memory
7981dfe64dd3Smacallan      # consuming and fragmenting process.  To avoid this, we pick a random,
7982dfe64dd3Smacallan      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7983dfe64dd3Smacallan      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7984dfe64dd3Smacallan      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7985dfe64dd3Smacallan      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'
7986dfe64dd3Smacallan      ;;
7987dfe64dd3Smacallan
7988dfe64dd3Smacallan    gnu* | linux* | tpf* | k*bsd*-gnu)
7989dfe64dd3Smacallan      tmp_diet=no
7990dfe64dd3Smacallan      if test "$host_os" = linux-dietlibc; then
7991dfe64dd3Smacallan	case $cc_basename in
7992dfe64dd3Smacallan	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7993dfe64dd3Smacallan	esac
7994dfe64dd3Smacallan      fi
7995dfe64dd3Smacallan      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7996dfe64dd3Smacallan	 && test "$tmp_diet" = no
7997dfe64dd3Smacallan      then
7998dfe64dd3Smacallan	tmp_addflag=
7999dfe64dd3Smacallan	tmp_sharedflag='-shared'
8000dfe64dd3Smacallan	case $cc_basename,$host_cpu in
8001dfe64dd3Smacallan        pgcc*)				# Portland Group C compiler
8002dfe64dd3Smacallan	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8003dfe64dd3Smacallan	  tmp_addflag=' $pic_flag'
8004dfe64dd3Smacallan	  ;;
8005dfe64dd3Smacallan	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8006dfe64dd3Smacallan	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8007dfe64dd3Smacallan	  tmp_addflag=' $pic_flag -Mnomain' ;;
8008dfe64dd3Smacallan	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8009dfe64dd3Smacallan	  tmp_addflag=' -i_dynamic' ;;
8010dfe64dd3Smacallan	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8011dfe64dd3Smacallan	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8012dfe64dd3Smacallan	ifc* | ifort*)			# Intel Fortran compiler
8013dfe64dd3Smacallan	  tmp_addflag=' -nofor_main' ;;
8014dfe64dd3Smacallan	lf95*)				# Lahey Fortran 8.1
8015dfe64dd3Smacallan	  whole_archive_flag_spec=
8016dfe64dd3Smacallan	  tmp_sharedflag='--shared' ;;
8017dfe64dd3Smacallan	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8018dfe64dd3Smacallan	  tmp_sharedflag='-qmkshrobj'
8019dfe64dd3Smacallan	  tmp_addflag= ;;
8020dfe64dd3Smacallan	esac
8021dfe64dd3Smacallan	case `$CC -V 2>&1 | sed 5q` in
8022dfe64dd3Smacallan	*Sun\ C*)			# Sun C 5.9
8023dfe64dd3Smacallan	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8024dfe64dd3Smacallan	  compiler_needs_object=yes
8025dfe64dd3Smacallan	  tmp_sharedflag='-G' ;;
8026dfe64dd3Smacallan	*Sun\ F*)			# Sun Fortran 8.3
8027dfe64dd3Smacallan	  tmp_sharedflag='-G' ;;
8028dfe64dd3Smacallan	esac
8029dfe64dd3Smacallan	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8030dfe64dd3Smacallan
8031dfe64dd3Smacallan        if test "x$supports_anon_versioning" = xyes; then
8032dfe64dd3Smacallan          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8033dfe64dd3Smacallan	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8034dfe64dd3Smacallan	    echo "local: *; };" >> $output_objdir/$libname.ver~
8035dfe64dd3Smacallan	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8036dfe64dd3Smacallan        fi
8037dfe64dd3Smacallan
8038dfe64dd3Smacallan	case $cc_basename in
8039dfe64dd3Smacallan	xlf*)
8040dfe64dd3Smacallan	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8041dfe64dd3Smacallan	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8042dfe64dd3Smacallan	  hardcode_libdir_flag_spec=
8043dfe64dd3Smacallan	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8044dfe64dd3Smacallan	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8045dfe64dd3Smacallan	  if test "x$supports_anon_versioning" = xyes; then
8046dfe64dd3Smacallan	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8047dfe64dd3Smacallan	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8048dfe64dd3Smacallan	      echo "local: *; };" >> $output_objdir/$libname.ver~
8049dfe64dd3Smacallan	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8050dfe64dd3Smacallan	  fi
8051dfe64dd3Smacallan	  ;;
8052dfe64dd3Smacallan	esac
8053dfe64dd3Smacallan      else
8054dfe64dd3Smacallan        ld_shlibs=no
8055dfe64dd3Smacallan      fi
8056dfe64dd3Smacallan      ;;
8057dfe64dd3Smacallan
8058dfe64dd3Smacallan    netbsd*)
8059dfe64dd3Smacallan      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8060dfe64dd3Smacallan	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8061dfe64dd3Smacallan	wlarc=
8062dfe64dd3Smacallan      else
8063dfe64dd3Smacallan	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8064dfe64dd3Smacallan	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8065dfe64dd3Smacallan      fi
8066dfe64dd3Smacallan      ;;
8067dfe64dd3Smacallan
8068dfe64dd3Smacallan    solaris*)
8069dfe64dd3Smacallan      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8070dfe64dd3Smacallan	ld_shlibs=no
8071dfe64dd3Smacallan	cat <<_LT_EOF 1>&2
8072dfe64dd3Smacallan
8073dfe64dd3Smacallan*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8074dfe64dd3Smacallan*** create shared libraries on Solaris systems.  Therefore, libtool
8075dfe64dd3Smacallan*** is disabling shared libraries support.  We urge you to upgrade GNU
8076dfe64dd3Smacallan*** binutils to release 2.9.1 or newer.  Another option is to modify
8077dfe64dd3Smacallan*** your PATH or compiler configuration so that the native linker is
8078dfe64dd3Smacallan*** used, and then restart.
8079dfe64dd3Smacallan
8080dfe64dd3Smacallan_LT_EOF
8081dfe64dd3Smacallan      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8082dfe64dd3Smacallan	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8083dfe64dd3Smacallan	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8084dfe64dd3Smacallan      else
8085dfe64dd3Smacallan	ld_shlibs=no
8086dfe64dd3Smacallan      fi
8087dfe64dd3Smacallan      ;;
8088dfe64dd3Smacallan
8089dfe64dd3Smacallan    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8090dfe64dd3Smacallan      case `$LD -v 2>&1` in
8091dfe64dd3Smacallan        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8092dfe64dd3Smacallan	ld_shlibs=no
8093dfe64dd3Smacallan	cat <<_LT_EOF 1>&2
8094dfe64dd3Smacallan
8095dfe64dd3Smacallan*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8096dfe64dd3Smacallan*** reliably create shared libraries on SCO systems.  Therefore, libtool
8097dfe64dd3Smacallan*** is disabling shared libraries support.  We urge you to upgrade GNU
8098dfe64dd3Smacallan*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8099dfe64dd3Smacallan*** your PATH or compiler configuration so that the native linker is
8100dfe64dd3Smacallan*** used, and then restart.
8101dfe64dd3Smacallan
8102dfe64dd3Smacallan_LT_EOF
8103dfe64dd3Smacallan	;;
8104dfe64dd3Smacallan	*)
8105dfe64dd3Smacallan	  # For security reasons, it is highly recommended that you always
8106dfe64dd3Smacallan	  # use absolute paths for naming shared libraries, and exclude the
8107dfe64dd3Smacallan	  # DT_RUNPATH tag from executables and libraries.  But doing so
8108dfe64dd3Smacallan	  # requires that you compile everything twice, which is a pain.
8109dfe64dd3Smacallan	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8110dfe64dd3Smacallan	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8111dfe64dd3Smacallan	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112dfe64dd3Smacallan	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8113dfe64dd3Smacallan	  else
8114dfe64dd3Smacallan	    ld_shlibs=no
8115dfe64dd3Smacallan	  fi
8116dfe64dd3Smacallan	;;
8117dfe64dd3Smacallan      esac
8118dfe64dd3Smacallan      ;;
8119dfe64dd3Smacallan
8120dfe64dd3Smacallan    sunos4*)
8121dfe64dd3Smacallan      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8122dfe64dd3Smacallan      wlarc=
8123dfe64dd3Smacallan      hardcode_direct=yes
8124dfe64dd3Smacallan      hardcode_shlibpath_var=no
8125dfe64dd3Smacallan      ;;
8126dfe64dd3Smacallan
8127dfe64dd3Smacallan    *)
8128dfe64dd3Smacallan      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8129dfe64dd3Smacallan	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130dfe64dd3Smacallan	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8131dfe64dd3Smacallan      else
8132dfe64dd3Smacallan	ld_shlibs=no
8133dfe64dd3Smacallan      fi
8134dfe64dd3Smacallan      ;;
8135dfe64dd3Smacallan    esac
8136dfe64dd3Smacallan
8137dfe64dd3Smacallan    if test "$ld_shlibs" = no; then
8138dfe64dd3Smacallan      runpath_var=
8139dfe64dd3Smacallan      hardcode_libdir_flag_spec=
8140dfe64dd3Smacallan      export_dynamic_flag_spec=
8141dfe64dd3Smacallan      whole_archive_flag_spec=
8142dfe64dd3Smacallan    fi
8143dfe64dd3Smacallan  else
8144dfe64dd3Smacallan    # PORTME fill in a description of your system's linker (not GNU ld)
8145dfe64dd3Smacallan    case $host_os in
8146dfe64dd3Smacallan    aix3*)
8147dfe64dd3Smacallan      allow_undefined_flag=unsupported
8148dfe64dd3Smacallan      always_export_symbols=yes
8149dfe64dd3Smacallan      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'
8150dfe64dd3Smacallan      # Note: this linker hardcodes the directories in LIBPATH if there
8151dfe64dd3Smacallan      # are no directories specified by -L.
8152dfe64dd3Smacallan      hardcode_minus_L=yes
8153dfe64dd3Smacallan      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8154dfe64dd3Smacallan	# Neither direct hardcoding nor static linking is supported with a
8155dfe64dd3Smacallan	# broken collect2.
8156dfe64dd3Smacallan	hardcode_direct=unsupported
8157dfe64dd3Smacallan      fi
8158dfe64dd3Smacallan      ;;
8159dfe64dd3Smacallan
8160dfe64dd3Smacallan    aix[4-9]*)
8161dfe64dd3Smacallan      if test "$host_cpu" = ia64; then
8162dfe64dd3Smacallan	# On IA64, the linker does run time linking by default, so we don't
8163dfe64dd3Smacallan	# have to do anything special.
8164dfe64dd3Smacallan	aix_use_runtimelinking=no
8165dfe64dd3Smacallan	exp_sym_flag='-Bexport'
8166dfe64dd3Smacallan	no_entry_flag=""
8167dfe64dd3Smacallan      else
8168dfe64dd3Smacallan	# If we're using GNU nm, then we don't want the "-C" option.
8169dfe64dd3Smacallan	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8170dfe64dd3Smacallan	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8171dfe64dd3Smacallan	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8172dfe64dd3Smacallan	else
8173dfe64dd3Smacallan	  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'
8174dfe64dd3Smacallan	fi
8175dfe64dd3Smacallan	aix_use_runtimelinking=no
8176dfe64dd3Smacallan
8177dfe64dd3Smacallan	# Test if we are trying to use run time linking or normal
8178dfe64dd3Smacallan	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8179dfe64dd3Smacallan	# need to do runtime linking.
8180dfe64dd3Smacallan	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8181dfe64dd3Smacallan	  for ld_flag in $LDFLAGS; do
8182dfe64dd3Smacallan	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8183dfe64dd3Smacallan	    aix_use_runtimelinking=yes
8184dfe64dd3Smacallan	    break
8185dfe64dd3Smacallan	  fi
8186dfe64dd3Smacallan	  done
8187dfe64dd3Smacallan	  ;;
8188dfe64dd3Smacallan	esac
8189dfe64dd3Smacallan
8190dfe64dd3Smacallan	exp_sym_flag='-bexport'
8191dfe64dd3Smacallan	no_entry_flag='-bnoentry'
8192dfe64dd3Smacallan      fi
8193dfe64dd3Smacallan
8194dfe64dd3Smacallan      # When large executables or shared objects are built, AIX ld can
8195dfe64dd3Smacallan      # have problems creating the table of contents.  If linking a library
8196dfe64dd3Smacallan      # or program results in "error TOC overflow" add -mminimal-toc to
8197dfe64dd3Smacallan      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8198dfe64dd3Smacallan      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8199dfe64dd3Smacallan
8200dfe64dd3Smacallan      archive_cmds=''
8201dfe64dd3Smacallan      hardcode_direct=yes
8202dfe64dd3Smacallan      hardcode_direct_absolute=yes
8203dfe64dd3Smacallan      hardcode_libdir_separator=':'
8204dfe64dd3Smacallan      link_all_deplibs=yes
8205dfe64dd3Smacallan      file_list_spec='${wl}-f,'
8206dfe64dd3Smacallan
8207dfe64dd3Smacallan      if test "$GCC" = yes; then
8208dfe64dd3Smacallan	case $host_os in aix4.[012]|aix4.[012].*)
8209dfe64dd3Smacallan	# We only want to do this on AIX 4.2 and lower, the check
8210dfe64dd3Smacallan	# below for broken collect2 doesn't work under 4.3+
8211dfe64dd3Smacallan	  collect2name=`${CC} -print-prog-name=collect2`
8212dfe64dd3Smacallan	  if test -f "$collect2name" &&
8213dfe64dd3Smacallan	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8214dfe64dd3Smacallan	  then
8215dfe64dd3Smacallan	  # We have reworked collect2
8216dfe64dd3Smacallan	  :
8217dfe64dd3Smacallan	  else
8218dfe64dd3Smacallan	  # We have old collect2
8219dfe64dd3Smacallan	  hardcode_direct=unsupported
8220dfe64dd3Smacallan	  # It fails to find uninstalled libraries when the uninstalled
8221dfe64dd3Smacallan	  # path is not listed in the libpath.  Setting hardcode_minus_L
8222dfe64dd3Smacallan	  # to unsupported forces relinking
8223dfe64dd3Smacallan	  hardcode_minus_L=yes
8224dfe64dd3Smacallan	  hardcode_libdir_flag_spec='-L$libdir'
8225dfe64dd3Smacallan	  hardcode_libdir_separator=
8226dfe64dd3Smacallan	  fi
8227dfe64dd3Smacallan	  ;;
8228dfe64dd3Smacallan	esac
8229dfe64dd3Smacallan	shared_flag='-shared'
8230dfe64dd3Smacallan	if test "$aix_use_runtimelinking" = yes; then
8231dfe64dd3Smacallan	  shared_flag="$shared_flag "'${wl}-G'
8232dfe64dd3Smacallan	fi
8233dfe64dd3Smacallan      else
8234dfe64dd3Smacallan	# not using gcc
8235dfe64dd3Smacallan	if test "$host_cpu" = ia64; then
8236dfe64dd3Smacallan	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8237dfe64dd3Smacallan	# chokes on -Wl,-G. The following line is correct:
8238dfe64dd3Smacallan	  shared_flag='-G'
8239dfe64dd3Smacallan	else
8240dfe64dd3Smacallan	  if test "$aix_use_runtimelinking" = yes; then
8241dfe64dd3Smacallan	    shared_flag='${wl}-G'
8242dfe64dd3Smacallan	  else
8243dfe64dd3Smacallan	    shared_flag='${wl}-bM:SRE'
8244dfe64dd3Smacallan	  fi
8245dfe64dd3Smacallan	fi
8246dfe64dd3Smacallan      fi
8247dfe64dd3Smacallan
8248dfe64dd3Smacallan      export_dynamic_flag_spec='${wl}-bexpall'
8249dfe64dd3Smacallan      # It seems that -bexpall does not export symbols beginning with
8250dfe64dd3Smacallan      # underscore (_), so it is better to generate a list of symbols to export.
8251dfe64dd3Smacallan      always_export_symbols=yes
8252dfe64dd3Smacallan      if test "$aix_use_runtimelinking" = yes; then
8253dfe64dd3Smacallan	# Warning - without using the other runtime loading flags (-brtl),
8254dfe64dd3Smacallan	# -berok will link without error, but may produce a broken library.
8255dfe64dd3Smacallan	allow_undefined_flag='-berok'
8256dfe64dd3Smacallan        # Determine the default libpath from the value encoded in an
8257dfe64dd3Smacallan        # empty executable.
8258dfe64dd3Smacallan        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259dfe64dd3Smacallan/* end confdefs.h.  */
8260dfe64dd3Smacallan
8261dfe64dd3Smacallanint
8262dfe64dd3Smacallanmain ()
8263dfe64dd3Smacallan{
8264dfe64dd3Smacallan
8265dfe64dd3Smacallan  ;
8266dfe64dd3Smacallan  return 0;
8267dfe64dd3Smacallan}
8268dfe64dd3Smacallan_ACEOF
8269dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
8270dfe64dd3Smacallan
8271dfe64dd3Smacallanlt_aix_libpath_sed='
8272dfe64dd3Smacallan    /Import File Strings/,/^$/ {
8273dfe64dd3Smacallan	/^0/ {
8274dfe64dd3Smacallan	    s/^0  *\(.*\)$/\1/
8275dfe64dd3Smacallan	    p
8276dfe64dd3Smacallan	}
8277dfe64dd3Smacallan    }'
8278dfe64dd3Smacallanaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8279dfe64dd3Smacallan# Check for a 64-bit object if we didn't find anything.
8280dfe64dd3Smacallanif test -z "$aix_libpath"; then
8281dfe64dd3Smacallan  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8282dfe64dd3Smacallanfi
8283dfe64dd3Smacallanfi
8284dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
8285dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
8286dfe64dd3Smacallanif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8287dfe64dd3Smacallan
8288dfe64dd3Smacallan        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8289dfe64dd3Smacallan        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8290dfe64dd3Smacallan      else
8291dfe64dd3Smacallan	if test "$host_cpu" = ia64; then
8292dfe64dd3Smacallan	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8293dfe64dd3Smacallan	  allow_undefined_flag="-z nodefs"
8294dfe64dd3Smacallan	  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"
8295dfe64dd3Smacallan	else
8296dfe64dd3Smacallan	 # Determine the default libpath from the value encoded in an
8297dfe64dd3Smacallan	 # empty executable.
8298dfe64dd3Smacallan	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299dfe64dd3Smacallan/* end confdefs.h.  */
8300dfe64dd3Smacallan
8301dfe64dd3Smacallanint
8302dfe64dd3Smacallanmain ()
8303dfe64dd3Smacallan{
8304dfe64dd3Smacallan
8305dfe64dd3Smacallan  ;
8306dfe64dd3Smacallan  return 0;
8307dfe64dd3Smacallan}
8308dfe64dd3Smacallan_ACEOF
8309dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
8310dfe64dd3Smacallan
8311dfe64dd3Smacallanlt_aix_libpath_sed='
8312dfe64dd3Smacallan    /Import File Strings/,/^$/ {
8313dfe64dd3Smacallan	/^0/ {
8314dfe64dd3Smacallan	    s/^0  *\(.*\)$/\1/
8315dfe64dd3Smacallan	    p
8316dfe64dd3Smacallan	}
8317dfe64dd3Smacallan    }'
8318dfe64dd3Smacallanaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8319dfe64dd3Smacallan# Check for a 64-bit object if we didn't find anything.
8320dfe64dd3Smacallanif test -z "$aix_libpath"; then
8321dfe64dd3Smacallan  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8322dfe64dd3Smacallanfi
8323dfe64dd3Smacallanfi
8324dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
8325dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
8326dfe64dd3Smacallanif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8327dfe64dd3Smacallan
8328dfe64dd3Smacallan	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8329dfe64dd3Smacallan	  # Warning - without using the other run time loading flags,
8330dfe64dd3Smacallan	  # -berok will link without error, but may produce a broken library.
8331dfe64dd3Smacallan	  no_undefined_flag=' ${wl}-bernotok'
8332dfe64dd3Smacallan	  allow_undefined_flag=' ${wl}-berok'
8333dfe64dd3Smacallan	  # Exported symbols can be pulled into shared objects from archives
8334dfe64dd3Smacallan	  whole_archive_flag_spec='$convenience'
8335dfe64dd3Smacallan	  archive_cmds_need_lc=yes
8336dfe64dd3Smacallan	  # This is similar to how AIX traditionally builds its shared libraries.
8337dfe64dd3Smacallan	  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'
8338dfe64dd3Smacallan	fi
8339dfe64dd3Smacallan      fi
8340dfe64dd3Smacallan      ;;
8341dfe64dd3Smacallan
8342dfe64dd3Smacallan    amigaos*)
8343dfe64dd3Smacallan      case $host_cpu in
8344dfe64dd3Smacallan      powerpc)
8345dfe64dd3Smacallan            # see comment about AmigaOS4 .so support
8346dfe64dd3Smacallan            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347dfe64dd3Smacallan            archive_expsym_cmds=''
8348dfe64dd3Smacallan        ;;
8349dfe64dd3Smacallan      m68k)
8350dfe64dd3Smacallan            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)'
8351dfe64dd3Smacallan            hardcode_libdir_flag_spec='-L$libdir'
8352dfe64dd3Smacallan            hardcode_minus_L=yes
8353dfe64dd3Smacallan        ;;
8354dfe64dd3Smacallan      esac
8355dfe64dd3Smacallan      ;;
8356dfe64dd3Smacallan
8357dfe64dd3Smacallan    bsdi[45]*)
8358dfe64dd3Smacallan      export_dynamic_flag_spec=-rdynamic
8359dfe64dd3Smacallan      ;;
8360dfe64dd3Smacallan
8361dfe64dd3Smacallan    cygwin* | mingw* | pw32* | cegcc*)
8362dfe64dd3Smacallan      # When not using gcc, we currently assume that we are using
8363dfe64dd3Smacallan      # Microsoft Visual C++.
8364dfe64dd3Smacallan      # hardcode_libdir_flag_spec is actually meaningless, as there is
8365dfe64dd3Smacallan      # no search path for DLLs.
8366dfe64dd3Smacallan      hardcode_libdir_flag_spec=' '
8367dfe64dd3Smacallan      allow_undefined_flag=unsupported
8368dfe64dd3Smacallan      # Tell ltmain to make .lib files, not .a files.
8369dfe64dd3Smacallan      libext=lib
8370dfe64dd3Smacallan      # Tell ltmain to make .dll files, not .so files.
8371dfe64dd3Smacallan      shrext_cmds=".dll"
8372dfe64dd3Smacallan      # FIXME: Setting linknames here is a bad hack.
8373dfe64dd3Smacallan      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8374dfe64dd3Smacallan      # The linker will automatically build a .lib file if we build a DLL.
8375dfe64dd3Smacallan      old_archive_from_new_cmds='true'
8376dfe64dd3Smacallan      # FIXME: Should let the user specify the lib program.
8377dfe64dd3Smacallan      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8378dfe64dd3Smacallan      fix_srcfile_path='`cygpath -w "$srcfile"`'
8379dfe64dd3Smacallan      enable_shared_with_static_runtimes=yes
8380dfe64dd3Smacallan      ;;
8381dfe64dd3Smacallan
8382dfe64dd3Smacallan    darwin* | rhapsody*)
8383dfe64dd3Smacallan
8384dfe64dd3Smacallan
8385dfe64dd3Smacallan  archive_cmds_need_lc=no
8386dfe64dd3Smacallan  hardcode_direct=no
8387dfe64dd3Smacallan  hardcode_automatic=yes
8388dfe64dd3Smacallan  hardcode_shlibpath_var=unsupported
8389dfe64dd3Smacallan  whole_archive_flag_spec=''
8390dfe64dd3Smacallan  link_all_deplibs=yes
8391dfe64dd3Smacallan  allow_undefined_flag="$_lt_dar_allow_undefined"
8392dfe64dd3Smacallan  case $cc_basename in
8393dfe64dd3Smacallan     ifort*) _lt_dar_can_shared=yes ;;
8394dfe64dd3Smacallan     *) _lt_dar_can_shared=$GCC ;;
8395dfe64dd3Smacallan  esac
8396dfe64dd3Smacallan  if test "$_lt_dar_can_shared" = "yes"; then
8397dfe64dd3Smacallan    output_verbose_link_cmd=echo
8398dfe64dd3Smacallan    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8399dfe64dd3Smacallan    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8400dfe64dd3Smacallan    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}"
8401dfe64dd3Smacallan    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}"
8402dfe64dd3Smacallan
8403dfe64dd3Smacallan  else
8404dfe64dd3Smacallan  ld_shlibs=no
8405dfe64dd3Smacallan  fi
8406dfe64dd3Smacallan
8407dfe64dd3Smacallan      ;;
8408dfe64dd3Smacallan
8409dfe64dd3Smacallan    dgux*)
8410dfe64dd3Smacallan      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411dfe64dd3Smacallan      hardcode_libdir_flag_spec='-L$libdir'
8412dfe64dd3Smacallan      hardcode_shlibpath_var=no
8413dfe64dd3Smacallan      ;;
8414dfe64dd3Smacallan
8415dfe64dd3Smacallan    freebsd1*)
8416dfe64dd3Smacallan      ld_shlibs=no
8417dfe64dd3Smacallan      ;;
8418dfe64dd3Smacallan
8419dfe64dd3Smacallan    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8420dfe64dd3Smacallan    # support.  Future versions do this automatically, but an explicit c++rt0.o
8421dfe64dd3Smacallan    # does not break anything, and helps significantly (at the cost of a little
8422dfe64dd3Smacallan    # extra space).
8423dfe64dd3Smacallan    freebsd2.2*)
8424dfe64dd3Smacallan      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8425dfe64dd3Smacallan      hardcode_libdir_flag_spec='-R$libdir'
8426dfe64dd3Smacallan      hardcode_direct=yes
8427dfe64dd3Smacallan      hardcode_shlibpath_var=no
8428dfe64dd3Smacallan      ;;
8429dfe64dd3Smacallan
8430dfe64dd3Smacallan    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8431dfe64dd3Smacallan    freebsd2*)
8432dfe64dd3Smacallan      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8433dfe64dd3Smacallan      hardcode_direct=yes
8434dfe64dd3Smacallan      hardcode_minus_L=yes
8435dfe64dd3Smacallan      hardcode_shlibpath_var=no
8436dfe64dd3Smacallan      ;;
8437dfe64dd3Smacallan
8438dfe64dd3Smacallan    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8439dfe64dd3Smacallan    freebsd* | dragonfly*)
8440dfe64dd3Smacallan      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8441dfe64dd3Smacallan      hardcode_libdir_flag_spec='-R$libdir'
8442dfe64dd3Smacallan      hardcode_direct=yes
8443dfe64dd3Smacallan      hardcode_shlibpath_var=no
8444dfe64dd3Smacallan      ;;
8445dfe64dd3Smacallan
8446dfe64dd3Smacallan    hpux9*)
8447dfe64dd3Smacallan      if test "$GCC" = yes; then
8448dfe64dd3Smacallan	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8449dfe64dd3Smacallan      else
8450dfe64dd3Smacallan	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'
8451dfe64dd3Smacallan      fi
8452dfe64dd3Smacallan      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8453dfe64dd3Smacallan      hardcode_libdir_separator=:
8454dfe64dd3Smacallan      hardcode_direct=yes
8455dfe64dd3Smacallan
8456dfe64dd3Smacallan      # hardcode_minus_L: Not really in the search PATH,
8457dfe64dd3Smacallan      # but as the default location of the library.
8458dfe64dd3Smacallan      hardcode_minus_L=yes
8459dfe64dd3Smacallan      export_dynamic_flag_spec='${wl}-E'
8460dfe64dd3Smacallan      ;;
8461dfe64dd3Smacallan
8462dfe64dd3Smacallan    hpux10*)
8463dfe64dd3Smacallan      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8464dfe64dd3Smacallan	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8465dfe64dd3Smacallan      else
8466dfe64dd3Smacallan	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8467dfe64dd3Smacallan      fi
8468dfe64dd3Smacallan      if test "$with_gnu_ld" = no; then
8469dfe64dd3Smacallan	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8470dfe64dd3Smacallan	hardcode_libdir_flag_spec_ld='+b $libdir'
8471dfe64dd3Smacallan	hardcode_libdir_separator=:
8472dfe64dd3Smacallan	hardcode_direct=yes
8473dfe64dd3Smacallan	hardcode_direct_absolute=yes
8474dfe64dd3Smacallan	export_dynamic_flag_spec='${wl}-E'
8475dfe64dd3Smacallan	# hardcode_minus_L: Not really in the search PATH,
8476dfe64dd3Smacallan	# but as the default location of the library.
8477dfe64dd3Smacallan	hardcode_minus_L=yes
8478dfe64dd3Smacallan      fi
8479dfe64dd3Smacallan      ;;
8480dfe64dd3Smacallan
8481dfe64dd3Smacallan    hpux11*)
8482dfe64dd3Smacallan      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8483dfe64dd3Smacallan	case $host_cpu in
8484dfe64dd3Smacallan	hppa*64*)
8485dfe64dd3Smacallan	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8486dfe64dd3Smacallan	  ;;
8487dfe64dd3Smacallan	ia64*)
8488dfe64dd3Smacallan	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8489dfe64dd3Smacallan	  ;;
8490dfe64dd3Smacallan	*)
8491dfe64dd3Smacallan	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8492dfe64dd3Smacallan	  ;;
8493dfe64dd3Smacallan	esac
8494dfe64dd3Smacallan      else
8495dfe64dd3Smacallan	case $host_cpu in
8496dfe64dd3Smacallan	hppa*64*)
8497dfe64dd3Smacallan	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8498dfe64dd3Smacallan	  ;;
8499dfe64dd3Smacallan	ia64*)
8500dfe64dd3Smacallan	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8501dfe64dd3Smacallan	  ;;
8502dfe64dd3Smacallan	*)
8503dfe64dd3Smacallan	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8504dfe64dd3Smacallan	  ;;
8505dfe64dd3Smacallan	esac
8506dfe64dd3Smacallan      fi
8507dfe64dd3Smacallan      if test "$with_gnu_ld" = no; then
8508dfe64dd3Smacallan	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8509dfe64dd3Smacallan	hardcode_libdir_separator=:
8510dfe64dd3Smacallan
8511dfe64dd3Smacallan	case $host_cpu in
8512dfe64dd3Smacallan	hppa*64*|ia64*)
8513dfe64dd3Smacallan	  hardcode_direct=no
8514dfe64dd3Smacallan	  hardcode_shlibpath_var=no
8515dfe64dd3Smacallan	  ;;
8516dfe64dd3Smacallan	*)
8517dfe64dd3Smacallan	  hardcode_direct=yes
8518dfe64dd3Smacallan	  hardcode_direct_absolute=yes
8519dfe64dd3Smacallan	  export_dynamic_flag_spec='${wl}-E'
8520dfe64dd3Smacallan
8521dfe64dd3Smacallan	  # hardcode_minus_L: Not really in the search PATH,
8522dfe64dd3Smacallan	  # but as the default location of the library.
8523dfe64dd3Smacallan	  hardcode_minus_L=yes
8524dfe64dd3Smacallan	  ;;
8525dfe64dd3Smacallan	esac
8526dfe64dd3Smacallan      fi
8527dfe64dd3Smacallan      ;;
8528dfe64dd3Smacallan
8529dfe64dd3Smacallan    irix5* | irix6* | nonstopux*)
8530dfe64dd3Smacallan      if test "$GCC" = yes; then
8531dfe64dd3Smacallan	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8532dfe64dd3Smacallan	# Try to use the -exported_symbol ld option, if it does not
8533dfe64dd3Smacallan	# work, assume that -exports_file does not work either and
8534dfe64dd3Smacallan	# implicitly export all symbols.
8535dfe64dd3Smacallan        save_LDFLAGS="$LDFLAGS"
8536dfe64dd3Smacallan        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8537dfe64dd3Smacallan        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538dfe64dd3Smacallan/* end confdefs.h.  */
8539dfe64dd3Smacallanint foo(void) {}
8540dfe64dd3Smacallan_ACEOF
8541dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
8542dfe64dd3Smacallan  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8543dfe64dd3Smacallan
8544dfe64dd3Smacallanfi
8545dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
8546dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
8547dfe64dd3Smacallan        LDFLAGS="$save_LDFLAGS"
8548dfe64dd3Smacallan      else
8549dfe64dd3Smacallan	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8550dfe64dd3Smacallan	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8551dfe64dd3Smacallan      fi
8552dfe64dd3Smacallan      archive_cmds_need_lc='no'
8553dfe64dd3Smacallan      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8554dfe64dd3Smacallan      hardcode_libdir_separator=:
8555dfe64dd3Smacallan      inherit_rpath=yes
8556dfe64dd3Smacallan      link_all_deplibs=yes
8557dfe64dd3Smacallan      ;;
8558dfe64dd3Smacallan
8559dfe64dd3Smacallan    netbsd*)
8560dfe64dd3Smacallan      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8561dfe64dd3Smacallan	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8562dfe64dd3Smacallan      else
8563dfe64dd3Smacallan	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8564dfe64dd3Smacallan      fi
8565dfe64dd3Smacallan      hardcode_libdir_flag_spec='-R$libdir'
8566dfe64dd3Smacallan      hardcode_direct=yes
8567dfe64dd3Smacallan      hardcode_shlibpath_var=no
8568dfe64dd3Smacallan      ;;
8569dfe64dd3Smacallan
8570dfe64dd3Smacallan    newsos6)
8571dfe64dd3Smacallan      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8572dfe64dd3Smacallan      hardcode_direct=yes
8573dfe64dd3Smacallan      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8574dfe64dd3Smacallan      hardcode_libdir_separator=:
8575dfe64dd3Smacallan      hardcode_shlibpath_var=no
8576dfe64dd3Smacallan      ;;
8577dfe64dd3Smacallan
8578dfe64dd3Smacallan    *nto* | *qnx*)
8579dfe64dd3Smacallan      ;;
8580dfe64dd3Smacallan
8581dfe64dd3Smacallan    openbsd*)
8582dfe64dd3Smacallan      if test -f /usr/libexec/ld.so; then
8583dfe64dd3Smacallan	hardcode_direct=yes
8584dfe64dd3Smacallan	hardcode_shlibpath_var=no
8585dfe64dd3Smacallan	hardcode_direct_absolute=yes
8586dfe64dd3Smacallan	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8587dfe64dd3Smacallan	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8588dfe64dd3Smacallan	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8589dfe64dd3Smacallan	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8590dfe64dd3Smacallan	  export_dynamic_flag_spec='${wl}-E'
8591dfe64dd3Smacallan	else
8592dfe64dd3Smacallan	  case $host_os in
8593dfe64dd3Smacallan	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8594dfe64dd3Smacallan	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8595dfe64dd3Smacallan	     hardcode_libdir_flag_spec='-R$libdir'
8596dfe64dd3Smacallan	     ;;
8597dfe64dd3Smacallan	   *)
8598dfe64dd3Smacallan	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8599dfe64dd3Smacallan	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8600dfe64dd3Smacallan	     ;;
8601dfe64dd3Smacallan	  esac
8602dfe64dd3Smacallan	fi
8603dfe64dd3Smacallan      else
8604dfe64dd3Smacallan	ld_shlibs=no
8605dfe64dd3Smacallan      fi
8606dfe64dd3Smacallan      ;;
8607dfe64dd3Smacallan
8608dfe64dd3Smacallan    os2*)
8609dfe64dd3Smacallan      hardcode_libdir_flag_spec='-L$libdir'
8610dfe64dd3Smacallan      hardcode_minus_L=yes
8611dfe64dd3Smacallan      allow_undefined_flag=unsupported
8612dfe64dd3Smacallan      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'
8613dfe64dd3Smacallan      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8614dfe64dd3Smacallan      ;;
8615dfe64dd3Smacallan
8616dfe64dd3Smacallan    osf3*)
8617dfe64dd3Smacallan      if test "$GCC" = yes; then
8618dfe64dd3Smacallan	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8619dfe64dd3Smacallan	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8620dfe64dd3Smacallan      else
8621dfe64dd3Smacallan	allow_undefined_flag=' -expect_unresolved \*'
8622dfe64dd3Smacallan	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8623dfe64dd3Smacallan      fi
8624dfe64dd3Smacallan      archive_cmds_need_lc='no'
8625dfe64dd3Smacallan      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626dfe64dd3Smacallan      hardcode_libdir_separator=:
8627dfe64dd3Smacallan      ;;
8628dfe64dd3Smacallan
8629dfe64dd3Smacallan    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8630dfe64dd3Smacallan      if test "$GCC" = yes; then
8631dfe64dd3Smacallan	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8632dfe64dd3Smacallan	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8633dfe64dd3Smacallan	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634dfe64dd3Smacallan      else
8635dfe64dd3Smacallan	allow_undefined_flag=' -expect_unresolved \*'
8636dfe64dd3Smacallan	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8637dfe64dd3Smacallan	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~
8638dfe64dd3Smacallan	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8639dfe64dd3Smacallan
8640dfe64dd3Smacallan	# Both c and cxx compiler support -rpath directly
8641dfe64dd3Smacallan	hardcode_libdir_flag_spec='-rpath $libdir'
8642dfe64dd3Smacallan      fi
8643dfe64dd3Smacallan      archive_cmds_need_lc='no'
8644dfe64dd3Smacallan      hardcode_libdir_separator=:
8645dfe64dd3Smacallan      ;;
8646dfe64dd3Smacallan
8647dfe64dd3Smacallan    solaris*)
8648dfe64dd3Smacallan      no_undefined_flag=' -z defs'
8649dfe64dd3Smacallan      if test "$GCC" = yes; then
8650dfe64dd3Smacallan	wlarc='${wl}'
8651dfe64dd3Smacallan	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8652dfe64dd3Smacallan	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8653dfe64dd3Smacallan	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8654dfe64dd3Smacallan      else
8655dfe64dd3Smacallan	case `$CC -V 2>&1` in
8656dfe64dd3Smacallan	*"Compilers 5.0"*)
8657dfe64dd3Smacallan	  wlarc=''
8658dfe64dd3Smacallan	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8659dfe64dd3Smacallan	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8660dfe64dd3Smacallan	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8661dfe64dd3Smacallan	  ;;
8662dfe64dd3Smacallan	*)
8663dfe64dd3Smacallan	  wlarc='${wl}'
8664dfe64dd3Smacallan	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8665dfe64dd3Smacallan	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8666dfe64dd3Smacallan	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8667dfe64dd3Smacallan	  ;;
8668dfe64dd3Smacallan	esac
8669dfe64dd3Smacallan      fi
8670dfe64dd3Smacallan      hardcode_libdir_flag_spec='-R$libdir'
8671dfe64dd3Smacallan      hardcode_shlibpath_var=no
8672dfe64dd3Smacallan      case $host_os in
8673dfe64dd3Smacallan      solaris2.[0-5] | solaris2.[0-5].*) ;;
8674dfe64dd3Smacallan      *)
8675dfe64dd3Smacallan	# The compiler driver will combine and reorder linker options,
8676dfe64dd3Smacallan	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8677dfe64dd3Smacallan	# but is careful enough not to reorder.
8678dfe64dd3Smacallan	# Supported since Solaris 2.6 (maybe 2.5.1?)
8679dfe64dd3Smacallan	if test "$GCC" = yes; then
8680dfe64dd3Smacallan	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8681dfe64dd3Smacallan	else
8682dfe64dd3Smacallan	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8683dfe64dd3Smacallan	fi
8684dfe64dd3Smacallan	;;
8685dfe64dd3Smacallan      esac
8686dfe64dd3Smacallan      link_all_deplibs=yes
8687dfe64dd3Smacallan      ;;
8688dfe64dd3Smacallan
8689dfe64dd3Smacallan    sunos4*)
8690dfe64dd3Smacallan      if test "x$host_vendor" = xsequent; then
8691dfe64dd3Smacallan	# Use $CC to link under sequent, because it throws in some extra .o
8692dfe64dd3Smacallan	# files that make .init and .fini sections work.
8693dfe64dd3Smacallan	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8694dfe64dd3Smacallan      else
8695dfe64dd3Smacallan	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8696dfe64dd3Smacallan      fi
8697dfe64dd3Smacallan      hardcode_libdir_flag_spec='-L$libdir'
8698dfe64dd3Smacallan      hardcode_direct=yes
8699dfe64dd3Smacallan      hardcode_minus_L=yes
8700dfe64dd3Smacallan      hardcode_shlibpath_var=no
8701dfe64dd3Smacallan      ;;
8702dfe64dd3Smacallan
8703dfe64dd3Smacallan    sysv4)
8704dfe64dd3Smacallan      case $host_vendor in
8705dfe64dd3Smacallan	sni)
8706dfe64dd3Smacallan	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8707dfe64dd3Smacallan	  hardcode_direct=yes # is this really true???
8708dfe64dd3Smacallan	;;
8709dfe64dd3Smacallan	siemens)
8710dfe64dd3Smacallan	  ## LD is ld it makes a PLAMLIB
8711dfe64dd3Smacallan	  ## CC just makes a GrossModule.
8712dfe64dd3Smacallan	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8713dfe64dd3Smacallan	  reload_cmds='$CC -r -o $output$reload_objs'
8714dfe64dd3Smacallan	  hardcode_direct=no
8715dfe64dd3Smacallan        ;;
8716dfe64dd3Smacallan	motorola)
8717dfe64dd3Smacallan	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718dfe64dd3Smacallan	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8719dfe64dd3Smacallan	;;
8720dfe64dd3Smacallan      esac
8721dfe64dd3Smacallan      runpath_var='LD_RUN_PATH'
8722dfe64dd3Smacallan      hardcode_shlibpath_var=no
8723dfe64dd3Smacallan      ;;
8724dfe64dd3Smacallan
8725dfe64dd3Smacallan    sysv4.3*)
8726dfe64dd3Smacallan      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8727dfe64dd3Smacallan      hardcode_shlibpath_var=no
8728dfe64dd3Smacallan      export_dynamic_flag_spec='-Bexport'
8729dfe64dd3Smacallan      ;;
8730dfe64dd3Smacallan
8731dfe64dd3Smacallan    sysv4*MP*)
8732dfe64dd3Smacallan      if test -d /usr/nec; then
8733dfe64dd3Smacallan	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734dfe64dd3Smacallan	hardcode_shlibpath_var=no
8735dfe64dd3Smacallan	runpath_var=LD_RUN_PATH
8736dfe64dd3Smacallan	hardcode_runpath_var=yes
8737dfe64dd3Smacallan	ld_shlibs=yes
8738dfe64dd3Smacallan      fi
8739dfe64dd3Smacallan      ;;
8740dfe64dd3Smacallan
8741dfe64dd3Smacallan    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8742dfe64dd3Smacallan      no_undefined_flag='${wl}-z,text'
8743dfe64dd3Smacallan      archive_cmds_need_lc=no
8744dfe64dd3Smacallan      hardcode_shlibpath_var=no
8745dfe64dd3Smacallan      runpath_var='LD_RUN_PATH'
8746dfe64dd3Smacallan
8747dfe64dd3Smacallan      if test "$GCC" = yes; then
8748dfe64dd3Smacallan	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749dfe64dd3Smacallan	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750dfe64dd3Smacallan      else
8751dfe64dd3Smacallan	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752dfe64dd3Smacallan	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8753dfe64dd3Smacallan      fi
8754dfe64dd3Smacallan      ;;
8755dfe64dd3Smacallan
8756dfe64dd3Smacallan    sysv5* | sco3.2v5* | sco5v6*)
8757dfe64dd3Smacallan      # Note: We can NOT use -z defs as we might desire, because we do not
8758dfe64dd3Smacallan      # link with -lc, and that would cause any symbols used from libc to
8759dfe64dd3Smacallan      # always be unresolved, which means just about no library would
8760dfe64dd3Smacallan      # ever link correctly.  If we're not using GNU ld we use -z text
8761dfe64dd3Smacallan      # though, which does catch some bad symbols but isn't as heavy-handed
8762dfe64dd3Smacallan      # as -z defs.
8763dfe64dd3Smacallan      no_undefined_flag='${wl}-z,text'
8764dfe64dd3Smacallan      allow_undefined_flag='${wl}-z,nodefs'
8765dfe64dd3Smacallan      archive_cmds_need_lc=no
8766dfe64dd3Smacallan      hardcode_shlibpath_var=no
8767dfe64dd3Smacallan      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8768dfe64dd3Smacallan      hardcode_libdir_separator=':'
8769dfe64dd3Smacallan      link_all_deplibs=yes
8770dfe64dd3Smacallan      export_dynamic_flag_spec='${wl}-Bexport'
8771dfe64dd3Smacallan      runpath_var='LD_RUN_PATH'
8772dfe64dd3Smacallan
8773dfe64dd3Smacallan      if test "$GCC" = yes; then
8774dfe64dd3Smacallan	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8775dfe64dd3Smacallan	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8776dfe64dd3Smacallan      else
8777dfe64dd3Smacallan	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8778dfe64dd3Smacallan	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8779dfe64dd3Smacallan      fi
8780dfe64dd3Smacallan      ;;
8781dfe64dd3Smacallan
8782dfe64dd3Smacallan    uts4*)
8783dfe64dd3Smacallan      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784dfe64dd3Smacallan      hardcode_libdir_flag_spec='-L$libdir'
8785dfe64dd3Smacallan      hardcode_shlibpath_var=no
8786dfe64dd3Smacallan      ;;
8787dfe64dd3Smacallan
8788dfe64dd3Smacallan    *)
8789dfe64dd3Smacallan      ld_shlibs=no
8790dfe64dd3Smacallan      ;;
8791dfe64dd3Smacallan    esac
8792dfe64dd3Smacallan
8793dfe64dd3Smacallan    if test x$host_vendor = xsni; then
8794dfe64dd3Smacallan      case $host in
8795dfe64dd3Smacallan      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8796dfe64dd3Smacallan	export_dynamic_flag_spec='${wl}-Blargedynsym'
8797dfe64dd3Smacallan	;;
8798dfe64dd3Smacallan      esac
8799dfe64dd3Smacallan    fi
8800dfe64dd3Smacallan  fi
8801dfe64dd3Smacallan
8802dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8803dfe64dd3Smacallan$as_echo "$ld_shlibs" >&6; }
8804dfe64dd3Smacallantest "$ld_shlibs" = no && can_build_shared=no
8805dfe64dd3Smacallan
8806dfe64dd3Smacallanwith_gnu_ld=$with_gnu_ld
8807dfe64dd3Smacallan
8808dfe64dd3Smacallan
8809dfe64dd3Smacallan
8810dfe64dd3Smacallan
8811dfe64dd3Smacallan
8812dfe64dd3Smacallan
8813dfe64dd3Smacallan
8814dfe64dd3Smacallan
8815dfe64dd3Smacallan
8816dfe64dd3Smacallan
8817dfe64dd3Smacallan
8818dfe64dd3Smacallan
8819dfe64dd3Smacallan
8820dfe64dd3Smacallan
8821dfe64dd3Smacallan
8822dfe64dd3Smacallan#
8823dfe64dd3Smacallan# Do we need to explicitly link libc?
8824dfe64dd3Smacallan#
8825dfe64dd3Smacallancase "x$archive_cmds_need_lc" in
8826dfe64dd3Smacallanx|xyes)
8827dfe64dd3Smacallan  # Assume -lc should be added
8828dfe64dd3Smacallan  archive_cmds_need_lc=yes
8829dfe64dd3Smacallan
8830dfe64dd3Smacallan  if test "$enable_shared" = yes && test "$GCC" = yes; then
8831dfe64dd3Smacallan    case $archive_cmds in
8832dfe64dd3Smacallan    *'~'*)
8833dfe64dd3Smacallan      # FIXME: we may have to deal with multi-command sequences.
8834dfe64dd3Smacallan      ;;
8835dfe64dd3Smacallan    '$CC '*)
8836dfe64dd3Smacallan      # Test whether the compiler implicitly links with -lc since on some
8837dfe64dd3Smacallan      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8838dfe64dd3Smacallan      # to ld, don't add -lc before -lgcc.
8839dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8840dfe64dd3Smacallan$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8841dfe64dd3Smacallan      $RM conftest*
8842dfe64dd3Smacallan      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8843dfe64dd3Smacallan
8844dfe64dd3Smacallan      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8845dfe64dd3Smacallan  (eval $ac_compile) 2>&5
8846dfe64dd3Smacallan  ac_status=$?
8847dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8848dfe64dd3Smacallan  test $ac_status = 0; } 2>conftest.err; then
8849dfe64dd3Smacallan        soname=conftest
8850dfe64dd3Smacallan        lib=conftest
8851dfe64dd3Smacallan        libobjs=conftest.$ac_objext
8852dfe64dd3Smacallan        deplibs=
8853dfe64dd3Smacallan        wl=$lt_prog_compiler_wl
8854dfe64dd3Smacallan	pic_flag=$lt_prog_compiler_pic
8855dfe64dd3Smacallan        compiler_flags=-v
8856dfe64dd3Smacallan        linker_flags=-v
8857dfe64dd3Smacallan        verstring=
8858dfe64dd3Smacallan        output_objdir=.
8859dfe64dd3Smacallan        libname=conftest
8860dfe64dd3Smacallan        lt_save_allow_undefined_flag=$allow_undefined_flag
8861dfe64dd3Smacallan        allow_undefined_flag=
8862dfe64dd3Smacallan        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8863dfe64dd3Smacallan  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8864dfe64dd3Smacallan  ac_status=$?
8865dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8866dfe64dd3Smacallan  test $ac_status = 0; }
8867dfe64dd3Smacallan        then
8868dfe64dd3Smacallan	  archive_cmds_need_lc=no
8869dfe64dd3Smacallan        else
8870dfe64dd3Smacallan	  archive_cmds_need_lc=yes
8871dfe64dd3Smacallan        fi
8872dfe64dd3Smacallan        allow_undefined_flag=$lt_save_allow_undefined_flag
8873dfe64dd3Smacallan      else
8874dfe64dd3Smacallan        cat conftest.err 1>&5
8875dfe64dd3Smacallan      fi
8876dfe64dd3Smacallan      $RM conftest*
8877dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8878dfe64dd3Smacallan$as_echo "$archive_cmds_need_lc" >&6; }
8879dfe64dd3Smacallan      ;;
8880dfe64dd3Smacallan    esac
8881dfe64dd3Smacallan  fi
8882dfe64dd3Smacallan  ;;
8883dfe64dd3Smacallanesac
8884dfe64dd3Smacallan
8885dfe64dd3Smacallan
8886dfe64dd3Smacallan
8887dfe64dd3Smacallan
8888dfe64dd3Smacallan
8889dfe64dd3Smacallan
8890dfe64dd3Smacallan
8891dfe64dd3Smacallan
8892dfe64dd3Smacallan
8893dfe64dd3Smacallan
8894dfe64dd3Smacallan
8895dfe64dd3Smacallan
8896dfe64dd3Smacallan
8897dfe64dd3Smacallan
8898dfe64dd3Smacallan
8899dfe64dd3Smacallan
8900dfe64dd3Smacallan
8901dfe64dd3Smacallan
8902dfe64dd3Smacallan
8903dfe64dd3Smacallan
8904dfe64dd3Smacallan
8905dfe64dd3Smacallan
8906dfe64dd3Smacallan
8907dfe64dd3Smacallan
8908dfe64dd3Smacallan
8909dfe64dd3Smacallan
8910dfe64dd3Smacallan
8911dfe64dd3Smacallan
8912dfe64dd3Smacallan
8913dfe64dd3Smacallan
8914dfe64dd3Smacallan
8915dfe64dd3Smacallan
8916dfe64dd3Smacallan
8917dfe64dd3Smacallan
8918dfe64dd3Smacallan
8919dfe64dd3Smacallan
8920dfe64dd3Smacallan
8921dfe64dd3Smacallan
8922dfe64dd3Smacallan
8923dfe64dd3Smacallan
8924dfe64dd3Smacallan
8925dfe64dd3Smacallan
8926dfe64dd3Smacallan
8927dfe64dd3Smacallan
8928dfe64dd3Smacallan
8929dfe64dd3Smacallan
8930dfe64dd3Smacallan
8931dfe64dd3Smacallan
8932dfe64dd3Smacallan
8933dfe64dd3Smacallan
8934dfe64dd3Smacallan
8935dfe64dd3Smacallan
8936dfe64dd3Smacallan
8937dfe64dd3Smacallan
8938dfe64dd3Smacallan
8939dfe64dd3Smacallan
8940dfe64dd3Smacallan
8941dfe64dd3Smacallan
8942dfe64dd3Smacallan
8943dfe64dd3Smacallan
8944dfe64dd3Smacallan
8945dfe64dd3Smacallan
8946dfe64dd3Smacallan
8947dfe64dd3Smacallan
8948dfe64dd3Smacallan
8949dfe64dd3Smacallan
8950dfe64dd3Smacallan
8951dfe64dd3Smacallan
8952dfe64dd3Smacallan
8953dfe64dd3Smacallan
8954dfe64dd3Smacallan
8955dfe64dd3Smacallan
8956dfe64dd3Smacallan
8957dfe64dd3Smacallan
8958dfe64dd3Smacallan
8959dfe64dd3Smacallan
8960dfe64dd3Smacallan
8961dfe64dd3Smacallan
8962dfe64dd3Smacallan
8963dfe64dd3Smacallan
8964dfe64dd3Smacallan
8965dfe64dd3Smacallan
8966dfe64dd3Smacallan
8967dfe64dd3Smacallan
8968dfe64dd3Smacallan
8969dfe64dd3Smacallan
8970dfe64dd3Smacallan
8971dfe64dd3Smacallan
8972dfe64dd3Smacallan
8973dfe64dd3Smacallan
8974dfe64dd3Smacallan
8975dfe64dd3Smacallan
8976dfe64dd3Smacallan
8977dfe64dd3Smacallan
8978dfe64dd3Smacallan
8979dfe64dd3Smacallan
8980dfe64dd3Smacallan
8981dfe64dd3Smacallan
8982dfe64dd3Smacallan
8983dfe64dd3Smacallan
8984dfe64dd3Smacallan
8985dfe64dd3Smacallan
8986dfe64dd3Smacallan
8987dfe64dd3Smacallan
8988dfe64dd3Smacallan
8989dfe64dd3Smacallan
8990dfe64dd3Smacallan
8991dfe64dd3Smacallan
8992dfe64dd3Smacallan
8993dfe64dd3Smacallan
8994dfe64dd3Smacallan
8995dfe64dd3Smacallan
8996dfe64dd3Smacallan
8997dfe64dd3Smacallan
8998dfe64dd3Smacallan
8999dfe64dd3Smacallan
9000dfe64dd3Smacallan
9001dfe64dd3Smacallan
9002dfe64dd3Smacallan
9003dfe64dd3Smacallan
9004dfe64dd3Smacallan
9005dfe64dd3Smacallan
9006dfe64dd3Smacallan
9007dfe64dd3Smacallan
9008dfe64dd3Smacallan
9009dfe64dd3Smacallan
9010dfe64dd3Smacallan
9011dfe64dd3Smacallan
9012dfe64dd3Smacallan
9013dfe64dd3Smacallan
9014dfe64dd3Smacallan
9015dfe64dd3Smacallan
9016dfe64dd3Smacallan
9017dfe64dd3Smacallan
9018dfe64dd3Smacallan
9019dfe64dd3Smacallan
9020dfe64dd3Smacallan
9021dfe64dd3Smacallan
9022dfe64dd3Smacallan
9023dfe64dd3Smacallan
9024dfe64dd3Smacallan
9025dfe64dd3Smacallan
9026dfe64dd3Smacallan
9027dfe64dd3Smacallan
9028dfe64dd3Smacallan
9029dfe64dd3Smacallan
9030dfe64dd3Smacallan
9031dfe64dd3Smacallan
9032dfe64dd3Smacallan
9033dfe64dd3Smacallan
9034dfe64dd3Smacallan
9035dfe64dd3Smacallan
9036dfe64dd3Smacallan
9037dfe64dd3Smacallan
9038dfe64dd3Smacallan
9039dfe64dd3Smacallan
9040dfe64dd3Smacallan
9041dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9042dfe64dd3Smacallan$as_echo_n "checking dynamic linker characteristics... " >&6; }
9043dfe64dd3Smacallan
9044dfe64dd3Smacallanif test "$GCC" = yes; then
9045dfe64dd3Smacallan  case $host_os in
9046dfe64dd3Smacallan    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9047dfe64dd3Smacallan    *) lt_awk_arg="/^libraries:/" ;;
9048dfe64dd3Smacallan  esac
9049dfe64dd3Smacallan  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9050dfe64dd3Smacallan  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9051dfe64dd3Smacallan    # if the path contains ";" then we assume it to be the separator
9052dfe64dd3Smacallan    # otherwise default to the standard path separator (i.e. ":") - it is
9053dfe64dd3Smacallan    # assumed that no part of a normal pathname contains ";" but that should
9054dfe64dd3Smacallan    # okay in the real world where ";" in dirpaths is itself problematic.
9055dfe64dd3Smacallan    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9056dfe64dd3Smacallan  else
9057dfe64dd3Smacallan    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9058dfe64dd3Smacallan  fi
9059dfe64dd3Smacallan  # Ok, now we have the path, separated by spaces, we can step through it
9060dfe64dd3Smacallan  # and add multilib dir if necessary.
9061dfe64dd3Smacallan  lt_tmp_lt_search_path_spec=
9062dfe64dd3Smacallan  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9063dfe64dd3Smacallan  for lt_sys_path in $lt_search_path_spec; do
9064dfe64dd3Smacallan    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9065dfe64dd3Smacallan      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9066dfe64dd3Smacallan    else
9067dfe64dd3Smacallan      test -d "$lt_sys_path" && \
9068dfe64dd3Smacallan	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9069dfe64dd3Smacallan    fi
9070dfe64dd3Smacallan  done
9071dfe64dd3Smacallan  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9072dfe64dd3SmacallanBEGIN {RS=" "; FS="/|\n";} {
9073dfe64dd3Smacallan  lt_foo="";
9074dfe64dd3Smacallan  lt_count=0;
9075dfe64dd3Smacallan  for (lt_i = NF; lt_i > 0; lt_i--) {
9076dfe64dd3Smacallan    if ($lt_i != "" && $lt_i != ".") {
9077dfe64dd3Smacallan      if ($lt_i == "..") {
9078dfe64dd3Smacallan        lt_count++;
9079dfe64dd3Smacallan      } else {
9080dfe64dd3Smacallan        if (lt_count == 0) {
9081dfe64dd3Smacallan          lt_foo="/" $lt_i lt_foo;
9082dfe64dd3Smacallan        } else {
9083dfe64dd3Smacallan          lt_count--;
9084dfe64dd3Smacallan        }
9085dfe64dd3Smacallan      }
9086dfe64dd3Smacallan    }
9087dfe64dd3Smacallan  }
9088dfe64dd3Smacallan  if (lt_foo != "") { lt_freq[lt_foo]++; }
9089dfe64dd3Smacallan  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9090dfe64dd3Smacallan}'`
9091dfe64dd3Smacallan  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9092dfe64dd3Smacallanelse
9093dfe64dd3Smacallan  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9094dfe64dd3Smacallanfi
9095dfe64dd3Smacallanlibrary_names_spec=
9096dfe64dd3Smacallanlibname_spec='lib$name'
9097dfe64dd3Smacallansoname_spec=
9098dfe64dd3Smacallanshrext_cmds=".so"
9099dfe64dd3Smacallanpostinstall_cmds=
9100dfe64dd3Smacallanpostuninstall_cmds=
9101dfe64dd3Smacallanfinish_cmds=
9102dfe64dd3Smacallanfinish_eval=
9103dfe64dd3Smacallanshlibpath_var=
9104dfe64dd3Smacallanshlibpath_overrides_runpath=unknown
9105dfe64dd3Smacallanversion_type=none
9106dfe64dd3Smacallandynamic_linker="$host_os ld.so"
9107dfe64dd3Smacallansys_lib_dlsearch_path_spec="/lib /usr/lib"
9108dfe64dd3Smacallanneed_lib_prefix=unknown
9109dfe64dd3Smacallanhardcode_into_libs=no
9110dfe64dd3Smacallan
9111dfe64dd3Smacallan# when you set need_version to no, make sure it does not cause -set_version
9112dfe64dd3Smacallan# flags to be left without arguments
9113dfe64dd3Smacallanneed_version=unknown
9114dfe64dd3Smacallan
9115dfe64dd3Smacallancase $host_os in
9116dfe64dd3Smacallanaix3*)
9117dfe64dd3Smacallan  version_type=linux
9118dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9119dfe64dd3Smacallan  shlibpath_var=LIBPATH
9120dfe64dd3Smacallan
9121dfe64dd3Smacallan  # AIX 3 has no versioning support, so we append a major version to the name.
9122dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9123dfe64dd3Smacallan  ;;
9124dfe64dd3Smacallan
9125dfe64dd3Smacallanaix[4-9]*)
9126dfe64dd3Smacallan  version_type=linux
9127dfe64dd3Smacallan  need_lib_prefix=no
9128dfe64dd3Smacallan  need_version=no
9129dfe64dd3Smacallan  hardcode_into_libs=yes
9130dfe64dd3Smacallan  if test "$host_cpu" = ia64; then
9131dfe64dd3Smacallan    # AIX 5 supports IA64
9132dfe64dd3Smacallan    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9133dfe64dd3Smacallan    shlibpath_var=LD_LIBRARY_PATH
9134dfe64dd3Smacallan  else
9135dfe64dd3Smacallan    # With GCC up to 2.95.x, collect2 would create an import file
9136dfe64dd3Smacallan    # for dependence libraries.  The import file would start with
9137dfe64dd3Smacallan    # the line `#! .'.  This would cause the generated library to
9138dfe64dd3Smacallan    # depend on `.', always an invalid library.  This was fixed in
9139dfe64dd3Smacallan    # development snapshots of GCC prior to 3.0.
9140dfe64dd3Smacallan    case $host_os in
9141dfe64dd3Smacallan      aix4 | aix4.[01] | aix4.[01].*)
9142dfe64dd3Smacallan      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9143dfe64dd3Smacallan	   echo ' yes '
9144dfe64dd3Smacallan	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9145dfe64dd3Smacallan	:
9146dfe64dd3Smacallan      else
9147dfe64dd3Smacallan	can_build_shared=no
9148dfe64dd3Smacallan      fi
9149dfe64dd3Smacallan      ;;
9150dfe64dd3Smacallan    esac
9151dfe64dd3Smacallan    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9152dfe64dd3Smacallan    # soname into executable. Probably we can add versioning support to
9153dfe64dd3Smacallan    # collect2, so additional links can be useful in future.
9154dfe64dd3Smacallan    if test "$aix_use_runtimelinking" = yes; then
9155dfe64dd3Smacallan      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9156dfe64dd3Smacallan      # instead of lib<name>.a to let people know that these are not
9157dfe64dd3Smacallan      # typical AIX shared libraries.
9158dfe64dd3Smacallan      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159dfe64dd3Smacallan    else
9160dfe64dd3Smacallan      # We preserve .a as extension for shared libraries through AIX4.2
9161dfe64dd3Smacallan      # and later when we are not doing run time linking.
9162dfe64dd3Smacallan      library_names_spec='${libname}${release}.a $libname.a'
9163dfe64dd3Smacallan      soname_spec='${libname}${release}${shared_ext}$major'
9164dfe64dd3Smacallan    fi
9165dfe64dd3Smacallan    shlibpath_var=LIBPATH
9166dfe64dd3Smacallan  fi
9167dfe64dd3Smacallan  ;;
9168dfe64dd3Smacallan
9169dfe64dd3Smacallanamigaos*)
9170dfe64dd3Smacallan  case $host_cpu in
9171dfe64dd3Smacallan  powerpc)
9172dfe64dd3Smacallan    # Since July 2007 AmigaOS4 officially supports .so libraries.
9173dfe64dd3Smacallan    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9174dfe64dd3Smacallan    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175dfe64dd3Smacallan    ;;
9176dfe64dd3Smacallan  m68k)
9177dfe64dd3Smacallan    library_names_spec='$libname.ixlibrary $libname.a'
9178dfe64dd3Smacallan    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9179dfe64dd3Smacallan    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9180dfe64dd3Smacallan    ;;
9181dfe64dd3Smacallan  esac
9182dfe64dd3Smacallan  ;;
9183dfe64dd3Smacallan
9184dfe64dd3Smacallanbeos*)
9185dfe64dd3Smacallan  library_names_spec='${libname}${shared_ext}'
9186dfe64dd3Smacallan  dynamic_linker="$host_os ld.so"
9187dfe64dd3Smacallan  shlibpath_var=LIBRARY_PATH
9188dfe64dd3Smacallan  ;;
9189dfe64dd3Smacallan
9190dfe64dd3Smacallanbsdi[45]*)
9191dfe64dd3Smacallan  version_type=linux
9192dfe64dd3Smacallan  need_version=no
9193dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9195dfe64dd3Smacallan  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9196dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9197dfe64dd3Smacallan  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9198dfe64dd3Smacallan  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9199dfe64dd3Smacallan  # the default ld.so.conf also contains /usr/contrib/lib and
9200dfe64dd3Smacallan  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9201dfe64dd3Smacallan  # libtool to hard-code these into programs
9202dfe64dd3Smacallan  ;;
9203dfe64dd3Smacallan
9204dfe64dd3Smacallancygwin* | mingw* | pw32* | cegcc*)
9205dfe64dd3Smacallan  version_type=windows
9206dfe64dd3Smacallan  shrext_cmds=".dll"
9207dfe64dd3Smacallan  need_version=no
9208dfe64dd3Smacallan  need_lib_prefix=no
9209dfe64dd3Smacallan
9210dfe64dd3Smacallan  case $GCC,$host_os in
9211dfe64dd3Smacallan  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9212dfe64dd3Smacallan    library_names_spec='$libname.dll.a'
9213dfe64dd3Smacallan    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9214dfe64dd3Smacallan    postinstall_cmds='base_file=`basename \${file}`~
9215dfe64dd3Smacallan      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9216dfe64dd3Smacallan      dldir=$destdir/`dirname \$dlpath`~
9217dfe64dd3Smacallan      test -d \$dldir || mkdir -p \$dldir~
9218dfe64dd3Smacallan      $install_prog $dir/$dlname \$dldir/$dlname~
9219dfe64dd3Smacallan      chmod a+x \$dldir/$dlname~
9220dfe64dd3Smacallan      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9221dfe64dd3Smacallan        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9222dfe64dd3Smacallan      fi'
9223dfe64dd3Smacallan    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9224dfe64dd3Smacallan      dlpath=$dir/\$dldll~
9225dfe64dd3Smacallan       $RM \$dlpath'
9226dfe64dd3Smacallan    shlibpath_overrides_runpath=yes
9227dfe64dd3Smacallan
9228dfe64dd3Smacallan    case $host_os in
9229dfe64dd3Smacallan    cygwin*)
9230dfe64dd3Smacallan      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9231dfe64dd3Smacallan      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9232dfe64dd3Smacallan      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9233dfe64dd3Smacallan      ;;
9234dfe64dd3Smacallan    mingw* | cegcc*)
9235dfe64dd3Smacallan      # MinGW DLLs use traditional 'lib' prefix
9236dfe64dd3Smacallan      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9237dfe64dd3Smacallan      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9238dfe64dd3Smacallan      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9239dfe64dd3Smacallan        # It is most probably a Windows format PATH printed by
9240dfe64dd3Smacallan        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9241dfe64dd3Smacallan        # path with ; separators, and with drive letters. We can handle the
9242dfe64dd3Smacallan        # drive letters (cygwin fileutils understands them), so leave them,
9243dfe64dd3Smacallan        # especially as we might pass files found there to a mingw objdump,
9244dfe64dd3Smacallan        # which wouldn't understand a cygwinified path. Ahh.
9245dfe64dd3Smacallan        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9246dfe64dd3Smacallan      else
9247dfe64dd3Smacallan        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9248dfe64dd3Smacallan      fi
9249dfe64dd3Smacallan      ;;
9250dfe64dd3Smacallan    pw32*)
9251dfe64dd3Smacallan      # pw32 DLLs use 'pw' prefix rather than 'lib'
9252dfe64dd3Smacallan      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9253dfe64dd3Smacallan      ;;
9254dfe64dd3Smacallan    esac
9255dfe64dd3Smacallan    ;;
9256dfe64dd3Smacallan
9257dfe64dd3Smacallan  *)
9258dfe64dd3Smacallan    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9259dfe64dd3Smacallan    ;;
9260dfe64dd3Smacallan  esac
9261dfe64dd3Smacallan  dynamic_linker='Win32 ld.exe'
9262dfe64dd3Smacallan  # FIXME: first we should search . and the directory the executable is in
9263dfe64dd3Smacallan  shlibpath_var=PATH
9264dfe64dd3Smacallan  ;;
9265dfe64dd3Smacallan
9266dfe64dd3Smacallandarwin* | rhapsody*)
9267dfe64dd3Smacallan  dynamic_linker="$host_os dyld"
9268dfe64dd3Smacallan  version_type=darwin
9269dfe64dd3Smacallan  need_lib_prefix=no
9270dfe64dd3Smacallan  need_version=no
9271dfe64dd3Smacallan  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9272dfe64dd3Smacallan  soname_spec='${libname}${release}${major}$shared_ext'
9273dfe64dd3Smacallan  shlibpath_overrides_runpath=yes
9274dfe64dd3Smacallan  shlibpath_var=DYLD_LIBRARY_PATH
9275dfe64dd3Smacallan  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9276dfe64dd3Smacallan
9277dfe64dd3Smacallan  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9278dfe64dd3Smacallan  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9279dfe64dd3Smacallan  ;;
9280dfe64dd3Smacallan
9281dfe64dd3Smacallandgux*)
9282dfe64dd3Smacallan  version_type=linux
9283dfe64dd3Smacallan  need_lib_prefix=no
9284dfe64dd3Smacallan  need_version=no
9285dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9286dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9287dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9288dfe64dd3Smacallan  ;;
9289dfe64dd3Smacallan
9290dfe64dd3Smacallanfreebsd1*)
9291dfe64dd3Smacallan  dynamic_linker=no
9292dfe64dd3Smacallan  ;;
9293dfe64dd3Smacallan
9294dfe64dd3Smacallanfreebsd* | dragonfly*)
9295dfe64dd3Smacallan  # DragonFly does not have aout.  When/if they implement a new
9296dfe64dd3Smacallan  # versioning mechanism, adjust this.
9297dfe64dd3Smacallan  if test -x /usr/bin/objformat; then
9298dfe64dd3Smacallan    objformat=`/usr/bin/objformat`
9299dfe64dd3Smacallan  else
9300dfe64dd3Smacallan    case $host_os in
9301dfe64dd3Smacallan    freebsd[123]*) objformat=aout ;;
9302dfe64dd3Smacallan    *) objformat=elf ;;
9303dfe64dd3Smacallan    esac
9304dfe64dd3Smacallan  fi
9305dfe64dd3Smacallan  version_type=freebsd-$objformat
9306dfe64dd3Smacallan  case $version_type in
9307dfe64dd3Smacallan    freebsd-elf*)
9308dfe64dd3Smacallan      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9309dfe64dd3Smacallan      need_version=no
9310dfe64dd3Smacallan      need_lib_prefix=no
9311dfe64dd3Smacallan      ;;
9312dfe64dd3Smacallan    freebsd-*)
9313dfe64dd3Smacallan      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9314dfe64dd3Smacallan      need_version=yes
9315dfe64dd3Smacallan      ;;
9316dfe64dd3Smacallan  esac
9317dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9318dfe64dd3Smacallan  case $host_os in
9319dfe64dd3Smacallan  freebsd2*)
9320dfe64dd3Smacallan    shlibpath_overrides_runpath=yes
9321dfe64dd3Smacallan    ;;
9322dfe64dd3Smacallan  freebsd3.[01]* | freebsdelf3.[01]*)
9323dfe64dd3Smacallan    shlibpath_overrides_runpath=yes
9324dfe64dd3Smacallan    hardcode_into_libs=yes
9325dfe64dd3Smacallan    ;;
9326dfe64dd3Smacallan  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9327dfe64dd3Smacallan  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9328dfe64dd3Smacallan    shlibpath_overrides_runpath=no
9329dfe64dd3Smacallan    hardcode_into_libs=yes
9330dfe64dd3Smacallan    ;;
9331dfe64dd3Smacallan  *) # from 4.6 on, and DragonFly
9332dfe64dd3Smacallan    shlibpath_overrides_runpath=yes
9333dfe64dd3Smacallan    hardcode_into_libs=yes
9334dfe64dd3Smacallan    ;;
9335dfe64dd3Smacallan  esac
9336dfe64dd3Smacallan  ;;
9337dfe64dd3Smacallan
9338dfe64dd3Smacallangnu*)
9339dfe64dd3Smacallan  version_type=linux
9340dfe64dd3Smacallan  need_lib_prefix=no
9341dfe64dd3Smacallan  need_version=no
9342dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9343dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9344dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9345dfe64dd3Smacallan  hardcode_into_libs=yes
9346dfe64dd3Smacallan  ;;
9347dfe64dd3Smacallan
9348dfe64dd3Smacallanhpux9* | hpux10* | hpux11*)
9349dfe64dd3Smacallan  # Give a soname corresponding to the major version so that dld.sl refuses to
9350dfe64dd3Smacallan  # link against other versions.
9351dfe64dd3Smacallan  version_type=sunos
9352dfe64dd3Smacallan  need_lib_prefix=no
9353dfe64dd3Smacallan  need_version=no
9354dfe64dd3Smacallan  case $host_cpu in
9355dfe64dd3Smacallan  ia64*)
9356dfe64dd3Smacallan    shrext_cmds='.so'
9357dfe64dd3Smacallan    hardcode_into_libs=yes
9358dfe64dd3Smacallan    dynamic_linker="$host_os dld.so"
9359dfe64dd3Smacallan    shlibpath_var=LD_LIBRARY_PATH
9360dfe64dd3Smacallan    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9361dfe64dd3Smacallan    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362dfe64dd3Smacallan    soname_spec='${libname}${release}${shared_ext}$major'
9363dfe64dd3Smacallan    if test "X$HPUX_IA64_MODE" = X32; then
9364dfe64dd3Smacallan      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9365dfe64dd3Smacallan    else
9366dfe64dd3Smacallan      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9367dfe64dd3Smacallan    fi
9368dfe64dd3Smacallan    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9369dfe64dd3Smacallan    ;;
9370dfe64dd3Smacallan  hppa*64*)
9371dfe64dd3Smacallan    shrext_cmds='.sl'
9372dfe64dd3Smacallan    hardcode_into_libs=yes
9373dfe64dd3Smacallan    dynamic_linker="$host_os dld.sl"
9374dfe64dd3Smacallan    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9375dfe64dd3Smacallan    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9376dfe64dd3Smacallan    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377dfe64dd3Smacallan    soname_spec='${libname}${release}${shared_ext}$major'
9378dfe64dd3Smacallan    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9379dfe64dd3Smacallan    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9380dfe64dd3Smacallan    ;;
9381dfe64dd3Smacallan  *)
9382dfe64dd3Smacallan    shrext_cmds='.sl'
9383dfe64dd3Smacallan    dynamic_linker="$host_os dld.sl"
9384dfe64dd3Smacallan    shlibpath_var=SHLIB_PATH
9385dfe64dd3Smacallan    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9386dfe64dd3Smacallan    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387dfe64dd3Smacallan    soname_spec='${libname}${release}${shared_ext}$major'
9388dfe64dd3Smacallan    ;;
9389dfe64dd3Smacallan  esac
9390dfe64dd3Smacallan  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9391dfe64dd3Smacallan  postinstall_cmds='chmod 555 $lib'
9392dfe64dd3Smacallan  ;;
9393dfe64dd3Smacallan
9394dfe64dd3Smacallaninterix[3-9]*)
9395dfe64dd3Smacallan  version_type=linux
9396dfe64dd3Smacallan  need_lib_prefix=no
9397dfe64dd3Smacallan  need_version=no
9398dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9399dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9400dfe64dd3Smacallan  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9401dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9402dfe64dd3Smacallan  shlibpath_overrides_runpath=no
9403dfe64dd3Smacallan  hardcode_into_libs=yes
9404dfe64dd3Smacallan  ;;
9405dfe64dd3Smacallan
9406dfe64dd3Smacallanirix5* | irix6* | nonstopux*)
9407dfe64dd3Smacallan  case $host_os in
9408dfe64dd3Smacallan    nonstopux*) version_type=nonstopux ;;
9409dfe64dd3Smacallan    *)
9410dfe64dd3Smacallan	if test "$lt_cv_prog_gnu_ld" = yes; then
9411dfe64dd3Smacallan		version_type=linux
9412dfe64dd3Smacallan	else
9413dfe64dd3Smacallan		version_type=irix
9414dfe64dd3Smacallan	fi ;;
9415dfe64dd3Smacallan  esac
9416dfe64dd3Smacallan  need_lib_prefix=no
9417dfe64dd3Smacallan  need_version=no
9418dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9419dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9420dfe64dd3Smacallan  case $host_os in
9421dfe64dd3Smacallan  irix5* | nonstopux*)
9422dfe64dd3Smacallan    libsuff= shlibsuff=
9423dfe64dd3Smacallan    ;;
9424dfe64dd3Smacallan  *)
9425dfe64dd3Smacallan    case $LD in # libtool.m4 will add one of these switches to LD
9426dfe64dd3Smacallan    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9427dfe64dd3Smacallan      libsuff= shlibsuff= libmagic=32-bit;;
9428dfe64dd3Smacallan    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9429dfe64dd3Smacallan      libsuff=32 shlibsuff=N32 libmagic=N32;;
9430dfe64dd3Smacallan    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9431dfe64dd3Smacallan      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9432dfe64dd3Smacallan    *) libsuff= shlibsuff= libmagic=never-match;;
9433dfe64dd3Smacallan    esac
9434dfe64dd3Smacallan    ;;
9435dfe64dd3Smacallan  esac
9436dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9437dfe64dd3Smacallan  shlibpath_overrides_runpath=no
9438dfe64dd3Smacallan  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9439dfe64dd3Smacallan  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9440dfe64dd3Smacallan  hardcode_into_libs=yes
9441dfe64dd3Smacallan  ;;
9442dfe64dd3Smacallan
9443dfe64dd3Smacallan# No shared lib support for Linux oldld, aout, or coff.
9444dfe64dd3Smacallanlinux*oldld* | linux*aout* | linux*coff*)
9445dfe64dd3Smacallan  dynamic_linker=no
9446dfe64dd3Smacallan  ;;
9447dfe64dd3Smacallan
9448dfe64dd3Smacallan# This must be Linux ELF.
9449dfe64dd3Smacallanlinux* | k*bsd*-gnu)
9450dfe64dd3Smacallan  version_type=linux
9451dfe64dd3Smacallan  need_lib_prefix=no
9452dfe64dd3Smacallan  need_version=no
9453dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9455dfe64dd3Smacallan  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9456dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9457dfe64dd3Smacallan  shlibpath_overrides_runpath=no
9458dfe64dd3Smacallan  # Some binutils ld are patched to set DT_RUNPATH
9459dfe64dd3Smacallan  save_LDFLAGS=$LDFLAGS
9460dfe64dd3Smacallan  save_libdir=$libdir
9461dfe64dd3Smacallan  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9462dfe64dd3Smacallan       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9463dfe64dd3Smacallan  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464dfe64dd3Smacallan/* end confdefs.h.  */
9465dfe64dd3Smacallan
9466dfe64dd3Smacallanint
9467dfe64dd3Smacallanmain ()
9468dfe64dd3Smacallan{
9469dfe64dd3Smacallan
9470dfe64dd3Smacallan  ;
9471dfe64dd3Smacallan  return 0;
9472dfe64dd3Smacallan}
9473dfe64dd3Smacallan_ACEOF
9474dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
9475dfe64dd3Smacallan  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9476dfe64dd3Smacallan  shlibpath_overrides_runpath=yes
9477dfe64dd3Smacallanfi
9478dfe64dd3Smacallanfi
9479dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
9480dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
9481dfe64dd3Smacallan  LDFLAGS=$save_LDFLAGS
9482dfe64dd3Smacallan  libdir=$save_libdir
9483dfe64dd3Smacallan
9484dfe64dd3Smacallan  # This implies no fast_install, which is unacceptable.
9485dfe64dd3Smacallan  # Some rework will be needed to allow for fast_install
9486dfe64dd3Smacallan  # before this can be enabled.
9487dfe64dd3Smacallan  hardcode_into_libs=yes
9488dfe64dd3Smacallan
9489dfe64dd3Smacallan  # Append ld.so.conf contents to the search path
9490dfe64dd3Smacallan  if test -f /etc/ld.so.conf; then
9491dfe64dd3Smacallan    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;/^$/d' | tr '\n' ' '`
9492dfe64dd3Smacallan    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9493dfe64dd3Smacallan  fi
9494dfe64dd3Smacallan
9495dfe64dd3Smacallan  # We used to test for /lib/ld.so.1 and disable shared libraries on
9496dfe64dd3Smacallan  # powerpc, because MkLinux only supported shared libraries with the
9497dfe64dd3Smacallan  # GNU dynamic linker.  Since this was broken with cross compilers,
9498dfe64dd3Smacallan  # most powerpc-linux boxes support dynamic linking these days and
9499dfe64dd3Smacallan  # people can always --disable-shared, the test was removed, and we
9500dfe64dd3Smacallan  # assume the GNU/Linux dynamic linker is in use.
9501dfe64dd3Smacallan  dynamic_linker='GNU/Linux ld.so'
9502dfe64dd3Smacallan  ;;
9503dfe64dd3Smacallan
9504dfe64dd3Smacallannetbsd*)
9505dfe64dd3Smacallan  version_type=sunos
9506dfe64dd3Smacallan  need_lib_prefix=no
9507dfe64dd3Smacallan  need_version=no
9508dfe64dd3Smacallan  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9509dfe64dd3Smacallan    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9510dfe64dd3Smacallan    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9511dfe64dd3Smacallan    dynamic_linker='NetBSD (a.out) ld.so'
9512dfe64dd3Smacallan  else
9513dfe64dd3Smacallan    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514dfe64dd3Smacallan    soname_spec='${libname}${release}${shared_ext}$major'
9515dfe64dd3Smacallan    dynamic_linker='NetBSD ld.elf_so'
9516dfe64dd3Smacallan  fi
9517dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9518dfe64dd3Smacallan  shlibpath_overrides_runpath=yes
9519dfe64dd3Smacallan  hardcode_into_libs=yes
9520dfe64dd3Smacallan  ;;
9521dfe64dd3Smacallan
9522dfe64dd3Smacallannewsos6)
9523dfe64dd3Smacallan  version_type=linux
9524dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9526dfe64dd3Smacallan  shlibpath_overrides_runpath=yes
9527dfe64dd3Smacallan  ;;
9528dfe64dd3Smacallan
9529dfe64dd3Smacallan*nto* | *qnx*)
9530dfe64dd3Smacallan  version_type=qnx
9531dfe64dd3Smacallan  need_lib_prefix=no
9532dfe64dd3Smacallan  need_version=no
9533dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9535dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9536dfe64dd3Smacallan  shlibpath_overrides_runpath=no
9537dfe64dd3Smacallan  hardcode_into_libs=yes
9538dfe64dd3Smacallan  dynamic_linker='ldqnx.so'
9539dfe64dd3Smacallan  ;;
9540dfe64dd3Smacallan
9541dfe64dd3Smacallanopenbsd*)
9542dfe64dd3Smacallan  version_type=sunos
9543dfe64dd3Smacallan  sys_lib_dlsearch_path_spec="/usr/lib"
9544dfe64dd3Smacallan  need_lib_prefix=no
9545dfe64dd3Smacallan  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9546dfe64dd3Smacallan  case $host_os in
9547dfe64dd3Smacallan    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9548dfe64dd3Smacallan    *)				need_version=no  ;;
9549dfe64dd3Smacallan  esac
9550dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9551dfe64dd3Smacallan  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9552dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9553dfe64dd3Smacallan  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9554dfe64dd3Smacallan    case $host_os in
9555dfe64dd3Smacallan      openbsd2.[89] | openbsd2.[89].*)
9556dfe64dd3Smacallan	shlibpath_overrides_runpath=no
9557dfe64dd3Smacallan	;;
9558dfe64dd3Smacallan      *)
9559dfe64dd3Smacallan	shlibpath_overrides_runpath=yes
9560dfe64dd3Smacallan	;;
9561dfe64dd3Smacallan      esac
9562dfe64dd3Smacallan  else
9563dfe64dd3Smacallan    shlibpath_overrides_runpath=yes
9564dfe64dd3Smacallan  fi
9565dfe64dd3Smacallan  ;;
9566dfe64dd3Smacallan
9567dfe64dd3Smacallanos2*)
9568dfe64dd3Smacallan  libname_spec='$name'
9569dfe64dd3Smacallan  shrext_cmds=".dll"
9570dfe64dd3Smacallan  need_lib_prefix=no
9571dfe64dd3Smacallan  library_names_spec='$libname${shared_ext} $libname.a'
9572dfe64dd3Smacallan  dynamic_linker='OS/2 ld.exe'
9573dfe64dd3Smacallan  shlibpath_var=LIBPATH
9574dfe64dd3Smacallan  ;;
9575dfe64dd3Smacallan
9576dfe64dd3Smacallanosf3* | osf4* | osf5*)
9577dfe64dd3Smacallan  version_type=osf
9578dfe64dd3Smacallan  need_lib_prefix=no
9579dfe64dd3Smacallan  need_version=no
9580dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9581dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9583dfe64dd3Smacallan  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9584dfe64dd3Smacallan  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9585dfe64dd3Smacallan  ;;
9586dfe64dd3Smacallan
9587dfe64dd3Smacallanrdos*)
9588dfe64dd3Smacallan  dynamic_linker=no
9589dfe64dd3Smacallan  ;;
9590dfe64dd3Smacallan
9591dfe64dd3Smacallansolaris*)
9592dfe64dd3Smacallan  version_type=linux
9593dfe64dd3Smacallan  need_lib_prefix=no
9594dfe64dd3Smacallan  need_version=no
9595dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9597dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9598dfe64dd3Smacallan  shlibpath_overrides_runpath=yes
9599dfe64dd3Smacallan  hardcode_into_libs=yes
9600dfe64dd3Smacallan  # ldd complains unless libraries are executable
9601dfe64dd3Smacallan  postinstall_cmds='chmod +x $lib'
9602dfe64dd3Smacallan  ;;
9603dfe64dd3Smacallan
9604dfe64dd3Smacallansunos4*)
9605dfe64dd3Smacallan  version_type=sunos
9606dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607dfe64dd3Smacallan  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9608dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9609dfe64dd3Smacallan  shlibpath_overrides_runpath=yes
9610dfe64dd3Smacallan  if test "$with_gnu_ld" = yes; then
9611dfe64dd3Smacallan    need_lib_prefix=no
9612dfe64dd3Smacallan  fi
9613dfe64dd3Smacallan  need_version=yes
9614dfe64dd3Smacallan  ;;
9615dfe64dd3Smacallan
9616dfe64dd3Smacallansysv4 | sysv4.3*)
9617dfe64dd3Smacallan  version_type=linux
9618dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9620dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9621dfe64dd3Smacallan  case $host_vendor in
9622dfe64dd3Smacallan    sni)
9623dfe64dd3Smacallan      shlibpath_overrides_runpath=no
9624dfe64dd3Smacallan      need_lib_prefix=no
9625dfe64dd3Smacallan      runpath_var=LD_RUN_PATH
9626dfe64dd3Smacallan      ;;
9627dfe64dd3Smacallan    siemens)
9628dfe64dd3Smacallan      need_lib_prefix=no
9629dfe64dd3Smacallan      ;;
9630dfe64dd3Smacallan    motorola)
9631dfe64dd3Smacallan      need_lib_prefix=no
9632dfe64dd3Smacallan      need_version=no
9633dfe64dd3Smacallan      shlibpath_overrides_runpath=no
9634dfe64dd3Smacallan      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9635dfe64dd3Smacallan      ;;
9636dfe64dd3Smacallan  esac
9637dfe64dd3Smacallan  ;;
9638dfe64dd3Smacallan
9639dfe64dd3Smacallansysv4*MP*)
9640dfe64dd3Smacallan  if test -d /usr/nec ;then
9641dfe64dd3Smacallan    version_type=linux
9642dfe64dd3Smacallan    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9643dfe64dd3Smacallan    soname_spec='$libname${shared_ext}.$major'
9644dfe64dd3Smacallan    shlibpath_var=LD_LIBRARY_PATH
9645dfe64dd3Smacallan  fi
9646dfe64dd3Smacallan  ;;
9647dfe64dd3Smacallan
9648dfe64dd3Smacallansysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9649dfe64dd3Smacallan  version_type=freebsd-elf
9650dfe64dd3Smacallan  need_lib_prefix=no
9651dfe64dd3Smacallan  need_version=no
9652dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9653dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9654dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9655dfe64dd3Smacallan  shlibpath_overrides_runpath=yes
9656dfe64dd3Smacallan  hardcode_into_libs=yes
9657dfe64dd3Smacallan  if test "$with_gnu_ld" = yes; then
9658dfe64dd3Smacallan    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9659dfe64dd3Smacallan  else
9660dfe64dd3Smacallan    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9661dfe64dd3Smacallan    case $host_os in
9662dfe64dd3Smacallan      sco3.2v5*)
9663dfe64dd3Smacallan        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9664dfe64dd3Smacallan	;;
9665dfe64dd3Smacallan    esac
9666dfe64dd3Smacallan  fi
9667dfe64dd3Smacallan  sys_lib_dlsearch_path_spec='/usr/lib'
9668dfe64dd3Smacallan  ;;
9669dfe64dd3Smacallan
9670dfe64dd3Smacallantpf*)
9671dfe64dd3Smacallan  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9672dfe64dd3Smacallan  version_type=linux
9673dfe64dd3Smacallan  need_lib_prefix=no
9674dfe64dd3Smacallan  need_version=no
9675dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9677dfe64dd3Smacallan  shlibpath_overrides_runpath=no
9678dfe64dd3Smacallan  hardcode_into_libs=yes
9679dfe64dd3Smacallan  ;;
9680dfe64dd3Smacallan
9681dfe64dd3Smacallanuts4*)
9682dfe64dd3Smacallan  version_type=linux
9683dfe64dd3Smacallan  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684dfe64dd3Smacallan  soname_spec='${libname}${release}${shared_ext}$major'
9685dfe64dd3Smacallan  shlibpath_var=LD_LIBRARY_PATH
9686dfe64dd3Smacallan  ;;
9687dfe64dd3Smacallan
9688dfe64dd3Smacallan*)
9689dfe64dd3Smacallan  dynamic_linker=no
9690dfe64dd3Smacallan  ;;
9691dfe64dd3Smacallanesac
9692dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9693dfe64dd3Smacallan$as_echo "$dynamic_linker" >&6; }
9694dfe64dd3Smacallantest "$dynamic_linker" = no && can_build_shared=no
9695dfe64dd3Smacallan
9696dfe64dd3Smacallanvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9697dfe64dd3Smacallanif test "$GCC" = yes; then
9698dfe64dd3Smacallan  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9699dfe64dd3Smacallanfi
9700dfe64dd3Smacallan
9701dfe64dd3Smacallanif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9702dfe64dd3Smacallan  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9703dfe64dd3Smacallanfi
9704dfe64dd3Smacallanif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9705dfe64dd3Smacallan  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9706dfe64dd3Smacallanfi
9707dfe64dd3Smacallan
9708dfe64dd3Smacallan
9709dfe64dd3Smacallan
9710dfe64dd3Smacallan
9711dfe64dd3Smacallan
9712dfe64dd3Smacallan
9713dfe64dd3Smacallan
9714dfe64dd3Smacallan
9715dfe64dd3Smacallan
9716dfe64dd3Smacallan
9717dfe64dd3Smacallan
9718dfe64dd3Smacallan
9719dfe64dd3Smacallan
9720dfe64dd3Smacallan
9721dfe64dd3Smacallan
9722dfe64dd3Smacallan
9723dfe64dd3Smacallan
9724dfe64dd3Smacallan
9725dfe64dd3Smacallan
9726dfe64dd3Smacallan
9727dfe64dd3Smacallan
9728dfe64dd3Smacallan
9729dfe64dd3Smacallan
9730dfe64dd3Smacallan
9731dfe64dd3Smacallan
9732dfe64dd3Smacallan
9733dfe64dd3Smacallan
9734dfe64dd3Smacallan
9735dfe64dd3Smacallan
9736dfe64dd3Smacallan
9737dfe64dd3Smacallan
9738dfe64dd3Smacallan
9739dfe64dd3Smacallan
9740dfe64dd3Smacallan
9741dfe64dd3Smacallan
9742dfe64dd3Smacallan
9743dfe64dd3Smacallan
9744dfe64dd3Smacallan
9745dfe64dd3Smacallan
9746dfe64dd3Smacallan
9747dfe64dd3Smacallan
9748dfe64dd3Smacallan
9749dfe64dd3Smacallan
9750dfe64dd3Smacallan
9751dfe64dd3Smacallan
9752dfe64dd3Smacallan
9753dfe64dd3Smacallan
9754dfe64dd3Smacallan
9755dfe64dd3Smacallan
9756dfe64dd3Smacallan
9757dfe64dd3Smacallan
9758dfe64dd3Smacallan
9759dfe64dd3Smacallan
9760dfe64dd3Smacallan
9761dfe64dd3Smacallan
9762dfe64dd3Smacallan
9763dfe64dd3Smacallan
9764dfe64dd3Smacallan
9765dfe64dd3Smacallan
9766dfe64dd3Smacallan
9767dfe64dd3Smacallan
9768dfe64dd3Smacallan
9769dfe64dd3Smacallan
9770dfe64dd3Smacallan
9771dfe64dd3Smacallan
9772dfe64dd3Smacallan
9773dfe64dd3Smacallan
9774dfe64dd3Smacallan
9775dfe64dd3Smacallan
9776dfe64dd3Smacallan
9777dfe64dd3Smacallan
9778dfe64dd3Smacallan
9779dfe64dd3Smacallan
9780dfe64dd3Smacallan
9781dfe64dd3Smacallan
9782dfe64dd3Smacallan
9783dfe64dd3Smacallan
9784dfe64dd3Smacallan
9785dfe64dd3Smacallan
9786dfe64dd3Smacallan
9787dfe64dd3Smacallan
9788dfe64dd3Smacallan
9789dfe64dd3Smacallan
9790dfe64dd3Smacallan
9791dfe64dd3Smacallan
9792dfe64dd3Smacallan
9793dfe64dd3Smacallan
9794dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9795dfe64dd3Smacallan$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9796dfe64dd3Smacallanhardcode_action=
9797dfe64dd3Smacallanif test -n "$hardcode_libdir_flag_spec" ||
9798dfe64dd3Smacallan   test -n "$runpath_var" ||
9799dfe64dd3Smacallan   test "X$hardcode_automatic" = "Xyes" ; then
9800dfe64dd3Smacallan
9801dfe64dd3Smacallan  # We can hardcode non-existent directories.
9802dfe64dd3Smacallan  if test "$hardcode_direct" != no &&
9803dfe64dd3Smacallan     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9804dfe64dd3Smacallan     # have to relink, otherwise we might link with an installed library
9805dfe64dd3Smacallan     # when we should be linking with a yet-to-be-installed one
9806dfe64dd3Smacallan     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9807dfe64dd3Smacallan     test "$hardcode_minus_L" != no; then
9808dfe64dd3Smacallan    # Linking always hardcodes the temporary library directory.
9809dfe64dd3Smacallan    hardcode_action=relink
9810dfe64dd3Smacallan  else
9811dfe64dd3Smacallan    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9812dfe64dd3Smacallan    hardcode_action=immediate
9813dfe64dd3Smacallan  fi
9814dfe64dd3Smacallanelse
9815dfe64dd3Smacallan  # We cannot hardcode anything, or else we can only hardcode existing
9816dfe64dd3Smacallan  # directories.
9817dfe64dd3Smacallan  hardcode_action=unsupported
9818dfe64dd3Smacallanfi
9819dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9820dfe64dd3Smacallan$as_echo "$hardcode_action" >&6; }
9821dfe64dd3Smacallan
9822dfe64dd3Smacallanif test "$hardcode_action" = relink ||
9823dfe64dd3Smacallan   test "$inherit_rpath" = yes; then
9824dfe64dd3Smacallan  # Fast installation is not supported
9825dfe64dd3Smacallan  enable_fast_install=no
9826dfe64dd3Smacallanelif test "$shlibpath_overrides_runpath" = yes ||
9827dfe64dd3Smacallan     test "$enable_shared" = no; then
9828dfe64dd3Smacallan  # Fast installation is not necessary
9829dfe64dd3Smacallan  enable_fast_install=needless
9830dfe64dd3Smacallanfi
9831dfe64dd3Smacallan
9832dfe64dd3Smacallan
9833dfe64dd3Smacallan
9834dfe64dd3Smacallan
9835dfe64dd3Smacallan
9836dfe64dd3Smacallan
9837dfe64dd3Smacallan  if test "x$enable_dlopen" != xyes; then
9838dfe64dd3Smacallan  enable_dlopen=unknown
9839dfe64dd3Smacallan  enable_dlopen_self=unknown
9840dfe64dd3Smacallan  enable_dlopen_self_static=unknown
9841dfe64dd3Smacallanelse
9842dfe64dd3Smacallan  lt_cv_dlopen=no
9843dfe64dd3Smacallan  lt_cv_dlopen_libs=
9844dfe64dd3Smacallan
9845dfe64dd3Smacallan  case $host_os in
9846dfe64dd3Smacallan  beos*)
9847dfe64dd3Smacallan    lt_cv_dlopen="load_add_on"
9848dfe64dd3Smacallan    lt_cv_dlopen_libs=
9849dfe64dd3Smacallan    lt_cv_dlopen_self=yes
9850dfe64dd3Smacallan    ;;
9851dfe64dd3Smacallan
9852dfe64dd3Smacallan  mingw* | pw32* | cegcc*)
9853dfe64dd3Smacallan    lt_cv_dlopen="LoadLibrary"
9854dfe64dd3Smacallan    lt_cv_dlopen_libs=
9855dfe64dd3Smacallan    ;;
9856dfe64dd3Smacallan
9857dfe64dd3Smacallan  cygwin*)
9858dfe64dd3Smacallan    lt_cv_dlopen="dlopen"
9859dfe64dd3Smacallan    lt_cv_dlopen_libs=
9860dfe64dd3Smacallan    ;;
9861dfe64dd3Smacallan
9862dfe64dd3Smacallan  darwin*)
9863dfe64dd3Smacallan  # if libdl is installed we need to link against it
9864dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9865dfe64dd3Smacallan$as_echo_n "checking for dlopen in -ldl... " >&6; }
9866dfe64dd3Smacallanif test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9867dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
9868dfe64dd3Smacallanelse
9869dfe64dd3Smacallan  ac_check_lib_save_LIBS=$LIBS
9870dfe64dd3SmacallanLIBS="-ldl  $LIBS"
9871dfe64dd3Smacallancat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872dfe64dd3Smacallan/* end confdefs.h.  */
9873dfe64dd3Smacallan
9874dfe64dd3Smacallan/* Override any GCC internal prototype to avoid an error.
9875dfe64dd3Smacallan   Use char because int might match the return type of a GCC
9876dfe64dd3Smacallan   builtin and then its argument prototype would still apply.  */
9877dfe64dd3Smacallan#ifdef __cplusplus
9878dfe64dd3Smacallanextern "C"
9879dfe64dd3Smacallan#endif
9880dfe64dd3Smacallanchar dlopen ();
9881dfe64dd3Smacallanint
9882dfe64dd3Smacallanmain ()
9883dfe64dd3Smacallan{
9884dfe64dd3Smacallanreturn dlopen ();
9885dfe64dd3Smacallan  ;
9886dfe64dd3Smacallan  return 0;
9887dfe64dd3Smacallan}
9888dfe64dd3Smacallan_ACEOF
9889dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
9890dfe64dd3Smacallan  ac_cv_lib_dl_dlopen=yes
9891dfe64dd3Smacallanelse
9892dfe64dd3Smacallan  ac_cv_lib_dl_dlopen=no
9893dfe64dd3Smacallanfi
9894dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
9895dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
9896dfe64dd3SmacallanLIBS=$ac_check_lib_save_LIBS
9897dfe64dd3Smacallanfi
9898dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9899dfe64dd3Smacallan$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9900dfe64dd3Smacallanif test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9901dfe64dd3Smacallan  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9902dfe64dd3Smacallanelse
9903dfe64dd3Smacallan
9904dfe64dd3Smacallan    lt_cv_dlopen="dyld"
9905dfe64dd3Smacallan    lt_cv_dlopen_libs=
9906dfe64dd3Smacallan    lt_cv_dlopen_self=yes
9907dfe64dd3Smacallan
9908dfe64dd3Smacallanfi
9909dfe64dd3Smacallan
9910dfe64dd3Smacallan    ;;
9911dfe64dd3Smacallan
9912dfe64dd3Smacallan  *)
9913dfe64dd3Smacallan    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9914dfe64dd3Smacallanif test "x$ac_cv_func_shl_load" = x""yes; then :
9915dfe64dd3Smacallan  lt_cv_dlopen="shl_load"
9916dfe64dd3Smacallanelse
9917dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9918dfe64dd3Smacallan$as_echo_n "checking for shl_load in -ldld... " >&6; }
9919dfe64dd3Smacallanif test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9920dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
9921dfe64dd3Smacallanelse
9922dfe64dd3Smacallan  ac_check_lib_save_LIBS=$LIBS
9923dfe64dd3SmacallanLIBS="-ldld  $LIBS"
9924dfe64dd3Smacallancat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925dfe64dd3Smacallan/* end confdefs.h.  */
9926dfe64dd3Smacallan
9927dfe64dd3Smacallan/* Override any GCC internal prototype to avoid an error.
9928dfe64dd3Smacallan   Use char because int might match the return type of a GCC
9929dfe64dd3Smacallan   builtin and then its argument prototype would still apply.  */
9930dfe64dd3Smacallan#ifdef __cplusplus
9931dfe64dd3Smacallanextern "C"
9932dfe64dd3Smacallan#endif
9933dfe64dd3Smacallanchar shl_load ();
9934dfe64dd3Smacallanint
9935dfe64dd3Smacallanmain ()
9936dfe64dd3Smacallan{
9937dfe64dd3Smacallanreturn shl_load ();
9938dfe64dd3Smacallan  ;
9939dfe64dd3Smacallan  return 0;
9940dfe64dd3Smacallan}
9941dfe64dd3Smacallan_ACEOF
9942dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
9943dfe64dd3Smacallan  ac_cv_lib_dld_shl_load=yes
9944dfe64dd3Smacallanelse
9945dfe64dd3Smacallan  ac_cv_lib_dld_shl_load=no
9946dfe64dd3Smacallanfi
9947dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
9948dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
9949dfe64dd3SmacallanLIBS=$ac_check_lib_save_LIBS
9950dfe64dd3Smacallanfi
9951dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9952dfe64dd3Smacallan$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9953dfe64dd3Smacallanif test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9954dfe64dd3Smacallan  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9955dfe64dd3Smacallanelse
9956dfe64dd3Smacallan  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9957dfe64dd3Smacallanif test "x$ac_cv_func_dlopen" = x""yes; then :
9958dfe64dd3Smacallan  lt_cv_dlopen="dlopen"
9959dfe64dd3Smacallanelse
9960dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9961dfe64dd3Smacallan$as_echo_n "checking for dlopen in -ldl... " >&6; }
9962dfe64dd3Smacallanif test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9963dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
9964dfe64dd3Smacallanelse
9965dfe64dd3Smacallan  ac_check_lib_save_LIBS=$LIBS
9966dfe64dd3SmacallanLIBS="-ldl  $LIBS"
9967dfe64dd3Smacallancat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968dfe64dd3Smacallan/* end confdefs.h.  */
9969dfe64dd3Smacallan
9970dfe64dd3Smacallan/* Override any GCC internal prototype to avoid an error.
9971dfe64dd3Smacallan   Use char because int might match the return type of a GCC
9972dfe64dd3Smacallan   builtin and then its argument prototype would still apply.  */
9973dfe64dd3Smacallan#ifdef __cplusplus
9974dfe64dd3Smacallanextern "C"
9975dfe64dd3Smacallan#endif
9976dfe64dd3Smacallanchar dlopen ();
9977dfe64dd3Smacallanint
9978dfe64dd3Smacallanmain ()
9979dfe64dd3Smacallan{
9980dfe64dd3Smacallanreturn dlopen ();
9981dfe64dd3Smacallan  ;
9982dfe64dd3Smacallan  return 0;
9983dfe64dd3Smacallan}
9984dfe64dd3Smacallan_ACEOF
9985dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
9986dfe64dd3Smacallan  ac_cv_lib_dl_dlopen=yes
9987dfe64dd3Smacallanelse
9988dfe64dd3Smacallan  ac_cv_lib_dl_dlopen=no
9989dfe64dd3Smacallanfi
9990dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
9991dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
9992dfe64dd3SmacallanLIBS=$ac_check_lib_save_LIBS
9993dfe64dd3Smacallanfi
9994dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9995dfe64dd3Smacallan$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9996dfe64dd3Smacallanif test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9997dfe64dd3Smacallan  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9998dfe64dd3Smacallanelse
9999dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10000dfe64dd3Smacallan$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10001dfe64dd3Smacallanif test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10002dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
10003dfe64dd3Smacallanelse
10004dfe64dd3Smacallan  ac_check_lib_save_LIBS=$LIBS
10005dfe64dd3SmacallanLIBS="-lsvld  $LIBS"
10006dfe64dd3Smacallancat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007dfe64dd3Smacallan/* end confdefs.h.  */
10008dfe64dd3Smacallan
10009dfe64dd3Smacallan/* Override any GCC internal prototype to avoid an error.
10010dfe64dd3Smacallan   Use char because int might match the return type of a GCC
10011dfe64dd3Smacallan   builtin and then its argument prototype would still apply.  */
10012dfe64dd3Smacallan#ifdef __cplusplus
10013dfe64dd3Smacallanextern "C"
10014dfe64dd3Smacallan#endif
10015dfe64dd3Smacallanchar dlopen ();
10016dfe64dd3Smacallanint
10017dfe64dd3Smacallanmain ()
10018dfe64dd3Smacallan{
10019dfe64dd3Smacallanreturn dlopen ();
10020dfe64dd3Smacallan  ;
10021dfe64dd3Smacallan  return 0;
10022dfe64dd3Smacallan}
10023dfe64dd3Smacallan_ACEOF
10024dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
10025dfe64dd3Smacallan  ac_cv_lib_svld_dlopen=yes
10026dfe64dd3Smacallanelse
10027dfe64dd3Smacallan  ac_cv_lib_svld_dlopen=no
10028dfe64dd3Smacallanfi
10029dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
10030dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
10031dfe64dd3SmacallanLIBS=$ac_check_lib_save_LIBS
10032dfe64dd3Smacallanfi
10033dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10034dfe64dd3Smacallan$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10035dfe64dd3Smacallanif test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10036dfe64dd3Smacallan  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10037dfe64dd3Smacallanelse
10038dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10039dfe64dd3Smacallan$as_echo_n "checking for dld_link in -ldld... " >&6; }
10040dfe64dd3Smacallanif test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10041dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
10042dfe64dd3Smacallanelse
10043dfe64dd3Smacallan  ac_check_lib_save_LIBS=$LIBS
10044dfe64dd3SmacallanLIBS="-ldld  $LIBS"
10045dfe64dd3Smacallancat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046dfe64dd3Smacallan/* end confdefs.h.  */
10047dfe64dd3Smacallan
10048dfe64dd3Smacallan/* Override any GCC internal prototype to avoid an error.
10049dfe64dd3Smacallan   Use char because int might match the return type of a GCC
10050dfe64dd3Smacallan   builtin and then its argument prototype would still apply.  */
10051dfe64dd3Smacallan#ifdef __cplusplus
10052dfe64dd3Smacallanextern "C"
10053dfe64dd3Smacallan#endif
10054dfe64dd3Smacallanchar dld_link ();
10055dfe64dd3Smacallanint
10056dfe64dd3Smacallanmain ()
10057dfe64dd3Smacallan{
10058dfe64dd3Smacallanreturn dld_link ();
10059dfe64dd3Smacallan  ;
10060dfe64dd3Smacallan  return 0;
10061dfe64dd3Smacallan}
10062dfe64dd3Smacallan_ACEOF
10063dfe64dd3Smacallanif ac_fn_c_try_link "$LINENO"; then :
10064dfe64dd3Smacallan  ac_cv_lib_dld_dld_link=yes
10065dfe64dd3Smacallanelse
10066dfe64dd3Smacallan  ac_cv_lib_dld_dld_link=no
10067dfe64dd3Smacallanfi
10068dfe64dd3Smacallanrm -f core conftest.err conftest.$ac_objext \
10069dfe64dd3Smacallan    conftest$ac_exeext conftest.$ac_ext
10070dfe64dd3SmacallanLIBS=$ac_check_lib_save_LIBS
10071dfe64dd3Smacallanfi
10072dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10073dfe64dd3Smacallan$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10074dfe64dd3Smacallanif test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10075dfe64dd3Smacallan  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10076dfe64dd3Smacallanfi
10077dfe64dd3Smacallan
10078dfe64dd3Smacallan
10079dfe64dd3Smacallanfi
10080dfe64dd3Smacallan
10081dfe64dd3Smacallan
10082dfe64dd3Smacallanfi
10083dfe64dd3Smacallan
10084dfe64dd3Smacallan
10085dfe64dd3Smacallanfi
10086dfe64dd3Smacallan
10087dfe64dd3Smacallan
10088dfe64dd3Smacallanfi
10089dfe64dd3Smacallan
10090dfe64dd3Smacallan
10091dfe64dd3Smacallanfi
10092dfe64dd3Smacallan
10093dfe64dd3Smacallan    ;;
10094dfe64dd3Smacallan  esac
10095dfe64dd3Smacallan
10096dfe64dd3Smacallan  if test "x$lt_cv_dlopen" != xno; then
10097dfe64dd3Smacallan    enable_dlopen=yes
10098dfe64dd3Smacallan  else
10099dfe64dd3Smacallan    enable_dlopen=no
10100dfe64dd3Smacallan  fi
10101dfe64dd3Smacallan
10102dfe64dd3Smacallan  case $lt_cv_dlopen in
10103dfe64dd3Smacallan  dlopen)
10104dfe64dd3Smacallan    save_CPPFLAGS="$CPPFLAGS"
10105dfe64dd3Smacallan    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10106dfe64dd3Smacallan
10107dfe64dd3Smacallan    save_LDFLAGS="$LDFLAGS"
10108dfe64dd3Smacallan    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10109dfe64dd3Smacallan
10110dfe64dd3Smacallan    save_LIBS="$LIBS"
10111dfe64dd3Smacallan    LIBS="$lt_cv_dlopen_libs $LIBS"
10112dfe64dd3Smacallan
10113dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10114dfe64dd3Smacallan$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10115dfe64dd3Smacallanif test "${lt_cv_dlopen_self+set}" = set; then :
10116dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
10117dfe64dd3Smacallanelse
10118dfe64dd3Smacallan  	  if test "$cross_compiling" = yes; then :
10119dfe64dd3Smacallan  lt_cv_dlopen_self=cross
10120dfe64dd3Smacallanelse
10121dfe64dd3Smacallan  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10122dfe64dd3Smacallan  lt_status=$lt_dlunknown
10123dfe64dd3Smacallan  cat > conftest.$ac_ext <<_LT_EOF
10124dfe64dd3Smacallan#line 10124 "configure"
10125dfe64dd3Smacallan#include "confdefs.h"
10126dfe64dd3Smacallan
10127dfe64dd3Smacallan#if HAVE_DLFCN_H
10128dfe64dd3Smacallan#include <dlfcn.h>
10129dfe64dd3Smacallan#endif
10130dfe64dd3Smacallan
10131dfe64dd3Smacallan#include <stdio.h>
10132dfe64dd3Smacallan
10133dfe64dd3Smacallan#ifdef RTLD_GLOBAL
10134dfe64dd3Smacallan#  define LT_DLGLOBAL		RTLD_GLOBAL
10135dfe64dd3Smacallan#else
10136dfe64dd3Smacallan#  ifdef DL_GLOBAL
10137dfe64dd3Smacallan#    define LT_DLGLOBAL		DL_GLOBAL
10138dfe64dd3Smacallan#  else
10139dfe64dd3Smacallan#    define LT_DLGLOBAL		0
10140dfe64dd3Smacallan#  endif
10141dfe64dd3Smacallan#endif
10142dfe64dd3Smacallan
10143dfe64dd3Smacallan/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10144dfe64dd3Smacallan   find out it does not work in some platform. */
10145dfe64dd3Smacallan#ifndef LT_DLLAZY_OR_NOW
10146dfe64dd3Smacallan#  ifdef RTLD_LAZY
10147dfe64dd3Smacallan#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10148dfe64dd3Smacallan#  else
10149dfe64dd3Smacallan#    ifdef DL_LAZY
10150dfe64dd3Smacallan#      define LT_DLLAZY_OR_NOW		DL_LAZY
10151dfe64dd3Smacallan#    else
10152dfe64dd3Smacallan#      ifdef RTLD_NOW
10153dfe64dd3Smacallan#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10154dfe64dd3Smacallan#      else
10155dfe64dd3Smacallan#        ifdef DL_NOW
10156dfe64dd3Smacallan#          define LT_DLLAZY_OR_NOW	DL_NOW
10157dfe64dd3Smacallan#        else
10158dfe64dd3Smacallan#          define LT_DLLAZY_OR_NOW	0
10159dfe64dd3Smacallan#        endif
10160dfe64dd3Smacallan#      endif
10161dfe64dd3Smacallan#    endif
10162dfe64dd3Smacallan#  endif
10163dfe64dd3Smacallan#endif
10164dfe64dd3Smacallan
10165dfe64dd3Smacallanvoid fnord() { int i=42;}
10166dfe64dd3Smacallanint main ()
10167dfe64dd3Smacallan{
10168dfe64dd3Smacallan  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10169dfe64dd3Smacallan  int status = $lt_dlunknown;
10170dfe64dd3Smacallan
10171dfe64dd3Smacallan  if (self)
10172dfe64dd3Smacallan    {
10173dfe64dd3Smacallan      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10174dfe64dd3Smacallan      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10175dfe64dd3Smacallan      /* dlclose (self); */
10176dfe64dd3Smacallan    }
10177dfe64dd3Smacallan  else
10178dfe64dd3Smacallan    puts (dlerror ());
10179dfe64dd3Smacallan
10180dfe64dd3Smacallan  return status;
10181dfe64dd3Smacallan}
10182dfe64dd3Smacallan_LT_EOF
10183dfe64dd3Smacallan  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10184dfe64dd3Smacallan  (eval $ac_link) 2>&5
10185dfe64dd3Smacallan  ac_status=$?
10186dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10187dfe64dd3Smacallan  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10188dfe64dd3Smacallan    (./conftest; exit; ) >&5 2>/dev/null
10189dfe64dd3Smacallan    lt_status=$?
10190dfe64dd3Smacallan    case x$lt_status in
10191dfe64dd3Smacallan      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10192dfe64dd3Smacallan      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10193dfe64dd3Smacallan      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10194dfe64dd3Smacallan    esac
10195dfe64dd3Smacallan  else :
10196dfe64dd3Smacallan    # compilation failed
10197dfe64dd3Smacallan    lt_cv_dlopen_self=no
10198dfe64dd3Smacallan  fi
10199dfe64dd3Smacallanfi
10200dfe64dd3Smacallanrm -fr conftest*
10201dfe64dd3Smacallan
10202dfe64dd3Smacallan
10203dfe64dd3Smacallanfi
10204dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10205dfe64dd3Smacallan$as_echo "$lt_cv_dlopen_self" >&6; }
10206dfe64dd3Smacallan
10207dfe64dd3Smacallan    if test "x$lt_cv_dlopen_self" = xyes; then
10208dfe64dd3Smacallan      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10209dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10210dfe64dd3Smacallan$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10211dfe64dd3Smacallanif test "${lt_cv_dlopen_self_static+set}" = set; then :
10212dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
10213dfe64dd3Smacallanelse
10214dfe64dd3Smacallan  	  if test "$cross_compiling" = yes; then :
10215dfe64dd3Smacallan  lt_cv_dlopen_self_static=cross
10216dfe64dd3Smacallanelse
10217dfe64dd3Smacallan  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218dfe64dd3Smacallan  lt_status=$lt_dlunknown
10219dfe64dd3Smacallan  cat > conftest.$ac_ext <<_LT_EOF
10220dfe64dd3Smacallan#line 10220 "configure"
10221dfe64dd3Smacallan#include "confdefs.h"
10222dfe64dd3Smacallan
10223dfe64dd3Smacallan#if HAVE_DLFCN_H
10224dfe64dd3Smacallan#include <dlfcn.h>
10225dfe64dd3Smacallan#endif
10226dfe64dd3Smacallan
10227dfe64dd3Smacallan#include <stdio.h>
10228dfe64dd3Smacallan
10229dfe64dd3Smacallan#ifdef RTLD_GLOBAL
10230dfe64dd3Smacallan#  define LT_DLGLOBAL		RTLD_GLOBAL
10231dfe64dd3Smacallan#else
10232dfe64dd3Smacallan#  ifdef DL_GLOBAL
10233dfe64dd3Smacallan#    define LT_DLGLOBAL		DL_GLOBAL
10234dfe64dd3Smacallan#  else
10235dfe64dd3Smacallan#    define LT_DLGLOBAL		0
10236dfe64dd3Smacallan#  endif
10237dfe64dd3Smacallan#endif
10238dfe64dd3Smacallan
10239dfe64dd3Smacallan/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240dfe64dd3Smacallan   find out it does not work in some platform. */
10241dfe64dd3Smacallan#ifndef LT_DLLAZY_OR_NOW
10242dfe64dd3Smacallan#  ifdef RTLD_LAZY
10243dfe64dd3Smacallan#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10244dfe64dd3Smacallan#  else
10245dfe64dd3Smacallan#    ifdef DL_LAZY
10246dfe64dd3Smacallan#      define LT_DLLAZY_OR_NOW		DL_LAZY
10247dfe64dd3Smacallan#    else
10248dfe64dd3Smacallan#      ifdef RTLD_NOW
10249dfe64dd3Smacallan#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10250dfe64dd3Smacallan#      else
10251dfe64dd3Smacallan#        ifdef DL_NOW
10252dfe64dd3Smacallan#          define LT_DLLAZY_OR_NOW	DL_NOW
10253dfe64dd3Smacallan#        else
10254dfe64dd3Smacallan#          define LT_DLLAZY_OR_NOW	0
10255dfe64dd3Smacallan#        endif
10256dfe64dd3Smacallan#      endif
10257dfe64dd3Smacallan#    endif
10258dfe64dd3Smacallan#  endif
10259dfe64dd3Smacallan#endif
10260dfe64dd3Smacallan
10261dfe64dd3Smacallanvoid fnord() { int i=42;}
10262dfe64dd3Smacallanint main ()
10263dfe64dd3Smacallan{
10264dfe64dd3Smacallan  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10265dfe64dd3Smacallan  int status = $lt_dlunknown;
10266dfe64dd3Smacallan
10267dfe64dd3Smacallan  if (self)
10268dfe64dd3Smacallan    {
10269dfe64dd3Smacallan      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10270dfe64dd3Smacallan      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10271dfe64dd3Smacallan      /* dlclose (self); */
10272dfe64dd3Smacallan    }
10273dfe64dd3Smacallan  else
10274dfe64dd3Smacallan    puts (dlerror ());
10275dfe64dd3Smacallan
10276dfe64dd3Smacallan  return status;
10277dfe64dd3Smacallan}
10278dfe64dd3Smacallan_LT_EOF
10279dfe64dd3Smacallan  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10280dfe64dd3Smacallan  (eval $ac_link) 2>&5
10281dfe64dd3Smacallan  ac_status=$?
10282dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10283dfe64dd3Smacallan  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10284dfe64dd3Smacallan    (./conftest; exit; ) >&5 2>/dev/null
10285dfe64dd3Smacallan    lt_status=$?
10286dfe64dd3Smacallan    case x$lt_status in
10287dfe64dd3Smacallan      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10288dfe64dd3Smacallan      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10289dfe64dd3Smacallan      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10290dfe64dd3Smacallan    esac
10291dfe64dd3Smacallan  else :
10292dfe64dd3Smacallan    # compilation failed
10293dfe64dd3Smacallan    lt_cv_dlopen_self_static=no
10294dfe64dd3Smacallan  fi
10295dfe64dd3Smacallanfi
10296dfe64dd3Smacallanrm -fr conftest*
10297dfe64dd3Smacallan
10298dfe64dd3Smacallan
10299dfe64dd3Smacallanfi
10300dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10301dfe64dd3Smacallan$as_echo "$lt_cv_dlopen_self_static" >&6; }
10302dfe64dd3Smacallan    fi
10303dfe64dd3Smacallan
10304dfe64dd3Smacallan    CPPFLAGS="$save_CPPFLAGS"
10305dfe64dd3Smacallan    LDFLAGS="$save_LDFLAGS"
10306dfe64dd3Smacallan    LIBS="$save_LIBS"
10307dfe64dd3Smacallan    ;;
10308dfe64dd3Smacallan  esac
10309dfe64dd3Smacallan
10310dfe64dd3Smacallan  case $lt_cv_dlopen_self in
10311dfe64dd3Smacallan  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10312dfe64dd3Smacallan  *) enable_dlopen_self=unknown ;;
10313dfe64dd3Smacallan  esac
10314dfe64dd3Smacallan
10315dfe64dd3Smacallan  case $lt_cv_dlopen_self_static in
10316dfe64dd3Smacallan  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10317dfe64dd3Smacallan  *) enable_dlopen_self_static=unknown ;;
10318dfe64dd3Smacallan  esac
10319dfe64dd3Smacallanfi
10320dfe64dd3Smacallan
10321dfe64dd3Smacallan
10322dfe64dd3Smacallan
10323dfe64dd3Smacallan
10324dfe64dd3Smacallan
10325dfe64dd3Smacallan
10326dfe64dd3Smacallan
10327dfe64dd3Smacallan
10328dfe64dd3Smacallan
10329dfe64dd3Smacallan
10330dfe64dd3Smacallan
10331dfe64dd3Smacallan
10332dfe64dd3Smacallan
10333dfe64dd3Smacallan
10334dfe64dd3Smacallan
10335dfe64dd3Smacallan
10336dfe64dd3Smacallan
10337dfe64dd3Smacallanstriplib=
10338dfe64dd3Smacallanold_striplib=
10339dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10340dfe64dd3Smacallan$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10341dfe64dd3Smacallanif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10342dfe64dd3Smacallan  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10343dfe64dd3Smacallan  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10344dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10345dfe64dd3Smacallan$as_echo "yes" >&6; }
10346dfe64dd3Smacallanelse
10347dfe64dd3Smacallan# FIXME - insert some real tests, host_os isn't really good enough
10348dfe64dd3Smacallan  case $host_os in
10349dfe64dd3Smacallan  darwin*)
10350dfe64dd3Smacallan    if test -n "$STRIP" ; then
10351dfe64dd3Smacallan      striplib="$STRIP -x"
10352dfe64dd3Smacallan      old_striplib="$STRIP -S"
10353dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10354dfe64dd3Smacallan$as_echo "yes" >&6; }
10355dfe64dd3Smacallan    else
10356dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357dfe64dd3Smacallan$as_echo "no" >&6; }
10358dfe64dd3Smacallan    fi
10359dfe64dd3Smacallan    ;;
10360dfe64dd3Smacallan  *)
10361dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362dfe64dd3Smacallan$as_echo "no" >&6; }
10363dfe64dd3Smacallan    ;;
10364dfe64dd3Smacallan  esac
10365dfe64dd3Smacallanfi
10366dfe64dd3Smacallan
10367dfe64dd3Smacallan
10368dfe64dd3Smacallan
10369dfe64dd3Smacallan
10370dfe64dd3Smacallan
10371dfe64dd3Smacallan
10372dfe64dd3Smacallan
10373dfe64dd3Smacallan
10374dfe64dd3Smacallan
10375dfe64dd3Smacallan
10376dfe64dd3Smacallan
10377dfe64dd3Smacallan
10378dfe64dd3Smacallan  # Report which library types will actually be built
10379dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10380dfe64dd3Smacallan$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10381dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10382dfe64dd3Smacallan$as_echo "$can_build_shared" >&6; }
10383dfe64dd3Smacallan
10384dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10385dfe64dd3Smacallan$as_echo_n "checking whether to build shared libraries... " >&6; }
10386dfe64dd3Smacallan  test "$can_build_shared" = "no" && enable_shared=no
10387dfe64dd3Smacallan
10388dfe64dd3Smacallan  # On AIX, shared libraries and static libraries use the same namespace, and
10389dfe64dd3Smacallan  # are all built from PIC.
10390dfe64dd3Smacallan  case $host_os in
10391dfe64dd3Smacallan  aix3*)
10392dfe64dd3Smacallan    test "$enable_shared" = yes && enable_static=no
10393dfe64dd3Smacallan    if test -n "$RANLIB"; then
10394dfe64dd3Smacallan      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10395dfe64dd3Smacallan      postinstall_cmds='$RANLIB $lib'
10396dfe64dd3Smacallan    fi
10397dfe64dd3Smacallan    ;;
10398dfe64dd3Smacallan
10399dfe64dd3Smacallan  aix[4-9]*)
10400dfe64dd3Smacallan    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10401dfe64dd3Smacallan      test "$enable_shared" = yes && enable_static=no
10402dfe64dd3Smacallan    fi
10403dfe64dd3Smacallan    ;;
10404dfe64dd3Smacallan  esac
10405dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10406dfe64dd3Smacallan$as_echo "$enable_shared" >&6; }
10407dfe64dd3Smacallan
10408dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10409dfe64dd3Smacallan$as_echo_n "checking whether to build static libraries... " >&6; }
10410dfe64dd3Smacallan  # Make sure either enable_shared or enable_static is yes.
10411dfe64dd3Smacallan  test "$enable_shared" = yes || enable_static=yes
10412dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10413dfe64dd3Smacallan$as_echo "$enable_static" >&6; }
10414dfe64dd3Smacallan
10415dfe64dd3Smacallan
10416dfe64dd3Smacallan
10417dfe64dd3Smacallan
10418dfe64dd3Smacallanfi
10419dfe64dd3Smacallanac_ext=c
10420dfe64dd3Smacallanac_cpp='$CPP $CPPFLAGS'
10421dfe64dd3Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10422dfe64dd3Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10423dfe64dd3Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu
10424dfe64dd3Smacallan
10425dfe64dd3SmacallanCC="$lt_save_CC"
10426dfe64dd3Smacallan
10427dfe64dd3Smacallan
10428dfe64dd3Smacallan
10429dfe64dd3Smacallan
10430dfe64dd3Smacallan
10431dfe64dd3Smacallan
10432dfe64dd3Smacallan
10433dfe64dd3Smacallan
10434dfe64dd3Smacallan
10435dfe64dd3Smacallan
10436dfe64dd3Smacallan
10437dfe64dd3Smacallan
10438dfe64dd3Smacallan
10439dfe64dd3Smacallan        ac_config_commands="$ac_config_commands libtool"
10440dfe64dd3Smacallan
10441dfe64dd3Smacallan
10442dfe64dd3Smacallan
10443dfe64dd3Smacallan
10444dfe64dd3Smacallan# Only expand once:
10445dfe64dd3Smacallan
10446dfe64dd3Smacallan
10447dfe64dd3Smacallan
10448dfe64dd3Smacallan
10449dfe64dd3Smacallan
10450dfe64dd3Smacallan# Define a configure option for an alternate module directory
10451dfe64dd3Smacallan
10452dfe64dd3Smacallan# Check whether --with-xorg-module-dir was given.
10453dfe64dd3Smacallanif test "${with_xorg_module_dir+set}" = set; then :
10454dfe64dd3Smacallan  withval=$with_xorg_module_dir; moduledir="$withval"
10455dfe64dd3Smacallanelse
10456dfe64dd3Smacallan  moduledir="$libdir/xorg/modules"
10457dfe64dd3Smacallanfi
10458dfe64dd3Smacallan
10459dfe64dd3Smacallan
10460dfe64dd3Smacallan# Check whether --enable-dri was given.
10461dfe64dd3Smacallanif test "${enable_dri+set}" = set; then :
10462dfe64dd3Smacallan  enableval=$enable_dri; DRI="$enableval"
10463dfe64dd3Smacallanelse
10464dfe64dd3Smacallan  DRI=auto
10465dfe64dd3Smacallanfi
10466dfe64dd3Smacallan
10467dfe64dd3Smacallan
10468dfe64dd3Smacallan# Store the list of server defined optional extensions in REQUIRED_MODULES
10469dfe64dd3SmacallanXORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto)
10470dfe64dd3SmacallanXORG_DRIVER_CHECK_EXT(RANDR, randrproto)
10471dfe64dd3SmacallanXORG_DRIVER_CHECK_EXT(RENDER, renderproto)
10472dfe64dd3SmacallanXORG_DRIVER_CHECK_EXT(XV, videoproto)
10473dfe64dd3SmacallanXORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
10474dfe64dd3Smacallan
10475dfe64dd3Smacallan# Obtain compiler/linker options for the driver dependencies
10476dfe64dd3Smacallan
10477dfe64dd3Smacallan
10478dfe64dd3Smacallan
10479dfe64dd3Smacallan
10480dfe64dd3Smacallan
10481dfe64dd3Smacallan
10482dfe64dd3Smacallanif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10483dfe64dd3Smacallan	if test -n "$ac_tool_prefix"; then
10484dfe64dd3Smacallan  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10485dfe64dd3Smacallanset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10486dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
10488dfe64dd3Smacallanif test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10489dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
10490dfe64dd3Smacallanelse
10491dfe64dd3Smacallan  case $PKG_CONFIG in
10492dfe64dd3Smacallan  [\\/]* | ?:[\\/]*)
10493dfe64dd3Smacallan  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10494dfe64dd3Smacallan  ;;
10495dfe64dd3Smacallan  *)
10496dfe64dd3Smacallan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497dfe64dd3Smacallanfor as_dir in $PATH
10498dfe64dd3Smacallando
10499dfe64dd3Smacallan  IFS=$as_save_IFS
10500dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
10501dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
10502dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503dfe64dd3Smacallan    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10504dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505dfe64dd3Smacallan    break 2
10506dfe64dd3Smacallan  fi
10507dfe64dd3Smacallandone
10508dfe64dd3Smacallan  done
10509dfe64dd3SmacallanIFS=$as_save_IFS
10510dfe64dd3Smacallan
10511dfe64dd3Smacallan  ;;
10512dfe64dd3Smacallanesac
10513dfe64dd3Smacallanfi
10514dfe64dd3SmacallanPKG_CONFIG=$ac_cv_path_PKG_CONFIG
10515dfe64dd3Smacallanif test -n "$PKG_CONFIG"; then
10516dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10517dfe64dd3Smacallan$as_echo "$PKG_CONFIG" >&6; }
10518dfe64dd3Smacallanelse
10519dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520dfe64dd3Smacallan$as_echo "no" >&6; }
10521dfe64dd3Smacallanfi
10522dfe64dd3Smacallan
10523dfe64dd3Smacallan
10524dfe64dd3Smacallanfi
10525dfe64dd3Smacallanif test -z "$ac_cv_path_PKG_CONFIG"; then
10526dfe64dd3Smacallan  ac_pt_PKG_CONFIG=$PKG_CONFIG
10527dfe64dd3Smacallan  # Extract the first word of "pkg-config", so it can be a program name with args.
10528dfe64dd3Smacallanset dummy pkg-config; ac_word=$2
10529dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530dfe64dd3Smacallan$as_echo_n "checking for $ac_word... " >&6; }
10531dfe64dd3Smacallanif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10532dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
10533dfe64dd3Smacallanelse
10534dfe64dd3Smacallan  case $ac_pt_PKG_CONFIG in
10535dfe64dd3Smacallan  [\\/]* | ?:[\\/]*)
10536dfe64dd3Smacallan  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10537dfe64dd3Smacallan  ;;
10538dfe64dd3Smacallan  *)
10539dfe64dd3Smacallan  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540dfe64dd3Smacallanfor as_dir in $PATH
10541dfe64dd3Smacallando
10542dfe64dd3Smacallan  IFS=$as_save_IFS
10543dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
10544dfe64dd3Smacallan    for ac_exec_ext in '' $ac_executable_extensions; do
10545dfe64dd3Smacallan  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546dfe64dd3Smacallan    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10547dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548dfe64dd3Smacallan    break 2
10549dfe64dd3Smacallan  fi
10550dfe64dd3Smacallandone
10551dfe64dd3Smacallan  done
10552dfe64dd3SmacallanIFS=$as_save_IFS
10553dfe64dd3Smacallan
10554dfe64dd3Smacallan  ;;
10555dfe64dd3Smacallanesac
10556dfe64dd3Smacallanfi
10557dfe64dd3Smacallanac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10558dfe64dd3Smacallanif test -n "$ac_pt_PKG_CONFIG"; then
10559dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10560dfe64dd3Smacallan$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10561dfe64dd3Smacallanelse
10562dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563dfe64dd3Smacallan$as_echo "no" >&6; }
10564dfe64dd3Smacallanfi
10565dfe64dd3Smacallan
10566dfe64dd3Smacallan  if test "x$ac_pt_PKG_CONFIG" = x; then
10567dfe64dd3Smacallan    PKG_CONFIG=""
10568dfe64dd3Smacallan  else
10569dfe64dd3Smacallan    case $cross_compiling:$ac_tool_warned in
10570dfe64dd3Smacallanyes:)
10571dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10572dfe64dd3Smacallan$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10573dfe64dd3Smacallanac_tool_warned=yes ;;
10574dfe64dd3Smacallanesac
10575dfe64dd3Smacallan    PKG_CONFIG=$ac_pt_PKG_CONFIG
10576dfe64dd3Smacallan  fi
10577dfe64dd3Smacallanelse
10578dfe64dd3Smacallan  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10579dfe64dd3Smacallanfi
10580dfe64dd3Smacallan
10581dfe64dd3Smacallanfi
10582dfe64dd3Smacallanif test -n "$PKG_CONFIG"; then
10583dfe64dd3Smacallan	_pkg_min_version=0.9.0
10584dfe64dd3Smacallan	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10585dfe64dd3Smacallan$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10586dfe64dd3Smacallan	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10587dfe64dd3Smacallan		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10588dfe64dd3Smacallan$as_echo "yes" >&6; }
10589dfe64dd3Smacallan	else
10590dfe64dd3Smacallan		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591dfe64dd3Smacallan$as_echo "no" >&6; }
10592dfe64dd3Smacallan		PKG_CONFIG=""
10593dfe64dd3Smacallan	fi
10594dfe64dd3Smacallanfi
10595dfe64dd3Smacallan
10596dfe64dd3Smacallanpkg_failed=no
10597dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
10598dfe64dd3Smacallan$as_echo_n "checking for XORG... " >&6; }
10599dfe64dd3Smacallan
10600dfe64dd3Smacallanif test -n "$XORG_CFLAGS"; then
10601dfe64dd3Smacallan    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
10602dfe64dd3Smacallan elif test -n "$PKG_CONFIG"; then
10603dfe64dd3Smacallan    if test -n "$PKG_CONFIG" && \
10604dfe64dd3Smacallan    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
10605dfe64dd3Smacallan  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
10606dfe64dd3Smacallan  ac_status=$?
10607dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10608dfe64dd3Smacallan  test $ac_status = 0; }; then
10609dfe64dd3Smacallan  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
10610dfe64dd3Smacallanelse
10611dfe64dd3Smacallan  pkg_failed=yes
10612dfe64dd3Smacallanfi
10613dfe64dd3Smacallan else
10614dfe64dd3Smacallan    pkg_failed=untried
10615dfe64dd3Smacallanfi
10616dfe64dd3Smacallanif test -n "$XORG_LIBS"; then
10617dfe64dd3Smacallan    pkg_cv_XORG_LIBS="$XORG_LIBS"
10618dfe64dd3Smacallan elif test -n "$PKG_CONFIG"; then
10619dfe64dd3Smacallan    if test -n "$PKG_CONFIG" && \
10620dfe64dd3Smacallan    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
10621dfe64dd3Smacallan  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
10622dfe64dd3Smacallan  ac_status=$?
10623dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10624dfe64dd3Smacallan  test $ac_status = 0; }; then
10625dfe64dd3Smacallan  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
10626dfe64dd3Smacallanelse
10627dfe64dd3Smacallan  pkg_failed=yes
10628dfe64dd3Smacallanfi
10629dfe64dd3Smacallan else
10630dfe64dd3Smacallan    pkg_failed=untried
10631dfe64dd3Smacallanfi
10632dfe64dd3Smacallan
10633dfe64dd3Smacallan
10634dfe64dd3Smacallan
10635dfe64dd3Smacallanif test $pkg_failed = yes; then
10636dfe64dd3Smacallan   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637dfe64dd3Smacallan$as_echo "no" >&6; }
10638dfe64dd3Smacallan
10639dfe64dd3Smacallanif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10640dfe64dd3Smacallan        _pkg_short_errors_supported=yes
10641dfe64dd3Smacallanelse
10642dfe64dd3Smacallan        _pkg_short_errors_supported=no
10643dfe64dd3Smacallanfi
10644dfe64dd3Smacallan        if test $_pkg_short_errors_supported = yes; then
10645dfe64dd3Smacallan	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
10646dfe64dd3Smacallan        else
10647dfe64dd3Smacallan	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
10648dfe64dd3Smacallan        fi
10649dfe64dd3Smacallan	# Put the nasty error message in config.log where it belongs
10650dfe64dd3Smacallan	echo "$XORG_PKG_ERRORS" >&5
10651dfe64dd3Smacallan
10652dfe64dd3Smacallan	as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
10653dfe64dd3Smacallan
10654dfe64dd3Smacallan$XORG_PKG_ERRORS
10655dfe64dd3Smacallan
10656dfe64dd3SmacallanConsider adjusting the PKG_CONFIG_PATH environment variable if you
10657dfe64dd3Smacallaninstalled software in a non-standard prefix.
10658dfe64dd3Smacallan
10659dfe64dd3SmacallanAlternatively, you may set the environment variables XORG_CFLAGS
10660dfe64dd3Smacallanand XORG_LIBS to avoid the need to call pkg-config.
10661dfe64dd3SmacallanSee the pkg-config man page for more details." "$LINENO" AS_MESSAGE_LOG_FDdnl
10662dfe64dd3Smacallan
10663dfe64dd3Smacallanelif test $pkg_failed = untried; then
10664dfe64dd3Smacallan     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665dfe64dd3Smacallan$as_echo "no" >&6; }
10666dfe64dd3Smacallan	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10667dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10668dfe64dd3Smacallanas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10669dfe64dd3Smacallanis in your PATH or set the PKG_CONFIG environment variable to the full
10670dfe64dd3Smacallanpath to pkg-config.
10671dfe64dd3Smacallan
10672dfe64dd3SmacallanAlternatively, you may set the environment variables XORG_CFLAGS
10673dfe64dd3Smacallanand XORG_LIBS to avoid the need to call pkg-config.
10674dfe64dd3SmacallanSee the pkg-config man page for more details.
10675dfe64dd3Smacallan
10676dfe64dd3SmacallanTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
10677dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
10678dfe64dd3Smacallanelse
10679dfe64dd3Smacallan	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
10680dfe64dd3Smacallan	XORG_LIBS=$pkg_cv_XORG_LIBS
10681dfe64dd3Smacallan        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10682dfe64dd3Smacallan$as_echo "yes" >&6; }
10683dfe64dd3Smacallan
10684dfe64dd3Smacallanfi
10685dfe64dd3Smacallan
10686dfe64dd3Smacallanpkg_failed=no
10687dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
10688dfe64dd3Smacallan$as_echo_n "checking for XEXT... " >&6; }
10689dfe64dd3Smacallan
10690dfe64dd3Smacallanif test -n "$XEXT_CFLAGS"; then
10691dfe64dd3Smacallan    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
10692dfe64dd3Smacallan elif test -n "$PKG_CONFIG"; then
10693dfe64dd3Smacallan    if test -n "$PKG_CONFIG" && \
10694dfe64dd3Smacallan    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
10695dfe64dd3Smacallan  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
10696dfe64dd3Smacallan  ac_status=$?
10697dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10698dfe64dd3Smacallan  test $ac_status = 0; }; then
10699dfe64dd3Smacallan  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
10700dfe64dd3Smacallanelse
10701dfe64dd3Smacallan  pkg_failed=yes
10702dfe64dd3Smacallanfi
10703dfe64dd3Smacallan else
10704dfe64dd3Smacallan    pkg_failed=untried
10705dfe64dd3Smacallanfi
10706dfe64dd3Smacallanif test -n "$XEXT_LIBS"; then
10707dfe64dd3Smacallan    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
10708dfe64dd3Smacallan elif test -n "$PKG_CONFIG"; then
10709dfe64dd3Smacallan    if test -n "$PKG_CONFIG" && \
10710dfe64dd3Smacallan    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
10711dfe64dd3Smacallan  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
10712dfe64dd3Smacallan  ac_status=$?
10713dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10714dfe64dd3Smacallan  test $ac_status = 0; }; then
10715dfe64dd3Smacallan  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
10716dfe64dd3Smacallanelse
10717dfe64dd3Smacallan  pkg_failed=yes
10718dfe64dd3Smacallanfi
10719dfe64dd3Smacallan else
10720dfe64dd3Smacallan    pkg_failed=untried
10721dfe64dd3Smacallanfi
10722dfe64dd3Smacallan
10723dfe64dd3Smacallan
10724dfe64dd3Smacallan
10725dfe64dd3Smacallanif test $pkg_failed = yes; then
10726dfe64dd3Smacallan   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727dfe64dd3Smacallan$as_echo "no" >&6; }
10728dfe64dd3Smacallan
10729dfe64dd3Smacallanif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10730dfe64dd3Smacallan        _pkg_short_errors_supported=yes
10731dfe64dd3Smacallanelse
10732dfe64dd3Smacallan        _pkg_short_errors_supported=no
10733dfe64dd3Smacallanfi
10734dfe64dd3Smacallan        if test $_pkg_short_errors_supported = yes; then
10735dfe64dd3Smacallan	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
10736dfe64dd3Smacallan        else
10737dfe64dd3Smacallan	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
10738dfe64dd3Smacallan        fi
10739dfe64dd3Smacallan	# Put the nasty error message in config.log where it belongs
10740dfe64dd3Smacallan	echo "$XEXT_PKG_ERRORS" >&5
10741dfe64dd3Smacallan
10742dfe64dd3Smacallan	HAVE_XEXTPROTO_71="no"
10743dfe64dd3Smacallanelif test $pkg_failed = untried; then
10744dfe64dd3Smacallan     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745dfe64dd3Smacallan$as_echo "no" >&6; }
10746dfe64dd3Smacallan	HAVE_XEXTPROTO_71="no"
10747dfe64dd3Smacallanelse
10748dfe64dd3Smacallan	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
10749dfe64dd3Smacallan	XEXT_LIBS=$pkg_cv_XEXT_LIBS
10750dfe64dd3Smacallan        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10751dfe64dd3Smacallan$as_echo "yes" >&6; }
10752dfe64dd3Smacallan	HAVE_XEXTPROTO_71="yes";
10753dfe64dd3Smacallan$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
10754dfe64dd3Smacallan
10755dfe64dd3Smacallanfi
10756dfe64dd3Smacallan if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
10757dfe64dd3Smacallan  HAVE_XEXTPROTO_71_TRUE=
10758dfe64dd3Smacallan  HAVE_XEXTPROTO_71_FALSE='#'
10759dfe64dd3Smacallanelse
10760dfe64dd3Smacallan  HAVE_XEXTPROTO_71_TRUE='#'
10761dfe64dd3Smacallan  HAVE_XEXTPROTO_71_FALSE=
10762dfe64dd3Smacallanfi
10763dfe64dd3Smacallan
10764dfe64dd3Smacallansdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
10765dfe64dd3Smacallan
10766dfe64dd3Smacallan# Checks for libraries.
10767dfe64dd3Smacallan
10768dfe64dd3Smacallanif test "x$DRI" = xauto; then
10769dfe64dd3Smacallan        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
10770dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
10771dfe64dd3Smacallan$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
10772dfe64dd3Smacallanif eval "test \"\${$as_ac_File+set}\"" = set; then :
10773dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
10774dfe64dd3Smacallanelse
10775dfe64dd3Smacallan  test "$cross_compiling" = yes &&
10776dfe64dd3Smacallan  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10777dfe64dd3Smacallanif test -r "${sdkdir}/dri.h"; then
10778dfe64dd3Smacallan  eval "$as_ac_File=yes"
10779dfe64dd3Smacallanelse
10780dfe64dd3Smacallan  eval "$as_ac_File=no"
10781dfe64dd3Smacallanfi
10782dfe64dd3Smacallanfi
10783dfe64dd3Smacallaneval ac_res=\$$as_ac_File
10784dfe64dd3Smacallan	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10785dfe64dd3Smacallan$as_echo "$ac_res" >&6; }
10786dfe64dd3Smacallanif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10787dfe64dd3Smacallan  have_dri_h="yes"
10788dfe64dd3Smacallanelse
10789dfe64dd3Smacallan  have_dri_h="no"
10790dfe64dd3Smacallanfi
10791dfe64dd3Smacallan
10792dfe64dd3Smacallan        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
10793dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
10794dfe64dd3Smacallan$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
10795dfe64dd3Smacallanif eval "test \"\${$as_ac_File+set}\"" = set; then :
10796dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
10797dfe64dd3Smacallanelse
10798dfe64dd3Smacallan  test "$cross_compiling" = yes &&
10799dfe64dd3Smacallan  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10800dfe64dd3Smacallanif test -r "${sdkdir}/sarea.h"; then
10801dfe64dd3Smacallan  eval "$as_ac_File=yes"
10802dfe64dd3Smacallanelse
10803dfe64dd3Smacallan  eval "$as_ac_File=no"
10804dfe64dd3Smacallanfi
10805dfe64dd3Smacallanfi
10806dfe64dd3Smacallaneval ac_res=\$$as_ac_File
10807dfe64dd3Smacallan	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10808dfe64dd3Smacallan$as_echo "$ac_res" >&6; }
10809dfe64dd3Smacallanif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10810dfe64dd3Smacallan  have_sarea_h="yes"
10811dfe64dd3Smacallanelse
10812dfe64dd3Smacallan  have_sarea_h="no"
10813dfe64dd3Smacallanfi
10814dfe64dd3Smacallan
10815dfe64dd3Smacallan        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
10816dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
10817dfe64dd3Smacallan$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
10818dfe64dd3Smacallanif eval "test \"\${$as_ac_File+set}\"" = set; then :
10819dfe64dd3Smacallan  $as_echo_n "(cached) " >&6
10820dfe64dd3Smacallanelse
10821dfe64dd3Smacallan  test "$cross_compiling" = yes &&
10822dfe64dd3Smacallan  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10823dfe64dd3Smacallanif test -r "${sdkdir}/dristruct.h"; then
10824dfe64dd3Smacallan  eval "$as_ac_File=yes"
10825dfe64dd3Smacallanelse
10826dfe64dd3Smacallan  eval "$as_ac_File=no"
10827dfe64dd3Smacallanfi
10828dfe64dd3Smacallanfi
10829dfe64dd3Smacallaneval ac_res=\$$as_ac_File
10830dfe64dd3Smacallan	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10831dfe64dd3Smacallan$as_echo "$ac_res" >&6; }
10832dfe64dd3Smacallanif eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10833dfe64dd3Smacallan  have_dristruct_h="yes"
10834dfe64dd3Smacallanelse
10835dfe64dd3Smacallan  have_dristruct_h="no"
10836dfe64dd3Smacallanfi
10837dfe64dd3Smacallan
10838dfe64dd3Smacallanfi
10839dfe64dd3Smacallan
10840dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
10841dfe64dd3Smacallan$as_echo_n "checking whether to include DRI support... " >&6; }
10842dfe64dd3Smacallanif test "x$DRI" = xauto; then
10843dfe64dd3Smacallan        if test "x$have_dri_h" = xyes && \
10844dfe64dd3Smacallan           test "x$have_sarea_h" = xyes && \
10845dfe64dd3Smacallan           test "x$have_dristruct_h" = xyes; then
10846dfe64dd3Smacallan                DRI="yes"
10847dfe64dd3Smacallan        else
10848dfe64dd3Smacallan                DRI="no"
10849dfe64dd3Smacallan        fi
10850dfe64dd3Smacallanfi
10851dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
10852dfe64dd3Smacallan$as_echo "$DRI" >&6; }
10853dfe64dd3Smacallan
10854dfe64dd3Smacallan if test "x$DRI" = xyes; then
10855dfe64dd3Smacallan  DRI_TRUE=
10856dfe64dd3Smacallan  DRI_FALSE='#'
10857dfe64dd3Smacallanelse
10858dfe64dd3Smacallan  DRI_TRUE='#'
10859dfe64dd3Smacallan  DRI_FALSE=
10860dfe64dd3Smacallanfi
10861dfe64dd3Smacallan
10862dfe64dd3Smacallanif test "x$DRI" = xyes; then
10863dfe64dd3Smacallan
10864dfe64dd3Smacallanpkg_failed=no
10865dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
10866dfe64dd3Smacallan$as_echo_n "checking for DRI... " >&6; }
10867dfe64dd3Smacallan
10868dfe64dd3Smacallanif test -n "$DRI_CFLAGS"; then
10869dfe64dd3Smacallan    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
10870dfe64dd3Smacallan elif test -n "$PKG_CONFIG"; then
10871dfe64dd3Smacallan    if test -n "$PKG_CONFIG" && \
10872dfe64dd3Smacallan    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto glproto\""; } >&5
10873dfe64dd3Smacallan  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto glproto") 2>&5
10874dfe64dd3Smacallan  ac_status=$?
10875dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876dfe64dd3Smacallan  test $ac_status = 0; }; then
10877dfe64dd3Smacallan  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto glproto" 2>/dev/null`
10878dfe64dd3Smacallanelse
10879dfe64dd3Smacallan  pkg_failed=yes
10880dfe64dd3Smacallanfi
10881dfe64dd3Smacallan else
10882dfe64dd3Smacallan    pkg_failed=untried
10883dfe64dd3Smacallanfi
10884dfe64dd3Smacallanif test -n "$DRI_LIBS"; then
10885dfe64dd3Smacallan    pkg_cv_DRI_LIBS="$DRI_LIBS"
10886dfe64dd3Smacallan elif test -n "$PKG_CONFIG"; then
10887dfe64dd3Smacallan    if test -n "$PKG_CONFIG" && \
10888dfe64dd3Smacallan    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto glproto\""; } >&5
10889dfe64dd3Smacallan  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto glproto") 2>&5
10890dfe64dd3Smacallan  ac_status=$?
10891dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10892dfe64dd3Smacallan  test $ac_status = 0; }; then
10893dfe64dd3Smacallan  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto glproto" 2>/dev/null`
10894dfe64dd3Smacallanelse
10895dfe64dd3Smacallan  pkg_failed=yes
10896dfe64dd3Smacallanfi
10897dfe64dd3Smacallan else
10898dfe64dd3Smacallan    pkg_failed=untried
10899dfe64dd3Smacallanfi
10900dfe64dd3Smacallan
10901dfe64dd3Smacallan
10902dfe64dd3Smacallan
10903dfe64dd3Smacallanif test $pkg_failed = yes; then
10904dfe64dd3Smacallan   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905dfe64dd3Smacallan$as_echo "no" >&6; }
10906dfe64dd3Smacallan
10907dfe64dd3Smacallanif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10908dfe64dd3Smacallan        _pkg_short_errors_supported=yes
10909dfe64dd3Smacallanelse
10910dfe64dd3Smacallan        _pkg_short_errors_supported=no
10911dfe64dd3Smacallanfi
10912dfe64dd3Smacallan        if test $_pkg_short_errors_supported = yes; then
10913dfe64dd3Smacallan	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto glproto" 2>&1`
10914dfe64dd3Smacallan        else
10915dfe64dd3Smacallan	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto glproto" 2>&1`
10916dfe64dd3Smacallan        fi
10917dfe64dd3Smacallan	# Put the nasty error message in config.log where it belongs
10918dfe64dd3Smacallan	echo "$DRI_PKG_ERRORS" >&5
10919dfe64dd3Smacallan
10920dfe64dd3Smacallan	as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto glproto) were not met:
10921dfe64dd3Smacallan
10922dfe64dd3Smacallan$DRI_PKG_ERRORS
10923dfe64dd3Smacallan
10924dfe64dd3SmacallanConsider adjusting the PKG_CONFIG_PATH environment variable if you
10925dfe64dd3Smacallaninstalled software in a non-standard prefix.
10926dfe64dd3Smacallan
10927dfe64dd3SmacallanAlternatively, you may set the environment variables DRI_CFLAGS
10928dfe64dd3Smacallanand DRI_LIBS to avoid the need to call pkg-config.
10929dfe64dd3SmacallanSee the pkg-config man page for more details." "$LINENO" AS_MESSAGE_LOG_FDdnl
10930dfe64dd3Smacallan
10931dfe64dd3Smacallanelif test $pkg_failed = untried; then
10932dfe64dd3Smacallan     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933dfe64dd3Smacallan$as_echo "no" >&6; }
10934dfe64dd3Smacallan	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10935dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10936dfe64dd3Smacallanas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10937dfe64dd3Smacallanis in your PATH or set the PKG_CONFIG environment variable to the full
10938dfe64dd3Smacallanpath to pkg-config.
10939dfe64dd3Smacallan
10940dfe64dd3SmacallanAlternatively, you may set the environment variables DRI_CFLAGS
10941dfe64dd3Smacallanand DRI_LIBS to avoid the need to call pkg-config.
10942dfe64dd3SmacallanSee the pkg-config man page for more details.
10943dfe64dd3Smacallan
10944dfe64dd3SmacallanTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
10945dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
10946dfe64dd3Smacallanelse
10947dfe64dd3Smacallan	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
10948dfe64dd3Smacallan	DRI_LIBS=$pkg_cv_DRI_LIBS
10949dfe64dd3Smacallan        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10950dfe64dd3Smacallan$as_echo "yes" >&6; }
10951dfe64dd3Smacallan
10952dfe64dd3Smacallanfi
10953dfe64dd3Smacallan
10954dfe64dd3Smacallan$as_echo "#define XF86DRI 1" >>confdefs.h
10955dfe64dd3Smacallan
10956dfe64dd3Smacallan
10957dfe64dd3Smacallan$as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
10958dfe64dd3Smacallan
10959dfe64dd3Smacallanfi
10960dfe64dd3Smacallan
10961dfe64dd3SmacallanSAVE_CPPFLAGS="$CPPFLAGS"
10962dfe64dd3SmacallanCPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
10963dfe64dd3Smacallan
10964dfe64dd3Smacallanac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
10965dfe64dd3Smacallan"
10966dfe64dd3Smacallanif test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then :
10967dfe64dd3Smacallan  XSERVER_LIBPCIACCESS=yes
10968dfe64dd3Smacallanelse
10969dfe64dd3Smacallan  XSERVER_LIBPCIACCESS=no
10970dfe64dd3Smacallanfi
10971dfe64dd3Smacallan
10972dfe64dd3Smacallan
10973dfe64dd3SmacallanCPPFLAGS="$SAVE_CPPFLAGS"
10974dfe64dd3Smacallan
10975dfe64dd3Smacallanif test "x$XSERVER_LIBPCIACCESS" = xyes; then
10976dfe64dd3Smacallan
10977dfe64dd3Smacallanpkg_failed=no
10978dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
10979dfe64dd3Smacallan$as_echo_n "checking for PCIACCESS... " >&6; }
10980dfe64dd3Smacallan
10981dfe64dd3Smacallanif test -n "$PCIACCESS_CFLAGS"; then
10982dfe64dd3Smacallan    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
10983dfe64dd3Smacallan elif test -n "$PKG_CONFIG"; then
10984dfe64dd3Smacallan    if test -n "$PKG_CONFIG" && \
10985dfe64dd3Smacallan    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
10986dfe64dd3Smacallan  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
10987dfe64dd3Smacallan  ac_status=$?
10988dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989dfe64dd3Smacallan  test $ac_status = 0; }; then
10990dfe64dd3Smacallan  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
10991dfe64dd3Smacallanelse
10992dfe64dd3Smacallan  pkg_failed=yes
10993dfe64dd3Smacallanfi
10994dfe64dd3Smacallan else
10995dfe64dd3Smacallan    pkg_failed=untried
10996dfe64dd3Smacallanfi
10997dfe64dd3Smacallanif test -n "$PCIACCESS_LIBS"; then
10998dfe64dd3Smacallan    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
10999dfe64dd3Smacallan elif test -n "$PKG_CONFIG"; then
11000dfe64dd3Smacallan    if test -n "$PKG_CONFIG" && \
11001dfe64dd3Smacallan    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
11002dfe64dd3Smacallan  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
11003dfe64dd3Smacallan  ac_status=$?
11004dfe64dd3Smacallan  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11005dfe64dd3Smacallan  test $ac_status = 0; }; then
11006dfe64dd3Smacallan  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
11007dfe64dd3Smacallanelse
11008dfe64dd3Smacallan  pkg_failed=yes
11009dfe64dd3Smacallanfi
11010dfe64dd3Smacallan else
11011dfe64dd3Smacallan    pkg_failed=untried
11012dfe64dd3Smacallanfi
11013dfe64dd3Smacallan
11014dfe64dd3Smacallan
11015dfe64dd3Smacallan
11016dfe64dd3Smacallanif test $pkg_failed = yes; then
11017dfe64dd3Smacallan   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018dfe64dd3Smacallan$as_echo "no" >&6; }
11019dfe64dd3Smacallan
11020dfe64dd3Smacallanif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11021dfe64dd3Smacallan        _pkg_short_errors_supported=yes
11022dfe64dd3Smacallanelse
11023dfe64dd3Smacallan        _pkg_short_errors_supported=no
11024dfe64dd3Smacallanfi
11025dfe64dd3Smacallan        if test $_pkg_short_errors_supported = yes; then
11026dfe64dd3Smacallan	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
11027dfe64dd3Smacallan        else
11028dfe64dd3Smacallan	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
11029dfe64dd3Smacallan        fi
11030dfe64dd3Smacallan	# Put the nasty error message in config.log where it belongs
11031dfe64dd3Smacallan	echo "$PCIACCESS_PKG_ERRORS" >&5
11032dfe64dd3Smacallan
11033dfe64dd3Smacallan	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
11034dfe64dd3Smacallan
11035dfe64dd3Smacallan$PCIACCESS_PKG_ERRORS
11036dfe64dd3Smacallan
11037dfe64dd3SmacallanConsider adjusting the PKG_CONFIG_PATH environment variable if you
11038dfe64dd3Smacallaninstalled software in a non-standard prefix.
11039dfe64dd3Smacallan
11040dfe64dd3SmacallanAlternatively, you may set the environment variables PCIACCESS_CFLAGS
11041dfe64dd3Smacallanand PCIACCESS_LIBS to avoid the need to call pkg-config.
11042dfe64dd3SmacallanSee the pkg-config man page for more details." "$LINENO" AS_MESSAGE_LOG_FDdnl
11043dfe64dd3Smacallan
11044dfe64dd3Smacallanelif test $pkg_failed = untried; then
11045dfe64dd3Smacallan     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046dfe64dd3Smacallan$as_echo "no" >&6; }
11047dfe64dd3Smacallan	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11048dfe64dd3Smacallan$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11049dfe64dd3Smacallanas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11050dfe64dd3Smacallanis in your PATH or set the PKG_CONFIG environment variable to the full
11051dfe64dd3Smacallanpath to pkg-config.
11052dfe64dd3Smacallan
11053dfe64dd3SmacallanAlternatively, you may set the environment variables PCIACCESS_CFLAGS
11054dfe64dd3Smacallanand PCIACCESS_LIBS to avoid the need to call pkg-config.
11055dfe64dd3SmacallanSee the pkg-config man page for more details.
11056dfe64dd3Smacallan
11057dfe64dd3SmacallanTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11058dfe64dd3SmacallanSee \`config.log' for more details" "$LINENO" 5; }
11059dfe64dd3Smacallanelse
11060dfe64dd3Smacallan	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
11061dfe64dd3Smacallan	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
11062dfe64dd3Smacallan        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063dfe64dd3Smacallan$as_echo "yes" >&6; }
11064dfe64dd3Smacallan
11065dfe64dd3Smacallanfi
11066dfe64dd3Smacallanfi
11067dfe64dd3Smacallan if test "x$XSERVER_LIBPCIACCESS" = xyes; then
11068dfe64dd3Smacallan  XSERVER_LIBPCIACCESS_TRUE=
11069dfe64dd3Smacallan  XSERVER_LIBPCIACCESS_FALSE='#'
11070dfe64dd3Smacallanelse
11071dfe64dd3Smacallan  XSERVER_LIBPCIACCESS_TRUE='#'
11072dfe64dd3Smacallan  XSERVER_LIBPCIACCESS_FALSE=
11073dfe64dd3Smacallanfi
11074dfe64dd3Smacallan
11075dfe64dd3Smacallan
11076dfe64dd3Smacallan
11077dfe64dd3Smacallan
11078dfe64dd3Smacallancat >>confdefs.h <<_ACEOF
11079dfe64dd3Smacallan#define XGI_RELEASE_DATE "$RELEASE_DATE"
11080dfe64dd3Smacallan_ACEOF
11081dfe64dd3Smacallan
11082dfe64dd3SmacallanDRIVER_NAME=xgi
11083dfe64dd3Smacallan
11084dfe64dd3Smacallan
11085dfe64dd3Smacallanac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11086dfe64dd3Smacallan
11087dfe64dd3Smacallancat >confcache <<\_ACEOF
11088dfe64dd3Smacallan# This file is a shell script that caches the results of configure
11089dfe64dd3Smacallan# tests run on this system so they can be shared between configure
11090dfe64dd3Smacallan# scripts and configure runs, see configure's option --config-cache.
11091dfe64dd3Smacallan# It is not useful on other systems.  If it contains results you don't
11092dfe64dd3Smacallan# want to keep, you may remove or edit it.
11093dfe64dd3Smacallan#
11094dfe64dd3Smacallan# config.status only pays attention to the cache file if you give it
11095dfe64dd3Smacallan# the --recheck option to rerun configure.
11096dfe64dd3Smacallan#
11097dfe64dd3Smacallan# `ac_cv_env_foo' variables (set or unset) will be overridden when
11098dfe64dd3Smacallan# loading this file, other *unset* `ac_cv_foo' will be assigned the
11099dfe64dd3Smacallan# following values.
11100dfe64dd3Smacallan
11101dfe64dd3Smacallan_ACEOF
11102dfe64dd3Smacallan
11103dfe64dd3Smacallan# The following way of writing the cache mishandles newlines in values,
11104dfe64dd3Smacallan# but we know of no workaround that is simple, portable, and efficient.
11105dfe64dd3Smacallan# So, we kill variables containing newlines.
11106dfe64dd3Smacallan# Ultrix sh set writes to stderr and can't be redirected directly,
11107dfe64dd3Smacallan# and sets the high bit in the cache file unless we assign to the vars.
11108dfe64dd3Smacallan(
11109dfe64dd3Smacallan  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11110dfe64dd3Smacallan    eval ac_val=\$$ac_var
11111dfe64dd3Smacallan    case $ac_val in #(
11112dfe64dd3Smacallan    *${as_nl}*)
11113dfe64dd3Smacallan      case $ac_var in #(
11114dfe64dd3Smacallan      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11115dfe64dd3Smacallan$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11116dfe64dd3Smacallan      esac
11117dfe64dd3Smacallan      case $ac_var in #(
11118dfe64dd3Smacallan      _ | IFS | as_nl) ;; #(
11119dfe64dd3Smacallan      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11120dfe64dd3Smacallan      *) { eval $ac_var=; unset $ac_var;} ;;
11121dfe64dd3Smacallan      esac ;;
11122dfe64dd3Smacallan    esac
11123dfe64dd3Smacallan  done
11124dfe64dd3Smacallan
11125dfe64dd3Smacallan  (set) 2>&1 |
11126dfe64dd3Smacallan    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11127dfe64dd3Smacallan    *${as_nl}ac_space=\ *)
11128dfe64dd3Smacallan      # `set' does not quote correctly, so add quotes: double-quote
11129dfe64dd3Smacallan      # substitution turns \\\\ into \\, and sed turns \\ into \.
11130dfe64dd3Smacallan      sed -n \
11131dfe64dd3Smacallan	"s/'/'\\\\''/g;
11132dfe64dd3Smacallan	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11133dfe64dd3Smacallan      ;; #(
11134dfe64dd3Smacallan    *)
11135dfe64dd3Smacallan      # `set' quotes correctly as required by POSIX, so do not add quotes.
11136dfe64dd3Smacallan      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11137dfe64dd3Smacallan      ;;
11138dfe64dd3Smacallan    esac |
11139dfe64dd3Smacallan    sort
11140dfe64dd3Smacallan) |
11141dfe64dd3Smacallan  sed '
11142dfe64dd3Smacallan     /^ac_cv_env_/b end
11143dfe64dd3Smacallan     t clear
11144dfe64dd3Smacallan     :clear
11145dfe64dd3Smacallan     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11146dfe64dd3Smacallan     t end
11147dfe64dd3Smacallan     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11148dfe64dd3Smacallan     :end' >>confcache
11149dfe64dd3Smacallanif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11150dfe64dd3Smacallan  if test -w "$cache_file"; then
11151dfe64dd3Smacallan    test "x$cache_file" != "x/dev/null" &&
11152dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11153dfe64dd3Smacallan$as_echo "$as_me: updating cache $cache_file" >&6;}
11154dfe64dd3Smacallan    cat confcache >$cache_file
11155dfe64dd3Smacallan  else
11156dfe64dd3Smacallan    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11157dfe64dd3Smacallan$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11158dfe64dd3Smacallan  fi
11159dfe64dd3Smacallanfi
11160dfe64dd3Smacallanrm -f confcache
11161dfe64dd3Smacallan
11162dfe64dd3Smacallantest "x$prefix" = xNONE && prefix=$ac_default_prefix
11163dfe64dd3Smacallan# Let make expand exec_prefix.
11164dfe64dd3Smacallantest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11165dfe64dd3Smacallan
11166dfe64dd3SmacallanDEFS=-DHAVE_CONFIG_H
11167dfe64dd3Smacallan
11168dfe64dd3Smacallanac_libobjs=
11169dfe64dd3Smacallanac_ltlibobjs=
11170dfe64dd3SmacallanU=
11171dfe64dd3Smacallanfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11172dfe64dd3Smacallan  # 1. Remove the extension, and $U if already installed.
11173dfe64dd3Smacallan  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11174dfe64dd3Smacallan  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11175dfe64dd3Smacallan  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11176dfe64dd3Smacallan  #    will be set to the directory where LIBOBJS objects are built.
11177dfe64dd3Smacallan  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11178dfe64dd3Smacallan  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11179dfe64dd3Smacallandone
11180dfe64dd3SmacallanLIBOBJS=$ac_libobjs
11181dfe64dd3Smacallan
11182dfe64dd3SmacallanLTLIBOBJS=$ac_ltlibobjs
11183dfe64dd3Smacallan
11184dfe64dd3Smacallan
11185dfe64dd3Smacallan if test -n "$EXEEXT"; then
11186dfe64dd3Smacallan  am__EXEEXT_TRUE=
11187dfe64dd3Smacallan  am__EXEEXT_FALSE='#'
11188dfe64dd3Smacallanelse
11189dfe64dd3Smacallan  am__EXEEXT_TRUE='#'
11190dfe64dd3Smacallan  am__EXEEXT_FALSE=
11191dfe64dd3Smacallanfi
11192dfe64dd3Smacallan
11193dfe64dd3Smacallanif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11194dfe64dd3Smacallan  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11195dfe64dd3SmacallanUsually this means the macro was only invoked conditionally." "$LINENO" 5
11196dfe64dd3Smacallanfi
11197dfe64dd3Smacallanif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11198dfe64dd3Smacallan  as_fn_error $? "conditional \"AMDEP\" was never defined.
11199dfe64dd3SmacallanUsually this means the macro was only invoked conditionally." "$LINENO" 5
11200dfe64dd3Smacallanfi
11201dfe64dd3Smacallanif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11202dfe64dd3Smacallan  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11203dfe64dd3SmacallanUsually this means the macro was only invoked conditionally." "$LINENO" 5
11204dfe64dd3Smacallanfi
11205dfe64dd3Smacallanif test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
11206dfe64dd3Smacallan  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
11207dfe64dd3SmacallanUsually this means the macro was only invoked conditionally." "$LINENO" 5
11208dfe64dd3Smacallanfi
11209dfe64dd3Smacallanif test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
11210dfe64dd3Smacallan  as_fn_error $? "conditional \"DRI\" was never defined.
11211dfe64dd3SmacallanUsually this means the macro was only invoked conditionally." "$LINENO" 5
11212dfe64dd3Smacallanfi
11213dfe64dd3Smacallanif test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
11214dfe64dd3Smacallan  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
11215dfe64dd3SmacallanUsually this means the macro was only invoked conditionally." "$LINENO" 5
11216dfe64dd3Smacallanfi
11217dfe64dd3Smacallan
11218dfe64dd3Smacallan: ${CONFIG_STATUS=./config.status}
11219dfe64dd3Smacallanac_write_fail=0
11220dfe64dd3Smacallanac_clean_files_save=$ac_clean_files
11221dfe64dd3Smacallanac_clean_files="$ac_clean_files $CONFIG_STATUS"
11222dfe64dd3Smacallan{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11223dfe64dd3Smacallan$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11224dfe64dd3Smacallanas_write_fail=0
11225dfe64dd3Smacallancat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11226dfe64dd3Smacallan#! $SHELL
11227dfe64dd3Smacallan# Generated by $as_me.
11228dfe64dd3Smacallan# Run this file to recreate the current configuration.
11229dfe64dd3Smacallan# Compiler output produced by configure, useful for debugging
11230dfe64dd3Smacallan# configure, is in config.log if it exists.
11231dfe64dd3Smacallan
11232dfe64dd3Smacallandebug=false
11233dfe64dd3Smacallanac_cs_recheck=false
11234dfe64dd3Smacallanac_cs_silent=false
11235dfe64dd3Smacallan
11236dfe64dd3SmacallanSHELL=\${CONFIG_SHELL-$SHELL}
11237dfe64dd3Smacallanexport SHELL
11238dfe64dd3Smacallan_ASEOF
11239dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11240dfe64dd3Smacallan## -------------------- ##
11241dfe64dd3Smacallan## M4sh Initialization. ##
11242dfe64dd3Smacallan## -------------------- ##
11243dfe64dd3Smacallan
11244dfe64dd3Smacallan# Be more Bourne compatible
11245dfe64dd3SmacallanDUALCASE=1; export DUALCASE # for MKS sh
11246dfe64dd3Smacallanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11247dfe64dd3Smacallan  emulate sh
11248dfe64dd3Smacallan  NULLCMD=:
11249dfe64dd3Smacallan  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11250dfe64dd3Smacallan  # is contrary to our usage.  Disable this feature.
11251dfe64dd3Smacallan  alias -g '${1+"$@"}'='"$@"'
11252dfe64dd3Smacallan  setopt NO_GLOB_SUBST
11253dfe64dd3Smacallanelse
11254dfe64dd3Smacallan  case `(set -o) 2>/dev/null` in #(
11255dfe64dd3Smacallan  *posix*) :
11256dfe64dd3Smacallan    set -o posix ;; #(
11257dfe64dd3Smacallan  *) :
11258dfe64dd3Smacallan     ;;
11259dfe64dd3Smacallanesac
11260dfe64dd3Smacallanfi
11261dfe64dd3Smacallan
11262dfe64dd3Smacallan
11263dfe64dd3Smacallanas_nl='
11264dfe64dd3Smacallan'
11265dfe64dd3Smacallanexport as_nl
11266dfe64dd3Smacallan# Printing a long string crashes Solaris 7 /usr/bin/printf.
11267dfe64dd3Smacallanas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11268dfe64dd3Smacallanas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11269dfe64dd3Smacallanas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11270dfe64dd3Smacallan# Prefer a ksh shell builtin over an external printf program on Solaris,
11271dfe64dd3Smacallan# but without wasting forks for bash or zsh.
11272dfe64dd3Smacallanif test -z "$BASH_VERSION$ZSH_VERSION" \
11273dfe64dd3Smacallan    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11274dfe64dd3Smacallan  as_echo='print -r --'
11275dfe64dd3Smacallan  as_echo_n='print -rn --'
11276dfe64dd3Smacallanelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11277dfe64dd3Smacallan  as_echo='printf %s\n'
11278dfe64dd3Smacallan  as_echo_n='printf %s'
11279dfe64dd3Smacallanelse
11280dfe64dd3Smacallan  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11281dfe64dd3Smacallan    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11282dfe64dd3Smacallan    as_echo_n='/usr/ucb/echo -n'
11283dfe64dd3Smacallan  else
11284dfe64dd3Smacallan    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11285dfe64dd3Smacallan    as_echo_n_body='eval
11286dfe64dd3Smacallan      arg=$1;
11287dfe64dd3Smacallan      case $arg in #(
11288dfe64dd3Smacallan      *"$as_nl"*)
11289dfe64dd3Smacallan	expr "X$arg" : "X\\(.*\\)$as_nl";
11290dfe64dd3Smacallan	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11291dfe64dd3Smacallan      esac;
11292dfe64dd3Smacallan      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11293dfe64dd3Smacallan    '
11294dfe64dd3Smacallan    export as_echo_n_body
11295dfe64dd3Smacallan    as_echo_n='sh -c $as_echo_n_body as_echo'
11296dfe64dd3Smacallan  fi
11297dfe64dd3Smacallan  export as_echo_body
11298dfe64dd3Smacallan  as_echo='sh -c $as_echo_body as_echo'
11299dfe64dd3Smacallanfi
11300dfe64dd3Smacallan
11301dfe64dd3Smacallan# The user is always right.
11302dfe64dd3Smacallanif test "${PATH_SEPARATOR+set}" != set; then
11303dfe64dd3Smacallan  PATH_SEPARATOR=:
11304dfe64dd3Smacallan  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11305dfe64dd3Smacallan    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11306dfe64dd3Smacallan      PATH_SEPARATOR=';'
11307dfe64dd3Smacallan  }
11308dfe64dd3Smacallanfi
11309dfe64dd3Smacallan
11310dfe64dd3Smacallan
11311dfe64dd3Smacallan# IFS
11312dfe64dd3Smacallan# We need space, tab and new line, in precisely that order.  Quoting is
11313dfe64dd3Smacallan# there to prevent editors from complaining about space-tab.
11314dfe64dd3Smacallan# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11315dfe64dd3Smacallan# splitting by setting IFS to empty value.)
11316dfe64dd3SmacallanIFS=" ""	$as_nl"
11317dfe64dd3Smacallan
11318dfe64dd3Smacallan# Find who we are.  Look in the path if we contain no directory separator.
11319dfe64dd3Smacallancase $0 in #((
11320dfe64dd3Smacallan  *[\\/]* ) as_myself=$0 ;;
11321dfe64dd3Smacallan  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322dfe64dd3Smacallanfor as_dir in $PATH
11323dfe64dd3Smacallando
11324dfe64dd3Smacallan  IFS=$as_save_IFS
11325dfe64dd3Smacallan  test -z "$as_dir" && as_dir=.
11326dfe64dd3Smacallan    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11327dfe64dd3Smacallan  done
11328dfe64dd3SmacallanIFS=$as_save_IFS
11329dfe64dd3Smacallan
11330dfe64dd3Smacallan     ;;
11331dfe64dd3Smacallanesac
11332dfe64dd3Smacallan# We did not find ourselves, most probably we were run as `sh COMMAND'
11333dfe64dd3Smacallan# in which case we are not to be found in the path.
11334dfe64dd3Smacallanif test "x$as_myself" = x; then
11335dfe64dd3Smacallan  as_myself=$0
11336dfe64dd3Smacallanfi
11337dfe64dd3Smacallanif test ! -f "$as_myself"; then
11338dfe64dd3Smacallan  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11339dfe64dd3Smacallan  exit 1
11340dfe64dd3Smacallanfi
11341dfe64dd3Smacallan
11342dfe64dd3Smacallan# Unset variables that we do not need and which cause bugs (e.g. in
11343dfe64dd3Smacallan# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11344dfe64dd3Smacallan# suppresses any "Segmentation fault" message there.  '((' could
11345dfe64dd3Smacallan# trigger a bug in pdksh 5.2.14.
11346dfe64dd3Smacallanfor as_var in BASH_ENV ENV MAIL MAILPATH
11347dfe64dd3Smacallando eval test x\${$as_var+set} = xset \
11348dfe64dd3Smacallan  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11349dfe64dd3Smacallandone
11350dfe64dd3SmacallanPS1='$ '
11351dfe64dd3SmacallanPS2='> '
11352dfe64dd3SmacallanPS4='+ '
11353dfe64dd3Smacallan
11354dfe64dd3Smacallan# NLS nuisances.
11355dfe64dd3SmacallanLC_ALL=C
11356dfe64dd3Smacallanexport LC_ALL
11357dfe64dd3SmacallanLANGUAGE=C
11358dfe64dd3Smacallanexport LANGUAGE
11359dfe64dd3Smacallan
11360dfe64dd3Smacallan# CDPATH.
11361dfe64dd3Smacallan(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11362dfe64dd3Smacallan
11363dfe64dd3Smacallan
11364dfe64dd3Smacallan# as_fn_error STATUS ERROR [LINENO LOG_FD]
11365dfe64dd3Smacallan# ----------------------------------------
11366dfe64dd3Smacallan# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11367dfe64dd3Smacallan# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11368dfe64dd3Smacallan# script with STATUS, using 1 if that was 0.
11369dfe64dd3Smacallanas_fn_error ()
11370dfe64dd3Smacallan{
11371dfe64dd3Smacallan  as_status=$1; test $as_status -eq 0 && as_status=1
11372dfe64dd3Smacallan  if test "$4"; then
11373dfe64dd3Smacallan    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11374dfe64dd3Smacallan    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11375dfe64dd3Smacallan  fi
11376dfe64dd3Smacallan  $as_echo "$as_me: error: $2" >&2
11377dfe64dd3Smacallan  as_fn_exit $as_status
11378dfe64dd3Smacallan} # as_fn_error
11379dfe64dd3Smacallan
11380dfe64dd3Smacallan
11381dfe64dd3Smacallan# as_fn_set_status STATUS
11382dfe64dd3Smacallan# -----------------------
11383dfe64dd3Smacallan# Set $? to STATUS, without forking.
11384dfe64dd3Smacallanas_fn_set_status ()
11385dfe64dd3Smacallan{
11386dfe64dd3Smacallan  return $1
11387dfe64dd3Smacallan} # as_fn_set_status
11388dfe64dd3Smacallan
11389dfe64dd3Smacallan# as_fn_exit STATUS
11390dfe64dd3Smacallan# -----------------
11391dfe64dd3Smacallan# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11392dfe64dd3Smacallanas_fn_exit ()
11393dfe64dd3Smacallan{
11394dfe64dd3Smacallan  set +e
11395dfe64dd3Smacallan  as_fn_set_status $1
11396dfe64dd3Smacallan  exit $1
11397dfe64dd3Smacallan} # as_fn_exit
11398dfe64dd3Smacallan
11399dfe64dd3Smacallan# as_fn_unset VAR
11400dfe64dd3Smacallan# ---------------
11401dfe64dd3Smacallan# Portably unset VAR.
11402dfe64dd3Smacallanas_fn_unset ()
11403dfe64dd3Smacallan{
11404dfe64dd3Smacallan  { eval $1=; unset $1;}
11405dfe64dd3Smacallan}
11406dfe64dd3Smacallanas_unset=as_fn_unset
11407dfe64dd3Smacallan# as_fn_append VAR VALUE
11408dfe64dd3Smacallan# ----------------------
11409dfe64dd3Smacallan# Append the text in VALUE to the end of the definition contained in VAR. Take
11410dfe64dd3Smacallan# advantage of any shell optimizations that allow amortized linear growth over
11411dfe64dd3Smacallan# repeated appends, instead of the typical quadratic growth present in naive
11412dfe64dd3Smacallan# implementations.
11413dfe64dd3Smacallanif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11414dfe64dd3Smacallan  eval 'as_fn_append ()
11415dfe64dd3Smacallan  {
11416dfe64dd3Smacallan    eval $1+=\$2
11417dfe64dd3Smacallan  }'
11418dfe64dd3Smacallanelse
11419dfe64dd3Smacallan  as_fn_append ()
11420dfe64dd3Smacallan  {
11421dfe64dd3Smacallan    eval $1=\$$1\$2
11422dfe64dd3Smacallan  }
11423dfe64dd3Smacallanfi # as_fn_append
11424dfe64dd3Smacallan
11425dfe64dd3Smacallan# as_fn_arith ARG...
11426dfe64dd3Smacallan# ------------------
11427dfe64dd3Smacallan# Perform arithmetic evaluation on the ARGs, and store the result in the
11428dfe64dd3Smacallan# global $as_val. Take advantage of shells that can avoid forks. The arguments
11429dfe64dd3Smacallan# must be portable across $(()) and expr.
11430dfe64dd3Smacallanif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11431dfe64dd3Smacallan  eval 'as_fn_arith ()
11432dfe64dd3Smacallan  {
11433dfe64dd3Smacallan    as_val=$(( $* ))
11434dfe64dd3Smacallan  }'
11435dfe64dd3Smacallanelse
11436dfe64dd3Smacallan  as_fn_arith ()
11437dfe64dd3Smacallan  {
11438dfe64dd3Smacallan    as_val=`expr "$@" || test $? -eq 1`
11439dfe64dd3Smacallan  }
11440dfe64dd3Smacallanfi # as_fn_arith
11441dfe64dd3Smacallan
11442dfe64dd3Smacallan
11443dfe64dd3Smacallanif expr a : '\(a\)' >/dev/null 2>&1 &&
11444dfe64dd3Smacallan   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11445dfe64dd3Smacallan  as_expr=expr
11446dfe64dd3Smacallanelse
11447dfe64dd3Smacallan  as_expr=false
11448dfe64dd3Smacallanfi
11449dfe64dd3Smacallan
11450dfe64dd3Smacallanif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11451dfe64dd3Smacallan  as_basename=basename
11452dfe64dd3Smacallanelse
11453dfe64dd3Smacallan  as_basename=false
11454dfe64dd3Smacallanfi
11455dfe64dd3Smacallan
11456dfe64dd3Smacallanif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11457dfe64dd3Smacallan  as_dirname=dirname
11458dfe64dd3Smacallanelse
11459dfe64dd3Smacallan  as_dirname=false
11460dfe64dd3Smacallanfi
11461dfe64dd3Smacallan
11462dfe64dd3Smacallanas_me=`$as_basename -- "$0" ||
11463dfe64dd3Smacallan$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11464dfe64dd3Smacallan	 X"$0" : 'X\(//\)$' \| \
11465dfe64dd3Smacallan	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11466dfe64dd3Smacallan$as_echo X/"$0" |
11467dfe64dd3Smacallan    sed '/^.*\/\([^/][^/]*\)\/*$/{
11468dfe64dd3Smacallan	    s//\1/
11469dfe64dd3Smacallan	    q
11470dfe64dd3Smacallan	  }
11471dfe64dd3Smacallan	  /^X\/\(\/\/\)$/{
11472dfe64dd3Smacallan	    s//\1/
11473dfe64dd3Smacallan	    q
11474dfe64dd3Smacallan	  }
11475dfe64dd3Smacallan	  /^X\/\(\/\).*/{
11476dfe64dd3Smacallan	    s//\1/
11477dfe64dd3Smacallan	    q
11478dfe64dd3Smacallan	  }
11479dfe64dd3Smacallan	  s/.*/./; q'`
11480dfe64dd3Smacallan
11481dfe64dd3Smacallan# Avoid depending upon Character Ranges.
11482dfe64dd3Smacallanas_cr_letters='abcdefghijklmnopqrstuvwxyz'
11483dfe64dd3Smacallanas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11484dfe64dd3Smacallanas_cr_Letters=$as_cr_letters$as_cr_LETTERS
11485dfe64dd3Smacallanas_cr_digits='0123456789'
11486dfe64dd3Smacallanas_cr_alnum=$as_cr_Letters$as_cr_digits
11487dfe64dd3Smacallan
11488dfe64dd3SmacallanECHO_C= ECHO_N= ECHO_T=
11489dfe64dd3Smacallancase `echo -n x` in #(((((
11490dfe64dd3Smacallan-n*)
11491dfe64dd3Smacallan  case `echo 'xy\c'` in
11492dfe64dd3Smacallan  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11493dfe64dd3Smacallan  xy)  ECHO_C='\c';;
11494dfe64dd3Smacallan  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11495dfe64dd3Smacallan       ECHO_T='	';;
11496dfe64dd3Smacallan  esac;;
11497dfe64dd3Smacallan*)
11498dfe64dd3Smacallan  ECHO_N='-n';;
11499dfe64dd3Smacallanesac
11500dfe64dd3Smacallan
11501dfe64dd3Smacallanrm -f conf$$ conf$$.exe conf$$.file
11502dfe64dd3Smacallanif test -d conf$$.dir; then
11503dfe64dd3Smacallan  rm -f conf$$.dir/conf$$.file
11504dfe64dd3Smacallanelse
11505dfe64dd3Smacallan  rm -f conf$$.dir
11506dfe64dd3Smacallan  mkdir conf$$.dir 2>/dev/null
11507dfe64dd3Smacallanfi
11508dfe64dd3Smacallanif (echo >conf$$.file) 2>/dev/null; then
11509dfe64dd3Smacallan  if ln -s conf$$.file conf$$ 2>/dev/null; then
11510dfe64dd3Smacallan    as_ln_s='ln -s'
11511dfe64dd3Smacallan    # ... but there are two gotchas:
11512dfe64dd3Smacallan    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11513dfe64dd3Smacallan    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11514dfe64dd3Smacallan    # In both cases, we have to default to `cp -p'.
11515dfe64dd3Smacallan    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11516dfe64dd3Smacallan      as_ln_s='cp -p'
11517dfe64dd3Smacallan  elif ln conf$$.file conf$$ 2>/dev/null; then
11518dfe64dd3Smacallan    as_ln_s=ln
11519dfe64dd3Smacallan  else
11520dfe64dd3Smacallan    as_ln_s='cp -p'
11521dfe64dd3Smacallan  fi
11522dfe64dd3Smacallanelse
11523dfe64dd3Smacallan  as_ln_s='cp -p'
11524dfe64dd3Smacallanfi
11525dfe64dd3Smacallanrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11526dfe64dd3Smacallanrmdir conf$$.dir 2>/dev/null
11527dfe64dd3Smacallan
11528dfe64dd3Smacallan
11529dfe64dd3Smacallan# as_fn_mkdir_p
11530dfe64dd3Smacallan# -------------
11531dfe64dd3Smacallan# Create "$as_dir" as a directory, including parents if necessary.
11532dfe64dd3Smacallanas_fn_mkdir_p ()
11533dfe64dd3Smacallan{
11534dfe64dd3Smacallan
11535dfe64dd3Smacallan  case $as_dir in #(
11536dfe64dd3Smacallan  -*) as_dir=./$as_dir;;
11537dfe64dd3Smacallan  esac
11538dfe64dd3Smacallan  test -d "$as_dir" || eval $as_mkdir_p || {
11539dfe64dd3Smacallan    as_dirs=
11540dfe64dd3Smacallan    while :; do
11541dfe64dd3Smacallan      case $as_dir in #(
11542dfe64dd3Smacallan      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11543dfe64dd3Smacallan      *) as_qdir=$as_dir;;
11544dfe64dd3Smacallan      esac
11545dfe64dd3Smacallan      as_dirs="'$as_qdir' $as_dirs"
11546dfe64dd3Smacallan      as_dir=`$as_dirname -- "$as_dir" ||
11547dfe64dd3Smacallan$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11548dfe64dd3Smacallan	 X"$as_dir" : 'X\(//\)[^/]' \| \
11549dfe64dd3Smacallan	 X"$as_dir" : 'X\(//\)$' \| \
11550dfe64dd3Smacallan	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11551dfe64dd3Smacallan$as_echo X"$as_dir" |
11552dfe64dd3Smacallan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11553dfe64dd3Smacallan	    s//\1/
11554dfe64dd3Smacallan	    q
11555dfe64dd3Smacallan	  }
11556dfe64dd3Smacallan	  /^X\(\/\/\)[^/].*/{
11557dfe64dd3Smacallan	    s//\1/
11558dfe64dd3Smacallan	    q
11559dfe64dd3Smacallan	  }
11560dfe64dd3Smacallan	  /^X\(\/\/\)$/{
11561dfe64dd3Smacallan	    s//\1/
11562dfe64dd3Smacallan	    q
11563dfe64dd3Smacallan	  }
11564dfe64dd3Smacallan	  /^X\(\/\).*/{
11565dfe64dd3Smacallan	    s//\1/
11566dfe64dd3Smacallan	    q
11567dfe64dd3Smacallan	  }
11568dfe64dd3Smacallan	  s/.*/./; q'`
11569dfe64dd3Smacallan      test -d "$as_dir" && break
11570dfe64dd3Smacallan    done
11571dfe64dd3Smacallan    test -z "$as_dirs" || eval "mkdir $as_dirs"
11572dfe64dd3Smacallan  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11573dfe64dd3Smacallan
11574dfe64dd3Smacallan
11575dfe64dd3Smacallan} # as_fn_mkdir_p
11576dfe64dd3Smacallanif mkdir -p . 2>/dev/null; then
11577dfe64dd3Smacallan  as_mkdir_p='mkdir -p "$as_dir"'
11578dfe64dd3Smacallanelse
11579dfe64dd3Smacallan  test -d ./-p && rmdir ./-p
11580dfe64dd3Smacallan  as_mkdir_p=false
11581dfe64dd3Smacallanfi
11582dfe64dd3Smacallan
11583dfe64dd3Smacallanif test -x / >/dev/null 2>&1; then
11584dfe64dd3Smacallan  as_test_x='test -x'
11585dfe64dd3Smacallanelse
11586dfe64dd3Smacallan  if ls -dL / >/dev/null 2>&1; then
11587dfe64dd3Smacallan    as_ls_L_option=L
11588dfe64dd3Smacallan  else
11589dfe64dd3Smacallan    as_ls_L_option=
11590dfe64dd3Smacallan  fi
11591dfe64dd3Smacallan  as_test_x='
11592dfe64dd3Smacallan    eval sh -c '\''
11593dfe64dd3Smacallan      if test -d "$1"; then
11594dfe64dd3Smacallan	test -d "$1/.";
11595dfe64dd3Smacallan      else
11596dfe64dd3Smacallan	case $1 in #(
11597dfe64dd3Smacallan	-*)set "./$1";;
11598dfe64dd3Smacallan	esac;
11599dfe64dd3Smacallan	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11600dfe64dd3Smacallan	???[sx]*):;;*)false;;esac;fi
11601dfe64dd3Smacallan    '\'' sh
11602dfe64dd3Smacallan  '
11603dfe64dd3Smacallanfi
11604dfe64dd3Smacallanas_executable_p=$as_test_x
11605dfe64dd3Smacallan
11606dfe64dd3Smacallan# Sed expression to map a string onto a valid CPP name.
11607dfe64dd3Smacallanas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11608dfe64dd3Smacallan
11609dfe64dd3Smacallan# Sed expression to map a string onto a valid variable name.
11610dfe64dd3Smacallanas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11611dfe64dd3Smacallan
11612dfe64dd3Smacallan
11613dfe64dd3Smacallanexec 6>&1
11614dfe64dd3Smacallan## ----------------------------------- ##
11615dfe64dd3Smacallan## Main body of $CONFIG_STATUS script. ##
11616dfe64dd3Smacallan## ----------------------------------- ##
11617dfe64dd3Smacallan_ASEOF
11618dfe64dd3Smacallantest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11619dfe64dd3Smacallan
11620dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11621dfe64dd3Smacallan# Save the log message, to keep $0 and so on meaningful, and to
11622dfe64dd3Smacallan# report actual input values of CONFIG_FILES etc. instead of their
11623dfe64dd3Smacallan# values after options handling.
11624dfe64dd3Smacallanac_log="
11625dfe64dd3SmacallanThis file was extended by xf86-video-xgi $as_me 1.6.0, which was
11626dfe64dd3Smacallangenerated by GNU Autoconf 2.67.  Invocation command line was
11627dfe64dd3Smacallan
11628dfe64dd3Smacallan  CONFIG_FILES    = $CONFIG_FILES
11629dfe64dd3Smacallan  CONFIG_HEADERS  = $CONFIG_HEADERS
11630dfe64dd3Smacallan  CONFIG_LINKS    = $CONFIG_LINKS
11631dfe64dd3Smacallan  CONFIG_COMMANDS = $CONFIG_COMMANDS
11632dfe64dd3Smacallan  $ $0 $@
11633dfe64dd3Smacallan
11634dfe64dd3Smacallanon `(hostname || uname -n) 2>/dev/null | sed 1q`
11635dfe64dd3Smacallan"
11636dfe64dd3Smacallan
11637dfe64dd3Smacallan_ACEOF
11638dfe64dd3Smacallan
11639dfe64dd3Smacallancase $ac_config_files in *"
11640dfe64dd3Smacallan"*) set x $ac_config_files; shift; ac_config_files=$*;;
11641dfe64dd3Smacallanesac
11642dfe64dd3Smacallan
11643dfe64dd3Smacallancase $ac_config_headers in *"
11644dfe64dd3Smacallan"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11645dfe64dd3Smacallanesac
11646dfe64dd3Smacallan
11647dfe64dd3Smacallan
11648dfe64dd3Smacallancat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11649dfe64dd3Smacallan# Files that config.status was made for.
11650dfe64dd3Smacallanconfig_files="$ac_config_files"
11651dfe64dd3Smacallanconfig_headers="$ac_config_headers"
11652dfe64dd3Smacallanconfig_commands="$ac_config_commands"
11653dfe64dd3Smacallan
11654dfe64dd3Smacallan_ACEOF
11655dfe64dd3Smacallan
11656dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11657dfe64dd3Smacallanac_cs_usage="\
11658dfe64dd3Smacallan\`$as_me' instantiates files and other configuration actions
11659dfe64dd3Smacallanfrom templates according to the current configuration.  Unless the files
11660dfe64dd3Smacallanand actions are specified as TAGs, all are instantiated by default.
11661dfe64dd3Smacallan
11662dfe64dd3SmacallanUsage: $0 [OPTION]... [TAG]...
11663dfe64dd3Smacallan
11664dfe64dd3Smacallan  -h, --help       print this help, then exit
11665dfe64dd3Smacallan  -V, --version    print version number and configuration settings, then exit
11666dfe64dd3Smacallan      --config     print configuration, then exit
11667dfe64dd3Smacallan  -q, --quiet, --silent
11668dfe64dd3Smacallan                   do not print progress messages
11669dfe64dd3Smacallan  -d, --debug      don't remove temporary files
11670dfe64dd3Smacallan      --recheck    update $as_me by reconfiguring in the same conditions
11671dfe64dd3Smacallan      --file=FILE[:TEMPLATE]
11672dfe64dd3Smacallan                   instantiate the configuration file FILE
11673dfe64dd3Smacallan      --header=FILE[:TEMPLATE]
11674dfe64dd3Smacallan                   instantiate the configuration header FILE
11675dfe64dd3Smacallan
11676dfe64dd3SmacallanConfiguration files:
11677dfe64dd3Smacallan$config_files
11678dfe64dd3Smacallan
11679dfe64dd3SmacallanConfiguration headers:
11680dfe64dd3Smacallan$config_headers
11681dfe64dd3Smacallan
11682dfe64dd3SmacallanConfiguration commands:
11683dfe64dd3Smacallan$config_commands
11684dfe64dd3Smacallan
11685dfe64dd3SmacallanReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11686dfe64dd3Smacallan
11687dfe64dd3Smacallan_ACEOF
11688dfe64dd3Smacallancat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11689dfe64dd3Smacallanac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11690dfe64dd3Smacallanac_cs_version="\\
11691dfe64dd3Smacallanxf86-video-xgi config.status 1.6.0
11692dfe64dd3Smacallanconfigured by $0, generated by GNU Autoconf 2.67,
11693dfe64dd3Smacallan  with options \\"\$ac_cs_config\\"
11694dfe64dd3Smacallan
11695dfe64dd3SmacallanCopyright (C) 2010 Free Software Foundation, Inc.
11696dfe64dd3SmacallanThis config.status script is free software; the Free Software Foundation
11697dfe64dd3Smacallangives unlimited permission to copy, distribute and modify it."
11698dfe64dd3Smacallan
11699dfe64dd3Smacallanac_pwd='$ac_pwd'
11700dfe64dd3Smacallansrcdir='$srcdir'
11701dfe64dd3SmacallanINSTALL='$INSTALL'
11702dfe64dd3SmacallanMKDIR_P='$MKDIR_P'
11703dfe64dd3SmacallanAWK='$AWK'
11704dfe64dd3Smacallantest -n "\$AWK" || AWK=awk
11705dfe64dd3Smacallan_ACEOF
11706dfe64dd3Smacallan
11707dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11708dfe64dd3Smacallan# The default lists apply if the user does not specify any file.
11709dfe64dd3Smacallanac_need_defaults=:
11710dfe64dd3Smacallanwhile test $# != 0
11711dfe64dd3Smacallando
11712dfe64dd3Smacallan  case $1 in
11713dfe64dd3Smacallan  --*=?*)
11714dfe64dd3Smacallan    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11715dfe64dd3Smacallan    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11716dfe64dd3Smacallan    ac_shift=:
11717dfe64dd3Smacallan    ;;
11718dfe64dd3Smacallan  --*=)
11719dfe64dd3Smacallan    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11720dfe64dd3Smacallan    ac_optarg=
11721dfe64dd3Smacallan    ac_shift=:
11722dfe64dd3Smacallan    ;;
11723dfe64dd3Smacallan  *)
11724dfe64dd3Smacallan    ac_option=$1
11725dfe64dd3Smacallan    ac_optarg=$2
11726dfe64dd3Smacallan    ac_shift=shift
11727dfe64dd3Smacallan    ;;
11728dfe64dd3Smacallan  esac
11729dfe64dd3Smacallan
11730dfe64dd3Smacallan  case $ac_option in
11731dfe64dd3Smacallan  # Handling of the options.
11732dfe64dd3Smacallan  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11733dfe64dd3Smacallan    ac_cs_recheck=: ;;
11734dfe64dd3Smacallan  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11735dfe64dd3Smacallan    $as_echo "$ac_cs_version"; exit ;;
11736dfe64dd3Smacallan  --config | --confi | --conf | --con | --co | --c )
11737dfe64dd3Smacallan    $as_echo "$ac_cs_config"; exit ;;
11738dfe64dd3Smacallan  --debug | --debu | --deb | --de | --d | -d )
11739dfe64dd3Smacallan    debug=: ;;
11740dfe64dd3Smacallan  --file | --fil | --fi | --f )
11741dfe64dd3Smacallan    $ac_shift
11742dfe64dd3Smacallan    case $ac_optarg in
11743dfe64dd3Smacallan    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11744dfe64dd3Smacallan    '') as_fn_error $? "missing file argument" ;;
11745dfe64dd3Smacallan    esac
11746dfe64dd3Smacallan    as_fn_append CONFIG_FILES " '$ac_optarg'"
11747dfe64dd3Smacallan    ac_need_defaults=false;;
11748dfe64dd3Smacallan  --header | --heade | --head | --hea )
11749dfe64dd3Smacallan    $ac_shift
11750dfe64dd3Smacallan    case $ac_optarg in
11751dfe64dd3Smacallan    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11752dfe64dd3Smacallan    esac
11753dfe64dd3Smacallan    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11754dfe64dd3Smacallan    ac_need_defaults=false;;
11755dfe64dd3Smacallan  --he | --h)
11756dfe64dd3Smacallan    # Conflict between --help and --header
11757dfe64dd3Smacallan    as_fn_error $? "ambiguous option: \`$1'
11758dfe64dd3SmacallanTry \`$0 --help' for more information.";;
11759dfe64dd3Smacallan  --help | --hel | -h )
11760dfe64dd3Smacallan    $as_echo "$ac_cs_usage"; exit ;;
11761dfe64dd3Smacallan  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11762dfe64dd3Smacallan  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11763dfe64dd3Smacallan    ac_cs_silent=: ;;
11764dfe64dd3Smacallan
11765dfe64dd3Smacallan  # This is an error.
11766dfe64dd3Smacallan  -*) as_fn_error $? "unrecognized option: \`$1'
11767dfe64dd3SmacallanTry \`$0 --help' for more information." ;;
11768dfe64dd3Smacallan
11769dfe64dd3Smacallan  *) as_fn_append ac_config_targets " $1"
11770dfe64dd3Smacallan     ac_need_defaults=false ;;
11771dfe64dd3Smacallan
11772dfe64dd3Smacallan  esac
11773dfe64dd3Smacallan  shift
11774dfe64dd3Smacallandone
11775dfe64dd3Smacallan
11776dfe64dd3Smacallanac_configure_extra_args=
11777dfe64dd3Smacallan
11778dfe64dd3Smacallanif $ac_cs_silent; then
11779dfe64dd3Smacallan  exec 6>/dev/null
11780dfe64dd3Smacallan  ac_configure_extra_args="$ac_configure_extra_args --silent"
11781dfe64dd3Smacallanfi
11782dfe64dd3Smacallan
11783dfe64dd3Smacallan_ACEOF
11784dfe64dd3Smacallancat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11785dfe64dd3Smacallanif \$ac_cs_recheck; then
11786dfe64dd3Smacallan  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11787dfe64dd3Smacallan  shift
11788dfe64dd3Smacallan  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11789dfe64dd3Smacallan  CONFIG_SHELL='$SHELL'
11790dfe64dd3Smacallan  export CONFIG_SHELL
11791dfe64dd3Smacallan  exec "\$@"
11792dfe64dd3Smacallanfi
11793dfe64dd3Smacallan
11794dfe64dd3Smacallan_ACEOF
11795dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11796dfe64dd3Smacallanexec 5>>config.log
11797dfe64dd3Smacallan{
11798dfe64dd3Smacallan  echo
11799dfe64dd3Smacallan  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11800dfe64dd3Smacallan## Running $as_me. ##
11801dfe64dd3Smacallan_ASBOX
11802dfe64dd3Smacallan  $as_echo "$ac_log"
11803dfe64dd3Smacallan} >&5
11804dfe64dd3Smacallan
11805dfe64dd3Smacallan_ACEOF
11806dfe64dd3Smacallancat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11807dfe64dd3Smacallan#
11808dfe64dd3Smacallan# INIT-COMMANDS
11809dfe64dd3Smacallan#
11810dfe64dd3SmacallanAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11811dfe64dd3Smacallan
11812dfe64dd3Smacallan
11813dfe64dd3Smacallan# The HP-UX ksh and POSIX shell print the target directory to stdout
11814dfe64dd3Smacallan# if CDPATH is set.
11815dfe64dd3Smacallan(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11816dfe64dd3Smacallan
11817dfe64dd3Smacallansed_quote_subst='$sed_quote_subst'
11818dfe64dd3Smacallandouble_quote_subst='$double_quote_subst'
11819dfe64dd3Smacallandelay_variable_subst='$delay_variable_subst'
11820dfe64dd3Smacallanenable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11821dfe64dd3Smacallanmacro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11822dfe64dd3Smacallanmacro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11823dfe64dd3Smacallanenable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11824dfe64dd3Smacallanpic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11825dfe64dd3Smacallanenable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11826dfe64dd3Smacallanhost_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11827dfe64dd3Smacallanhost='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11828dfe64dd3Smacallanhost_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11829dfe64dd3Smacallanbuild_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11830dfe64dd3Smacallanbuild='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11831dfe64dd3Smacallanbuild_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11832dfe64dd3SmacallanSED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11833dfe64dd3SmacallanXsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11834dfe64dd3SmacallanGREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11835dfe64dd3SmacallanEGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11836dfe64dd3SmacallanFGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11837dfe64dd3SmacallanLD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11838dfe64dd3SmacallanNM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11839dfe64dd3SmacallanLN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11840dfe64dd3Smacallanmax_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11841dfe64dd3Smacallanac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11842dfe64dd3Smacallanexeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11843dfe64dd3Smacallanlt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11844dfe64dd3Smacallanlt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11845dfe64dd3Smacallanlt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11846dfe64dd3Smacallanreload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11847dfe64dd3Smacallanreload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11848dfe64dd3SmacallanOBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11849dfe64dd3Smacallandeplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11850dfe64dd3Smacallanfile_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11851dfe64dd3SmacallanAR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11852dfe64dd3SmacallanAR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11853dfe64dd3SmacallanSTRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11854dfe64dd3SmacallanRANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11855dfe64dd3Smacallanold_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11856dfe64dd3Smacallanold_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11857dfe64dd3Smacallanold_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11858dfe64dd3SmacallanCC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11859dfe64dd3SmacallanCFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11860dfe64dd3Smacallancompiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11861dfe64dd3SmacallanGCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11862dfe64dd3Smacallanlt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11863dfe64dd3Smacallanlt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11864dfe64dd3Smacallanlt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11865dfe64dd3Smacallanlt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11866dfe64dd3Smacallanobjdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11867dfe64dd3SmacallanSHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11868dfe64dd3SmacallanECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11869dfe64dd3SmacallanMAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11870dfe64dd3Smacallanlt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11871dfe64dd3Smacallanlt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11872dfe64dd3Smacallanlt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11873dfe64dd3Smacallanlt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11874dfe64dd3Smacallanlt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11875dfe64dd3Smacallanneed_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11876dfe64dd3SmacallanDSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11877dfe64dd3SmacallanNMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11878dfe64dd3SmacallanLIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11879dfe64dd3SmacallanOTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11880dfe64dd3SmacallanOTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11881dfe64dd3Smacallanlibext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11882dfe64dd3Smacallanshrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11883dfe64dd3Smacallanextract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11884dfe64dd3Smacallanarchive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11885dfe64dd3Smacallanenable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11886dfe64dd3Smacallanexport_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11887dfe64dd3Smacallanwhole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11888dfe64dd3Smacallancompiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11889dfe64dd3Smacallanold_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11890dfe64dd3Smacallanold_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11891dfe64dd3Smacallanarchive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11892dfe64dd3Smacallanarchive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11893dfe64dd3Smacallanmodule_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11894dfe64dd3Smacallanmodule_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11895dfe64dd3Smacallanwith_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11896dfe64dd3Smacallanallow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11897dfe64dd3Smacallanno_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11898dfe64dd3Smacallanhardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11899dfe64dd3Smacallanhardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11900dfe64dd3Smacallanhardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11901dfe64dd3Smacallanhardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11902dfe64dd3Smacallanhardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11903dfe64dd3Smacallanhardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11904dfe64dd3Smacallanhardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11905dfe64dd3Smacallanhardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11906dfe64dd3Smacallaninherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11907dfe64dd3Smacallanlink_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11908dfe64dd3Smacallanfix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11909dfe64dd3Smacallanalways_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11910dfe64dd3Smacallanexport_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11911dfe64dd3Smacallanexclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11912dfe64dd3Smacallaninclude_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11913dfe64dd3Smacallanprelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11914dfe64dd3Smacallanfile_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11915dfe64dd3Smacallanvariables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11916dfe64dd3Smacallanneed_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11917dfe64dd3Smacallanneed_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11918dfe64dd3Smacallanversion_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11919dfe64dd3Smacallanrunpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11920dfe64dd3Smacallanshlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11921dfe64dd3Smacallanshlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11922dfe64dd3Smacallanlibname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11923dfe64dd3Smacallanlibrary_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11924dfe64dd3Smacallansoname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11925dfe64dd3Smacallanpostinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11926dfe64dd3Smacallanpostuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11927dfe64dd3Smacallanfinish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11928dfe64dd3Smacallanfinish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11929dfe64dd3Smacallanhardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11930dfe64dd3Smacallansys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11931dfe64dd3Smacallansys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11932dfe64dd3Smacallanhardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11933dfe64dd3Smacallanenable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11934dfe64dd3Smacallanenable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11935dfe64dd3Smacallanenable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11936dfe64dd3Smacallanold_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11937dfe64dd3Smacallanstriplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11938dfe64dd3Smacallan
11939dfe64dd3SmacallanLTCC='$LTCC'
11940dfe64dd3SmacallanLTCFLAGS='$LTCFLAGS'
11941dfe64dd3Smacallancompiler='$compiler_DEFAULT'
11942dfe64dd3Smacallan
11943dfe64dd3Smacallan# Quote evaled strings.
11944dfe64dd3Smacallanfor var in SED \
11945dfe64dd3SmacallanGREP \
11946dfe64dd3SmacallanEGREP \
11947dfe64dd3SmacallanFGREP \
11948dfe64dd3SmacallanLD \
11949dfe64dd3SmacallanNM \
11950dfe64dd3SmacallanLN_S \
11951dfe64dd3Smacallanlt_SP2NL \
11952dfe64dd3Smacallanlt_NL2SP \
11953dfe64dd3Smacallanreload_flag \
11954dfe64dd3SmacallanOBJDUMP \
11955dfe64dd3Smacallandeplibs_check_method \
11956dfe64dd3Smacallanfile_magic_cmd \
11957dfe64dd3SmacallanAR \
11958dfe64dd3SmacallanAR_FLAGS \
11959dfe64dd3SmacallanSTRIP \
11960dfe64dd3SmacallanRANLIB \
11961dfe64dd3SmacallanCC \
11962dfe64dd3SmacallanCFLAGS \
11963dfe64dd3Smacallancompiler \
11964dfe64dd3Smacallanlt_cv_sys_global_symbol_pipe \
11965dfe64dd3Smacallanlt_cv_sys_global_symbol_to_cdecl \
11966dfe64dd3Smacallanlt_cv_sys_global_symbol_to_c_name_address \
11967dfe64dd3Smacallanlt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11968dfe64dd3SmacallanSHELL \
11969dfe64dd3SmacallanECHO \
11970dfe64dd3Smacallanlt_prog_compiler_no_builtin_flag \
11971dfe64dd3Smacallanlt_prog_compiler_wl \
11972dfe64dd3Smacallanlt_prog_compiler_pic \
11973dfe64dd3Smacallanlt_prog_compiler_static \
11974dfe64dd3Smacallanlt_cv_prog_compiler_c_o \
11975dfe64dd3Smacallanneed_locks \
11976dfe64dd3SmacallanDSYMUTIL \
11977dfe64dd3SmacallanNMEDIT \
11978dfe64dd3SmacallanLIPO \
11979dfe64dd3SmacallanOTOOL \
11980dfe64dd3SmacallanOTOOL64 \
11981dfe64dd3Smacallanshrext_cmds \
11982dfe64dd3Smacallanexport_dynamic_flag_spec \
11983dfe64dd3Smacallanwhole_archive_flag_spec \
11984dfe64dd3Smacallancompiler_needs_object \
11985dfe64dd3Smacallanwith_gnu_ld \
11986dfe64dd3Smacallanallow_undefined_flag \
11987dfe64dd3Smacallanno_undefined_flag \
11988dfe64dd3Smacallanhardcode_libdir_flag_spec \
11989dfe64dd3Smacallanhardcode_libdir_flag_spec_ld \
11990dfe64dd3Smacallanhardcode_libdir_separator \
11991dfe64dd3Smacallanfix_srcfile_path \
11992dfe64dd3Smacallanexclude_expsyms \
11993dfe64dd3Smacallaninclude_expsyms \
11994dfe64dd3Smacallanfile_list_spec \
11995dfe64dd3Smacallanvariables_saved_for_relink \
11996dfe64dd3Smacallanlibname_spec \
11997dfe64dd3Smacallanlibrary_names_spec \
11998dfe64dd3Smacallansoname_spec \
11999dfe64dd3Smacallanfinish_eval \
12000dfe64dd3Smacallanold_striplib \
12001dfe64dd3Smacallanstriplib; do
12002dfe64dd3Smacallan    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12003dfe64dd3Smacallan    *[\\\\\\\`\\"\\\$]*)
12004dfe64dd3Smacallan      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12005dfe64dd3Smacallan      ;;
12006dfe64dd3Smacallan    *)
12007dfe64dd3Smacallan      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12008dfe64dd3Smacallan      ;;
12009dfe64dd3Smacallan    esac
12010dfe64dd3Smacallandone
12011dfe64dd3Smacallan
12012dfe64dd3Smacallan# Double-quote double-evaled strings.
12013dfe64dd3Smacallanfor var in reload_cmds \
12014dfe64dd3Smacallanold_postinstall_cmds \
12015dfe64dd3Smacallanold_postuninstall_cmds \
12016dfe64dd3Smacallanold_archive_cmds \
12017dfe64dd3Smacallanextract_expsyms_cmds \
12018dfe64dd3Smacallanold_archive_from_new_cmds \
12019dfe64dd3Smacallanold_archive_from_expsyms_cmds \
12020dfe64dd3Smacallanarchive_cmds \
12021dfe64dd3Smacallanarchive_expsym_cmds \
12022dfe64dd3Smacallanmodule_cmds \
12023dfe64dd3Smacallanmodule_expsym_cmds \
12024dfe64dd3Smacallanexport_symbols_cmds \
12025dfe64dd3Smacallanprelink_cmds \
12026dfe64dd3Smacallanpostinstall_cmds \
12027dfe64dd3Smacallanpostuninstall_cmds \
12028dfe64dd3Smacallanfinish_cmds \
12029dfe64dd3Smacallansys_lib_search_path_spec \
12030dfe64dd3Smacallansys_lib_dlsearch_path_spec; do
12031dfe64dd3Smacallan    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12032dfe64dd3Smacallan    *[\\\\\\\`\\"\\\$]*)
12033dfe64dd3Smacallan      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12034dfe64dd3Smacallan      ;;
12035dfe64dd3Smacallan    *)
12036dfe64dd3Smacallan      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12037dfe64dd3Smacallan      ;;
12038dfe64dd3Smacallan    esac
12039dfe64dd3Smacallandone
12040dfe64dd3Smacallan
12041dfe64dd3Smacallan# Fix-up fallback echo if it was mangled by the above quoting rules.
12042dfe64dd3Smacallancase \$lt_ECHO in
12043dfe64dd3Smacallan*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12044dfe64dd3Smacallan  ;;
12045dfe64dd3Smacallanesac
12046dfe64dd3Smacallan
12047dfe64dd3Smacallanac_aux_dir='$ac_aux_dir'
12048dfe64dd3Smacallanxsi_shell='$xsi_shell'
12049dfe64dd3Smacallanlt_shell_append='$lt_shell_append'
12050dfe64dd3Smacallan
12051dfe64dd3Smacallan# See if we are running on zsh, and set the options which allow our
12052dfe64dd3Smacallan# commands through without removal of \ escapes INIT.
12053dfe64dd3Smacallanif test -n "\${ZSH_VERSION+set}" ; then
12054dfe64dd3Smacallan   setopt NO_GLOB_SUBST
12055dfe64dd3Smacallanfi
12056dfe64dd3Smacallan
12057dfe64dd3Smacallan
12058dfe64dd3Smacallan    PACKAGE='$PACKAGE'
12059dfe64dd3Smacallan    VERSION='$VERSION'
12060dfe64dd3Smacallan    TIMESTAMP='$TIMESTAMP'
12061dfe64dd3Smacallan    RM='$RM'
12062dfe64dd3Smacallan    ofile='$ofile'
12063dfe64dd3Smacallan
12064dfe64dd3Smacallan
12065dfe64dd3Smacallan
12066dfe64dd3Smacallan
12067dfe64dd3Smacallan_ACEOF
12068dfe64dd3Smacallan
12069dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12070dfe64dd3Smacallan
12071dfe64dd3Smacallan# Handling of arguments.
12072dfe64dd3Smacallanfor ac_config_target in $ac_config_targets
12073dfe64dd3Smacallando
12074dfe64dd3Smacallan  case $ac_config_target in
12075dfe64dd3Smacallan    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12076dfe64dd3Smacallan    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12077dfe64dd3Smacallan    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12078dfe64dd3Smacallan    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12079dfe64dd3Smacallan    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12080dfe64dd3Smacallan    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12081dfe64dd3Smacallan
12082dfe64dd3Smacallan  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12083dfe64dd3Smacallan  esac
12084dfe64dd3Smacallandone
12085dfe64dd3Smacallan
12086dfe64dd3Smacallan
12087dfe64dd3Smacallan# If the user did not use the arguments to specify the items to instantiate,
12088dfe64dd3Smacallan# then the envvar interface is used.  Set only those that are not.
12089dfe64dd3Smacallan# We use the long form for the default assignment because of an extremely
12090dfe64dd3Smacallan# bizarre bug on SunOS 4.1.3.
12091dfe64dd3Smacallanif $ac_need_defaults; then
12092dfe64dd3Smacallan  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12093dfe64dd3Smacallan  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12094dfe64dd3Smacallan  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12095dfe64dd3Smacallanfi
12096dfe64dd3Smacallan
12097dfe64dd3Smacallan# Have a temporary directory for convenience.  Make it in the build tree
12098dfe64dd3Smacallan# simply because there is no reason against having it here, and in addition,
12099dfe64dd3Smacallan# creating and moving files from /tmp can sometimes cause problems.
12100dfe64dd3Smacallan# Hook for its removal unless debugging.
12101dfe64dd3Smacallan# Note that there is a small window in which the directory will not be cleaned:
12102dfe64dd3Smacallan# after its creation but before its name has been assigned to `$tmp'.
12103dfe64dd3Smacallan$debug ||
12104dfe64dd3Smacallan{
12105dfe64dd3Smacallan  tmp=
12106dfe64dd3Smacallan  trap 'exit_status=$?
12107dfe64dd3Smacallan  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12108dfe64dd3Smacallan' 0
12109dfe64dd3Smacallan  trap 'as_fn_exit 1' 1 2 13 15
12110dfe64dd3Smacallan}
12111dfe64dd3Smacallan# Create a (secure) tmp directory for tmp files.
12112dfe64dd3Smacallan
12113dfe64dd3Smacallan{
12114dfe64dd3Smacallan  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12115dfe64dd3Smacallan  test -n "$tmp" && test -d "$tmp"
12116dfe64dd3Smacallan}  ||
12117dfe64dd3Smacallan{
12118dfe64dd3Smacallan  tmp=./conf$$-$RANDOM
12119dfe64dd3Smacallan  (umask 077 && mkdir "$tmp")
12120dfe64dd3Smacallan} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12121dfe64dd3Smacallan
12122dfe64dd3Smacallan# Set up the scripts for CONFIG_FILES section.
12123dfe64dd3Smacallan# No need to generate them if there are no CONFIG_FILES.
12124dfe64dd3Smacallan# This happens for instance with `./config.status config.h'.
12125dfe64dd3Smacallanif test -n "$CONFIG_FILES"; then
12126dfe64dd3Smacallan
12127dfe64dd3Smacallan
12128dfe64dd3Smacallanac_cr=`echo X | tr X '\015'`
12129dfe64dd3Smacallan# On cygwin, bash can eat \r inside `` if the user requested igncr.
12130dfe64dd3Smacallan# But we know of no other shell where ac_cr would be empty at this
12131dfe64dd3Smacallan# point, so we can use a bashism as a fallback.
12132dfe64dd3Smacallanif test "x$ac_cr" = x; then
12133dfe64dd3Smacallan  eval ac_cr=\$\'\\r\'
12134dfe64dd3Smacallanfi
12135dfe64dd3Smacallanac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12136dfe64dd3Smacallanif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12137dfe64dd3Smacallan  ac_cs_awk_cr='\\r'
12138dfe64dd3Smacallanelse
12139dfe64dd3Smacallan  ac_cs_awk_cr=$ac_cr
12140dfe64dd3Smacallanfi
12141dfe64dd3Smacallan
12142dfe64dd3Smacallanecho 'BEGIN {' >"$tmp/subs1.awk" &&
12143dfe64dd3Smacallan_ACEOF
12144dfe64dd3Smacallan
12145dfe64dd3Smacallan
12146dfe64dd3Smacallan{
12147dfe64dd3Smacallan  echo "cat >conf$$subs.awk <<_ACEOF" &&
12148dfe64dd3Smacallan  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12149dfe64dd3Smacallan  echo "_ACEOF"
12150dfe64dd3Smacallan} >conf$$subs.sh ||
12151dfe64dd3Smacallan  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12152dfe64dd3Smacallanac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12153dfe64dd3Smacallanac_delim='%!_!# '
12154dfe64dd3Smacallanfor ac_last_try in false false false false false :; do
12155dfe64dd3Smacallan  . ./conf$$subs.sh ||
12156dfe64dd3Smacallan    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12157dfe64dd3Smacallan
12158dfe64dd3Smacallan  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12159dfe64dd3Smacallan  if test $ac_delim_n = $ac_delim_num; then
12160dfe64dd3Smacallan    break
12161dfe64dd3Smacallan  elif $ac_last_try; then
12162dfe64dd3Smacallan    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12163dfe64dd3Smacallan  else
12164dfe64dd3Smacallan    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12165dfe64dd3Smacallan  fi
12166dfe64dd3Smacallandone
12167dfe64dd3Smacallanrm -f conf$$subs.sh
12168dfe64dd3Smacallan
12169dfe64dd3Smacallancat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12170dfe64dd3Smacallancat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12171dfe64dd3Smacallan_ACEOF
12172dfe64dd3Smacallansed -n '
12173dfe64dd3Smacallanh
12174dfe64dd3Smacallans/^/S["/; s/!.*/"]=/
12175dfe64dd3Smacallanp
12176dfe64dd3Smacallang
12177dfe64dd3Smacallans/^[^!]*!//
12178dfe64dd3Smacallan:repl
12179dfe64dd3Smacallant repl
12180dfe64dd3Smacallans/'"$ac_delim"'$//
12181dfe64dd3Smacallant delim
12182dfe64dd3Smacallan:nl
12183dfe64dd3Smacallanh
12184dfe64dd3Smacallans/\(.\{148\}\)..*/\1/
12185dfe64dd3Smacallant more1
12186dfe64dd3Smacallans/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12187dfe64dd3Smacallanp
12188dfe64dd3Smacallann
12189dfe64dd3Smacallanb repl
12190dfe64dd3Smacallan:more1
12191dfe64dd3Smacallans/["\\]/\\&/g; s/^/"/; s/$/"\\/
12192dfe64dd3Smacallanp
12193dfe64dd3Smacallang
12194dfe64dd3Smacallans/.\{148\}//
12195dfe64dd3Smacallant nl
12196dfe64dd3Smacallan:delim
12197dfe64dd3Smacallanh
12198dfe64dd3Smacallans/\(.\{148\}\)..*/\1/
12199dfe64dd3Smacallant more2
12200dfe64dd3Smacallans/["\\]/\\&/g; s/^/"/; s/$/"/
12201dfe64dd3Smacallanp
12202dfe64dd3Smacallanb
12203dfe64dd3Smacallan:more2
12204dfe64dd3Smacallans/["\\]/\\&/g; s/^/"/; s/$/"\\/
12205dfe64dd3Smacallanp
12206dfe64dd3Smacallang
12207dfe64dd3Smacallans/.\{148\}//
12208dfe64dd3Smacallant delim
12209dfe64dd3Smacallan' <conf$$subs.awk | sed '
12210dfe64dd3Smacallan/^[^""]/{
12211dfe64dd3Smacallan  N
12212dfe64dd3Smacallan  s/\n//
12213dfe64dd3Smacallan}
12214dfe64dd3Smacallan' >>$CONFIG_STATUS || ac_write_fail=1
12215dfe64dd3Smacallanrm -f conf$$subs.awk
12216dfe64dd3Smacallancat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12217dfe64dd3Smacallan_ACAWK
12218dfe64dd3Smacallancat >>"\$tmp/subs1.awk" <<_ACAWK &&
12219dfe64dd3Smacallan  for (key in S) S_is_set[key] = 1
12220dfe64dd3Smacallan  FS = ""
12221dfe64dd3Smacallan
12222dfe64dd3Smacallan}
12223dfe64dd3Smacallan{
12224dfe64dd3Smacallan  line = $ 0
12225dfe64dd3Smacallan  nfields = split(line, field, "@")
12226dfe64dd3Smacallan  substed = 0
12227dfe64dd3Smacallan  len = length(field[1])
12228dfe64dd3Smacallan  for (i = 2; i < nfields; i++) {
12229dfe64dd3Smacallan    key = field[i]
12230dfe64dd3Smacallan    keylen = length(key)
12231dfe64dd3Smacallan    if (S_is_set[key]) {
12232dfe64dd3Smacallan      value = S[key]
12233dfe64dd3Smacallan      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12234dfe64dd3Smacallan      len += length(value) + length(field[++i])
12235dfe64dd3Smacallan      substed = 1
12236dfe64dd3Smacallan    } else
12237dfe64dd3Smacallan      len += 1 + keylen
12238dfe64dd3Smacallan  }
12239dfe64dd3Smacallan
12240dfe64dd3Smacallan  print line
12241dfe64dd3Smacallan}
12242dfe64dd3Smacallan
12243dfe64dd3Smacallan_ACAWK
12244dfe64dd3Smacallan_ACEOF
12245dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246dfe64dd3Smacallanif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12247dfe64dd3Smacallan  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12248dfe64dd3Smacallanelse
12249dfe64dd3Smacallan  cat
12250dfe64dd3Smacallanfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12251dfe64dd3Smacallan  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12252dfe64dd3Smacallan_ACEOF
12253dfe64dd3Smacallan
12254dfe64dd3Smacallan# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12255dfe64dd3Smacallan# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12256dfe64dd3Smacallan# trailing colons and then remove the whole line if VPATH becomes empty
12257dfe64dd3Smacallan# (actually we leave an empty line to preserve line numbers).
12258dfe64dd3Smacallanif test "x$srcdir" = x.; then
12259dfe64dd3Smacallan  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12260dfe64dd3Smacallanh
12261dfe64dd3Smacallans///
12262dfe64dd3Smacallans/^/:/
12263dfe64dd3Smacallans/[	 ]*$/:/
12264dfe64dd3Smacallans/:\$(srcdir):/:/g
12265dfe64dd3Smacallans/:\${srcdir}:/:/g
12266dfe64dd3Smacallans/:@srcdir@:/:/g
12267dfe64dd3Smacallans/^:*//
12268dfe64dd3Smacallans/:*$//
12269dfe64dd3Smacallanx
12270dfe64dd3Smacallans/\(=[	 ]*\).*/\1/
12271dfe64dd3SmacallanG
12272dfe64dd3Smacallans/\n//
12273dfe64dd3Smacallans/^[^=]*=[	 ]*$//
12274dfe64dd3Smacallan}'
12275dfe64dd3Smacallanfi
12276dfe64dd3Smacallan
12277dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12278dfe64dd3Smacallanfi # test -n "$CONFIG_FILES"
12279dfe64dd3Smacallan
12280dfe64dd3Smacallan# Set up the scripts for CONFIG_HEADERS section.
12281dfe64dd3Smacallan# No need to generate them if there are no CONFIG_HEADERS.
12282dfe64dd3Smacallan# This happens for instance with `./config.status Makefile'.
12283dfe64dd3Smacallanif test -n "$CONFIG_HEADERS"; then
12284dfe64dd3Smacallancat >"$tmp/defines.awk" <<\_ACAWK ||
12285dfe64dd3SmacallanBEGIN {
12286dfe64dd3Smacallan_ACEOF
12287dfe64dd3Smacallan
12288dfe64dd3Smacallan# Transform confdefs.h into an awk script `defines.awk', embedded as
12289dfe64dd3Smacallan# here-document in config.status, that substitutes the proper values into
12290dfe64dd3Smacallan# config.h.in to produce config.h.
12291dfe64dd3Smacallan
12292dfe64dd3Smacallan# Create a delimiter string that does not exist in confdefs.h, to ease
12293dfe64dd3Smacallan# handling of long lines.
12294dfe64dd3Smacallanac_delim='%!_!# '
12295dfe64dd3Smacallanfor ac_last_try in false false :; do
12296dfe64dd3Smacallan  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12297dfe64dd3Smacallan  if test -z "$ac_t"; then
12298dfe64dd3Smacallan    break
12299dfe64dd3Smacallan  elif $ac_last_try; then
12300dfe64dd3Smacallan    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12301dfe64dd3Smacallan  else
12302dfe64dd3Smacallan    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12303dfe64dd3Smacallan  fi
12304dfe64dd3Smacallandone
12305dfe64dd3Smacallan
12306dfe64dd3Smacallan# For the awk script, D is an array of macro values keyed by name,
12307dfe64dd3Smacallan# likewise P contains macro parameters if any.  Preserve backslash
12308dfe64dd3Smacallan# newline sequences.
12309dfe64dd3Smacallan
12310dfe64dd3Smacallanac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12311dfe64dd3Smacallansed -n '
12312dfe64dd3Smacallans/.\{148\}/&'"$ac_delim"'/g
12313dfe64dd3Smacallant rset
12314dfe64dd3Smacallan:rset
12315dfe64dd3Smacallans/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12316dfe64dd3Smacallant def
12317dfe64dd3Smacalland
12318dfe64dd3Smacallan:def
12319dfe64dd3Smacallans/\\$//
12320dfe64dd3Smacallant bsnl
12321dfe64dd3Smacallans/["\\]/\\&/g
12322dfe64dd3Smacallans/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12323dfe64dd3SmacallanD["\1"]=" \3"/p
12324dfe64dd3Smacallans/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12325dfe64dd3Smacalland
12326dfe64dd3Smacallan:bsnl
12327dfe64dd3Smacallans/["\\]/\\&/g
12328dfe64dd3Smacallans/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12329dfe64dd3SmacallanD["\1"]=" \3\\\\\\n"\\/p
12330dfe64dd3Smacallant cont
12331dfe64dd3Smacallans/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12332dfe64dd3Smacallant cont
12333dfe64dd3Smacalland
12334dfe64dd3Smacallan:cont
12335dfe64dd3Smacallann
12336dfe64dd3Smacallans/.\{148\}/&'"$ac_delim"'/g
12337dfe64dd3Smacallant clear
12338dfe64dd3Smacallan:clear
12339dfe64dd3Smacallans/\\$//
12340dfe64dd3Smacallant bsnlc
12341dfe64dd3Smacallans/["\\]/\\&/g; s/^/"/; s/$/"/p
12342dfe64dd3Smacalland
12343dfe64dd3Smacallan:bsnlc
12344dfe64dd3Smacallans/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12345dfe64dd3Smacallanb cont
12346dfe64dd3Smacallan' <confdefs.h | sed '
12347dfe64dd3Smacallans/'"$ac_delim"'/"\\\
12348dfe64dd3Smacallan"/g' >>$CONFIG_STATUS || ac_write_fail=1
12349dfe64dd3Smacallan
12350dfe64dd3Smacallancat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12351dfe64dd3Smacallan  for (key in D) D_is_set[key] = 1
12352dfe64dd3Smacallan  FS = ""
12353dfe64dd3Smacallan}
12354dfe64dd3Smacallan/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12355dfe64dd3Smacallan  line = \$ 0
12356dfe64dd3Smacallan  split(line, arg, " ")
12357dfe64dd3Smacallan  if (arg[1] == "#") {
12358dfe64dd3Smacallan    defundef = arg[2]
12359dfe64dd3Smacallan    mac1 = arg[3]
12360dfe64dd3Smacallan  } else {
12361dfe64dd3Smacallan    defundef = substr(arg[1], 2)
12362dfe64dd3Smacallan    mac1 = arg[2]
12363dfe64dd3Smacallan  }
12364dfe64dd3Smacallan  split(mac1, mac2, "(") #)
12365dfe64dd3Smacallan  macro = mac2[1]
12366dfe64dd3Smacallan  prefix = substr(line, 1, index(line, defundef) - 1)
12367dfe64dd3Smacallan  if (D_is_set[macro]) {
12368dfe64dd3Smacallan    # Preserve the white space surrounding the "#".
12369dfe64dd3Smacallan    print prefix "define", macro P[macro] D[macro]
12370dfe64dd3Smacallan    next
12371dfe64dd3Smacallan  } else {
12372dfe64dd3Smacallan    # Replace #undef with comments.  This is necessary, for example,
12373dfe64dd3Smacallan    # in the case of _POSIX_SOURCE, which is predefined and required
12374dfe64dd3Smacallan    # on some systems where configure will not decide to define it.
12375dfe64dd3Smacallan    if (defundef == "undef") {
12376dfe64dd3Smacallan      print "/*", prefix defundef, macro, "*/"
12377dfe64dd3Smacallan      next
12378dfe64dd3Smacallan    }
12379dfe64dd3Smacallan  }
12380dfe64dd3Smacallan}
12381dfe64dd3Smacallan{ print }
12382dfe64dd3Smacallan_ACAWK
12383dfe64dd3Smacallan_ACEOF
12384dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12385dfe64dd3Smacallan  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12386dfe64dd3Smacallanfi # test -n "$CONFIG_HEADERS"
12387dfe64dd3Smacallan
12388dfe64dd3Smacallan
12389dfe64dd3Smacallaneval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12390dfe64dd3Smacallanshift
12391dfe64dd3Smacallanfor ac_tag
12392dfe64dd3Smacallando
12393dfe64dd3Smacallan  case $ac_tag in
12394dfe64dd3Smacallan  :[FHLC]) ac_mode=$ac_tag; continue;;
12395dfe64dd3Smacallan  esac
12396dfe64dd3Smacallan  case $ac_mode$ac_tag in
12397dfe64dd3Smacallan  :[FHL]*:*);;
12398dfe64dd3Smacallan  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12399dfe64dd3Smacallan  :[FH]-) ac_tag=-:-;;
12400dfe64dd3Smacallan  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12401dfe64dd3Smacallan  esac
12402dfe64dd3Smacallan  ac_save_IFS=$IFS
12403dfe64dd3Smacallan  IFS=:
12404dfe64dd3Smacallan  set x $ac_tag
12405dfe64dd3Smacallan  IFS=$ac_save_IFS
12406dfe64dd3Smacallan  shift
12407dfe64dd3Smacallan  ac_file=$1
12408dfe64dd3Smacallan  shift
12409dfe64dd3Smacallan
12410dfe64dd3Smacallan  case $ac_mode in
12411dfe64dd3Smacallan  :L) ac_source=$1;;
12412dfe64dd3Smacallan  :[FH])
12413dfe64dd3Smacallan    ac_file_inputs=
12414dfe64dd3Smacallan    for ac_f
12415dfe64dd3Smacallan    do
12416dfe64dd3Smacallan      case $ac_f in
12417dfe64dd3Smacallan      -) ac_f="$tmp/stdin";;
12418dfe64dd3Smacallan      *) # Look for the file first in the build tree, then in the source tree
12419dfe64dd3Smacallan	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12420dfe64dd3Smacallan	 # because $ac_f cannot contain `:'.
12421dfe64dd3Smacallan	 test -f "$ac_f" ||
12422dfe64dd3Smacallan	   case $ac_f in
12423dfe64dd3Smacallan	   [\\/$]*) false;;
12424dfe64dd3Smacallan	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12425dfe64dd3Smacallan	   esac ||
12426dfe64dd3Smacallan	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12427dfe64dd3Smacallan      esac
12428dfe64dd3Smacallan      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12429dfe64dd3Smacallan      as_fn_append ac_file_inputs " '$ac_f'"
12430dfe64dd3Smacallan    done
12431dfe64dd3Smacallan
12432dfe64dd3Smacallan    # Let's still pretend it is `configure' which instantiates (i.e., don't
12433dfe64dd3Smacallan    # use $as_me), people would be surprised to read:
12434dfe64dd3Smacallan    #    /* config.h.  Generated by config.status.  */
12435dfe64dd3Smacallan    configure_input='Generated from '`
12436dfe64dd3Smacallan	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12437dfe64dd3Smacallan	`' by configure.'
12438dfe64dd3Smacallan    if test x"$ac_file" != x-; then
12439dfe64dd3Smacallan      configure_input="$ac_file.  $configure_input"
12440dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12441dfe64dd3Smacallan$as_echo "$as_me: creating $ac_file" >&6;}
12442dfe64dd3Smacallan    fi
12443dfe64dd3Smacallan    # Neutralize special characters interpreted by sed in replacement strings.
12444dfe64dd3Smacallan    case $configure_input in #(
12445dfe64dd3Smacallan    *\&* | *\|* | *\\* )
12446dfe64dd3Smacallan       ac_sed_conf_input=`$as_echo "$configure_input" |
12447dfe64dd3Smacallan       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12448dfe64dd3Smacallan    *) ac_sed_conf_input=$configure_input;;
12449dfe64dd3Smacallan    esac
12450dfe64dd3Smacallan
12451dfe64dd3Smacallan    case $ac_tag in
12452dfe64dd3Smacallan    *:-:* | *:-) cat >"$tmp/stdin" \
12453dfe64dd3Smacallan      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12454dfe64dd3Smacallan    esac
12455dfe64dd3Smacallan    ;;
12456dfe64dd3Smacallan  esac
12457dfe64dd3Smacallan
12458dfe64dd3Smacallan  ac_dir=`$as_dirname -- "$ac_file" ||
12459dfe64dd3Smacallan$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12460dfe64dd3Smacallan	 X"$ac_file" : 'X\(//\)[^/]' \| \
12461dfe64dd3Smacallan	 X"$ac_file" : 'X\(//\)$' \| \
12462dfe64dd3Smacallan	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12463dfe64dd3Smacallan$as_echo X"$ac_file" |
12464dfe64dd3Smacallan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12465dfe64dd3Smacallan	    s//\1/
12466dfe64dd3Smacallan	    q
12467dfe64dd3Smacallan	  }
12468dfe64dd3Smacallan	  /^X\(\/\/\)[^/].*/{
12469dfe64dd3Smacallan	    s//\1/
12470dfe64dd3Smacallan	    q
12471dfe64dd3Smacallan	  }
12472dfe64dd3Smacallan	  /^X\(\/\/\)$/{
12473dfe64dd3Smacallan	    s//\1/
12474dfe64dd3Smacallan	    q
12475dfe64dd3Smacallan	  }
12476dfe64dd3Smacallan	  /^X\(\/\).*/{
12477dfe64dd3Smacallan	    s//\1/
12478dfe64dd3Smacallan	    q
12479dfe64dd3Smacallan	  }
12480dfe64dd3Smacallan	  s/.*/./; q'`
12481dfe64dd3Smacallan  as_dir="$ac_dir"; as_fn_mkdir_p
12482dfe64dd3Smacallan  ac_builddir=.
12483dfe64dd3Smacallan
12484dfe64dd3Smacallancase "$ac_dir" in
12485dfe64dd3Smacallan.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12486dfe64dd3Smacallan*)
12487dfe64dd3Smacallan  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12488dfe64dd3Smacallan  # A ".." for each directory in $ac_dir_suffix.
12489dfe64dd3Smacallan  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12490dfe64dd3Smacallan  case $ac_top_builddir_sub in
12491dfe64dd3Smacallan  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12492dfe64dd3Smacallan  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12493dfe64dd3Smacallan  esac ;;
12494dfe64dd3Smacallanesac
12495dfe64dd3Smacallanac_abs_top_builddir=$ac_pwd
12496dfe64dd3Smacallanac_abs_builddir=$ac_pwd$ac_dir_suffix
12497dfe64dd3Smacallan# for backward compatibility:
12498dfe64dd3Smacallanac_top_builddir=$ac_top_build_prefix
12499dfe64dd3Smacallan
12500dfe64dd3Smacallancase $srcdir in
12501dfe64dd3Smacallan  .)  # We are building in place.
12502dfe64dd3Smacallan    ac_srcdir=.
12503dfe64dd3Smacallan    ac_top_srcdir=$ac_top_builddir_sub
12504dfe64dd3Smacallan    ac_abs_top_srcdir=$ac_pwd ;;
12505dfe64dd3Smacallan  [\\/]* | ?:[\\/]* )  # Absolute name.
12506dfe64dd3Smacallan    ac_srcdir=$srcdir$ac_dir_suffix;
12507dfe64dd3Smacallan    ac_top_srcdir=$srcdir
12508dfe64dd3Smacallan    ac_abs_top_srcdir=$srcdir ;;
12509dfe64dd3Smacallan  *) # Relative name.
12510dfe64dd3Smacallan    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12511dfe64dd3Smacallan    ac_top_srcdir=$ac_top_build_prefix$srcdir
12512dfe64dd3Smacallan    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12513dfe64dd3Smacallanesac
12514dfe64dd3Smacallanac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12515dfe64dd3Smacallan
12516dfe64dd3Smacallan
12517dfe64dd3Smacallan  case $ac_mode in
12518dfe64dd3Smacallan  :F)
12519dfe64dd3Smacallan  #
12520dfe64dd3Smacallan  # CONFIG_FILE
12521dfe64dd3Smacallan  #
12522dfe64dd3Smacallan
12523dfe64dd3Smacallan  case $INSTALL in
12524dfe64dd3Smacallan  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12525dfe64dd3Smacallan  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12526dfe64dd3Smacallan  esac
12527dfe64dd3Smacallan  ac_MKDIR_P=$MKDIR_P
12528dfe64dd3Smacallan  case $MKDIR_P in
12529dfe64dd3Smacallan  [\\/$]* | ?:[\\/]* ) ;;
12530dfe64dd3Smacallan  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12531dfe64dd3Smacallan  esac
12532dfe64dd3Smacallan_ACEOF
12533dfe64dd3Smacallan
12534dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12535dfe64dd3Smacallan# If the template does not know about datarootdir, expand it.
12536dfe64dd3Smacallan# FIXME: This hack should be removed a few years after 2.60.
12537dfe64dd3Smacallanac_datarootdir_hack=; ac_datarootdir_seen=
12538dfe64dd3Smacallanac_sed_dataroot='
12539dfe64dd3Smacallan/datarootdir/ {
12540dfe64dd3Smacallan  p
12541dfe64dd3Smacallan  q
12542dfe64dd3Smacallan}
12543dfe64dd3Smacallan/@datadir@/p
12544dfe64dd3Smacallan/@docdir@/p
12545dfe64dd3Smacallan/@infodir@/p
12546dfe64dd3Smacallan/@localedir@/p
12547dfe64dd3Smacallan/@mandir@/p'
12548dfe64dd3Smacallancase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12549dfe64dd3Smacallan*datarootdir*) ac_datarootdir_seen=yes;;
12550dfe64dd3Smacallan*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12551dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12552dfe64dd3Smacallan$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12553dfe64dd3Smacallan_ACEOF
12554dfe64dd3Smacallancat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555dfe64dd3Smacallan  ac_datarootdir_hack='
12556dfe64dd3Smacallan  s&@datadir@&$datadir&g
12557dfe64dd3Smacallan  s&@docdir@&$docdir&g
12558dfe64dd3Smacallan  s&@infodir@&$infodir&g
12559dfe64dd3Smacallan  s&@localedir@&$localedir&g
12560dfe64dd3Smacallan  s&@mandir@&$mandir&g
12561dfe64dd3Smacallan  s&\\\${datarootdir}&$datarootdir&g' ;;
12562dfe64dd3Smacallanesac
12563dfe64dd3Smacallan_ACEOF
12564dfe64dd3Smacallan
12565dfe64dd3Smacallan# Neutralize VPATH when `$srcdir' = `.'.
12566dfe64dd3Smacallan# Shell code in configure.ac might set extrasub.
12567dfe64dd3Smacallan# FIXME: do we really want to maintain this feature?
12568dfe64dd3Smacallancat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12569dfe64dd3Smacallanac_sed_extra="$ac_vpsub
12570dfe64dd3Smacallan$extrasub
12571dfe64dd3Smacallan_ACEOF
12572dfe64dd3Smacallancat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573dfe64dd3Smacallan:t
12574dfe64dd3Smacallan/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12575dfe64dd3Smacallans|@configure_input@|$ac_sed_conf_input|;t t
12576dfe64dd3Smacallans&@top_builddir@&$ac_top_builddir_sub&;t t
12577dfe64dd3Smacallans&@top_build_prefix@&$ac_top_build_prefix&;t t
12578dfe64dd3Smacallans&@srcdir@&$ac_srcdir&;t t
12579dfe64dd3Smacallans&@abs_srcdir@&$ac_abs_srcdir&;t t
12580dfe64dd3Smacallans&@top_srcdir@&$ac_top_srcdir&;t t
12581dfe64dd3Smacallans&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12582dfe64dd3Smacallans&@builddir@&$ac_builddir&;t t
12583dfe64dd3Smacallans&@abs_builddir@&$ac_abs_builddir&;t t
12584dfe64dd3Smacallans&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12585dfe64dd3Smacallans&@INSTALL@&$ac_INSTALL&;t t
12586dfe64dd3Smacallans&@MKDIR_P@&$ac_MKDIR_P&;t t
12587dfe64dd3Smacallan$ac_datarootdir_hack
12588dfe64dd3Smacallan"
12589dfe64dd3Smacallaneval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12590dfe64dd3Smacallan  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12591dfe64dd3Smacallan
12592dfe64dd3Smacallantest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12593dfe64dd3Smacallan  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12594dfe64dd3Smacallan  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12595dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12596dfe64dd3Smacallanwhich seems to be undefined.  Please make sure it is defined" >&5
12597dfe64dd3Smacallan$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12598dfe64dd3Smacallanwhich seems to be undefined.  Please make sure it is defined" >&2;}
12599dfe64dd3Smacallan
12600dfe64dd3Smacallan  rm -f "$tmp/stdin"
12601dfe64dd3Smacallan  case $ac_file in
12602dfe64dd3Smacallan  -) cat "$tmp/out" && rm -f "$tmp/out";;
12603dfe64dd3Smacallan  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12604dfe64dd3Smacallan  esac \
12605dfe64dd3Smacallan  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12606dfe64dd3Smacallan ;;
12607dfe64dd3Smacallan  :H)
12608dfe64dd3Smacallan  #
12609dfe64dd3Smacallan  # CONFIG_HEADER
12610dfe64dd3Smacallan  #
12611dfe64dd3Smacallan  if test x"$ac_file" != x-; then
12612dfe64dd3Smacallan    {
12613dfe64dd3Smacallan      $as_echo "/* $configure_input  */" \
12614dfe64dd3Smacallan      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12615dfe64dd3Smacallan    } >"$tmp/config.h" \
12616dfe64dd3Smacallan      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12617dfe64dd3Smacallan    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12618dfe64dd3Smacallan      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12619dfe64dd3Smacallan$as_echo "$as_me: $ac_file is unchanged" >&6;}
12620dfe64dd3Smacallan    else
12621dfe64dd3Smacallan      rm -f "$ac_file"
12622dfe64dd3Smacallan      mv "$tmp/config.h" "$ac_file" \
12623dfe64dd3Smacallan	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12624dfe64dd3Smacallan    fi
12625dfe64dd3Smacallan  else
12626dfe64dd3Smacallan    $as_echo "/* $configure_input  */" \
12627dfe64dd3Smacallan      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12628dfe64dd3Smacallan      || as_fn_error $? "could not create -" "$LINENO" 5
12629dfe64dd3Smacallan  fi
12630dfe64dd3Smacallan# Compute "$ac_file"'s index in $config_headers.
12631dfe64dd3Smacallan_am_arg="$ac_file"
12632dfe64dd3Smacallan_am_stamp_count=1
12633dfe64dd3Smacallanfor _am_header in $config_headers :; do
12634dfe64dd3Smacallan  case $_am_header in
12635dfe64dd3Smacallan    $_am_arg | $_am_arg:* )
12636dfe64dd3Smacallan      break ;;
12637dfe64dd3Smacallan    * )
12638dfe64dd3Smacallan      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12639dfe64dd3Smacallan  esac
12640dfe64dd3Smacallandone
12641dfe64dd3Smacallanecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12642dfe64dd3Smacallan$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643dfe64dd3Smacallan	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12644dfe64dd3Smacallan	 X"$_am_arg" : 'X\(//\)$' \| \
12645dfe64dd3Smacallan	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12646dfe64dd3Smacallan$as_echo X"$_am_arg" |
12647dfe64dd3Smacallan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12648dfe64dd3Smacallan	    s//\1/
12649dfe64dd3Smacallan	    q
12650dfe64dd3Smacallan	  }
12651dfe64dd3Smacallan	  /^X\(\/\/\)[^/].*/{
12652dfe64dd3Smacallan	    s//\1/
12653dfe64dd3Smacallan	    q
12654dfe64dd3Smacallan	  }
12655dfe64dd3Smacallan	  /^X\(\/\/\)$/{
12656dfe64dd3Smacallan	    s//\1/
12657dfe64dd3Smacallan	    q
12658dfe64dd3Smacallan	  }
12659dfe64dd3Smacallan	  /^X\(\/\).*/{
12660dfe64dd3Smacallan	    s//\1/
12661dfe64dd3Smacallan	    q
12662dfe64dd3Smacallan	  }
12663dfe64dd3Smacallan	  s/.*/./; q'`/stamp-h$_am_stamp_count
12664dfe64dd3Smacallan ;;
12665dfe64dd3Smacallan
12666dfe64dd3Smacallan  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12667dfe64dd3Smacallan$as_echo "$as_me: executing $ac_file commands" >&6;}
12668dfe64dd3Smacallan ;;
12669dfe64dd3Smacallan  esac
12670dfe64dd3Smacallan
12671dfe64dd3Smacallan
12672dfe64dd3Smacallan  case $ac_file$ac_mode in
12673dfe64dd3Smacallan    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12674dfe64dd3Smacallan  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12675dfe64dd3Smacallan  # are listed without --file.  Let's play safe and only enable the eval
12676dfe64dd3Smacallan  # if we detect the quoting.
12677dfe64dd3Smacallan  case $CONFIG_FILES in
12678dfe64dd3Smacallan  *\'*) eval set x "$CONFIG_FILES" ;;
12679dfe64dd3Smacallan  *)   set x $CONFIG_FILES ;;
12680dfe64dd3Smacallan  esac
12681dfe64dd3Smacallan  shift
12682dfe64dd3Smacallan  for mf
12683dfe64dd3Smacallan  do
12684dfe64dd3Smacallan    # Strip MF so we end up with the name of the file.
12685dfe64dd3Smacallan    mf=`echo "$mf" | sed -e 's/:.*$//'`
12686dfe64dd3Smacallan    # Check whether this is an Automake generated Makefile or not.
12687dfe64dd3Smacallan    # We used to match only the files named `Makefile.in', but
12688dfe64dd3Smacallan    # some people rename them; so instead we look at the file content.
12689dfe64dd3Smacallan    # Grep'ing the first line is not enough: some people post-process
12690dfe64dd3Smacallan    # each Makefile.in and add a new line on top of each file to say so.
12691dfe64dd3Smacallan    # Grep'ing the whole file is not good either: AIX grep has a line
12692dfe64dd3Smacallan    # limit of 2048, but all sed's we know have understand at least 4000.
12693dfe64dd3Smacallan    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12694dfe64dd3Smacallan      dirpart=`$as_dirname -- "$mf" ||
12695dfe64dd3Smacallan$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12696dfe64dd3Smacallan	 X"$mf" : 'X\(//\)[^/]' \| \
12697dfe64dd3Smacallan	 X"$mf" : 'X\(//\)$' \| \
12698dfe64dd3Smacallan	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12699dfe64dd3Smacallan$as_echo X"$mf" |
12700dfe64dd3Smacallan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12701dfe64dd3Smacallan	    s//\1/
12702dfe64dd3Smacallan	    q
12703dfe64dd3Smacallan	  }
12704dfe64dd3Smacallan	  /^X\(\/\/\)[^/].*/{
12705dfe64dd3Smacallan	    s//\1/
12706dfe64dd3Smacallan	    q
12707dfe64dd3Smacallan	  }
12708dfe64dd3Smacallan	  /^X\(\/\/\)$/{
12709dfe64dd3Smacallan	    s//\1/
12710dfe64dd3Smacallan	    q
12711dfe64dd3Smacallan	  }
12712dfe64dd3Smacallan	  /^X\(\/\).*/{
12713dfe64dd3Smacallan	    s//\1/
12714dfe64dd3Smacallan	    q
12715dfe64dd3Smacallan	  }
12716dfe64dd3Smacallan	  s/.*/./; q'`
12717dfe64dd3Smacallan    else
12718dfe64dd3Smacallan      continue
12719dfe64dd3Smacallan    fi
12720dfe64dd3Smacallan    # Extract the definition of DEPDIR, am__include, and am__quote
12721dfe64dd3Smacallan    # from the Makefile without running `make'.
12722dfe64dd3Smacallan    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12723dfe64dd3Smacallan    test -z "$DEPDIR" && continue
12724dfe64dd3Smacallan    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12725dfe64dd3Smacallan    test -z "am__include" && continue
12726dfe64dd3Smacallan    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12727dfe64dd3Smacallan    # When using ansi2knr, U may be empty or an underscore; expand it
12728dfe64dd3Smacallan    U=`sed -n 's/^U = //p' < "$mf"`
12729dfe64dd3Smacallan    # Find all dependency output files, they are included files with
12730dfe64dd3Smacallan    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12731dfe64dd3Smacallan    # simplest approach to changing $(DEPDIR) to its actual value in the
12732dfe64dd3Smacallan    # expansion.
12733dfe64dd3Smacallan    for file in `sed -n "
12734dfe64dd3Smacallan      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12735dfe64dd3Smacallan	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12736dfe64dd3Smacallan      # Make sure the directory exists.
12737dfe64dd3Smacallan      test -f "$dirpart/$file" && continue
12738dfe64dd3Smacallan      fdir=`$as_dirname -- "$file" ||
12739dfe64dd3Smacallan$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12740dfe64dd3Smacallan	 X"$file" : 'X\(//\)[^/]' \| \
12741dfe64dd3Smacallan	 X"$file" : 'X\(//\)$' \| \
12742dfe64dd3Smacallan	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12743dfe64dd3Smacallan$as_echo X"$file" |
12744dfe64dd3Smacallan    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12745dfe64dd3Smacallan	    s//\1/
12746dfe64dd3Smacallan	    q
12747dfe64dd3Smacallan	  }
12748dfe64dd3Smacallan	  /^X\(\/\/\)[^/].*/{
12749dfe64dd3Smacallan	    s//\1/
12750dfe64dd3Smacallan	    q
12751dfe64dd3Smacallan	  }
12752dfe64dd3Smacallan	  /^X\(\/\/\)$/{
12753dfe64dd3Smacallan	    s//\1/
12754dfe64dd3Smacallan	    q
12755dfe64dd3Smacallan	  }
12756dfe64dd3Smacallan	  /^X\(\/\).*/{
12757dfe64dd3Smacallan	    s//\1/
12758dfe64dd3Smacallan	    q
12759dfe64dd3Smacallan	  }
12760dfe64dd3Smacallan	  s/.*/./; q'`
12761dfe64dd3Smacallan      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12762dfe64dd3Smacallan      # echo "creating $dirpart/$file"
12763dfe64dd3Smacallan      echo '# dummy' > "$dirpart/$file"
12764dfe64dd3Smacallan    done
12765dfe64dd3Smacallan  done
12766dfe64dd3Smacallan}
12767dfe64dd3Smacallan ;;
12768dfe64dd3Smacallan    "libtool":C)
12769dfe64dd3Smacallan
12770dfe64dd3Smacallan    # See if we are running on zsh, and set the options which allow our
12771dfe64dd3Smacallan    # commands through without removal of \ escapes.
12772dfe64dd3Smacallan    if test -n "${ZSH_VERSION+set}" ; then
12773dfe64dd3Smacallan      setopt NO_GLOB_SUBST
12774dfe64dd3Smacallan    fi
12775dfe64dd3Smacallan
12776dfe64dd3Smacallan    cfgfile="${ofile}T"
12777dfe64dd3Smacallan    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12778dfe64dd3Smacallan    $RM "$cfgfile"
12779dfe64dd3Smacallan
12780dfe64dd3Smacallan    cat <<_LT_EOF >> "$cfgfile"
12781dfe64dd3Smacallan#! $SHELL
12782dfe64dd3Smacallan
12783dfe64dd3Smacallan# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12784dfe64dd3Smacallan# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12785dfe64dd3Smacallan# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12786dfe64dd3Smacallan# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12787dfe64dd3Smacallan#
12788dfe64dd3Smacallan#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12789dfe64dd3Smacallan#                 2006, 2007, 2008 Free Software Foundation, Inc.
12790dfe64dd3Smacallan#   Written by Gordon Matzigkeit, 1996
12791dfe64dd3Smacallan#
12792dfe64dd3Smacallan#   This file is part of GNU Libtool.
12793dfe64dd3Smacallan#
12794dfe64dd3Smacallan# GNU Libtool is free software; you can redistribute it and/or
12795dfe64dd3Smacallan# modify it under the terms of the GNU General Public License as
12796dfe64dd3Smacallan# published by the Free Software Foundation; either version 2 of
12797dfe64dd3Smacallan# the License, or (at your option) any later version.
12798dfe64dd3Smacallan#
12799dfe64dd3Smacallan# As a special exception to the GNU General Public License,
12800dfe64dd3Smacallan# if you distribute this file as part of a program or library that
12801dfe64dd3Smacallan# is built using GNU Libtool, you may include this file under the
12802dfe64dd3Smacallan# same distribution terms that you use for the rest of that program.
12803dfe64dd3Smacallan#
12804dfe64dd3Smacallan# GNU Libtool is distributed in the hope that it will be useful,
12805dfe64dd3Smacallan# but WITHOUT ANY WARRANTY; without even the implied warranty of
12806dfe64dd3Smacallan# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12807dfe64dd3Smacallan# GNU General Public License for more details.
12808dfe64dd3Smacallan#
12809dfe64dd3Smacallan# You should have received a copy of the GNU General Public License
12810dfe64dd3Smacallan# along with GNU Libtool; see the file COPYING.  If not, a copy
12811dfe64dd3Smacallan# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12812dfe64dd3Smacallan# obtained by writing to the Free Software Foundation, Inc.,
12813dfe64dd3Smacallan# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12814dfe64dd3Smacallan
12815dfe64dd3Smacallan
12816dfe64dd3Smacallan# The names of the tagged configurations supported by this script.
12817dfe64dd3Smacallanavailable_tags=""
12818dfe64dd3Smacallan
12819dfe64dd3Smacallan# ### BEGIN LIBTOOL CONFIG
12820dfe64dd3Smacallan
12821dfe64dd3Smacallan# Whether or not to build static libraries.
12822dfe64dd3Smacallanbuild_old_libs=$enable_static
12823dfe64dd3Smacallan
12824dfe64dd3Smacallan# Which release of libtool.m4 was used?
12825dfe64dd3Smacallanmacro_version=$macro_version
12826dfe64dd3Smacallanmacro_revision=$macro_revision
12827dfe64dd3Smacallan
12828dfe64dd3Smacallan# Whether or not to build shared libraries.
12829dfe64dd3Smacallanbuild_libtool_libs=$enable_shared
12830dfe64dd3Smacallan
12831dfe64dd3Smacallan# What type of objects to build.
12832dfe64dd3Smacallanpic_mode=$pic_mode
12833dfe64dd3Smacallan
12834dfe64dd3Smacallan# Whether or not to optimize for fast installation.
12835dfe64dd3Smacallanfast_install=$enable_fast_install
12836dfe64dd3Smacallan
12837dfe64dd3Smacallan# The host system.
12838dfe64dd3Smacallanhost_alias=$host_alias
12839dfe64dd3Smacallanhost=$host
12840dfe64dd3Smacallanhost_os=$host_os
12841dfe64dd3Smacallan
12842dfe64dd3Smacallan# The build system.
12843dfe64dd3Smacallanbuild_alias=$build_alias
12844dfe64dd3Smacallanbuild=$build
12845dfe64dd3Smacallanbuild_os=$build_os
12846dfe64dd3Smacallan
12847dfe64dd3Smacallan# A sed program that does not truncate output.
12848dfe64dd3SmacallanSED=$lt_SED
12849dfe64dd3Smacallan
12850dfe64dd3Smacallan# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12851dfe64dd3SmacallanXsed="\$SED -e 1s/^X//"
12852dfe64dd3Smacallan
12853dfe64dd3Smacallan# A grep program that handles long lines.
12854dfe64dd3SmacallanGREP=$lt_GREP
12855dfe64dd3Smacallan
12856dfe64dd3Smacallan# An ERE matcher.
12857dfe64dd3SmacallanEGREP=$lt_EGREP
12858dfe64dd3Smacallan
12859dfe64dd3Smacallan# A literal string matcher.
12860dfe64dd3SmacallanFGREP=$lt_FGREP
12861dfe64dd3Smacallan
12862dfe64dd3Smacallan# A BSD- or MS-compatible name lister.
12863dfe64dd3SmacallanNM=$lt_NM
12864dfe64dd3Smacallan
12865dfe64dd3Smacallan# Whether we need soft or hard links.
12866dfe64dd3SmacallanLN_S=$lt_LN_S
12867dfe64dd3Smacallan
12868dfe64dd3Smacallan# What is the maximum length of a command?
12869dfe64dd3Smacallanmax_cmd_len=$max_cmd_len
12870dfe64dd3Smacallan
12871dfe64dd3Smacallan# Object file suffix (normally "o").
12872dfe64dd3Smacallanobjext=$ac_objext
12873dfe64dd3Smacallan
12874dfe64dd3Smacallan# Executable file suffix (normally "").
12875dfe64dd3Smacallanexeext=$exeext
12876dfe64dd3Smacallan
12877dfe64dd3Smacallan# whether the shell understands "unset".
12878dfe64dd3Smacallanlt_unset=$lt_unset
12879dfe64dd3Smacallan
12880dfe64dd3Smacallan# turn spaces into newlines.
12881dfe64dd3SmacallanSP2NL=$lt_lt_SP2NL
12882dfe64dd3Smacallan
12883dfe64dd3Smacallan# turn newlines into spaces.
12884dfe64dd3SmacallanNL2SP=$lt_lt_NL2SP
12885dfe64dd3Smacallan
12886dfe64dd3Smacallan# How to create reloadable object files.
12887dfe64dd3Smacallanreload_flag=$lt_reload_flag
12888dfe64dd3Smacallanreload_cmds=$lt_reload_cmds
12889dfe64dd3Smacallan
12890dfe64dd3Smacallan# An object symbol dumper.
12891dfe64dd3SmacallanOBJDUMP=$lt_OBJDUMP
12892dfe64dd3Smacallan
12893dfe64dd3Smacallan# Method to check whether dependent libraries are shared objects.
12894dfe64dd3Smacallandeplibs_check_method=$lt_deplibs_check_method
12895dfe64dd3Smacallan
12896dfe64dd3Smacallan# Command to use when deplibs_check_method == "file_magic".
12897dfe64dd3Smacallanfile_magic_cmd=$lt_file_magic_cmd
12898dfe64dd3Smacallan
12899dfe64dd3Smacallan# The archiver.
12900dfe64dd3SmacallanAR=$lt_AR
12901dfe64dd3SmacallanAR_FLAGS=$lt_AR_FLAGS
12902dfe64dd3Smacallan
12903dfe64dd3Smacallan# A symbol stripping program.
12904dfe64dd3SmacallanSTRIP=$lt_STRIP
12905dfe64dd3Smacallan
12906dfe64dd3Smacallan# Commands used to install an old-style archive.
12907dfe64dd3SmacallanRANLIB=$lt_RANLIB
12908dfe64dd3Smacallanold_postinstall_cmds=$lt_old_postinstall_cmds
12909dfe64dd3Smacallanold_postuninstall_cmds=$lt_old_postuninstall_cmds
12910dfe64dd3Smacallan
12911dfe64dd3Smacallan# A C compiler.
12912dfe64dd3SmacallanLTCC=$lt_CC
12913dfe64dd3Smacallan
12914dfe64dd3Smacallan# LTCC compiler flags.
12915dfe64dd3SmacallanLTCFLAGS=$lt_CFLAGS
12916dfe64dd3Smacallan
12917dfe64dd3Smacallan# Take the output of nm and produce a listing of raw symbols and C names.
12918dfe64dd3Smacallanglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12919dfe64dd3Smacallan
12920dfe64dd3Smacallan# Transform the output of nm in a proper C declaration.
12921dfe64dd3Smacallanglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12922dfe64dd3Smacallan
12923dfe64dd3Smacallan# Transform the output of nm in a C name address pair.
12924dfe64dd3Smacallanglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12925dfe64dd3Smacallan
12926dfe64dd3Smacallan# Transform the output of nm in a C name address pair when lib prefix is needed.
12927dfe64dd3Smacallanglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12928dfe64dd3Smacallan
12929dfe64dd3Smacallan# The name of the directory that contains temporary libtool files.
12930dfe64dd3Smacallanobjdir=$objdir
12931dfe64dd3Smacallan
12932dfe64dd3Smacallan# Shell to use when invoking shell scripts.
12933dfe64dd3SmacallanSHELL=$lt_SHELL
12934dfe64dd3Smacallan
12935dfe64dd3Smacallan# An echo program that does not interpret backslashes.
12936dfe64dd3SmacallanECHO=$lt_ECHO
12937dfe64dd3Smacallan
12938dfe64dd3Smacallan# Used to examine libraries when file_magic_cmd begins with "file".
12939dfe64dd3SmacallanMAGIC_CMD=$MAGIC_CMD
12940dfe64dd3Smacallan
12941dfe64dd3Smacallan# Must we lock files when doing compilation?
12942dfe64dd3Smacallanneed_locks=$lt_need_locks
12943dfe64dd3Smacallan
12944dfe64dd3Smacallan# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12945dfe64dd3SmacallanDSYMUTIL=$lt_DSYMUTIL
12946dfe64dd3Smacallan
12947dfe64dd3Smacallan# Tool to change global to local symbols on Mac OS X.
12948dfe64dd3SmacallanNMEDIT=$lt_NMEDIT
12949dfe64dd3Smacallan
12950dfe64dd3Smacallan# Tool to manipulate fat objects and archives on Mac OS X.
12951dfe64dd3SmacallanLIPO=$lt_LIPO
12952dfe64dd3Smacallan
12953dfe64dd3Smacallan# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12954dfe64dd3SmacallanOTOOL=$lt_OTOOL
12955dfe64dd3Smacallan
12956dfe64dd3Smacallan# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12957dfe64dd3SmacallanOTOOL64=$lt_OTOOL64
12958dfe64dd3Smacallan
12959dfe64dd3Smacallan# Old archive suffix (normally "a").
12960dfe64dd3Smacallanlibext=$libext
12961dfe64dd3Smacallan
12962dfe64dd3Smacallan# Shared library suffix (normally ".so").
12963dfe64dd3Smacallanshrext_cmds=$lt_shrext_cmds
12964dfe64dd3Smacallan
12965dfe64dd3Smacallan# The commands to extract the exported symbol list from a shared archive.
12966dfe64dd3Smacallanextract_expsyms_cmds=$lt_extract_expsyms_cmds
12967dfe64dd3Smacallan
12968dfe64dd3Smacallan# Variables whose values should be saved in libtool wrapper scripts and
12969dfe64dd3Smacallan# restored at link time.
12970dfe64dd3Smacallanvariables_saved_for_relink=$lt_variables_saved_for_relink
12971dfe64dd3Smacallan
12972dfe64dd3Smacallan# Do we need the "lib" prefix for modules?
12973dfe64dd3Smacallanneed_lib_prefix=$need_lib_prefix
12974dfe64dd3Smacallan
12975dfe64dd3Smacallan# Do we need a version for libraries?
12976dfe64dd3Smacallanneed_version=$need_version
12977dfe64dd3Smacallan
12978dfe64dd3Smacallan# Library versioning type.
12979dfe64dd3Smacallanversion_type=$version_type
12980dfe64dd3Smacallan
12981dfe64dd3Smacallan# Shared library runtime path variable.
12982dfe64dd3Smacallanrunpath_var=$runpath_var
12983dfe64dd3Smacallan
12984dfe64dd3Smacallan# Shared library path variable.
12985dfe64dd3Smacallanshlibpath_var=$shlibpath_var
12986dfe64dd3Smacallan
12987dfe64dd3Smacallan# Is shlibpath searched before the hard-coded library search path?
12988dfe64dd3Smacallanshlibpath_overrides_runpath=$shlibpath_overrides_runpath
12989dfe64dd3Smacallan
12990dfe64dd3Smacallan# Format of library name prefix.
12991dfe64dd3Smacallanlibname_spec=$lt_libname_spec
12992dfe64dd3Smacallan
12993dfe64dd3Smacallan# List of archive names.  First name is the real one, the rest are links.
12994dfe64dd3Smacallan# The last name is the one that the linker finds with -lNAME
12995dfe64dd3Smacallanlibrary_names_spec=$lt_library_names_spec
12996dfe64dd3Smacallan
12997dfe64dd3Smacallan# The coded name of the library, if different from the real name.
12998dfe64dd3Smacallansoname_spec=$lt_soname_spec
12999dfe64dd3Smacallan
13000dfe64dd3Smacallan# Command to use after installation of a shared archive.
13001dfe64dd3Smacallanpostinstall_cmds=$lt_postinstall_cmds
13002dfe64dd3Smacallan
13003dfe64dd3Smacallan# Command to use after uninstallation of a shared archive.
13004dfe64dd3Smacallanpostuninstall_cmds=$lt_postuninstall_cmds
13005dfe64dd3Smacallan
13006dfe64dd3Smacallan# Commands used to finish a libtool library installation in a directory.
13007dfe64dd3Smacallanfinish_cmds=$lt_finish_cmds
13008dfe64dd3Smacallan
13009dfe64dd3Smacallan# As "finish_cmds", except a single script fragment to be evaled but
13010dfe64dd3Smacallan# not shown.
13011dfe64dd3Smacallanfinish_eval=$lt_finish_eval
13012dfe64dd3Smacallan
13013dfe64dd3Smacallan# Whether we should hardcode library paths into libraries.
13014dfe64dd3Smacallanhardcode_into_libs=$hardcode_into_libs
13015dfe64dd3Smacallan
13016dfe64dd3Smacallan# Compile-time system search path for libraries.
13017dfe64dd3Smacallansys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13018dfe64dd3Smacallan
13019dfe64dd3Smacallan# Run-time system search path for libraries.
13020dfe64dd3Smacallansys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13021dfe64dd3Smacallan
13022dfe64dd3Smacallan# Whether dlopen is supported.
13023dfe64dd3Smacallandlopen_support=$enable_dlopen
13024dfe64dd3Smacallan
13025dfe64dd3Smacallan# Whether dlopen of programs is supported.
13026dfe64dd3Smacallandlopen_self=$enable_dlopen_self
13027dfe64dd3Smacallan
13028dfe64dd3Smacallan# Whether dlopen of statically linked programs is supported.
13029dfe64dd3Smacallandlopen_self_static=$enable_dlopen_self_static
13030dfe64dd3Smacallan
13031dfe64dd3Smacallan# Commands to strip libraries.
13032dfe64dd3Smacallanold_striplib=$lt_old_striplib
13033dfe64dd3Smacallanstriplib=$lt_striplib
13034dfe64dd3Smacallan
13035dfe64dd3Smacallan
13036dfe64dd3Smacallan# The linker used to build libraries.
13037dfe64dd3SmacallanLD=$lt_LD
13038dfe64dd3Smacallan
13039dfe64dd3Smacallan# Commands used to build an old-style archive.
13040dfe64dd3Smacallanold_archive_cmds=$lt_old_archive_cmds
13041dfe64dd3Smacallan
13042dfe64dd3Smacallan# A language specific compiler.
13043dfe64dd3SmacallanCC=$lt_compiler
13044dfe64dd3Smacallan
13045dfe64dd3Smacallan# Is the compiler the GNU compiler?
13046dfe64dd3Smacallanwith_gcc=$GCC
13047dfe64dd3Smacallan
13048dfe64dd3Smacallan# Compiler flag to turn off builtin functions.
13049dfe64dd3Smacallanno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13050dfe64dd3Smacallan
13051dfe64dd3Smacallan# How to pass a linker flag through the compiler.
13052dfe64dd3Smacallanwl=$lt_lt_prog_compiler_wl
13053dfe64dd3Smacallan
13054dfe64dd3Smacallan# Additional compiler flags for building library objects.
13055dfe64dd3Smacallanpic_flag=$lt_lt_prog_compiler_pic
13056dfe64dd3Smacallan
13057dfe64dd3Smacallan# Compiler flag to prevent dynamic linking.
13058dfe64dd3Smacallanlink_static_flag=$lt_lt_prog_compiler_static
13059dfe64dd3Smacallan
13060dfe64dd3Smacallan# Does compiler simultaneously support -c and -o options?
13061dfe64dd3Smacallancompiler_c_o=$lt_lt_cv_prog_compiler_c_o
13062dfe64dd3Smacallan
13063dfe64dd3Smacallan# Whether or not to add -lc for building shared libraries.
13064dfe64dd3Smacallanbuild_libtool_need_lc=$archive_cmds_need_lc
13065dfe64dd3Smacallan
13066dfe64dd3Smacallan# Whether or not to disallow shared libs when runtime libs are static.
13067dfe64dd3Smacallanallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13068dfe64dd3Smacallan
13069dfe64dd3Smacallan# Compiler flag to allow reflexive dlopens.
13070dfe64dd3Smacallanexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13071dfe64dd3Smacallan
13072dfe64dd3Smacallan# Compiler flag to generate shared objects directly from archives.
13073dfe64dd3Smacallanwhole_archive_flag_spec=$lt_whole_archive_flag_spec
13074dfe64dd3Smacallan
13075dfe64dd3Smacallan# Whether the compiler copes with passing no objects directly.
13076dfe64dd3Smacallancompiler_needs_object=$lt_compiler_needs_object
13077dfe64dd3Smacallan
13078dfe64dd3Smacallan# Create an old-style archive from a shared archive.
13079dfe64dd3Smacallanold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13080dfe64dd3Smacallan
13081dfe64dd3Smacallan# Create a temporary old-style archive to link instead of a shared archive.
13082dfe64dd3Smacallanold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13083dfe64dd3Smacallan
13084dfe64dd3Smacallan# Commands used to build a shared archive.
13085dfe64dd3Smacallanarchive_cmds=$lt_archive_cmds
13086dfe64dd3Smacallanarchive_expsym_cmds=$lt_archive_expsym_cmds
13087dfe64dd3Smacallan
13088dfe64dd3Smacallan# Commands used to build a loadable module if different from building
13089dfe64dd3Smacallan# a shared archive.
13090dfe64dd3Smacallanmodule_cmds=$lt_module_cmds
13091dfe64dd3Smacallanmodule_expsym_cmds=$lt_module_expsym_cmds
13092dfe64dd3Smacallan
13093dfe64dd3Smacallan# Whether we are building with GNU ld or not.
13094dfe64dd3Smacallanwith_gnu_ld=$lt_with_gnu_ld
13095dfe64dd3Smacallan
13096dfe64dd3Smacallan# Flag that allows shared libraries with undefined symbols to be built.
13097dfe64dd3Smacallanallow_undefined_flag=$lt_allow_undefined_flag
13098dfe64dd3Smacallan
13099dfe64dd3Smacallan# Flag that enforces no undefined symbols.
13100dfe64dd3Smacallanno_undefined_flag=$lt_no_undefined_flag
13101dfe64dd3Smacallan
13102dfe64dd3Smacallan# Flag to hardcode \$libdir into a binary during linking.
13103dfe64dd3Smacallan# This must work even if \$libdir does not exist
13104dfe64dd3Smacallanhardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13105dfe64dd3Smacallan
13106dfe64dd3Smacallan# If ld is used when linking, flag to hardcode \$libdir into a binary
13107dfe64dd3Smacallan# during linking.  This must work even if \$libdir does not exist.
13108dfe64dd3Smacallanhardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13109dfe64dd3Smacallan
13110dfe64dd3Smacallan# Whether we need a single "-rpath" flag with a separated argument.
13111dfe64dd3Smacallanhardcode_libdir_separator=$lt_hardcode_libdir_separator
13112dfe64dd3Smacallan
13113dfe64dd3Smacallan# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13114dfe64dd3Smacallan# DIR into the resulting binary.
13115dfe64dd3Smacallanhardcode_direct=$hardcode_direct
13116dfe64dd3Smacallan
13117dfe64dd3Smacallan# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13118dfe64dd3Smacallan# DIR into the resulting binary and the resulting library dependency is
13119dfe64dd3Smacallan# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13120dfe64dd3Smacallan# library is relocated.
13121dfe64dd3Smacallanhardcode_direct_absolute=$hardcode_direct_absolute
13122dfe64dd3Smacallan
13123dfe64dd3Smacallan# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13124dfe64dd3Smacallan# into the resulting binary.
13125dfe64dd3Smacallanhardcode_minus_L=$hardcode_minus_L
13126dfe64dd3Smacallan
13127dfe64dd3Smacallan# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13128dfe64dd3Smacallan# into the resulting binary.
13129dfe64dd3Smacallanhardcode_shlibpath_var=$hardcode_shlibpath_var
13130dfe64dd3Smacallan
13131dfe64dd3Smacallan# Set to "yes" if building a shared library automatically hardcodes DIR
13132dfe64dd3Smacallan# into the library and all subsequent libraries and executables linked
13133dfe64dd3Smacallan# against it.
13134dfe64dd3Smacallanhardcode_automatic=$hardcode_automatic
13135dfe64dd3Smacallan
13136dfe64dd3Smacallan# Set to yes if linker adds runtime paths of dependent libraries
13137dfe64dd3Smacallan# to runtime path list.
13138dfe64dd3Smacallaninherit_rpath=$inherit_rpath
13139dfe64dd3Smacallan
13140dfe64dd3Smacallan# Whether libtool must link a program against all its dependency libraries.
13141dfe64dd3Smacallanlink_all_deplibs=$link_all_deplibs
13142dfe64dd3Smacallan
13143dfe64dd3Smacallan# Fix the shell variable \$srcfile for the compiler.
13144dfe64dd3Smacallanfix_srcfile_path=$lt_fix_srcfile_path
13145dfe64dd3Smacallan
13146dfe64dd3Smacallan# Set to "yes" if exported symbols are required.
13147dfe64dd3Smacallanalways_export_symbols=$always_export_symbols
13148dfe64dd3Smacallan
13149dfe64dd3Smacallan# The commands to list exported symbols.
13150dfe64dd3Smacallanexport_symbols_cmds=$lt_export_symbols_cmds
13151dfe64dd3Smacallan
13152dfe64dd3Smacallan# Symbols that should not be listed in the preloaded symbols.
13153dfe64dd3Smacallanexclude_expsyms=$lt_exclude_expsyms
13154dfe64dd3Smacallan
13155dfe64dd3Smacallan# Symbols that must always be exported.
13156dfe64dd3Smacallaninclude_expsyms=$lt_include_expsyms
13157dfe64dd3Smacallan
13158dfe64dd3Smacallan# Commands necessary for linking programs (against libraries) with templates.
13159dfe64dd3Smacallanprelink_cmds=$lt_prelink_cmds
13160dfe64dd3Smacallan
13161dfe64dd3Smacallan# Specify filename containing input files.
13162dfe64dd3Smacallanfile_list_spec=$lt_file_list_spec
13163dfe64dd3Smacallan
13164dfe64dd3Smacallan# How to hardcode a shared library path into an executable.
13165dfe64dd3Smacallanhardcode_action=$hardcode_action
13166dfe64dd3Smacallan
13167dfe64dd3Smacallan# ### END LIBTOOL CONFIG
13168dfe64dd3Smacallan
13169dfe64dd3Smacallan_LT_EOF
13170dfe64dd3Smacallan
13171dfe64dd3Smacallan  case $host_os in
13172dfe64dd3Smacallan  aix3*)
13173dfe64dd3Smacallan    cat <<\_LT_EOF >> "$cfgfile"
13174dfe64dd3Smacallan# AIX sometimes has problems with the GCC collect2 program.  For some
13175dfe64dd3Smacallan# reason, if we set the COLLECT_NAMES environment variable, the problems
13176dfe64dd3Smacallan# vanish in a puff of smoke.
13177dfe64dd3Smacallanif test "X${COLLECT_NAMES+set}" != Xset; then
13178dfe64dd3Smacallan  COLLECT_NAMES=
13179dfe64dd3Smacallan  export COLLECT_NAMES
13180dfe64dd3Smacallanfi
13181dfe64dd3Smacallan_LT_EOF
13182dfe64dd3Smacallan    ;;
13183dfe64dd3Smacallan  esac
13184dfe64dd3Smacallan
13185dfe64dd3Smacallan
13186dfe64dd3Smacallanltmain="$ac_aux_dir/ltmain.sh"
13187dfe64dd3Smacallan
13188dfe64dd3Smacallan
13189dfe64dd3Smacallan  # We use sed instead of cat because bash on DJGPP gets confused if
13190dfe64dd3Smacallan  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13191dfe64dd3Smacallan  # text mode, it properly converts lines to CR/LF.  This bash problem
13192dfe64dd3Smacallan  # is reportedly fixed, but why not run on old versions too?
13193dfe64dd3Smacallan  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13194dfe64dd3Smacallan    || (rm -f "$cfgfile"; exit 1)
13195dfe64dd3Smacallan
13196dfe64dd3Smacallan  case $xsi_shell in
13197dfe64dd3Smacallan  yes)
13198dfe64dd3Smacallan    cat << \_LT_EOF >> "$cfgfile"
13199dfe64dd3Smacallan
13200dfe64dd3Smacallan# func_dirname file append nondir_replacement
13201dfe64dd3Smacallan# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13202dfe64dd3Smacallan# otherwise set result to NONDIR_REPLACEMENT.
13203dfe64dd3Smacallanfunc_dirname ()
13204dfe64dd3Smacallan{
13205dfe64dd3Smacallan  case ${1} in
13206dfe64dd3Smacallan    */*) func_dirname_result="${1%/*}${2}" ;;
13207dfe64dd3Smacallan    *  ) func_dirname_result="${3}" ;;
13208dfe64dd3Smacallan  esac
13209dfe64dd3Smacallan}
13210dfe64dd3Smacallan
13211dfe64dd3Smacallan# func_basename file
13212dfe64dd3Smacallanfunc_basename ()
13213dfe64dd3Smacallan{
13214dfe64dd3Smacallan  func_basename_result="${1##*/}"
13215dfe64dd3Smacallan}
13216dfe64dd3Smacallan
13217dfe64dd3Smacallan# func_dirname_and_basename file append nondir_replacement
13218dfe64dd3Smacallan# perform func_basename and func_dirname in a single function
13219dfe64dd3Smacallan# call:
13220dfe64dd3Smacallan#   dirname:  Compute the dirname of FILE.  If nonempty,
13221dfe64dd3Smacallan#             add APPEND to the result, otherwise set result
13222dfe64dd3Smacallan#             to NONDIR_REPLACEMENT.
13223dfe64dd3Smacallan#             value returned in "$func_dirname_result"
13224dfe64dd3Smacallan#   basename: Compute filename of FILE.
13225dfe64dd3Smacallan#             value retuned in "$func_basename_result"
13226dfe64dd3Smacallan# Implementation must be kept synchronized with func_dirname
13227dfe64dd3Smacallan# and func_basename. For efficiency, we do not delegate to
13228dfe64dd3Smacallan# those functions but instead duplicate the functionality here.
13229dfe64dd3Smacallanfunc_dirname_and_basename ()
13230dfe64dd3Smacallan{
13231dfe64dd3Smacallan  case ${1} in
13232dfe64dd3Smacallan    */*) func_dirname_result="${1%/*}${2}" ;;
13233dfe64dd3Smacallan    *  ) func_dirname_result="${3}" ;;
13234dfe64dd3Smacallan  esac
13235dfe64dd3Smacallan  func_basename_result="${1##*/}"
13236dfe64dd3Smacallan}
13237dfe64dd3Smacallan
13238dfe64dd3Smacallan# func_stripname prefix suffix name
13239dfe64dd3Smacallan# strip PREFIX and SUFFIX off of NAME.
13240dfe64dd3Smacallan# PREFIX and SUFFIX must not contain globbing or regex special
13241dfe64dd3Smacallan# characters, hashes, percent signs, but SUFFIX may contain a leading
13242dfe64dd3Smacallan# dot (in which case that matches only a dot).
13243dfe64dd3Smacallanfunc_stripname ()
13244dfe64dd3Smacallan{
13245dfe64dd3Smacallan  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13246dfe64dd3Smacallan  # positional parameters, so assign one to ordinary parameter first.
13247dfe64dd3Smacallan  func_stripname_result=${3}
13248dfe64dd3Smacallan  func_stripname_result=${func_stripname_result#"${1}"}
13249dfe64dd3Smacallan  func_stripname_result=${func_stripname_result%"${2}"}
13250dfe64dd3Smacallan}
13251dfe64dd3Smacallan
13252dfe64dd3Smacallan# func_opt_split
13253dfe64dd3Smacallanfunc_opt_split ()
13254dfe64dd3Smacallan{
13255dfe64dd3Smacallan  func_opt_split_opt=${1%%=*}
13256dfe64dd3Smacallan  func_opt_split_arg=${1#*=}
13257dfe64dd3Smacallan}
13258dfe64dd3Smacallan
13259dfe64dd3Smacallan# func_lo2o object
13260dfe64dd3Smacallanfunc_lo2o ()
13261dfe64dd3Smacallan{
13262dfe64dd3Smacallan  case ${1} in
13263dfe64dd3Smacallan    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13264dfe64dd3Smacallan    *)    func_lo2o_result=${1} ;;
13265dfe64dd3Smacallan  esac
13266dfe64dd3Smacallan}
13267dfe64dd3Smacallan
13268dfe64dd3Smacallan# func_xform libobj-or-source
13269dfe64dd3Smacallanfunc_xform ()
13270dfe64dd3Smacallan{
13271dfe64dd3Smacallan  func_xform_result=${1%.*}.lo
13272dfe64dd3Smacallan}
13273dfe64dd3Smacallan
13274dfe64dd3Smacallan# func_arith arithmetic-term...
13275dfe64dd3Smacallanfunc_arith ()
13276dfe64dd3Smacallan{
13277dfe64dd3Smacallan  func_arith_result=$(( $* ))
13278dfe64dd3Smacallan}
13279dfe64dd3Smacallan
13280dfe64dd3Smacallan# func_len string
13281dfe64dd3Smacallan# STRING may not start with a hyphen.
13282dfe64dd3Smacallanfunc_len ()
13283dfe64dd3Smacallan{
13284dfe64dd3Smacallan  func_len_result=${#1}
13285dfe64dd3Smacallan}
13286dfe64dd3Smacallan
13287dfe64dd3Smacallan_LT_EOF
13288dfe64dd3Smacallan    ;;
13289dfe64dd3Smacallan  *) # Bourne compatible functions.
13290dfe64dd3Smacallan    cat << \_LT_EOF >> "$cfgfile"
13291dfe64dd3Smacallan
13292dfe64dd3Smacallan# func_dirname file append nondir_replacement
13293dfe64dd3Smacallan# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13294dfe64dd3Smacallan# otherwise set result to NONDIR_REPLACEMENT.
13295dfe64dd3Smacallanfunc_dirname ()
13296dfe64dd3Smacallan{
13297dfe64dd3Smacallan  # Extract subdirectory from the argument.
13298dfe64dd3Smacallan  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13299dfe64dd3Smacallan  if test "X$func_dirname_result" = "X${1}"; then
13300dfe64dd3Smacallan    func_dirname_result="${3}"
13301dfe64dd3Smacallan  else
13302dfe64dd3Smacallan    func_dirname_result="$func_dirname_result${2}"
13303dfe64dd3Smacallan  fi
13304dfe64dd3Smacallan}
13305dfe64dd3Smacallan
13306dfe64dd3Smacallan# func_basename file
13307dfe64dd3Smacallanfunc_basename ()
13308dfe64dd3Smacallan{
13309dfe64dd3Smacallan  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13310dfe64dd3Smacallan}
13311dfe64dd3Smacallan
13312dfe64dd3Smacallan
13313dfe64dd3Smacallan# func_stripname prefix suffix name
13314dfe64dd3Smacallan# strip PREFIX and SUFFIX off of NAME.
13315dfe64dd3Smacallan# PREFIX and SUFFIX must not contain globbing or regex special
13316dfe64dd3Smacallan# characters, hashes, percent signs, but SUFFIX may contain a leading
13317dfe64dd3Smacallan# dot (in which case that matches only a dot).
13318dfe64dd3Smacallan# func_strip_suffix prefix name
13319dfe64dd3Smacallanfunc_stripname ()
13320dfe64dd3Smacallan{
13321dfe64dd3Smacallan  case ${2} in
13322dfe64dd3Smacallan    .*) func_stripname_result=`$ECHO "X${3}" \
13323dfe64dd3Smacallan           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13324dfe64dd3Smacallan    *)  func_stripname_result=`$ECHO "X${3}" \
13325dfe64dd3Smacallan           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13326dfe64dd3Smacallan  esac
13327dfe64dd3Smacallan}
13328dfe64dd3Smacallan
13329dfe64dd3Smacallan# sed scripts:
13330dfe64dd3Smacallanmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13331dfe64dd3Smacallanmy_sed_long_arg='1s/^-[^=]*=//'
13332dfe64dd3Smacallan
13333dfe64dd3Smacallan# func_opt_split
13334dfe64dd3Smacallanfunc_opt_split ()
13335dfe64dd3Smacallan{
13336dfe64dd3Smacallan  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13337dfe64dd3Smacallan  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13338dfe64dd3Smacallan}
13339dfe64dd3Smacallan
13340dfe64dd3Smacallan# func_lo2o object
13341dfe64dd3Smacallanfunc_lo2o ()
13342dfe64dd3Smacallan{
13343dfe64dd3Smacallan  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13344dfe64dd3Smacallan}
13345dfe64dd3Smacallan
13346dfe64dd3Smacallan# func_xform libobj-or-source
13347dfe64dd3Smacallanfunc_xform ()
13348dfe64dd3Smacallan{
13349dfe64dd3Smacallan  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13350dfe64dd3Smacallan}
13351dfe64dd3Smacallan
13352dfe64dd3Smacallan# func_arith arithmetic-term...
13353dfe64dd3Smacallanfunc_arith ()
13354dfe64dd3Smacallan{
13355dfe64dd3Smacallan  func_arith_result=`expr "$@"`
13356dfe64dd3Smacallan}
13357dfe64dd3Smacallan
13358dfe64dd3Smacallan# func_len string
13359dfe64dd3Smacallan# STRING may not start with a hyphen.
13360dfe64dd3Smacallanfunc_len ()
13361dfe64dd3Smacallan{
13362dfe64dd3Smacallan  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13363dfe64dd3Smacallan}
13364dfe64dd3Smacallan
13365dfe64dd3Smacallan_LT_EOF
13366dfe64dd3Smacallanesac
13367dfe64dd3Smacallan
13368dfe64dd3Smacallancase $lt_shell_append in
13369dfe64dd3Smacallan  yes)
13370dfe64dd3Smacallan    cat << \_LT_EOF >> "$cfgfile"
13371dfe64dd3Smacallan
13372dfe64dd3Smacallan# func_append var value
13373dfe64dd3Smacallan# Append VALUE to the end of shell variable VAR.
13374dfe64dd3Smacallanfunc_append ()
13375dfe64dd3Smacallan{
13376dfe64dd3Smacallan  eval "$1+=\$2"
13377dfe64dd3Smacallan}
13378dfe64dd3Smacallan_LT_EOF
13379dfe64dd3Smacallan    ;;
13380dfe64dd3Smacallan  *)
13381dfe64dd3Smacallan    cat << \_LT_EOF >> "$cfgfile"
13382dfe64dd3Smacallan
13383dfe64dd3Smacallan# func_append var value
13384dfe64dd3Smacallan# Append VALUE to the end of shell variable VAR.
13385dfe64dd3Smacallanfunc_append ()
13386dfe64dd3Smacallan{
13387dfe64dd3Smacallan  eval "$1=\$$1\$2"
13388dfe64dd3Smacallan}
13389dfe64dd3Smacallan
13390dfe64dd3Smacallan_LT_EOF
13391dfe64dd3Smacallan    ;;
13392dfe64dd3Smacallan  esac
13393dfe64dd3Smacallan
13394dfe64dd3Smacallan
13395dfe64dd3Smacallan  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13396dfe64dd3Smacallan    || (rm -f "$cfgfile"; exit 1)
13397dfe64dd3Smacallan
13398dfe64dd3Smacallan  mv -f "$cfgfile" "$ofile" ||
13399dfe64dd3Smacallan    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13400dfe64dd3Smacallan  chmod +x "$ofile"
13401dfe64dd3Smacallan
13402dfe64dd3Smacallan ;;
13403dfe64dd3Smacallan
13404dfe64dd3Smacallan  esac
13405dfe64dd3Smacallandone # for ac_tag
13406dfe64dd3Smacallan
13407dfe64dd3Smacallan
13408dfe64dd3Smacallanas_fn_exit 0
13409dfe64dd3Smacallan_ACEOF
13410dfe64dd3Smacallanac_clean_files=$ac_clean_files_save
13411dfe64dd3Smacallan
13412dfe64dd3Smacallantest $ac_write_fail = 0 ||
13413dfe64dd3Smacallan  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13414dfe64dd3Smacallan
13415dfe64dd3Smacallan
13416dfe64dd3Smacallan# configure is writing to config.log, and then calls config.status.
13417dfe64dd3Smacallan# config.status does its own redirection, appending to config.log.
13418dfe64dd3Smacallan# Unfortunately, on DOS this fails, as config.log is still kept open
13419dfe64dd3Smacallan# by configure, so config.status won't be able to write to it; its
13420dfe64dd3Smacallan# output is simply discarded.  So we exec the FD to /dev/null,
13421dfe64dd3Smacallan# effectively closing config.log, so it can be properly (re)opened and
13422dfe64dd3Smacallan# appended to by config.status.  When coming back to configure, we
13423dfe64dd3Smacallan# need to make the FD available again.
13424dfe64dd3Smacallanif test "$no_create" != yes; then
13425dfe64dd3Smacallan  ac_cs_success=:
13426dfe64dd3Smacallan  ac_config_status_args=
13427dfe64dd3Smacallan  test "$silent" = yes &&
13428dfe64dd3Smacallan    ac_config_status_args="$ac_config_status_args --quiet"
13429dfe64dd3Smacallan  exec 5>/dev/null
13430dfe64dd3Smacallan  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13431dfe64dd3Smacallan  exec 5>>config.log
13432dfe64dd3Smacallan  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13433dfe64dd3Smacallan  # would make configure fail if this is the last instruction.
13434dfe64dd3Smacallan  $ac_cs_success || as_fn_exit 1
13435dfe64dd3Smacallanfi
13436dfe64dd3Smacallanif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13437dfe64dd3Smacallan  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13438dfe64dd3Smacallan$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13439dfe64dd3Smacallanfi
13440dfe64dd3Smacallan
13441